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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be43ef-316da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be43ef-316da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?