forked from opentiny/tiny-vue
28 lines
458 B
Vue
28 lines
458 B
Vue
<template>
|
|
<tiny-pull-refresh v-model="isLoading" @refresh="onRefresh" disabled>
|
|
<h3>hello pull-refresh</h3>
|
|
</tiny-pull-refresh>
|
|
</template>
|
|
|
|
<script>
|
|
import { PullRefresh } from '@opentiny/vue'
|
|
|
|
export default {
|
|
components: {
|
|
TinyPullRefresh: PullRefresh
|
|
},
|
|
data() {
|
|
return {
|
|
isLoading: false
|
|
}
|
|
},
|
|
methods: {
|
|
onRefresh() {
|
|
setTimeout(() => {
|
|
this.isLoading = false
|
|
}, 1000)
|
|
}
|
|
}
|
|
}
|
|
</script>
|