不借助外部判断情况下实现方式,备注在此,以备后查!
<el-input
type="number"
oninput="if(value.length>6)value=value.slice(0,6)"
v-model="dynamicValidateForm[index]"
></el-input>
the end!