-
Notifications
You must be signed in to change notification settings - Fork 199
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
🐛明细表在拖拽列宽后,会导致未被拖拽列的已自定义的列宽失效 #2910
Labels
Comments
是的, 默认是对所有生效, 内部会更新
当 |
lijinke666
added a commit
that referenced
this issue
Sep 30, 2024
10 tasks
10 tasks
wjgogogo
pushed a commit
that referenced
this issue
Oct 8, 2024
🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.29 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🏷 Version
Sheet Type
🖋 Description
⌨️ Code Snapshots
使用官网的例子https://s2.antv.antgroup.com/examples/layout/custom#custom-table-size 可以进行复现
精简下代码
拖动列宽后,所有字段的宽度都发生了变化
使用s2 v1.x 版本
拖动列宽后,只有拖动的字段宽度发生了变化
补充:后面查官方文档和代码,发现next版本加了一个新的配置 colResizeType
尝试在上面的例子里面加上该配置发现
在设置 colResizeType 为all时,是对所有单元格生效,此时所有列宽度发生变化是符合预期的
在设置 colResizeType 为 current 或者 selected 时,第一次拖住列宽是对所有单元格生效,之后继续拖动才会对该列生效是不符合预期的,预期结果是第一次拖住列宽是对该列生效
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
希望在自定义了列宽之后,拖动列宽只有对应的列发生变化
😅 Current Behavior
💻 System information
The text was updated successfully, but these errors were encountered: