<el-input size="small" min="0" clearable onkeyup="value=value.replace(/[^\d]/g,'')" type="number" v-model.number="formData.sortNum"></el-input>
el-input 限制只能输入数字
最新推荐文章于 2024-07-01 11:15:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
<el-input size="small" min="0" clearable onkeyup="value=value.replace(/[^\d]/g,'')" type="number" v-model.number="formData.sortNum"></el-input>