一、.el-input
1.大于0的正数
<el-input
oninput="value=value.replace(/[^\d.]/g, '')"
v-model="ruleForm.year"
clearable
placeholder="请输入年限"
></el-input>
2.大于0的正整数
<el-input
oninput="value=value.replace(/\D/g, '')"
v-model="ruleForm.year"
clearable
placeholder="请输入年限"
></el-input>