arco-design-vue
arco-design-vue copied to clipboard
table column希望增加 min-width 属性
- [ ] I'm sure this does not appear in the issue list of the repository
Basic Info
What are the similar cases of this feature
element-plus 就有这个属性
What problem does this feature solve?
解决在使用table时有些自定义的字段的长度未知的,但是又不希望在没有值或者值过短时,整个列只能固定宽度,而是有个最小宽度,然后长的话自适应
element的min-width等同于占比,类似于flex:1,flex:2。也类似于android中的layout_weight=1,layout_weight=2
特别需要这个功能,或者width提供百分比参数如width='30%'也行
强烈希望增加minWidth或width支持%或vw
minWidth确实需要,还是挺常用的
大家可以看看文档,对应的cell可以设置属性style添加minWidth。
bodyCellStyle: (record) => { return { 'minWidth': '200px' } }
大家可以看看文档,对应的cell可以设置属性style添加minWidth。
bodyCellStyle: (record) => { return { 'minWidth': '200px' } }
请问这样设置生效么,我参照这样设置好像没有生效
恐怕需要把宽度样式加在 colgroup 的 col 中才会生效。
大家可以看看文档,对应的cell可以设置属性style添加minWidth。