Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k 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 Vigges Developer Community for programmer and developer-Open, Learning and Share
...