Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

el-tree 数据量大的情况下会很卡

目前接口是全量提交的数据,数量量节点几千勾选父节点,子节点自动全选操作都要10S+, 页面滚动也很卡, 然后也容易崩。
有没有什么优化办法。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

自己做个虚拟滚动吧,只显示可视范围内的数据.

使用库 vue-virtual-scroll-list
可自行了解下,
或者找我,我有解决方案以及解决后的源代码


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...