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): fix footer render when using virtual scroll #3383

Merged
merged 5 commits into from
Feb 26, 2025

Conversation

huangchen1031
Copy link
Collaborator

@huangchen1031 huangchen1031 commented Feb 25, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

1、开启虚拟滚动时,footer不会固定在底部。
2、同时开启footerAffixedBottom时,footer会滚动到视野内,并且无法滚动到最后一行。

修改前:
Clipboard_Screenshot_1740454040
Clipboard_Screenshot_1740454025

修改后:
Pasted Graphic
Clipboard_Screenshot_1740453921

来源:#3142
参考:Tencent/tdesign-vue-next#3965

📝 更新日志

  • fix(table): 修复虚拟滚动下的footer渲染问题

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

Copy link
Contributor

github-actions bot commented Feb 25, 2025

完成

@liweijie0812
Copy link
Collaborator

/update-snapshot

Copy link
Contributor

⏳ 正在运行快照更新。。。 CI: Open

@uyarn uyarn changed the title fix(table): 修复虚拟滚动下的footer渲染问题 fix(table): fix footer render when using virtual scroll Feb 25, 2025
@uyarn uyarn merged commit 0cc866b into develop Feb 26, 2025
7 checks passed
@uyarn uyarn deleted the fix/table-virtual-scroll branch February 26, 2025 08:21
@@ -472,7 +473,7 @@ const BaseTable = forwardRef<BaseTableRef, BaseTableProps>((originalProps, ref)
pagination: innerPagination,
};

const translate = `translate(0, ${virtualConfig.scrollHeight}px)`;
const translate = `translate(0, ${virtualConfig.scrollHeight + affixHeaderHeight + tableFootHeight}px)`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

image 这里要看 出现了undefined 和 NaN 的情况

@github-actions github-actions bot mentioned this pull request Feb 28, 2025
16 tasks
Wesley-0808 added a commit to Wesley-0808/tdesign-react that referenced this pull request Mar 3, 2025
commit dd4c832
Author: wū yāng <[email protected]>
Date:   Sun Mar 2 15:19:16 2025 +0800

    chore: change docs file path (Tencent#3403)

commit 071c4b8
Author: wū yāng <[email protected]>
Date:   Sun Mar 2 15:04:50 2025 +0800

    refactor: mono repo move src to packages/components (Tencent#3402)

    * chore: remove old submodule

    * refactor: add new submodule

    * refactor: add new submodule

    * refactore: move src to packages/components

    * refactor: mono repo

    * refactor: site rerun

    * refactor: test rerun

    * refactor: fix build

commit 9a0b6ac
Author: Haixing <[email protected]>
Date:   Fri Feb 28 16:59:07 2025 +0800

    Release: 1.11.1 (Tencent#3393)

    * release/1.11.1

    * chore: changelog's changes

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

commit bfc06a6
Author: wū yāng <[email protected]>
Date:   Fri Feb 28 16:25:28 2025 +0800

    fix: fix cjs bundle (Tencent#3392)

commit b15b142
Author: liweijie0812 <[email protected]>
Date:   Wed Feb 26 16:21:35 2025 +0800

    feat(Content): support content api (Tencent#3384)

commit 0cc866b
Author: huangchen1031 <[email protected]>
Date:   Wed Feb 26 16:21:12 2025 +0800

    fix(Table): fix footer render when using virtual scroll (Tencent#3383)

    * fix(table): 修复虚拟滚动下的footer渲染问题

    * chore: update snapshots

    * chore: update snapshots

    * chore: update snapshot

    ---------

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Merge branch 'develop' into feat/drawerPlugin
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.

3 participants