-
-
Notifications
You must be signed in to change notification settings - Fork 48.9k
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: Table virtual with narrow columns #44818
Conversation
Run & review this pull request in StackBlitz Codeflow. |
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: rc-table@7.33.4 |
size-limit report 📦
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #44818 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 681 682 +1
Lines 11526 11567 +41
Branches 3103 3104 +1
=========================================
+ Hits 11526 11567 +41
☔ View full report in Codecov by Sentry. |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
fix #44785
fix #44823
💡 Background and solution
📝 Changelog
virtual
display issue about columns less than table size and some border & hover style missing.virtual
开启虚拟滚动时,当columns
小于表格宽度会显示异常的问题以及部分边框、悬浮样式丢失的问题。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 865f3b6
This pull request enhances the table component with a virtual table feature, which allows rendering large data sets efficiently. It adds a new demo, a custom hook, a style file, and a test case for the feature. It also updates the
rc-table
dependency to the latest version.🔍 Walkthrough
🤖 Generated by Copilot at 865f3b6
useContainerWidth
to calculate table container width (link, link, link)getContainerWidth
function as prop torc-table
component (link, link)scroll.y
(link)virtual-list.tsx
to showcase virtual table feature (link, link, link, link, link)Segmented
component to select data row count (link, link)columns
variable tofixedColumns
to indicate fixed mode (link)getData
function call (link)virtual.ts
to export CSS rules for virtual table feature (link, link)