<!--
 * @Date: 2023-09-14 14:30:21
 * @LastEditTime: 2023-09-14 14:41:17
 * @Description: content
-->
<template>
  <mescroll-uni
    :height="height"
    @init="mescrollInit"
    @down="downCallback"
    @up="$emit('up', $event)"
    :down="downOption"
    :up="upOption"
  >
    <slot></slot>
  </mescroll-uni>
</template>

<script>
export default {
  props: {
    fixed: {
      type: Boolean,
      default: true
    },

    height: {
      type: [String, Number],
      default: ''
    },

    size: {
      type: Number,
      default: 10
    }
  },

  data() {
    return {
      // 下拉刷新的配置(可选, 绝大部分情况无需配置)
      downOption: {
        auto: false
      },
      // 上拉加载的配置(可选, 绝大部分情况无需配置)
      upOption: {
        auto: false,
        page: {
          size: this.size // 每页数据的数量,默认10
        }
      }
    }
  }
}
</script>
