element ui 去除表头全选框

 

 

方法
 cellClass(row) {
      if (row.rowIndex === 0) {
        return 'disabledCheck'
      }
    },
 
 
css
<style scoped>
/* 关闭表头全选按钮 */
::v-deep .el-table .disabledCheck .cell .el-checkbox__inner {
  display: none;
}
::v-deep .el-table .disabledCheck .cell::before {
  content: '';
  text-align: center;
  line-height: 37px;
}
</style>
posted @ 2022-05-25 14:52  落日残霞  阅读(406)  评论(0编辑  收藏  举报