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
1.4.10
ant-design-vue: 1.4.10 vue: 2.5.11
https://www.antdv.com/components/form-cn/#components-form-demo-dynamic-rules
使用v-decorator验证form中input为数字时,输入数字检验失败,提示错误信息。 <a-input v-decorator="['weightValue',{rules: [{ required: true,type:'number',message: '货重为必填项'}]}]" />
<a-input v-decorator="['weightValue',{rules: [{ required: true,type:'number',message: '货重为必填项'}]}]" />
输入数字检验失败,提示错误信息
输入数字检验通过,输入除数字以外的字符检验失败,提示错误信息
The text was updated successfully, but these errors were encountered:
请直接使用 input-number
Sorry, something went wrong.
请直接使用 input-number 加前缀和后缀或前置/后置标签 input-number 支持吗?
建议可以直接提pull request
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.
No branches or pull requests
Version
1.4.10
Environment
ant-design-vue: 1.4.10 vue: 2.5.11
Reproduction link
https://www.antdv.com/components/form-cn/#components-form-demo-dynamic-rules
Steps to reproduce
使用v-decorator验证form中input为数字时,输入数字检验失败,提示错误信息。
<a-input v-decorator="['weightValue',{rules: [{ required: true,type:'number',message: '货重为必填项'}]}]" />
What is expected?
输入数字检验失败,提示错误信息
What is actually happening?
输入数字检验通过,输入除数字以外的字符检验失败,提示错误信息
The text was updated successfully, but these errors were encountered: