| 1 |
- <view class="{{['uni-tab data-v-f9a426f6',(scroll===true)?'uni-scroll-tab':'']}}"><block wx:for="{{tabList}}" wx:for-item="tab" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['itemClick',[index,'$0'],[[['tabList','',index]]]]]]]}}" class="{{['uni-tab-item data-v-f9a426f6',(index===value)?'uni-tab-active':'',(scroll===true)?'uni-tab-scroll-item':'',(index===value&&scroll===true)?' uni-tab-scroll-active':'']}}" style="{{'color:'+(index===value?activeColor:defaultColor)+';'+('background-color:'+(bgColor)+';')}}" bindtap="__e"><block wx:if="{{tab.icon!=undefined}}"><label class="{{['iconfont mr5 _span data-v-f9a426f6',tab.icon]}}"></label></block><text class="data-v-f9a426f6">{{rangeKey==''?tab:tab[rangeKey]}}</text></view></block><block wx:if="{{!scroll}}"><view class="{{['uni-tab-bar data-v-f9a426f6',back?'uni-tab-bar-backward':'uni-tab-bar-forward']}}" style="{{'right:'+(barRight+'%')+';'+('left:'+(barLeft+'%')+';')+('border-color:'+(activeColor)+';')}}"></view></block></view>
|