- 给表格列加类名
<el-table-column label-class-name="disabledCheck" type="selection" width="50"></el-table-column>
- 原来的复选不显示,显示为文字"选择"
.el-table .disabledCheck .cell .el-checkbox__inner{
display: none !important;
}
.el-table .disabledCheck .cell::before{
content: '选择';
text-align: center;
line-height: 36px;
}
- 效果展示