You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
<block wx:if="{{ scroll }}">
|
|
<view class="wux-class {{ classes.wrap }}">
|
|
<view class="{{ classes.prev }}" wx:if="{{ scroll && showPrevMask }}"></view>
|
|
<view class="{{ classes.next }}" wx:if="{{ scroll && showNextMask }}"></view>
|
|
<scroll-view
|
|
wx:if="{{ direction === 'horizontal' }}"
|
|
scroll-x
|
|
scroll-left="{{ scrollLeft }}"
|
|
scroll-with-animation
|
|
enhanced
|
|
show-scrollbar="{{ false }}"
|
|
class="{{ classes.scrollView }}"
|
|
bindscroll="onScrollFix"
|
|
style="{{ scrollViewStyle }}"
|
|
>
|
|
<slot></slot>
|
|
</scroll-view>
|
|
<scroll-view
|
|
wx:else
|
|
scroll-y
|
|
scroll-top="{{ scrollTop }}"
|
|
scroll-with-animation
|
|
enhanced
|
|
show-scrollbar="{{ false }}"
|
|
class="{{ classes.scrollView }}"
|
|
bindscroll="onScrollFix"
|
|
>
|
|
<slot></slot>
|
|
</scroll-view>
|
|
</view>
|
|
</block>
|
|
<view wx:else class="wux-class {{ classes.wrap }}">
|
|
<view class="{{ classes.scrollView }}" style="{{ scrollViewStyle }}">
|
|
<slot></slot>
|
|
</view>
|
|
</view>
|