0
点赞
收藏
分享

微信扫一扫

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

阎小妍 2024-09-19 阅读 2

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 条评论