判断vue elementUI 中table里的input的值是否修改

如图所示:

代码如下:

<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失去焦点的时候触发

猜你喜欢

转载自blog.csdn.net/yezi_12345/article/details/128142472
今日推荐