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

Menu