tiny-vue/examples/sites/demos/mobile/app/pull-refresh/loosing-text.vue

32 lines
620 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>