How does the width of the table column in the table component of element-ui adapt to the content?

The table attribute on the

document has fit, whether the width of the column is self-supporting, and the default is true.
has no effect.


looked around. There is no official plan to support adaptive column width
see issues-sharp4159
temporary solution. I calculate the width according to the string length


column does not write width

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