uniapp child.onFieldChange is not a function

uni-forms

js 复制代码
	// 所有子组件参与校验,使用 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.`);
					}
				}
相关推荐
superman超哥3 分钟前
Context与任务上下文传递:Rust异步编程的信息高速公路
开发语言·rust·编程语言·context与任务上下文传递·rust异步编程
步达硬件4 分钟前
【Matlab】批量自定义图像处理
开发语言·matlab
军军君016 分钟前
Three.js基础功能学习七:加载器与管理器
开发语言·前端·javascript·学习·3d·threejs·三维
哈__7 分钟前
React Native 鸿蒙开发:内置 Share 模块实现无配置社交分享
javascript·react native·react.js
liulilittle8 分钟前
OPENPPP2 网络驱动模式
开发语言·网络·c++·网络协议·信息与通信·通信
mjhcsp11 分钟前
C++ AC 自动机:原理、实现与应用全解析
java·开发语言·c++·ac 自动机
huihuihuanhuan.xin13 分钟前
后端八股之java并发编程
java·开发语言
寻星探路17 分钟前
【算法通关】双指针技巧深度解析:从基础到巅峰(Java 最优解)
java·开发语言·人工智能·python·算法·ai·指针
崇山峻岭之间19 分钟前
Matlab学习记录32
开发语言·学习·matlab
向上的车轮19 分钟前
如何选择Python IDE?
开发语言·ide·python