Repository navigation
fix(Tree): ignore disabled children when determining parent checked state - #2732
Merged
Merged
Conversation
This was referenced Oct 12, 2026
uyarn
approved these changes
Oct 13, 2026
Collaborator
|
CI 失败系依赖下游依赖仓库的单测需要同步修改 |
uyarn
approved these changes
Oct 15, 2026
Collaborator
|
@RSS1102 需要尽快补充vue2对应的PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
🔗 相关 Issue
React 回归测试与集成 PR:Tencent/tdesign-react#4423 。
💡 需求背景和解决方案
Tree 存在禁用子节点时,勾选父节点后仍为半选。修复为禁用子节点不参与父节点全选判断,覆盖 React 和 Vue Next。
React / Vue Next A/B 对照沙箱(支持框架切换)
测试:公共树 209 项、依赖版 React / Vue Next 组件 22 项、React Tree 44 项通过;依赖版浏览器 A/B 48 个状态组合通过。
Vue Next 集成修复:PR #6999,Tree 全量 113 项通过。
common 的 Vue Next 测试检出上游默认分支,需要配套 PR #6999 合并后重跑。Vue 2 的旧测试预期失败不在本次修复范围。
A/B 使用固定版本依赖并校验 SHA-512;同框架前后仅两份 common 修复文件不同。
📝 更新日志
fix(Tree): 修复存在禁用子节点时父节点无法全选的问题。
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单