1 |
- <view class="{{['tui-tabs-view','data-v-9311a734',isFixed?'tui-tabs-fixed':'tui-tabs-relative',unlined?'tui-unlined':'']}}" style="{{'height:'+(height+'rpx')+';'+('padding:'+('0 '+padding+'rpx')+';')+('background:'+(backgroundColor)+';')+('top:'+(isFixed?top+'px':'auto')+';')}}"><block wx:for="{{tabs}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['swichTabs',[index]]]]]}}" class="tui-tabs-item data-v-9311a734" style="{{'width:'+(itemWidth)+';'}}" catchtap="__e"><view class="{{['tui-tabs-title','data-v-9311a734',(currentTab==index)?'tui-tabs-active':'',(item.disabled)?'tui-tabs-disabled':'']}}" style="{{'color:'+(currentTab==index?selectedColor:color)+';'+('font-size:'+(size+'rpx')+';')+('line-height:'+(size+'rpx')+';')+('font-weight:'+(bold&¤tTab==index?'bold':'normal')+';')}}">{{item.name}}</view></view></block><view class="tui-tabs-slider data-v-9311a734" style="{{'transform:'+('translateX('+scrollLeft+'px)')+';'+('width:'+(sliderWidth+'rpx')+';')+('height:'+(sliderHeight+'rpx')+';')+('border-radius:'+(sliderRadius)+';')+('bottom:'+(bottom)+';')+('background:'+(sliderBgColor)+';')+('margin-bottom:'+(bottom=='50%'?'-'+sliderHeight/2+'rpx':0)+';')}}"></view></view>
|