v2-lazy-list
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "v2-lazy-list", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A simple lazy load list component based Vue 2.x", | ||
@@ -42,3 +42,4 @@ "author": "dwqs", | ||
"peerDependencies": { | ||
"vue": ">= 2.2.0" | ||
"vue": ">= 2.2.0", | ||
"beautify-scrollbar": "^1.0.2" | ||
}, | ||
@@ -90,3 +91,4 @@ "devDependencies": { | ||
"webpack-md5-hash": "^0.0.6", | ||
"webpack-parallel-uglify-plugin": "^1.0.2" | ||
"webpack-parallel-uglify-plugin": "^1.0.2", | ||
"beautify-scrollbar": "^1.0.2" | ||
}, | ||
@@ -93,0 +95,0 @@ "engines": { |
![webpack-4](https://img.shields.io/badge/webpack-4-brightgreen.svg) ![vue-version](https://img.shields.io/badge/vue-%3E%3D2.2.0-brightgreen.svg) ![license](https://img.shields.io/badge/license-MIT-brightgreen.svg) ![npm-version](https://img.shields.io/npm/v/v2-lazy-list.svg) [![build pass](https://api.travis-ci.org/dwqs/v2-lazy-list.svg?branch=master)](https://travis-ci.org/dwqs/v2-lazy-list?branch=master) | ||
# v2-lazy-list | ||
A simple lazy load list component based Vue 2.x, which will be on-demand rendering the list based container element's viewport. | ||
A simple lazy-load list component based Vue 2.x, which will be on-demand rendering the list based container element's viewport. | ||
@@ -10,3 +10,3 @@ ## Installation | ||
``` | ||
npm i --save v2-lazy-list | ||
npm i --save v2-lazy-list beautify-scrollbar | ||
``` | ||
@@ -16,3 +16,3 @@ or yarn | ||
``` | ||
yarn add v2-lazy-list | ||
yarn add v2-lazy-list beautify-scrollbar | ||
``` | ||
@@ -34,3 +34,2 @@ | ||
## Available Props | ||
| Attribute | Type | Accepted Values | Default | Description | | ||
@@ -41,4 +40,21 @@ | :--: | :--: | :--: | :--: | :--: | | ||
| item-height | String/Number | - | 40 | the height of list item | | ||
| threshold | String/Number | - | 0 | the threshold value to trigger next-fetch in infinite scrolling | | ||
## Events | ||
| Event Name | Description | Parameters | | ||
| :--: | :--: | :--: | | ||
| reach-threshold | triggers when reaching threshold value| - | | ||
## Development | ||
``` | ||
git clone git@github.com:dwqs/v2-lazy-list.git | ||
cd v2-lazy-list | ||
npm i | ||
npm run dev | ||
``` | ||
## LICENSE | ||
MIT |
57
5848
2
46
3