-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Table] 当width列宽总和小于 table 元素时, resizable拖动列到最大后不能再拖动 #1067
Comments
👋 @LoopZhou,感谢给 TDesign 提出了 issue。 |
|
在0.44.0版本中验证,该问题未解决。 |
在width列宽总和小于 table 元素时的情况, 依旧有一些问题。
配置的width宽度小于table, 比如示例都是100px, 界面上实际是343px。 当往左侧拖动一点距离到300px。 colgroup的width变成了300px, 实际展示的效果是线往右侧移动了。实际展示列宽变成了618px, 因为resize默认拖动范围代码中配置的是const DEFAULT_MIN_WIDTH = 80; const DEFAULT_MAX_WIDTH = 600; 导致该列不能再拖动。 这种情况下,拖动时是否应该按比例来计算列宽的缩放大小呢? |
认领 #1067 |
定位到问题了:在列的宽度总和小于表的宽度,浏览器会自动撑开每一列,导致显示列宽度和设置的不一致。 |
fixed 0.45.1 |
tdesign-vue 版本
0.42.2
重现链接
https://codesandbox.io/s/tdesign-vue-demo-forked-3txuc4?file=/src/demo.vue
重现步骤
2022-06-24.10.39.25.mov
期望结果
列宽拖动后可以再拖动
实际结果
拖动到最大后,不能再拖动该列
框架版本
Vue(2.6.0)
浏览器版本
Chrome(99.0.4844.51)
系统版本
MacOS(10.15.7)
Node版本
12.22.0
补充说明
No response
The text was updated successfully, but these errors were encountered: