b2nil / taro-ui-vue3

采用 Vue 3.0 重写的 Taro UI 组件库
https://b2nil.github.io/taro-ui-vue3/
MIT License
160 stars 51 forks source link

AtButton 不能触发表格的 onSubmit/onReset 事件 #9

Closed b2nil closed 3 years ago

b2nil commented 4 years ago

报错信息

Cannot read property '$scope' of undefined
TypeError: Cannot read property '$scope' of undefined

实例无 $scope 属性

this.$scope.triggerEvent('submit', event.detail, {
     bubbles: true,
     composed: true
});
b2nil commented 4 years ago

已修复找不到 $scope 的问题:fix(button): $scope not defined

但在 AtForm 嵌套 AtInput 时,无法触发 onSubmit 事件。 taro-ui 触发form表单submit有问题