layout-recycle-list.vue 498 Bytes
<template>
  <RecycleList ref="scroll" v-bind="$attrs" v-on="$listeners">
    <template v-slot:item="{ data }">
      <slot name="item" :data="data"></slot>
    </template>
    <template v-slot:noMore>
      <p class="">
        没有更多了
      </p>
    </template>
  </RecycleList>
</template>

<script>
export default {
  name: 'LayoutRecycleList',
  methods: {
    resize() {
      this.$refs.scroll._onResize();
    },
    init() {
      this.$refs.scroll.init();
    }
  },
};
</script>