DataV icon indicating copy to clipboard operation
DataV copied to clipboard

columnWidth 是否可设置百分比

Open marvin-min opened this issue 4 years ago • 3 comments

columnWidth 是否可设置百分比. 现在通过数字的话很难控制。或者知否可以这样子。 比如我有三列 [a,b,c] 我希望 b,c是固定的,比如 b 是100, c是200. a就是总宽度减去100 和200. [,100,200] 两边列固定,剩余宽度都给中间列 [100,,200]

或者按百分比 [0.7,0.1,0.2] 假设总宽度是1000,这种设置结果等于[700,100,200]

marvin-min avatar May 16 '20 10:05 marvin-min

后续会提供优化

jiaming743 avatar Jun 03 '20 04:06 jiaming743

后续会提供优化

我的需求和楼主一致 但我更希望某些能百分比
比如 我有5列 [ a,b,c,d,e]
我希望 a是80 b是100 c ,d 是百分比或者最大, e是 120

h0730303779 avatar Aug 26 '20 08:08 h0730303779

删除组件后面的px,然后传递字符串就可以了

PyVilli avatar Jan 25 '22 09:01 PyVilli