<template>
  <view class="cv-load-more-wrap">
    <load-more :loadingType="loadingType" :contentText="contentText"></load-more>
  </view>
</template>
<script>
import loadMore from './load-more.vue';
import mpMixin from '../../libs/mixin/mpMixin.js';
import mixin from '../../libs/mixin/mixin.js';
export default {
  mixins: [mpMixin, mixin],
  name: 'cvLoadMore',
  components: { loadMore },
  props: {
    loadingType: {
      type: [Number, String],
      default: 0
    },
    contentText: {
      type: [Object],
      default: {
        contentdown: '上拉显示更多',
        contentrefresh: '正在加载...',
        contentnomore: '没有更多数据了'
      }
    }
  },
  data() {
    return {};
  }
};
</script>
<style>
.cv-load-more-wrap {
  flex-direction: column;
  position: relative;
  display: block;
  box-sizing: border-box;

  display: block;
  width: 100%;
  float: left;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
</style>
