Repository navigation
Conversation
dvd233
requested review from
anlyyao,
betavs,
jarmywang,
jin0209,
novlan1 and
zydemail
as code owners
October 9, 2026 16:18
6 tasks done
6 tasks done
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
源码排查发现的问题,无关联 Issue。
💡 需求背景和解决方案
父组件将
value从[1, 11]更新为[2, 22]后,TreeSelect 收到了新 prop,但仍使用旧innerValue构建选项,显示第一组子节点。动态修改customValue也不会重新构建选项。监听两种外部值的替换和深层变化,先同步当前值,再重建选项。保留
customValue的优先级、value=[]默认选中首项与customValue=[]无选中的区别;使用已有dataValue保留非受控交互状态,使移除临时customValue后能够恢复用户选择。外部同步不额外触发change或update:value。验证:
[]重置、多选及非受控选择恢复;无页面异常或 Vue warning。使用官方 H5/Vue3 条件预处理,适配设备元信息、浏览器基础标签和 rpx 单位,不代表完整 uni-app 发布页或微信真机验证。_triggerwarning)、Prettier 通过;原生release:prepare完成,覆盖 uniapp 与 uniapp-chat 的分发准备和 LESS 编译。未运行完整 H5/微信应用构建或整仓全部组件测试。Browser component fixture (synthetic data):
📝 更新日志
@tdesign/uniapp
value、customValue更新或使用空数组重置后选中状态和选项列未同步的问题。☑️ 请求合并前的自查清单