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 设置校验的模板 see https://ant-design.gitee.io/components/form-cn/#validateMessages
配置举例:
const validateMessages = { required: "'${label}' 是必选字段", // ... }; <Form validateMessages={validateMessages}></Form>;
我只需要传入 required: true 我就不用在 rules 写自己的校验文本了
required: true
The text was updated successfully, but these errors were encountered:
新增 validateMessages 字段,用于覆盖默认的校验信息,详见文档
validateMessages
Sorry, something went wrong.
FateRiddle
siyi98
No branches or pull requests
期望的新功能
比如我需要给 form 设置校验的模板 see https://ant-design.gitee.io/components/form-cn/#validateMessages
为什么(简述一下使用场景)
配置举例:
我只需要传入
required: true
我就不用在 rules 写自己的校验文本了The text was updated successfully, but these errors were encountered: