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.`);
					}
				}
相关推荐
战族狼魂2 分钟前
MetaPrompt编译器核心逻辑拆解
开发语言·人工智能·python
gihigo19988 分钟前
MATLAB实现光谱特征波长提取
开发语言·matlab
代钦塔拉10 分钟前
Qt信号槽参数类型全解:原生类型、结构体、enum class强枚举注册与传参实战
开发语言·qt
谷谷地图下载器12 分钟前
全球、台湾省的无水印·街景数据(离线数据),专为可视化项目定制,支持国产化
javascript·c++·3d·arcgis·sqlite
万少16 分钟前
如果你要自动化操作浏览器,Kimi-WebBridge可能适合你
前端·javascript·后端
dinl_vin17 分钟前
Python 并发编程实战:多线程、协程与多进程全解析
开发语言·人工智能·python
程序大视界18 分钟前
【C++ 从基础到项目实战】C++(五):类与对象基础——构造、析构与访问控制
开发语言·c++·cpp
代码中介商19 分钟前
掌握C++ std::bind:参数绑定与灵活调用
开发语言·c++
拽着尾巴的鱼儿24 分钟前
Java 对象的深拷贝和浅拷贝
java·开发语言
韩曙亮37 分钟前
【错误记录】flutter attach 附加设备 执行报错 ( 附加设备注意事项 )
android·javascript·flutter·flutter attach