index.wxml 2.2 KB

1
  1. <view class="tui-swipeout-wrap data-v-618a1803" style="{{'background-color:'+(backgroundColor)+';'}}"><view class="{{['tui-swipeout-item','data-v-618a1803',isShowBtn?'swipe-action-show':'']}}" style="{{'transform:'+('translate('+position.pageX+'px,0)')+';'}}"><view data-event-opts="{{[['touchstart',[['handlerTouchstart',['$event']]]],['touchmove',[['handlerTouchmove',['$event']]]],['touchend',[['handlerTouchend',['$event']]]],['mousedown',[['handlerTouchstart',['$event']]]],['mousemove',[['handlerTouchmove',['$event']]]],['mouseup',[['handlerTouchend',['$event']]]]]}}" class="tui-swipeout-content data-v-618a1803" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" bindmousedown="__e" bindmousemove="__e" bindmouseup="__e"><slot name="content"></slot></view><block wx:if="{{$root.g0>0}}"><view data-event-opts="{{[['touchend',[['loop',['$event']]]]]}}" class="tui-swipeout-button-right-group data-v-618a1803" style="{{(colorStyle)}}" catchtouchend="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tui-swipeout-button-right-item data-v-618a1803" style="{{'background-color:'+(index==0?'var(--view-theme)':'#ccc')+';'+('color:'+(index==1?'#f2f2f2':'#f2f2f2')+';')+('width:'+(item.$orig.width+'px')+';')}}" data-index="{{index}}" data-event-opts="{{[['tap',[['handlerButton',['$event']]]]]}}" bindtap="__e"><block wx:if="{{item.$orig.icon}}"><image style="{{'width:'+(item.m0)+';'+('height:'+(item.m1)+';')}}" src="{{item.$orig.icon}}" class="data-v-618a1803"></image></block><text style="{{'font-size:'+(item.m2)+';'}}" class="data-v-618a1803">{{item.$orig.name}}</text></view></block></view></block><block wx:if="{{$root.g1===0}}"><view data-event-opts="{{[['touchend',[['loop',['$event']]]],['tap',[['handlerParentButton',['$event']]]]]}}" class="tui-swipeout-button-right-group data-v-618a1803" style="{{'width:'+(operateWidth+'px')+';'+('right:'+('-'+operateWidth+'px')+';')}}" catchtouchend="__e" bindtap="__e"><slot name="button"></slot></view></block></view><block wx:if="{{isShowBtn&&showMask}}"><view data-event-opts="{{[['tap',[['closeButtonGroup',['$event']]]],['touchstart',[['closeButtonGroup',['$event']]]]]}}" class="swipe-action_mask data-v-618a1803" catchtap="__e" catchtouchstart="__e"></view></block></view>