Skip to content

Vue virtual scroll list not showing all list items #369

Open
@Osman-Rafi

Description

@Osman-Rafi

I'm trying to use vue-virtual-scroll-list component on my app for implementing virtual scroll. However, it's not working as expected. It only showing some data's instead of showing all data with a minimal DOM.

Here is my code:

<virtual-list
      v-show="!!tempItems.length"
      ref="vsl"
      :data-key="'id'"
      :data-sources="tempItems"
      :data-component="childComponent"
      :estimate-size="100"
    />

the child component

<template>
  <div>{{ index }} -> {{ source.message }}</div>
</template>

this only showing the first 30 items.

Codesandbox: https://codesandbox.io/s/practical-cloud-57119?file=/src/App.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions