使用标签,maxlength属性无效
<el-input
v-model="form.tele"
style="width:160px;"
maxlength="11"
placeholder="请输入账号"
type="number">
</el-input>
把代码修改为即可
<el-input
v-model="form.tele"
style="width:160px;"
oninput="if(value.length>6)value=value.slice(0,6)"
placeholder="请输入账号"
type="number">
</el-input>