element icon indicating copy to clipboard operation
element copied to clipboard

number类型验证问题,只验证了第一个是否是数字

Open baijie opened this issue 9 years ago • 1 comments

:rules="[ { required: true, message: '年龄不能为空'}, { type: 'number', message: '年龄必须为数字值'} ]"

这里的number类型 如果填写 123abc 不会报错; 只验证了第一个是否是数字

baijie avatar Mar 08 '17 09:03 baijie

#3179

Leopoldthecoder avatar Mar 08 '17 11:03 Leopoldthecoder