Repository navigation
fix(tree-select): sync all-mode values when removing tags - #6998
Merged
uyarn merged 3 commits intoOct 15, 2026
Merged
Conversation
dvd233
requested review from
Cat1007,
PengYYYYY,
Wesley-0808,
chaishi,
liweijie0812,
uyarn,
zhangpaopao0609 and
zydemail
as code owners
October 10, 2026 19:45
Collaborator
TDesign Component Site Preview Open
|
commit: |
uyarn
reviewed
Oct 15, 2026
uyarn
approved these changes
Oct 15, 2026
6 of 16 tasks
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
Fixes #6753
💡 需求背景和解决方案
multiple配合treeProps.valueMode="all"时,选中广东后关闭深圳标签,原实现只从值数组删除深圳,留下的广东父值会继续让深圳保持勾选;关闭广东标签时也会留下其子节点。现在在非严格的
all模式下移除目标、冗余祖先及联动后代,同时保留不可勾选节点阻断的后代。面板已挂载时读取当前树关系和实际 checkable 状态,以支持setItem覆盖;未打开时使用 data。剩余对象、顺序和既有 remove/change 事件契约保持不变。严格模式、onlyLeaf 和 parentFirst 沿用单项删除行为。新增 13 个真实 DOM 交互回归,覆盖子/父标签、Backspace、面板首次未打开、max、对象值/别名/重复 label、静态及动态 checkable、自定义 valueDisplay 和事件次数。
关闭深圳标签后:
验证(Node 22、pnpm 10.33.0):
test:unit --maxWorkers=2:183 个文件通过,4655 passed、3 个既有 todo。test:snap --maxWorkers=2:4637 passed、18 skipped、3 todo(当前配置实际收集组件用例)。pnpm run build:vue(包含组件类型构建):通过。本地使用组件验证所需的定向依赖安装:全仓
lint:tsc因未安装站点、Nuxt 和自动导入工具的依赖留下 14 条诊断,与原始 develop 的诊断逐项一致;完整 CI 的这项检查仍需确认。📝 更新日志
tdesign-vue-next
☑️ 请求合并前的自查清单