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

可以增加异步加载功能? #10

Open
sky875576452 opened this issue Sep 13, 2017 · 3 comments
Open

可以增加异步加载功能? #10

sky875576452 opened this issue Sep 13, 2017 · 3 comments

Comments

@sky875576452
Copy link

因为树组件,用于类似部门选择的话一般数据很有很多级的,一次性查找太慢

@David-C-gd-y
Copy link

赞同楼上的~~

@wilsonIs
Copy link
Owner

@sky875576452 前端搜索还是不算慢的,你说的慢是后台返回慢吧?
我们这边给数据做了Gzip压缩,1M的数据变成了300k,然后加了一个小时的缓存,让后端去除了多余的字段,体验还好。

为什么没有做异步加载的原因是,我这边的搜索是前端搜索,没有做后端的搜索,如果是异步加载的话,用户搜索不到没有加载出来的节点。

个人目前暂时没有时间去做异步加载。。。连续加班两月了==
建议fork下然后组装自己想要的功能,会更小巧顺手,大而全的组件最后会变得性能不是很好。

@Coober-Ding
Copy link

我赞同作者的方法。懒加载会扯出很多问题。

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

4 participants