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>

浙公网安备 33010602011771号