Skip to content

fix(Tree): ignore disabled children when determining parent checked state - #4423

Open
RSS1102 wants to merge 2 commits into
Tencent:developfrom
RSS1102:rss1102/fix-tree-disabled-parent
Open

RSS1102 wants to merge 2 commits into
Tencent:developfrom
RSS1102:rss1102/fix-tree-disabled-parent

Conversation

@RSS1102

@RSS1102 RSS1102 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

🤔 这个 PR 的性质是?

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

🔗 相关 Issue

依赖公共修复:Tencent/tdesign-common#2732

💡 需求背景和解决方案

Tree 存在禁用子节点时,勾选父节点后仍为半选。修复为禁用子节点不参与父节点全选判断,覆盖 React 和 Vue Next。

React / Vue Next A/B 对照沙箱(支持框架切换)

测试:公共树 209 项、真实 Vue Next 组件 11 项、React Tree 44 项通过;StackBlitz 在线 Vue Next A/B 24 个状态组合通过。

Vue Next 集成修复:Tencent/tdesign-vue-next#6999

A/B 使用固定版本依赖并校验 SHA-512;同框架前后仅两份 common 修复文件不同。

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-react

  • fix(Tree): 修复存在禁用子节点时父节点无法全选的问题。

@tdesign-react/chat

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

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

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

@tdesign-bot

tdesign-bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

TDesign Component Site Preview Open

Component Preview
tdesign-react 完成
@tdesign-react/chat 完成

@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
  • tdesign-react-demo

    npm i https://pkg.pr.new/tdesign-react@4423
    
    npm i https://pkg.pr.new/@tdesign-react/chat@4423
    

commit: e15cd30

@RSS1102
RSS1102 marked this pull request as ready for review October 12, 2026 18:50
@RSS1102 RSS1102 changed the title fix(Tree): 禁用子节点不阻止父节点全选 fix(Tree): ignore disabled children when determining parent checked state Oct 13, 2026
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