ScrollView.vue 787 Bytes
<template>
    <div :class="['scroll-view', ScrollViewclass]" id="van-list" >
      <van-list v-model="loading" :finished="finished" finished-text="到底啦!!" @load="onLoad" offset="100" :immediate-check="false">
        <slot></slot>
      </van-list>
    </div>
  </template>
  
  <script type='text/ecmascript-6'>
  export default {
    name: 'ScrollView',
    data() {
      return {
        loading: false,
        finished: false
      }
    },
    props: ['ScrollViewclass'],
    mounted() {
     
        
    },
    methods: {
      onLoad() {
        this.$emit('ReachBottom')
      }
    }
  }
  </script>
  
  <style scoped lang='scss'>
  .scroll-view {
    overflow-y: scroll;
    box-sizing: border-box;
  }
  .van-list {
    background-color: #ffffff;
  }
  </style>