首先多选框跟当前行的某个数据进行绑定,比如checked给宽度这一列写个自定义的渲染逻辑。<template slot-scope="scope"> <el-input v-if="scope.row.checked" v-Model="scope.row.width" /> <span v-else>{{scope.row.width}}</span> </template>
首先多选框跟当前行的某个数据进行绑定,比如checked
给宽度这一列写个自定义的渲染逻辑。