mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 20:36:43 +08:00
Merge branch 'feature/【GFRS-2215】重新投保' into dev
# Conflicts: # src/router/ebiz/index.js
This commit is contained in:
40
src/components/common/ListShowing.vue
Normal file
40
src/components/common/ListShowing.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<van-list v-model="loading" @load="onLoad" :finished="finished" :finished-text="finishText" :immediate-check="immediateCheck">
|
||||
<slot> </slot>
|
||||
</van-list>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ListShowing',
|
||||
props: {
|
||||
loadFun: {
|
||||
type: Function
|
||||
},
|
||||
finishText: {
|
||||
type: String,
|
||||
default: '没有更多数据了'
|
||||
},
|
||||
immediateCheck: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
finished: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async onLoad() {
|
||||
let res = await this.loadFun()
|
||||
this.finished = res.finished
|
||||
this.loading = false
|
||||
console.log(res)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user