DragComponent.wxml
1.2 KB
<view class="drag-and-drop-sort-B data-v-73da7512" style="{{$root.s0}}"><block wx:if="{{$root.g0!==0}}"><block wx:for="{{controlsArray}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="_item data-v-73da7512" style="{{'background:'+(item)+';'+('transition:'+(curretnControlsIndex===index?'initial':'.3s')+';')+('z-index:'+(curretnControlsIndex===index?1:0)+';')+('width:'+(controlsSize.width+'px')+';')+('height:'+(controlsSize.height+'px')+';')+('top:'+(controlsPositionArray[index].top-10+'px')+';')+('left:'+(controlsPositionArray[index].left+'px')+';')}}"><view data-event-opts="{{[['touchstart',[['handleTouchstart',['$event',index]]]],['touchmove',[['handleTouchmove',['$event']]]],['touchend',[['handleTouchend',['$event']]]]]}}" style="width:100%;height:100%;" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" class="data-v-73da7512"><view data-event-opts="{{[['tap',[['handleSelectNav',[index]]]]]}}" class="{{['type-nav','data-v-73da7512',(curIndex===index)?'selected':'']}}" bindtap="__e"><text class="data-v-73da7512">{{item.name}}</text><image class="sortImg data-v-73da7512" src="{{curIndex==index?SortShop:SortShop1}}" mode></image></view></view></view></block></block></view>