Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

v2-lazy-list

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v2-lazy-list

A simple lazy load list component based Vue 2.x

  • 2.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
182
increased by35.82%
Maintainers
1
Weekly downloads
 
Created
Source

webpack-4 vue-version license npm-version build pass

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.

v1.x is not maintained

Installation

npm:

npm i --save v2-lazy-list beautify-scrollbar

or yarn

yarn add  v2-lazy-list beautify-scrollbar

Get Started

import Vue from 'vue';
import 'beautify-scrollbar/dist/index.css';
import V2LazyList from 'v2-lazy-list';

Vue.use(V2LazyList)

<v2-lazy-list :data="data"></v2-lazy-list>

Visit the examples.

Available Props

AttributeTypeAccepted ValuesDefaultDescription
dataArray-[]the list data to render
heightString/Number-320the height of the content wrap element
item-heightString/Number-40the height of list item
thresholdString/Number-0the threshold value to trigger next-fetch in infinite scrolling
tagStringHTML tag name'ul'container elment tag
item-tagStringHTML tag name'li'item element tag
modeStringdemand/lazy'demand'render demand list or lazy list

Events

Event NameDescriptionParameters
reach-thresholdtriggers when reaching threshold value-
scrollingtriggers when element is scrolling-
scroll-stoptriggers when element stop scroll-

Development

git clone git@github.com:dwqs/v2-lazy-list.git

cd v2-lazy-list

npm i 

npm run dev

LICENSE

MIT

Keywords

FAQs

Package last updated on 20 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc