rowClassName={(record, index) => {
let className;
if (index === rowSelectedIndex) className = 'light';
return className;
}}
想让选中的行高亮,这里改怎么写?
rowClassName={(record, index) => {
let className;
if (index === rowSelectedIndex) className = 'light';
return className;
}}
想让选中的行高亮,这里改怎么写?
添加额外的
CSS
,直接在CSS
里用返回的className
写样式就可以了。