tm-tabs.wxml 2.0 KB

1
  1. <view class="{{['tm-tabs','','data-v-ecc8b91a',bgColor=='white'?black_tmeme?'bk grey-darken-4':bgColor:bgColor,'shadow-'+bgColor+'-'+shadow,black_tmeme?'bk':'']}}"><scroll-view class="tm-tabs-con data-v-ecc8b91a" scroll-with-animation="{{true}}" scroll-into-view="{{toTargetId}}" scroll-x="{{true}}" data-event-opts="{{[['scroll',[['scrollViesw',['$event']]]]]}}" bindscroll="__e"><view class="{{['tm-tabs-wk','','','data-v-ecc8b91a',(align=='left')?'text-align-left':'',(align=='right')?'text-align-right':'',(align=='center')?'text-align-center':'',(align=='split')?'flex-between':'']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['tm-tabs-con-item','d-inline-block','','data-v-ecc8b91a','tm-tabs-con-item-'+index,model=='rect'?'border-'+color_tmeme+'-a-1':'',index!==list.length-1&&model=='rect'?'tm-tabs-con-item-rborder':'',active==index&&model=='rect'?color_tmeme:'']}}" style="{{'height:'+(barheight+'px')+';'+('line-height:'+(barheight+'px')+';')}}" id="{{guid+'_'+index}}" data-event-opts="{{[['tap',[['acitveItemClick',[index,true,'$event']]]]]}}" catchtap="__e"><view class="{{['tm-tabs-con-item-text','px-24','data-v-ecc8b91a',(model=='line'||model=='none')&&active==index?'text-'+color_tmeme:'text-'+fontColor,(model=='line'||model=='none')&&active==index?'text-weight-b':'',model=='fill'&&active==index?color_tmeme:'']}}" style="{{'font-size:'+(active==index?active_font_size:font_size)+';'}}"><block wx:if="{{$slots.default}}"><slot></slot><scoped-slots-default data="{{item.$orig}}" class="scoped-ref" bind:__l="__l"></scoped-slots-default></block><block wx:else>{{item.$orig[rangeKey]||item.$orig}}</block></view></view></block></view><block wx:if="{{model=='line'}}"><view class="{{['tm-tabs-con-item-border','data-v-ecc8b91a',borderColor,'shadow-'+color_tmeme+'-4',isOnecLoad==false?'tm-tabs-con-item-border-trans':'']}}" style="{{'transform:'+('translateX('+activePos.left+')')+';'+('width:'+(activePos.width)+';')}}"></view></block></scroll-view></view>