element table的selection根据条件禁用demo效果(整理)

在这里插入图片描述

<el-table-column
      type="selection"
      width="55"
      :selectable="handleDisable"
    >
    </el-table-column>

handleDisable(row,index){
    
    
    if (row.state == 'xxx') {
    
    
      return false
    }else{
    
    
      return true
    }
},

猜你喜欢

转载自blog.csdn.net/qq_38881495/article/details/134972550