<el-input onkeyup="this.value = this.value.replace(/[^d.]/g,'');" v-model="val" > </el-input>
element input框中只能输入数字
关注博客 https://www.cnblogs.com/aknife/
<el-input onkeyup="this.value = this.value.replace(/[^d.]/g,'');" v-model="val" > </el-input>