Blame view

apps/components/layouts/layout-recycle-list.vue 651 Bytes
陈峰 authored
1
<template>
陈峰 authored
2
  <RecycleList ref="scroll" v-bind="$attrs" v-on="$listeners">
陈峰 authored
3 4
    <template v-slot:item="{ data }">
      <slot name="item" :data="data"></slot>
陈峰 authored
5
    </template>
陈峰 authored
6 7 8 9 10
    <template v-slot:noMore>
      <p class="">
        没有更多了
      </p>
    </template>
陈峰 authored
11 12 13 14 15
  </RecycleList>
</template>

<script>
export default {
陈峰 authored
16
  name: 'LayoutRecycleList',
陈峰 authored
17
  methods: {
陈峰 authored
18 19
    resize(index) {
      this.$refs.scroll.resize(index);
陈峰 authored
20
    },
陈峰 authored
21 22 23 24 25 26
    unlockHight(params) {
      this.$refs.scroll.unlockHight(params);
    },
    delete(params) {
      this.$refs.scroll.delete(params);
    },
陈峰 authored
27 28
    init() {
      this.$refs.scroll.init();
陈峰 authored
29
    }
陈峰 authored
30 31 32
  },
};
</script>