效果图 <el-input v-model.number='price' size="small" type="number" oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value.slice(0,7)" placeholder="请输入价格"></el-input>