vue-virtual-scroll-list: Perfomance slow down in empty vue-cli project

Hello, I`m using your scroll-list and it’s an awesome lib, but I see the perfomance slow down when I’m trying your examples in blank vue-cli project. Maybe you know what I am doing wrong? All code in new project is code of your item-mode example. my example

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 21 (21 by maintainers)

Most upvoted comments

Yes, actually it’s item-mode’s bug, I will fixed in next version, you can use v-for frag mode first:

<VirtualList class="list"
    :size="50"
    :remain="remain"
    :bench="bench"
    :start="start"
>
    <Item v-for="item in itemdata" v-bind:key="item.index" :index="item.index" />
</VirtualList>

Slow down performance when call this.itemdata[i] every createElement in here.