tangbc / vue-virtual-scroll-list

⚡️A vue component support big amount data list with high render performance and efficient.
https://tangbc.github.io/vue-virtual-scroll-list
MIT License
4.37k stars 592 forks source link

Nested virtual lists #415

Open ssurve opened 1 year ago

ssurve commented 1 year ago

Is there a recommended way to implement nested virtual lists? Usecase: directory structure where each nested directory is a virtual list.

I was able to add virtual scrolling to the nested list but noticed that only the specifed number of items (controlled by prop keeps) is rendered. Height is updated correctly but I see empty space where items should be rendered.

Example:

/
  /dir_A
  /dir_B
  /dir_C

If I open dir_B, only 30 items (default keeps value) are rendered. Then there's empty space corresponding to the remaining items in dir_B. dir_C is rendered correctly at the end of the list.