0
点赞
收藏
分享

微信扫一扫

el-input只能输入数字

唯米天空 2022-02-14 阅读 187
<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 条评论