vue-awesome-pull-refresh
A pull down refresh component implements by vuejs 2.0 for mobile.
Demo
PS: Please use browsers that support Promise
Usage
Install
npm install vue-awesome-pull-refresh --save
CommonJS
var VuePullRefresh = ; components: 'vue-pull-refresh': VuePullRefresh { return {}; } methods: { return { ; }; } template: '<vue-pull-refresh :on-refresh="onRefresh"></vue-pull-refresh>';
ES6
; components: 'vue-pull-refresh': VuePullRefresh { return {}; } methods: { return { ; }; } template: '<vue-pull-refresh :on-refresh="onRefresh"></vue-pull-refresh>';
Props
Property | Description |
---|---|
onRefresh | refresh event;Should return a promise. |
config | { errorLabel: label shows when error startLabel: label shows when pull down start readyLabel: label shows when ready to refresh loadingLabel: label shows when loading pullDownHeight: the height toggle pull down refresh action } |
Contribution
First, install dependencies
npm install
Second, setup development environment
npm run dev