<el-table-column type="selection" align="center" width="40" fixed="left" :selectable="selectEnable" />
// 禁用el-table 复选框(父级)
const selectEnable = (val, index) => {
if (val.source == '父级文件夹') {
return false
} else {
return true
}
}
<el-table-column type="selection" align="center" width="40" fixed="left" :selectable="selectEnable" />
// 禁用el-table 复选框(父级)
const selectEnable = (val, index) => {
if (val.source == '父级文件夹') {
return false
} else {
return true
}
}