refactor(tree): setData improvement, and fix data update problems in Vue3 #1603
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
💡 需求背景和解决方案
统一 vue2, vue3 代码时,发现节点新增属性难以在 vue3 treeNode 上更新,因此修改方法来解决 vue3 的节点刷新问题。
📝 更新日志
fix(tree): treeNodeModel 的 setData 方法应当触发 update 事件,用于 vue-next 项目触发数据更新。
refactor(tree): tree 组件 updatedMap 改为用 privateKey 作为唯一 id, 业务中不使用这个 map 对象
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单