element-ui 表格的多行数据选择,根据条件默认禁用一部分 发表评论A+所属分类:Vue 直接贴代码备查 <el-table-column type="selection" width="55" :selectable="checkSelectable" > methods: { checkSelectable (row, index) { //通过id来禁止不能选择的项 // return row.id !== 1 //通过索引index来禁止不能选择的项 return index !== 1 } } 赞 2 赏 分享