vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.25k stars 3.79k forks source link

Form component, when v-decorator configures trigger to blur, starting the timer will cause input failure #4545

Closed IanLew closed 3 years ago

IanLew commented 3 years ago

Version

1.7.7

Environment

os version: windows10, browser version: Google Chrome 91.0.4472.106, Vue version: 2.6.14

Reproduction link

https://codesandbox.io/s/vue-antd-template-forked-lqjc2

Steps to reproduce

使用v-decorator,trigger为blur,此时使用定时器输入框无法输入,输入数据会被清除

<a-input
v-decorator="[
'captcha',
{
rules: [
{
required: true,
message: 'Please input the captcha you got!',
},
],
trigger: 'blur',
},
]"
/>

What is expected?

用户不主动进行相关操作,输入数据应不受影响

What is actually happening?

输入框输入数据被清除,无法正常输入

tangjinzhou commented 3 years ago

使用 a-form-model 吧 v-decorator 不在推荐使用
https://antdv.com/components/form-model-cn/

IanLew commented 3 years ago

使用 a-form-model 吧 v-decorator 不在推荐使用 https://antdv.com/components/form-model-cn/

已经改用a-form-model了,只是觉得v-decorator比较强大,就试用了一下

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.