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正整数校验
最新推荐文章于 2024-04-15 14:20:17 发布