element plus table selection hides all button

Effect
insert image description here

1.Set in table

Set the table: header-cell-class-name="selectionClass"

insert image description here
2. Define attributes in data

const selectionClass= (row) => {
if (row.columnIndex === 0) {
return “disabledsele”;
}
};

3. Set in css style

:deep(.el-table .disabledCheck .cell .el-checkbox__inner) {
display: none;
}

Guess you like

Origin blog.csdn.net/qq_44871531/article/details/129399362