去掉表格复选框的全选

<el-table 
          ref="dataList" 
          :data="dataList" 
          :header-cell-class-name="cellClass"
          :row-key="getRowKey"
          @select="onTableSelect"
          @selection-change="handleSelectionChange"
          >
             // cellClass(row) {
      //     if (row.columnIndex === 0) {
      //         return 'disabledCheck';
      //     }
      // },

// 深度选择器 去掉全选按钮
    ::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;
    }

你可能感兴趣的:(vue.js,javascript,elementui)