前提
现在需要对表格中的数据进行判断,判断是否可选。
上代码
添加:selectable=“IsCheck”
<el-table-column :selectable="IsCheck" type="selection" width="55">
</el-table-column>
methods:{}添加
IsCheck(row, index) {
if (!row.IsCheck) {
return false
} else {
return true
}
},