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
<FormItem label="名称"> <Input name="username"/> </FormItem>
username 是必填字段
to
名称 是必填字段
The text was updated successfully, but these errors were encountered:
any progress? @bindoon
Sorry, something went wrong.
#345 这两个issue是不是说的同一件事儿
不是同一件事情,这个是校验出错提示的时候希望不用name而是用formitem上的label
是个feature,不过改动会比较大,涉及form field validate 三个组件的修改。先不着急处理!
我记得之前提过类似的,但是我希望是提供一个通用的全局设置方法,比如
Field.setConfig({ message: { required: '请填写 {label}', format: '请输入正确的 {label}' } });
现在虽然使用 Form.Item 方便了很多,但是一个页面如果有50个字段,每个字段除了写 label,还得写 requiredMessage
Merge pull request #1595 from bindoon/feat/form
4018148
feat(Form): api useLabelForErrorMessage for replace name fix #294
8b483f8
bindoon
jdkahn
No branches or pull requests
Component
Form
Feature Description
to
The text was updated successfully, but these errors were encountered: