1***@qq.com
1***@qq.com
  • 发布:2022-04-15 08:15
  • 更新:2022-07-13 16:25
  • 阅读:663

【报Bug】uni-forms submit 时 validate()报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 12.21

HBuilderX类型: 正式

HBuilderX版本号: 3.3.13

手机系统: iOS

手机系统版本号: iOS 15

手机厂商: 模拟器

手机机型: 8plus

页面类型: vue

vue版本: vue2

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

"this.$refs.uform.validate().then(res => {console.log('表单数据信息:', res);}).catch(err => {console.log('表单错误信息:', err);})

预期结果:

正常使用,没有异常

实际结果:

报错

bug描述:

uni-forms 执行"this.$refs.uform.validate().then(res => {console.log('表单数据信息:', res);}).catch(err => {console.log('表单错误信息:', err);})"报如下错误,
表单错误信息:, TypeError: child.triggerCheck is not a function. (In 'child.triggerCheck(invalidFields[name], true)', 'child.triggerCheck' is undefined)

2022-04-15 08:15 负责人:无 分享
已邀请:
DCloud_UNI_Anne

DCloud_UNI_Anne

参考下hello uni-app中的uni-forms示例

6***@qq.com

6***@qq.com

我删掉Array.prototype.xxxx 绑定在array中方法就ok了...

要回复问题请先登录注册