Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

expandAll();树全部展开怎么去掉展开动画?测试后发现数据越多树的展开速度越慢,怎么样能加快树的展开速度? #41

Open
shuweitao opened this issue Apr 19, 2018 · 4 comments

Comments

@shuweitao
Copy link

shuweitao commented Apr 19, 2018

expandAll();树全部展开怎么去掉展开动画?测试后发现数据越多树的展开速度越慢,怎么样能加快树的展开速度?谢谢

@shuweitao shuweitao changed the title expandAll();树全部展开怎么去掉展开动画?数据越多展开越慢,怎么样能加快树的展开速度? expandAll();树全部展开怎么去掉展开动画?测试后发现数据越多树的展开速度越慢,怎么样能加快树的展开速度? Apr 19, 2018
@baiyunchen
Copy link

 <nz-tree  [nzOptions]="treeOption"></nz-tree>

 treeOption = {   
    animateExpand: false
  };

这样就可以关掉动画。

@shuweitao
Copy link
Author

请教一下,一棵树下面有两个孩子,两个孩子都被选中的时候,父类会自动被选中,我想做成都是单选的,和父类没关联,选中树下面所有的孩子父类不选中,选中父类的时候,孩子也不自动选中可以吗?

@baiyunchen
Copy link

nzAllowChildLinkage
nzAllowParentLinkage

这两个属性就是干这个事儿的,建议好好看看文档

@shuweitao
Copy link
Author

谢谢你

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

No branches or pull requests

2 participants