el-table-column 的样式单独设置。
header-cell-style=“background-color: #fff; color: #999999”
设置表头
:cell-style=“rowClass” 设置列表内的样式
在methods中设置
//这里回调 设置每行的样式
rowClass({ row, column, rowIndex, columnIndex }) {
if (column.type == “selection”) {
return “border-radius: 12px 0 0 12px;background: #f4f6fa;”;
}
if (column.label == “操作”) {
return “border-radius: 0 12px 12px 0;background: #f4f6fa;”;
}
return “background: #f4f6fa; border:none; color: #0A245D”;
},