Ant Design Vue v1提供了一个用于编写自定义表单组件的documented example。
同样的方法不适用于版本2x。
如何使用useForm在AntDV 2x (vue 3)中实现自定义表单组件
发布于 2021-03-13 01:02:14
我相信我已经弄明白了。以前,您的自定义组件需要发出change事件:
methods: {
handleChange(value) {
this.emit('change', value);
},
},通过查看source code,我了解到您还需要发出一个update:value事件:
methods: {
handleChange(value) {
this.emit('update:value', value);
this.emit('change', value);
},
},https://stackoverflow.com/questions/66591904
复制相似问题