
若是我想改变这几个列的背景颜色,应该用什么操作,有详细的方法吗
关注在tabledata表格中添加 :cell-style="rowClass"
rowClass(data) {
if (data.column.label == "XXX") {
return "background: #D9EDF7;color:#34738f";
}
if (data.column.label == "XXX") {
return "background: #D9EDF7;color:#34738f";
}
if (data.column.label == "XXX") {
return "background: #D9EDF7;color:#34738f";
}
},
XX写你要改变列的名字就行了