整数
<el-input
style="width: 200px;"
size="large"
placeholder="请输入(整数)"
v-model="scope.row.targetNew"
maxlength="9"
:autosize="true"
onkeyup="this.value=this.value.replace(/\D/g,'')"
>
</el-input>
小数点后两位
<el-input
style="width: 200px;"
size="large"
placeholder="请输入"
v-model="scope.row.warningrate"
maxlength="9"
:autosize="true"
oninput="if(value.indexOf('.')>0)
{value=value.slice(0,value.indexOf('.')+3)}"
type="number"
>
> </el-input>
设置最大值
最大值为100
<el-input :disabled="editType=='look'" type="number" :max="100"
oninput="if(value > 100) value=100"
v-model="postData.distance" placeholder="请输入距离">
<template slot="append">m</template>
</el-input>