tn-tabs-swiper.wxml 1.4 KB

1
  1. <view class="{{['tn-tabs-swiper-class','tn-tabs-swiper','data-v-1b37d63c',backgroundColorClass]}}" style="{{'background-color:'+(backgroundColorStyle)+';'+('margin-top:'+($root.g0)+';')+('z-index:'+(zIndex)+';')}}"><scroll-view class="tn-tabs-swiper__scroll-view data-v-1b37d63c" style="{{'z-index:'+(zIndex+1)+';'}}" scroll-x="{{true}}" scroll-left="{{scrollLeft}}" scroll-with-animation="{{true}}"><view class="{{['tn-tabs-swiper__scroll-view__box','data-v-1b37d63c',(!isScroll)?'tn-tabs-swiper__scroll-view--flex':'']}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tn-tabs-swiper__scroll-view__item tn-text-ellipsis data-v-1b37d63c" style="{{item.s0}}" id="{{'tn-tabs-swiper__scroll-view__item-'+index}}" data-event-opts="{{[['tap',[['emit',[index]]]]]}}" bindtap="__e"><block wx:if="{{item.$orig[count]||item.$orig['count']}}"><tn-badge vue-id="{{'4bc3724a-1-'+index}}" backgroundColor="tn-bg-red" fontColor="#FFFFFF" absolute="{{true}}" top="{{badgeOffset[0]||0}}" right="{{badgeOffset[1]||0}}" class="data-v-1b37d63c" bind:__l="__l" vue-slots="{{['default']}}">{{item.$orig[count]||item.$orig['count']}}</tn-badge></block>{{''+(item.$orig[name]||item.$orig['name'])+''}}</view></block><block wx:if="{{showBar}}"><view class="tn-tabs-swiper__bar data-v-1b37d63c" style="{{$root.s1}}"></view></block></view></scroll-view></view>