const blurText = async(rule, value, callback) => {
const boolean = new RegExp('^[1-9][0-9]*$').test(value)
if (!boolean) {
this.$message.warning('请输入正整数')
this.eyPara.amErrYear = ''
}
}
{ validator: blurText, trigger: 'blur',message: '请输入正整数', }
element正整数校验
最新推荐文章于 2023-04-12 19:45:24 发布