<el-form :model="ruleForm" :rules="rules" ref="ruleForm">
<el-form-item prop="allPayeeMoney">
<el-input type="number" step="0.01" v-model="ruleForm.allPayeeMoney" autocomplete="off"></el-input>
</el-form-item>
<el-form>
data(){
return {
ruleForm:{
allPayeeMoney
}
扫描二维码关注公众号,回复:
6756718 查看本文章
![](/qrcode.jpg)
}
rules : {
yeeMoney: [
{ required: true, message: '请填写正确的金额,保留两位小数',pattern: /^\d{1,2}(\.\d{1,2})?$/}
]
},