//头部
<el-table
:data=“tableData”
border
style=“width: 100%”
header-align=“center”
size=“mini”
:header-cell-class-name=“cellClass”
@selection-change=“handleSelectionChange”
>
//方法
cellClass(row) {
if (row.columnIndex === 0) {
return “disabledCheck”;
}
},
//样式
/* 去掉全选按钮 */
::v-deep .el-table .disabledCheck .cell .el-checkbox__inner {
display: none !important;
}
::v-deep .el-table .disabledCheck .cell::after {
content: “全选”;
position: relative;
left: 5px;
text-align: center;
line-height: 37px;
}
//备注:第二列如果是fixed。表格会错位