ScrollView.vue
574 Bytes
<template>
<van-list
v-model="loading"
:finished="finished"
finished-text="到底啦!!"
@load="onLoad"
offset="100"
:immediate-check="false"
>
<slot></slot>
</van-list>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ScrollView',
data () {
return {
loading: false,
finished: false,
}
},
mounted () {
},
methods: {
onLoad () {
this.loading = false
this.finished = true
this.$emit('ReachBottom', null)
},
}
}
</script>
<style scoped lang='scss'>
</style>