Skip to content

feat(table): update table props, enable loadingMode prop - #927

Merged
anlyyao merged 40 commits into
Tencent:developfrom
slatejack:feature/table-v2
Jul 30, 2026
Merged

feat(table): update table props, enable loadingMode prop#927
anlyyao merged 40 commits into
Tencent:developfrom
slatejack:feature/table-v2

Conversation

@slatejack

@slatejack slatejack commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

fix #925

相关 PRs

TDesignOteam/tdesign-api#878
Tencent/tdesign-common#2556
Tencent/tdesign-common#2652

💡 需求背景和解决方案

📝 更新日志

  • feat(Table): 新增 loadingModepagination 等多个属性,支持分页、筛选、排序及可拖拽功能

  • 本条 PR 不需要纳入 Changelog

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

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

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

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

完成

@codecov-commenter

codecov-commenter commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 51.12856% with 498 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.26%. Comparing base (02b774b) to head (32a549c).
⚠️ Report is 440 commits behind head on develop.

Files with missing lines Patch % Lines
src/table/hooks/useDragSort.ts 28.57% 155 Missing ⚠️
src/table/hooks/useSorter.tsx 31.13% 73 Missing ⚠️
src/table/hooks/useFilter.tsx 36.48% 47 Missing ⚠️
src/table/hooks/usePullRefresh.tsx 58.77% 47 Missing ⚠️
src/table/hooks/useRowSelect.tsx 64.34% 41 Missing ⚠️
src/table/hooks/useRowExpand.tsx 31.57% 39 Missing ⚠️
src/table/PrimaryTable.tsx 72.83% 22 Missing ⚠️
src/table/hooks/usePagination.tsx 62.96% 20 Missing ⚠️
src/table/FilterController.tsx 64.70% 18 Missing ⚠️
src/table/BaseTable.tsx 81.15% 13 Missing ⚠️
... and 5 more
Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #927       +/-   ##
============================================
+ Coverage     6.93%   55.26%   +48.33%     
============================================
  Files          400      317       -83     
  Lines         4241     9333     +5092     
  Branches       990     2557     +1567     
============================================
+ Hits           294     5158     +4864     
- Misses        3947     4175      +228     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Jun 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/tdesign-mobile-react@927

commit: 32a549c

Comment thread src/table/_example/loading.tsx Outdated
Comment thread src/table/_example/loading.tsx
Comment thread src/table/hooks/usePullRefresh.tsx Outdated
Comment thread src/table/BaseTable.tsx
Comment thread src/table/BaseTable.tsx Outdated
Comment thread src/table/hooks/usePullRefresh.tsx Outdated
Comment thread src/table/hooks/useColumnResize.tsx Outdated
Comment thread src/table/tablePaginationDefaultProps.ts
@anlyyao

anlyyao commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

组件功能/体验问题:@slatejack 辛苦大佬有空在处理一波 👀👀

  • 拖拽功能无效
  • 单选图标被遮挡
  • 单选/多选图标尺寸错误,正确尺寸为 16px*16px
  • 带操作示例中,操作栏 Button 左右间距错误
  • 缺少升降序、筛选示例

录屏:https://github.com/user-attachments/assets/b20350cd-7334-46e9-8272-29ad6e358c43

@slatejack

Copy link
Copy Markdown
Collaborator Author

组件功能/体验问题:@slatejack 辛苦大佬有空在处理一波 👀👀

  • 拖拽功能无效
  • 单选图标被遮挡
  • 单选/多选图标尺寸错误,正确尺寸为 16px*16px
  • 带操作示例中,操作栏 Button 左右间距错误
  • 缺少升降序、筛选示例

录屏:https://github.com/user-attachments/assets/b20350cd-7334-46e9-8272-29ad6e358c43

已处理~需先合并 common 仓库后再更新~

Comment thread src/table/TablePagination.tsx
Comment thread src/table/_example/select.tsx
Comment thread src/table/hooks/usePullRefresh.tsx
Comment thread src/table/hooks/usePagination.tsx Outdated
Comment thread src/table/PrimaryTable.tsx Outdated
Comment thread src/table/hooks/useDragSort.ts Outdated
@anlyyao
anlyyao force-pushed the feature/table-v2 branch from 6b0f161 to 32a549c Compare July 30, 2026 09:31
@anlyyao
anlyyao merged commit 7289292 into Tencent:develop Jul 30, 2026
12 checks passed
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