1 |
- <view class="tm-dragGrid relative fulled data-v-2ab2a82b" style="{{'height:'+(totalH+'px')+';'}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['absolute','','','data-v-2ab2a82b',ani&&!disabled?'aniOn':'',nowMove_index==index||endDrage?'':'tranAni']}}" style="{{'width:'+(itemWidth+'px')+';'+('height:'+(h+'px')+';')+('left:'+(item.$orig.left+'px')+';')+('top:'+(item.$orig.top+'px')+';')+('z-index:'+(nowMove_index==index?5:0)+';')}}" id="{{'tm-dragGrid-'+index}}" data-event-opts="{{[['touchstart',[['m_start',['$event',index]]]],['mousedown',[['m_start',['$event',index]]]],['touchmove',[['m_move',['$event',index]]]],['mousemove',[['m_move',['$event',index]]]],['touchend',[['m_end',['$event',index]]]],['mouseup',[['m_end',['$event',index]]]],['longpress',[['startEdit',['$event']]]]]}}" bindtouchstart="__e" bindmousedown="__e" catchtouchmove="__e" catchmousemove="__e" bindtouchend="__e" bindmouseup="__e" bindlongpress="__e"><block wx:if="{{$slots.default}}"><slot></slot><scoped-slots-default item="{{item.$orig.data}}" class="scoped-ref" bind:__l="__l"></scoped-slots-default></block><block wx:else><block wx:if="{{model==0}}"><view class="flex-center flex-col data-v-2ab2a82b" style="width:70%;"><view style="width:100%;" class="data-v-2ab2a82b"><block wx:if="{{!disabled}}"><tm-badges vue-id="{{'2ba2de3b-1-'+index}}" offset="{{[0,-5]}}" icon="icon-times" data-event-opts="{{[['^click',[['delitem',['$0'],[[['listData','',index]]]]]]]}}" catch:click="__e" class="data-v-2ab2a82b" bind:__l="__l"></tm-badges></block></view><tm-icons vue-id="{{'2ba2de3b-2-'+index}}" size="{{45}}" name="{{item.$orig.data.icon}}" color="{{item.$orig.data.color}}" class="data-v-2ab2a82b" bind:__l="__l"></tm-icons><text class="text-size-s pt-10 data-v-2ab2a82b">{{item.$orig.data.text}}</text></view></block><block wx:if="{{model==1}}"><view style="width:100%;height:100%;" class="data-v-2ab2a82b"><block wx:if="{{!disabled}}"><tm-badges vue-id="{{'2ba2de3b-3-'+index}}" offset="{{[-5,-5]}}" icon="icon-times" data-event-opts="{{[['^click',[['delitem',['$0'],[[['listData','',index]]]]]]]}}" catch:click="__e" class="data-v-2ab2a82b" bind:__l="__l"></tm-badges></block><view class="{{['','flex-center','','round-4','text-size-s','data-v-2ab2a82b','bg-gradient-'+item.$orig.data.color+'-accent']}}" style="width:90%;height:100rpx;">{{''+item.$orig.data.text+''}}</view></view></block></block></view></block></view>
|