设置 oninput = "value=value.replace(/[^\d]/g,'')" 搞定
1 <el-input oninput = "value=value.replace(/[^\d]/g,'')" />