forked from opentiny/tiny-vue
32 lines
620 B
Vue
32 lines
620 B
Vue
<template>
|
||
<tiny-pull-refresh :pullDown="pullDownRefresh" loosing-text="可以了,可以了,别扒拉了!">
|
||
<h3>hello pull-refresh</h3>
|
||
</tiny-pull-refresh>
|
||
</template>
|
||
|
||
<script lang="jsx">
|
||
import { PullRefresh } from '@opentiny/vue'
|
||
|
||
export default {
|
||
components: {
|
||
TinyPullRefresh: PullRefresh
|
||
},
|
||
data() {
|
||
return {
|
||
pullDownRefresh: {
|
||
handler: () => this.handlerPullDownRefresh()
|
||
}
|
||
}
|
||
},
|
||
methods: {
|
||
handlerPullDownRefresh() {
|
||
return new Promise((resolve) => {
|
||
setTimeout(() => {
|
||
resolve()
|
||
}, 1000)
|
||
})
|
||
}
|
||
}
|
||
}
|
||
</script>
|