依赖库版本 :
Vue 3 + antd for vue v3. X
样式问题 :固定列背景色不生效,鼠标移入对应行背景色变为初始的白色
columns: [
{
title: '装置',
width: 100,
dataIndex: 'areaName',
fixed: 'left'
},
...
{
title: '装置',
width: 100,
dataIndex: 'areaName',
fixed: 'left'
},
]
rowClassName: (record, index) => {
return record.rushRepair === 1 ? 'table-background-red' : ''
}
.table-background-red {
background: #d33b26;
}
修改样式后解决
.table-background-red td {
background: #d33b26 !important;
}
标签:rowClassName,样式,vue3,background,antd,table,red
From: https://www.cnblogs.com/windzz/p/17770347.html