el-input输入校验,只能输入正数或者负数,最多两位小数,并且限制长度
<el-input
v-model="scope.row[scope.column.property]"
maxlength="20"
oninput="value=value.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')"
/>
<el-input
v-model="scope.row[scope.column.property]"
maxlength="20"
oninput="value=value.replace(/^([0-9-]\d*\.?\d{0,2})?.*$/,'$1')"
/>