有个页面需要在el-table做输入, 但是希望用户的输入符合要求, 没找到检验的方法, 请高人指点一二
<el-table-column align="center" label="指标" width="100">
<template scope="scope">
<span>{{scope.row.low_quantity}}></span>
</template>
</el-table-column>
<el-table-column align="center" label="数量" width="100">
<template scope="scope">
<el-input size="small" v-model="scope.row.quantity"></el-input>
</template>
</el-table-column>
我希望用户输入的quantity大于low_quantity, 不知道如何实现
在这里想对el-table中输入的算法参数做类型判断,代码如下:
(1)html
注意:el-form-item的prop和el-input的model要引用正确
(2)js代码
2.1验证说明
(3)效果