先上效果:

具体实现,使用protable的属性,自定义一个css样式bg-red,然后用rowClassName可以根据逻辑return出来这个css类即可
.bg-red{
background-color: red;
}
rowClassName={(record)=>{
return record.fangjianshu>=10? "bg-red":""
}}
先上效果:

具体实现,使用protable的属性,自定义一个css样式bg-red,然后用rowClassName可以根据逻辑return出来这个css类即可
.bg-red{
background-color: red;
}
rowClassName={(record)=>{
return record.fangjianshu>=10? "bg-red":""
}}
1401

被折叠的 条评论
为什么被折叠?