vue-pull-to-refresh
A pull to refresh plugin of Vue.js
Use
/*-- npm --*/npm install --save vue-pull-to-refresh
/*-- main.js --*/Vue
<!--html-->
<pull-refresh :next="pullRefresh" >
<div slot="list">
Your code
</div>
</pull-refresh>
Param
/*pull to touch off this functionmust return promise*/next:type: Functionrequired: true/*chinese or english can set default tipother language can't set default tip but you can set tip by yourself and also don't have to set language*/language:type: Stringrequired: false/*set pullTip*/pullTip:type: Stringrequired: false/*set releaseTip*/releaseTip:type: Stringrequired: false/*set loadingTip*/loadingTip:type: Stringrequired: false/*set pullDistance*/pullDistance:type: Numberrequired: false/*set releaseDistance*/releaseDistance:type: Numberrequired: false/*set maxDistance*/maxDistance:type: Numberrequired: false
Dependencies
- SASS