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

有考虑加上虚拟滚动吗? #18

Closed
dxhuii opened this issue Oct 19, 2023 · 2 comments · Fixed by #19
Closed

有考虑加上虚拟滚动吗? #18

dxhuii opened this issue Oct 19, 2023 · 2 comments · Fixed by #19
Labels
next will be supported in next version.

Comments

@dxhuii
Copy link

dxhuii commented Oct 19, 2023

支持page-mode,就是支持windows滚动
https://tangbc.github.io/vue-virtual-scroll-list/#/page-mode

数据量特别大,一直加载,DOM太多,会比较占用内存

@gk-shi
Copy link
Owner

gk-shi commented Oct 23, 2023

近期比较忙,十一月中旬左右看一下

@gk-shi gk-shi added the next will be supported in next version. label Nov 7, 2023
@gk-shi gk-shi assigned gk-shi and unassigned gk-shi Nov 7, 2023
@gk-shi gk-shi linked a pull request Nov 7, 2023 that will close this issue
@gk-shi gk-shi closed this as completed in #19 Nov 7, 2023
@gk-shi
Copy link
Owner

gk-shi commented Nov 7, 2023

本次对虚拟列表的支持,稍有不同:
1.由于瀑布流需要预加载元素进行位置排版计算,且滚动时是做增量计算的,所以需要保持已展示数组的长度比较,并不是仅截取出当前位置需要显示的元素进行展示。
2.基于第 1 点说的问题,所以实际的虚拟列表表现为如下图:
image
对于超出显示范围的元素,会隐藏用户自己通过 slot 实现的内容,而会保留本组件内部用来实现排版的外壳(意思为被隐藏的元素不是全部影藏,而会留一个外层 div)。

组件默认不会开启虚拟列表,具体使用方法会在文档进行相关更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next will be supported in next version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants