vueComponent / ant-design-vue

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

v2.2.8's form-item setting validateFirst=true will still trigger all validations and display all error prompts instead of just the first error #4762

Closed ismeljm closed 3 years ago

ismeljm commented 3 years ago

Version

2.2.8

Environment

antdv v2.2.8

Reproduction link

Edit on CodeSandbox

Steps to reproduce

form-item设置validateFirst=true仍然会全部触发验证,并显示所有错误提示,而非仅显示第一个错误

What is expected?

输入框显示所有错误

What is actually happening?

只显示第一个错误

tangjinzhou commented 3 years ago

useForm 是一个可以独立 Form 组件运行的方法,它使用 Vue 响应式机制进行数据的监听和校验,并将校验结果返回,你可以将校验结果绑定到任何组件上,Form.Item 也仅仅是将结果展示。

tangjinzhou commented 3 years ago

你可以使用”传统方式“

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.