Element-ui number输入框长度限制以及不能输入e、+、-符号
<el-input
v-model="scope.row.sort"
type="number"
@input.native="if(scope.row.sort.length>3)scope.row.sort=scope.row.sort.slice(0,3)"
onkeypress='return( /[\d]/.test(String.fromCharCode(event.keyCode)))'>
</el-input>
使用slice来对输入的内容进行截取,使用onkeypress进行输入限制