<a-table
bordered
:columns="columns"
:data-source="list"
:rowSelection="rowSelection"
:rowKey="
(record, index) => {
return index;
}
"
:rowClassName="rowClassName" //加这一行
>
</a-table>
rowClassName(record, index) {
// 单元格添加过滤条件则有色
if (record.aswwwst == "0") {
return "cellClass";
} else {
return "";
}
},
加css
/deep/ .cell_class {
color: #0000c5 !important;
}