Skip to content
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 scroll to row #4648

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Fix/table scroll to row #4648

merged 1 commit into from
Dec 14, 2023

Conversation

YunMeng99
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (54198f9) 90.93% compared to head (3b961d6) 90.93%.
Report is 2 commits behind head on master.

❗ Current head 3b961d6 differs from pull request most recent head 78a97d0. Consider uploading reports for the commit 78a97d0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4648   +/-   ##
=======================================
  Coverage   90.93%   90.93%           
=======================================
  Files         305      305           
  Lines       17922    17922           
  Branches     5295     5295           
=======================================
  Hits        16297    16297           
  Misses       1608     1608           
  Partials       17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@YSMJ1994 YSMJ1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. PR里混杂了overlay的代码,是否是基于master检出的分支?
  2. 从实际含义上来说,新增的api命名为 keepForwardRenderRows 更合理
  3. demo内的解释不够清晰,参考: 虚拟滚动会卸载滚动到视区之外的行,行合并利用td元素的rowSpan属性,需要在合并的第一行设置rowSpan属性,若因滚动视区外卸载了该行,则会导致行合并失效,可以使用 keepForwardRenderRows 设置向前保留一定行数不被卸载,从而使行合并始终生效(设置 keepForwardRenderRows 大于 max rowSpan即可)
  4. demo缺少交互演示设置不同 keepForwardRenderRows 的效果
  5. 需要在table/base.jsx的propTypes内添加该api的jsdoc,文档api会依据这个jsdoc自动生成的

docs/table/index.en-us.md Outdated Show resolved Hide resolved
docs/table/index.md Outdated Show resolved Hide resolved
src/table/base.jsx Show resolved Hide resolved
docs/table/demo/virtual-cellProps.md Outdated Show resolved Hide resolved
docs/table/demo/virtual-cellProps.md Outdated Show resolved Hide resolved
docs/table/demo/virtual-cellProps.md Outdated Show resolved Hide resolved
types/table/index.d.ts Outdated Show resolved Hide resolved
src/table/virtual.jsx Outdated Show resolved Hide resolved
@YSMJ1994
Copy link
Contributor

测试用例我后面帮你优化一下,你先改前面的内容 @YunMeng99

YSMJ1994 added a commit that referenced this pull request Dec 13, 2023
@YSMJ1994 YSMJ1994 merged commit cc5ed00 into master Dec 14, 2023
15 of 17 checks passed
@YSMJ1994 YSMJ1994 deleted the fix/Table-scrollToRow branch December 14, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Table]开启虚拟滚动后,向下滚动导致单元格合并失效
3 participants