|
2 | 2 | <view class="mescroll-uni-warp">
|
3 | 3 | <scroll-view :class="{'mescroll-uni':true, 'mescroll-uni-fixed':fixed}" :style="{'padding-top':padTop,'padding-bottom':padBottom,'top':fixedTop,'bottom':fixedBottom}" :lower-threshold="upOffset" :scroll-top="scrollTop" :scroll-with-animation="scrollAnim" @scroll="scroll" @scrolltolower="scrolltolower" @touchstart="touchstartEvent" @touchmove="touchmoveEvent" @touchend="touchendEvent" @touchcancel="touchendEvent" :scroll-y='scrollAble' :enable-back-to-top="true">
|
4 | 4 | <!-- 下拉加载区域 (部分css样式需写成style,否则编译到浏览器会丢失,坐等HBuilderX优化编译器..)-->
|
5 |
| - <view v-if="optDown" class="mescroll-downwarp" :class="{'mescroll-downwarp-reset':isDownReset}" :style="{'height': downHight+'px', 'position': 'relative', 'overflow': 'hidden', '-webkit-transition': isDownReset?'height 300ms':''}"> |
| 5 | + <view v-if="optDown&&optDown.use" class="mescroll-downwarp" :class="{'mescroll-downwarp-reset':isDownReset}" :style="{'height': downHight+'px', 'position': 'relative', 'overflow': 'hidden', '-webkit-transition': isDownReset?'height 300ms':''}"> |
6 | 6 | <view class="downwarp-content" style="text-align: center;position: absolute;left: 0;bottom: 0;width: 100%;padding: 20upx 0;">
|
7 | 7 | <view class="downwarp-progress" :style="{'transform':'rotate(' + downRotate + 'deg)'}" :class="{'mescroll-rotate':isDownLoading}"></view>
|
8 | 8 | <view class="downwarp-tip">{{downText}}</view>
|
|
20 | 20 | </view>
|
21 | 21 |
|
22 | 22 | <!-- 上拉加载区域 -->
|
23 |
| - <view v-if="optUp" class="mescroll-upwarp"> |
| 23 | + <view v-if="optUp&&optUp.use" class="mescroll-upwarp"> |
24 | 24 | <!-- 加载中.. -->
|
25 | 25 | <template v-if="isUpLoading">
|
26 | 26 | <view class="upwarp-progress mescroll-rotate"></view>
|
|
66 | 66 | props: {
|
67 | 67 | down: Object, // 下拉刷新的参数配置
|
68 | 68 | up: Object, // 上拉加载的参数配置
|
69 |
| - top: [String,Number], // padding-top的数值,单位upx. 目的是使下拉布局往下偏移 |
70 |
| - bottom: [String,Number], // padding-bottom的数值,单位upx. 目的是使上拉布局往上偏移 |
| 69 | + top: [String,Number], // 下拉布局往下偏移的数值, 已默认单位为upx. |
| 70 | + bottom: [String,Number], // 上拉布局往上偏移的数值, 已默认单位为upx. |
71 | 71 | fixed: { // 是否通过fixed固定mescroll的高度, 默认true
|
72 | 72 | type: Boolean,
|
73 | 73 | default(){
|
|
0 commit comments