如图所示:
代码如下:
<el-table-column prop="sort" label="客群排序">
<template slot-scope="scope">
<div class="label-ceil">
<input v-model="scope.row.sort" @input="sortFun(scope.row)">
</div>
</template>
</el-table-column>
@input只有值发生改变后才会触发
@blur是input失去焦点的时候触发