layout-scroll.vue 468 Bytes
<template>
  <RecycleList ref="scroll" v-bind="$attrs" v-on="$listeners">
    <template slot="item" slot-scope="{ 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>