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

操作数据源添加子节点同步渲染功能 #22

Open
jlzm opened this issue Jan 25, 2021 · 1 comment
Open

操作数据源添加子节点同步渲染功能 #22

jlzm opened this issue Jan 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jlzm
Copy link

jlzm commented Jan 25, 2021

(必填)这个需求解决了什么问题:
现在操作子节点(push、splice等),无法同步渲染, syncData 方法无效,须通过调用loadData方法刷新数据 ,才可以显示全部节点,并且状态都为处初始化(展开效果都没了,且滚动到了顶部)
另外展数据量多的节点,会闪烁(猜是数据重新计算导致)

截图或在线链接:

建议的 API 是什么样的:
数据同步渲染,并保留当前状态

是否已有其他不错的替代方案:

临时找到的方案(对操作根节点无效,会强制使用loadData方法):
setTreeExpand方法调用俩次(false -> true),可以刷新其子节点,但是操作频繁,难以维护

@jlzm jlzm added the enhancement New feature or request label Jan 25, 2021
@coolcfxp
Copy link

coolcfxp commented Jul 8, 2021

公司新产品正在考虑选型,这正好是一个关键阻碍,望支持!

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

No branches or pull requests

2 participants