index.wxml 612 B

12345678
  1. <view class="tabs i-class">
  2. <scroll-view scrollWithAnimation scroll-x="true" scroll-y="false" class="tabs__navs" scrollLeft="{{scrollLeft}}">
  3. <view class="tabs__navs__wrap">
  4. <view bindtap="handleTabItemTap" class="tabs__nav tav__nav__{{index}} {{index===activeIndex?'active':''}}" data-id="{{tabItem.id}}" data-index="{{index}}" style="color: {{index===activeIndex?fontColor:''}}" wx:for="{{tabs}}" wx:for-item="tabItem" wx:key="id">{{tabItem.name}}</view>
  5. <view animation="{{indicatorAnamationData}}" class="activeIndicator" style="{{lineBgColor}}"></view>
  6. </view>
  7. </scroll-view>
  8. </view>