tm-quickIndex.wxml 3.1 KB

1
  1. <view class="tm-quickIndex data-v-440f0dc1" style="{{'height:'+(activeHeight_watch+'px')+';'}}"><view style="{{'height:'+(activeHeight_watch+'px')+';'}}" class="data-v-440f0dc1"><block wx:if="{{loadding}}"><tm-loadding vue-id="3dd32b65-1" label="处理中..." class="data-v-440f0dc1" bind:__l="__l"></tm-loadding></block><scroll-view class="{{['data-v-440f0dc1',black_tmeme?'grey-darken-4':'white']}}" style="{{'height:'+(activeHeight_watch+'px')+';'}}" scroll-y="{{true}}" scroll-into-view="{{guid+'_'+(isScroll?'':active_value)}}" data-event-opts="{{[['scroll',[['scrollIn',['$event']]]]]}}" bindscroll="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tm-quickIndex-item data-v-440f0dc1" id="{{guid+'_'+index}}"><view class="{{['','','text-size-s','text-weight-b','px-32','py-12','data-v-440f0dc1',black_tmeme?'grey-darken-5':'grey-lighten-4 text']}}">{{item.$orig.title}}</view><view class="data-v-440f0dc1"><block wx:for="{{item.$orig.children}}" wx:for-item="item2" wx:for-index="index2" wx:key="index2"><view class="data-v-440f0dc1"><block wx:if="{{$slots.cell}}"><slot name="cell"></slot><scoped-slots-cell data="{{({prevent:index,children:index2,total:item.$orig.children.length,item:item2,title:item2[rangKey],color:color_tmeme,black:black_tmeme})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-cell></block><block wx:else><view data-event-opts="{{[['tap',[['changeIndex',[index,index2,'$0'],[[['dataList','',index],['children','',index2]]]]]]]}}" class="{{['mx-32','py-24','','flex-start','data-v-440f0dc1',index2!==item.$orig.children.length-1?'border-grey-lighten-4-b-1 ':'',black_tmeme?'bk':'']}}" bindtap="__e"><block wx:if="{{item2['icon']}}"><view class="mr-24 rounded flex-center overflow data-v-440f0dc1" style="width:48rpx;height:48rpx;"><tm-icons vue-id="{{'3dd32b65-2-'+index+'-'+index2}}" size="{{48}}" name="{{item2['icon']}}" class="data-v-440f0dc1" bind:__l="__l"></tm-icons></view></block><view class="text-size-n data-v-440f0dc1">{{''+item2[rangKey]+''}}</view></view></block></view></block></view></view></block></scroll-view></view><view class="tm-quickIndex-index flex-center flex-col pr-16 data-v-440f0dc1" style="{{'height:'+(activeHeight_watch+'px')+';'}}"><block wx:if="{{showtips}}"><view class="{{['tm-quickIndex-index-Tips','absolute','rounded','shadow-10','flex-center','white','text-size-g','text-weight-b','data-v-440f0dc1','text-'+color_tmeme,black_tmeme?'bk':'']}}">{{''+$root.m0+''}}</view></block><block wx:if="{{activeHeight_watch>0}}"><view data-event-opts="{{[['touchend',[['indexMove',['$event','end']]]],['touchmove',[['indexMove',['$event','scroll']]]]]}}" class="{{['tm-quickIndex-index-Bk','','round-24','','shadow-3','','data-v-440f0dc1',black_tmeme?'grey-darken-5 bk':'white']}}" catchtouchend="__e" catchtouchmove="__e"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['acitveItemClick',['$event',index]]]]]}}" class="tm-quickIndex-index-item text-size-xxs flex-center px-2 data-v-440f0dc1" catchtap="__e">{{''+item.m1+''}}</view></block></view></block></view></view>