layout-scroll.vue
450 Bytes
<template>
<RecycleList ref="scroll" v-bind="$attrs" v-on="$listeners">
<template v-slot:item="{ data }">
<slot name="item" :data="data"></slot>
</template>
</RecycleList>
</template>
<script>
import {Scroll} from 'cube-ui';
export default {
name: 'LayoutScroll',
methods: {
resize() {
this.$refs.scroll._onResize();
},
init() {
this.$refs.scroll.init();
}
},
components: {Scroll}
};
</script>