Skip to content

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

@nianlun

Description

@nianlun
  • 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?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions