You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
794 B

<view class="{{['me-tabs',(fixed)?'tabs-fixed':'']}}" style="{{'height:'+(tabHeightVal)+';'}}"><block wx:if="{{tabs.length}}"><scroll-view id="{{viewId}}" scroll-left="{{scrollLeft}}" scroll-x="{{true}}" scroll-with-animation="{{true}}" scroll-animation-duration="{{300}}"><view class="{{['tabs-item',(!isScroll)?'tabs-flex':'',(isScroll)?'tabs-scroll':'']}}"><block wx:for="{{$root.l0}}" wx:for-item="tab" wx:for-index="i" wx:key="i"><view data-event-opts="{{[['tap',[['tabClick',[i]]]]]}}" class="{{['tab-item',(value===i)?'active':'']}}" style="{{'width:'+(tabWidthVal)+';'+('height:'+(tabHeightVal)+';')+('line-height:'+(tabHeightVal)+';')}}" bindtap="__e">{{''+tab.m0+''}}</view></block><view class="tabs-line" style="{{'left:'+(lineLeft)+';'}}"></view></view></scroll-view></block></view>