【无标题】切换淘宝最新镜像源 npm —— 提升前端开发效率的利器

阎小妍

关注

阅读 6

2024-09-19

uni-forms
在这里插入图片描述

	// 所有子组件参与校验,使用 for 可以使用  awiat
				for (let i in childrens) {
					const child = childrens[i];
					let name = realName(child.name);
					if (typeof child.onFieldChange === 'function') {
						const result = await child.onFieldChange(tempFormData[name]);
						if (result) {
							results.push(result);
							// toast ,modal 只需要执行第一次就可以
							if (this.errShowType === 'toast' || this.errShowType === 'modal') break;
						}
					} else {
						console.warn(`Child ${i} does not have onFieldChange method.`);
					}
				}

精彩评论(0)

0 0 举报