1.0.8 • Published 3 years ago

@supertiger/vue-3-virtual-scroll-list v1.0.8

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

vue-3-virtual-scroll-list

Ported vue-virtual-scroll-list v1.4.7 by tangbc to work with Vue 3.

Only tested with variable mode:

<template>
  <div id="app">
    <VirtualList :size="50" :remain="20" :variable="true" >
      <div v-for="item of list" :key="item" :style="{ height: 15 + 'px' }">
        {{ item }}
      </div>
    </VirtualList>
  </div>
</template>


<script lang="ts">
import { defineComponent } from 'vue';
import VirtualList from '@/virtual-list.vue';

export default defineComponent({
  name: 'ServeDev',
  components: {
    VirtualList
  },
  data() {
    return {
      list: [] as number[]
    }
  },
  mounted() {
    for (let i = 0; i < 1000; i++) {
      this.list.push(i);
    }
  }
});
</script>

<style>
#app {
  display: flex;
  flex-direction: column;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
</style>
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago