问题:
在表格中使用type='selection'实现多选,需要禁用某一行。

解决办法:

HTML:

1 <el-table-column type="selection" :selectable='checkboxSelect' width="55"></el-table-column>

JS:

checkboxSelect (row, rowIndex) {
     if (row.status == 1) {
        return true // 不禁用
     }else{
        return false // 不禁用
     }
 }

 

相关文章:

  • 2021-09-04
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案