Skip to content
New issue

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

使用v-decorator验证form中input为数字时,输入数字检验失败,提示错误信息。 #1722

Closed
1 task
nianlun opened this issue Jan 14, 2020 · 4 comments
Labels

Comments

@nianlun
Copy link

nianlun commented Jan 14, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

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?

输入数字检验通过,输入除数字以外的字符检验失败,提示错误信息

@sendya
Copy link
Member

sendya commented Jan 14, 2020

请直接使用 input-number

@li-guojiang
Copy link

请直接使用 input-number
加前缀和后缀或前置/后置标签 input-number 支持吗?

@yf-hk
Copy link

yf-hk commented Feb 4, 2020

建议可以直接提pull request

@github-actions
Copy link

github-actions bot commented Feb 6, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants