How does the table component of antd reasonably control the width of each column?

as shown in the figure, I did not manually control the column width, and the result is like this, but I feel that even if the column width is fixed, then there will still be many rows if the data in < td > is too long. Is there any good way to deal with the table component of antd in view of this situation?

Mar.14,2021

give each column a fixed width, such as your order number and time, which can be set to the width that displays the longest characters. The unsubscribe number is also limited to a width. If it is not enough, let him automatically wrap the column


set the column width width


set widht or className


in columns .

if there is a time when there is more content in a column in the list, it is recommended to use an expandable table, layout to look much better (but take into account the display of data, ui, etc.)

clipboard.png

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-1beb3f4-31a4d.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-1beb3f4-31a4d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?