VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 能否支持给每一列单独设置 limitMaxAutoWidth ?

Open fuxingjun opened this issue 1 year ago • 1 comments

What problem does this feature solve?

每一列根据不同的内容合适的宽度是不一样的, 如果设置 maxWidth 的话, 用户自由调整的时候就没办法超过 maxWidth 了. 如果支持设置 limitMaxAutoWidth 的话, 就可以实现设置默认最大宽度的同时, 用户还可以自由调整.

What does the proposed API look like?

columns: [
  {
    ...
    limitMaxAutoWidth: 200, 
 },
  {
    ...
    limitMaxAutoWidth: 180, 
  }
];

fuxingjun avatar Feb 23 '24 07:02 fuxingjun