1.0.1 • Published 7 years ago

v-scroll-list v1.0.1

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

v-scroll-list 0.1.0

A vue component that pull down to refresh and scroll to load more in mobile

Basic Usage

import Vue from 'vue';
import scroller from 'v-scroll-list';
 new Vue({
    props:{
      listData:Array
    },
    components:{
      scroller
    },
    methods:{
      onRefresh(done){
        /**
          your code: triggered when list is refreshing
        */
        //done() will cease refreshing
        done();
      },
      onInfinite(done){
        /**
          your code: triggered when list is on end of current list
        */
        done();
      }
    },
    template:'<scroller><ul><li v-for="item in listData"></li></ul></scroller>'
 })

Props

proptypedefaultdescription
offsetNumber44the threshold of refreshing layer
downTextString'下拉刷新'the tip of pulling
uptextString'释放刷新'the tip of holding
refreshTextString'刷新中...'the tip of refreshing
onRefreshFunctionundefined
onInfiniteFunctionundefined
1.0.1

7 years ago

1.0.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago