uni-forms

uniapp child.onFieldChange is not a function_javascript

// 所有子组件参与校验,使用 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.`);
					}
				}