<el-input style="width: 60px" v-model="scope.row.gain" onkeyup="value=value.replace(/[^\d]/g,'')" @change="((val)=>{ inputChange(val, scope.$index) })"/>%
只需要假如下面的属性就可以了
οnkeyup="value=value.replace(/[^\d]/g,'')"
el-input只能输入数字
阅读 187
2022-02-14
<el-input style="width: 60px" v-model="scope.row.gain" onkeyup="value=value.replace(/[^\d]/g,'')" @change="((val)=>{ inputChange(val, scope.$index) })"/>%
只需要假如下面的属性就可以了
οnkeyup="value=value.replace(/[^\d]/g,'')"
相关推荐
精彩评论(0)