Skip to content

Conversation

Copy link

Copilot AI commented Dec 1, 2025

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

💡 需求背景和解决方案

树形结构表格中,选中子节点后收缩父节点,表头全选 checkbox 状态异常显示为未选中,应显示为半选状态。

修复方案:更新 getSelectedHeader 中的 isIndeterminateisChecked 逻辑:

  • isIndeterminate: 增加判断 intersectionKeys.length < tSelectedRowKeys.length,当存在不可见的已选中行时显示半选
  • isChecked: 增加判断 intersectionKeys.length === tSelectedRowKeys.length,确保所有已选中行都可见时才显示全选

📝 更新日志

  • fix(EnhancedTable): 修复行选中收缩后,表格头全选状态异常的问题

  • 本条 PR 不需要纳入 Changelog

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

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

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

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • download.cypress.io
    • Triggering command: /usr/local/bin/node node index.js --exec install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

同步 Tencent/tdesign-react#3988
这个pr 的修改


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Sync changes from pull request #3988 fix(EnhancedTable): 修复行选中收缩后,表格头全选状态异常的问题 Dec 1, 2025
Copilot AI requested a review from liweijie0812 December 1, 2025 04:11
Copilot finished work on behalf of liweijie0812 December 1, 2025 04:11
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 1, 2025

commit: e83185c

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.

2 participants