Skip to content

Vue3 components for efficiently rendering large lists and tabular data. 一个虚拟滚动库,基于react-window的Vue3适配

Notifications You must be signed in to change notification settings

rashagu/vue3-window

Repository files navigation

虚拟滚动库

代码基于 react-windowVue3实现

Install

# Yarn
yarn add @kousum/vue3-window

# NPM
npm install --save @kousum/vue3-window

demo

用法参考 https://react-window.vercel.app/

<script setup>
import { FixedSizeList as List } from '@kousum/vue3-window';
</script>

<template>
  <div>
    <List
        :height="150"
        :itemCount="100000"
        :itemSize="35"
        :width="300"
    >
      <template v-slot:default="slotProps">
        <div :key="slotProps.key">
          Row {{slotProps.key}}
        </div>
      </template>
    </List>
  </div>
</template>

About

Vue3 components for efficiently rendering large lists and tabular data. 一个虚拟滚动库,基于react-window的Vue3适配

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages