0.2.0 • Published 7 years ago

vn-scroll v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

vn-scroll

A vue scroll component based on better-scroll

vn-scroll is a vue scroll component that handles the scroll in mobile web applications. vn-scroll is based on better-scroll, since it wraps the dom manipulations that the better-scroll should handle, it is very simple to use.

Try the demo

How to use?

npm install vn-scroll

Example

<template>
  <vn-scroll :data="data" :listenScroll="listenScroll" @scroll="scroll" :probeType="probeType"></vn-scroll>
</template>

<script>
  import VnScroll from 'vn-scroll';
  export default {
    components: { VnScroll }
  }
</script>

demo:

Options

PropertyDescriptiontypedefault
probeTypeNumber1
clickBooleantrue
datadata that the scroll component containsArraynull
listenScrollBooleanfalse
pullupBooleanfalse
refreshDelayNumber20

Functions

Function NameDescription
enableenable the scroll ability
disabledisable the scroll ability
refreshrefresh the scroll component
scrollToscroll to the specific position in scroll component
scrollToElementscroll to the specific element in scroll component
0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago