-
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
fix(interaction): 修复隐藏列头配置更新时未覆盖上一次的配置 close #2495 #2527
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +63 B (0%) Total Size: 441 kB
ℹ️ View Unchanged
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2527 +/- ##
==========================================
+ Coverage 76.48% 76.79% +0.31%
==========================================
Files 240 249 +9
Lines 12312 12767 +455
Branches 2630 2750 +120
==========================================
+ Hits 9417 9805 +388
+ Misses 1377 1365 -12
- Partials 1518 1597 +79 ☔ View full report in Codecov by Sentry. |
ref #2511 |
🎉 This PR is included in version @antv/s2-v1.54.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-react-v1.46.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-vue-v1.6.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
👀 PR includes
🐛 Bugfix
📝 Description
通过
interaction.hiddenColumnFields
配置动态改变隐藏列的场景中, 由于最终都是通过s2.setOptions({ ... })
的方式, 导致配置项会merge
, 而不是覆盖, 对于这种场景应该清除上一次记录的隐藏列信息.S2/packages/s2-react/src/hooks/useSpreadSheet.ts
Lines 104 to 111 in 96ffa9f
🖼️ Screenshot
🔗 Related issue link
closes #2507 #2495
🔍 Self-Check before the merge