You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| components | 3 years ago | |
| pages | 3 years ago | |
| static | 3 years ago | |
| store | 3 years ago | |
| utils | 3 years ago | |
| uview-ui | 3 years ago | |
| .gitignore | 3 years ago | |
| App.vue | 3 years ago | |
| index.html | 3 years ago | |
| main.js | 3 years ago | |
| manifest.json | 3 years ago | |
| package-lock.json | 3 years ago | |
| package.json | 3 years ago | |
| pages.json | 3 years ago | |
| readme.md | 3 years ago | |
| uni.scss | 3 years ago | |
readme.md
从git下拉带代码后 项目中的 \node_modules\uview-ui\components\u-form\u-form.vue 第17行要添加下面这行代码 this.errorType === 'toast' ?uni.$u.toast(errors[0].message):
添加后是这样的: if (uni.$u.test.array(errors)) { errorsRes.push(...errors); childErrors.push(...errors); } this.errorType === 'toast' ?uni.$u.toast(errors[0].message): child.message = childErrors[0]?.message ?? null;