layout-recycle-list.vue 505 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(index) {
      this.$refs.scroll.resize(index);
    },
    init() {
      this.$refs.scroll.init();
    }
  },
};
</script>