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

✨ [Feature]: #264

Open
bouyeijiang opened this issue Sep 16, 2022 · 3 comments
Open

✨ [Feature]: #264

bouyeijiang opened this issue Sep 16, 2022 · 3 comments

Comments

@bouyeijiang
Copy link

What problem does this feature solve

tree控件在构造函数的后台请求数据后赋值树结构没有刷新如何解决,求解?

What does the proposed API look like

<d-operable-tree
#operableTree
[tree]="dataSource"
[iconParentOpen]="iconParentOpen"
[iconParentClose]="iconParentClose"
[iconTemplatePosition]="'after-checkbox'"
[disableMouseEvent]="disableMouseEvent"
>

动态修改dataSource值没有刷新

@Simplelegant
Copy link
Collaborator

确认下数据是否完成变更,数据变更无误的话尝试下解构赋值

@bouyeijiang
Copy link
Author

数据没问题,直接吧数据贴到ts里面就正常,貌似直接修改dataSource不能动态更新,也找到不可以重新加载树的方法,只能用basicTree.treeFactory.mapTreeItems方法临时解决了

@kagol
Copy link
Member

kagol commented Oct 21, 2022

@bouyeijiang 谢谢你的反馈,希望issue的标题能更完善一些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants