scroll-list.wxml 2.1 KB

1
  1. <view class="scroll-list-wrap data-v-377c9ec2" style="{{$root.s0}}"><scroll-view class="{{['scroll-view','data-v-377c9ec2',elClass]}}" style="{{$root.s1}}" scroll-y="{{true}}" scroll-anchoring="{{true}}" enable-back-to-top="{{true}}" scroll-top="{{scrollTop}}" lower-threshold="{{defaultOption.lowerThreshold}}" data-event-opts="{{[['scroll',[['handleScroll',['$event']]]],['touchend',[['handleTouchEnd',['$event']]]],['touchmove',[['handleTouchMove',['$event']]]],['touchstart',[['handleTouchStart',['$event']]]],['scrolltolower',[['handleScrolltolower',['$event']]]]]}}" bindscroll="__e" bindtouchend="__e" catchtouchmove="__e" bindtouchstart="__e" bindscrolltolower="__e"><view class="scroll-content data-v-377c9ec2" style="{{$root.s2}}"><view class="pull-down-wrap data-v-377c9ec2"><block wx:if="{{$slots.pulldown}}"><slot name="pulldown"></slot></block><block wx:else><view class="refresh-view data-v-377c9ec2" style="{{$root.s3}}"><view class="{{['pull-down-animation','data-v-377c9ec2',(refreshing)?'refreshing':'']}}" style="{{$root.s4}}"></view><text class="pull-down-text data-v-377c9ec2" style="{{$root.s5}}">{{refreshStateText}}</text></view></block></view><block wx:if="{{showEmpty}}"><view class="empty-wrap data-v-377c9ec2"><block wx:if="{{$slots.empty}}"><slot name="empty"></slot></block><block wx:else><view class="empty-view data-v-377c9ec2"><image class="empty-image data-v-377c9ec2" src="{{defaultOption.emptyImage||images.empty}}" mode="aspectFit"></image><text class="empty-text data-v-377c9ec2" style="{{$root.s6}}">{{emptyText}}</text></view></block></view></block><view class="list-content data-v-377c9ec2"><slot></slot></view><block wx:if="{{showPullUp}}"><view class="pull-up-wrap data-v-377c9ec2"><block wx:if="{{$slots.pullup}}"><slot name="pullup"></slot></block><block wx:else><view class="load-view data-v-377c9ec2"><block wx:if="{{loading}}"><view class="pull-up-animation data-v-377c9ec2" style="{{$root.s7}}"></view></block><text class="pull-up-text data-v-377c9ec2" style="{{$root.s8}}">{{loadStateText}}</text></view></block></view></block></view></scroll-view></view>