-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.3.10
Environment
vue-2.6.10 chrome-latest
Reproduction link
Steps to reproduce
创建form表单校验,校验type位number时页面填写类似123数字时或空值时校验不通过
What is expected?
希望能将async-validator跟进为最新版本,或者修复BUG
What is actually happening?
v-decorator rules type: 'integer'输入框并未校验require=true,页面填写数字校验不通过,输入框清空还是校验不通过
v-decorator="[ 'abc', { rules: [ {type: 'integer', message: '请输入int格式参数'} ] } ]"
在对表单输入框做此数字校验时,输入框填写了正确的数字还是校验不通过,并且因为我没做必输require的校验,在填写完数字后清空数值还是校验不通过。去看了一下async-validator的issue,发现功能确实存在缺陷,但是好像在最新的版本v3.0.3中已经修复了这个问题。查看ant-design-vue中的async-validator版本还是v1.8.2的版本。希望能跟进到最新版本或者能修复这个BUG