binquan.qiu | 7f2665f | 2020-03-27 17:19:57 +0800 | [diff] [blame^] | 1 | <!-- slide-view/slide-view.wxml --> |
| 2 | <wxs module="handler" src="./slideview.wxs"></wxs> |
| 3 | <view class="weui-slideview weui-movable-view {{icon ? 'weui-slideview_icon' : ''}} {{extClass}}" style="width: 100%;height: 100%;"> |
| 4 | <view bindtransitionend="{{handler.transitionEnd}}" |
| 5 | show="{{show}}" change:show="{{handler.showChange}}" |
| 6 | rebounce="{{rebounce}}" change:rebounce="{{handler.rebounceChange}}" |
| 7 | duration="{{duration}}" change:duration="{{handler.durationChange}}" |
| 8 | change:disable="{{handler.disableChange}}" disable="{{disable}}" |
| 9 | change:prop="{{handler.sizeReady}}" prop="{{size}}" |
| 10 | bindtouchstart="{{handler.touchstart}}" bindtouchmove="{{handler.touchmove}}" bindtouchend="{{handler.touchend}}" class="weui-slideview__left left" style="width:100%;"> |
| 11 | <slot></slot> |
| 12 | </view> |
| 13 | <view class="weui-slideview__right right"> |
| 14 | <view class="weui-slideview__buttons" style="height:100%;width:100%;" wx:if="{{buttons && buttons.length}}"> |
| 15 | <view wx:for="{{buttons}}" class='btn weui-slideview__btn__wrp {{item.className}} {{item.extClass}}'> |
| 16 | <view bindtap="{{handler.hideButton}}" data-data="{{item.data}}" data-index="{{index}}" class='weui-slideview__btn'> |
| 17 | <text wx:if="{{!icon}}">{{item.text}}</text> |
| 18 | <image class="weui-slideview__btn__icon" wx:else src="{{item.src}}"/> |
| 19 | </view> |
| 20 | </view> |
| 21 | </view> |
| 22 | </view> |
| 23 | </view> |