layout-recycle-list.vue
705 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);
},
unlockHight(params) {
this.$refs.scroll.unlockHight(params);
},
delete(params) {
this.$refs.scroll.delete(params);
},
init() {
this.$refs.scroll.init();
},
clear() {
this.$refs.scroll.clear();
}
},
};
</script>