源码:
<el-form-item label="开票限制金额" prop="limitAmount">
<el-input v-model="ruleForm.limitAmount" :precision="2" clearable></el-input>
</el-form-item>
data里的内容
limitAmount:[
{required:true,message:'请输入开票限制金额',tigger:'blur'},
{ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, message: '请输入正确格式,可保留两位小数' }
],
}
网友评论