2.0.8 • Published 2 years ago

@zhangfanhang/v-list v2.0.8

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

npm.io

v-list:一个基于vue的虚拟列表

用法

npm i @zhangfanhang/v-list
<template>
  <div>
    
  </div>
    <v-list
        :list-data="listData"
        :item-height="100"
        v-slot="slotProps"
    >
        <div class="context">
            {{ slotProps.item }}
        </div>
    </v-list>
</template>
import ViList from '@zhangfanhang/v-list'

export default{
    data(){
        return{
          listData:[1,2,3,4,5,6]
        }
    },
    component:{
        VList
    }
}

参数Props

属性名含义数据类型是否必传
listData渲染数据列表Array
column数据项列数Number否,默认为1
itemHeight数据项高度Number否,默认为100
height容器高度String否,默认100%,即父元素高度(需设置父元素高度)
2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago