Open lu-yanpeng opened 3 days ago
@form-create/element-ui@3.2.12 vue@3.5.12 element-plus@2.8.6
<script setup lang="ts"> import { ref } from 'vue' const fApi = ref(null); // ...其他代码 const onReset = () => { // 不生效也不报错 fApi.value.resetFields() } </script> <template> <div> <form-create :rule="rule" v-model:api="fApi" :option="options"/> <el-button @click="onReset ">重置</el-button> </div> </template>
在vue3.5.12的项目里,调用fApi的resetFields方法不生效也不报错,debugger的时候也不会进入到函数里面。试了一下api的几个方法都不行,好像关于formApi的所有方法都不会生效。回退到vue 3.4.38版本就正常
resetFields
感谢反馈,我这边检查一下
版本
@form-create/element-ui@3.2.12 vue@3.5.12 element-plus@2.8.6
问题
在vue3.5.12的项目里,调用fApi的
resetFields
方法不生效也不报错,debugger的时候也不会进入到函数里面。试了一下api的几个方法都不行,好像关于formApi的所有方法都不会生效。回退到vue 3.4.38版本就正常