ant-design-vue
ant-design-vue copied to clipboard
AutoComplete 组件,嵌套其他输入组件,清空value时,嵌套组件内容不清空
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.3
Environment
Vue 3.4.29
Reproduction link
Steps to reproduce
- 使用 AutoComplete 组件,slot插入一个 Textarea 组件
- 在 Textarea 组件监听回车事件
- 当 Textarea 回车时,清空 AutoComplete 的 v-model,此时,Textarea 组件内容不清空
What is expected?
当设置 v-model 的值为空时,让 Textarea 组件内容也清空
What is actually happening?
当设置 v-model 的值为空时,让 Textarea 组件内容没有清空