yfs/components/child-scroll/child-scroll.vue
2025-03-14 11:01:58 +08:00

55 lines
926 B
Vue

<!--
* @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>