Antd table cells display different background colors according to the data

problem description

how to dynamically change the className of the header in the table of antd? Display different background colors according to the data

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

clipboard.png

May.09,2022
The block element is written in the

render function to fill up the td and set the color according to the rules.


when configuring columns, there is a render function. In this function, you can set the style based on the data of the current row in this column


in this way, I saw that there is PADDING in TD. How to deal with filling dissatisfaction.


TD contains PADDING, fill in dissatisfaction, how to deal with this?

Menu