We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现在有一些奇怪的需求,想要展示出某些必填项,但是点击提交或者某个方法时触发校验忽略那些必填项 希望可以对form.validateFields的第一个参数进行下功能上的优化 或者通过传递第二个参数 实现不校验某些值这个功能
https://codesandbox.io/s/ji-ben-shi-yong-antd-4-23-1-forked-n4zf5g?file=/demo.js
The text was updated successfully, but these errors were encountered:
必填样式可以通过 Form.Item 上的 required 单独控制是否显示, 可以和校验规则脱离开的
Form.Item
required
Sorry, something went wrong.
但是我们奇怪的需求就想,这个item是必填的 只是不在form.validateFields的时候统一校验,要在别的触发时机时候校验,当然我给需要忽略的地方单独再包个Form也可以 但是这样就会存在一些Form之间相互数据传递的不便利性了.
确实,现在这种不是很方便
考虑使用不同的trigger,你可能要看一下async-validator的文档
No branches or pull requests
What problem does this feature solve?
现在有一些奇怪的需求,想要展示出某些必填项,但是点击提交或者某个方法时触发校验忽略那些必填项
希望可以对form.validateFields的第一个参数进行下功能上的优化 或者通过传递第二个参数 实现不校验某些值这个功能
What does the proposed API look like?
https://codesandbox.io/s/ji-ben-shi-yong-antd-4-23-1-forked-n4zf5g?file=/demo.js
The text was updated successfully, but these errors were encountered: