0.1.8 • Published 4 years ago

scroller-base-on-vant v0.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

scroller-base-on-vant

this is a scroller base on Vant UI ,it works after v0.1.0.

install:

npm install scroller-base-on-vant --save

Usage:

import

import Vue from "vue";
import { List, PullRefresh } from "vant";
import scrollerBaseOnVant from 'scroller-base-on-vant';

Vue.use(List).use(PullRefresh);

register

components: {
    scrollerBaseOnVant
  }

use

<scrollerBaseOnVant
    @on-refresh="onMyRefresh"
    @on-load="onMyLoad"
    ref="decisionItemScroller"
    class="scroll_bg"
>

<!-- render your data list hear -->

</scrollerBaseOnVant>

Properties:

propertydefault描述description
finishedfalse没有更多翻页时设置为trueWhether loading is finished,the load event will not be triggered when finished
immediateCheckfalse是否在触发mounted时立马load数据Whether to check loading position immediately after mounted
finishedText没有更多数据无更多翻页时显示的提示文本Finished text
offsetHeight40滚动组件距离底部的位置The margin-bottom of the scroller

events

event描述descriptionarguments
on-refresh刷新Triggered when pull down the list on top.--
on-load加载数据Triggered when when pull up the list on bottom.--

methods

method描述descriptionargumentsReturn-Value
hideLoading隐藏loadinghide the loading text----
setFinished设置所有数据加载结束show finish text when all the datas are loaded.----
setNotFinish设置未结束set not finish----
0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago