Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tree] 0.46.1 tree的渲染data里的children子节点更新,页面未随之变动 #1385

Open
ericjiajia opened this issue Aug 26, 2022 · 4 comments
Labels
⛔️ pending the issue won't be processed right now

Comments

@ericjiajia
Copy link

image

image

版本: 0.46.1
如图,对children里的对象进行更新,页面并未重新渲染,上周使用0.39.1 可正常渲染,代码逻辑完全未变动,系升级后导致的问题

@github-actions
Copy link
Contributor

👋 @ericjiajia,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

♥️ 有劳 @TabSpace 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @ericjiajia

@TabSpace
Copy link
Collaborator

目前尚未提供新增属性立即映射到视图的能力,该能力将在一些重要重构之后实现。
目前简单解决方案是,在视图渲染之前,初始化 tree 时,确保属性已存在于节点之中。

@ccccpj ccccpj added the ⛔️ pending the issue won't be processed right now label Feb 14, 2023
@TabSpace
Copy link
Collaborator

treeNodeModel 已提供 setData 方法来更新节点视图状态。
#2820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛔️ pending the issue won't be processed right now
Projects
None yet
Development

No branches or pull requests

3 participants