<view class="am-vtabs {{className}}">
  <view
    class="am-vtabs-bar"
    style="{{ backgroundColor: tabBarInactiveBgColor }}"
    >
    <scroll-view
      class="am-vtabs-bar-content"
      scroll-top="{{tabTop}}"
      scroll-y="{{true}}">
      <block a:for="{{tabs}}">
       <view
        data-index="{{index}}"
        data-anchor="{{item.anchor}}"
        onTap="handleTabClick"
        class="am-vtabs-bar-tab"
        style="{{
          color: current == index ? tabBarActiveTextColor : tabBarInactiveTextColor,
          borderLeftColor: current == index ? tabBarlineColor : tabBarInactiveBgColor,
          borderRightColor: current == index ? tabBarActiveBgColor : tabBarInactiveBgColor,
          backgroundColor: current == index ? tabBarActiveBgColor : tabBarInactiveBgColor
        }}"
        >
        {{item.title}}
       </view>
      </block>
    </scroll-view>
  </view>
  <view class="am-vtabs-content-wrap" onTouchMove="onWrapTouchMove">
    <block a:if="{{swipeable}}">
      <scroll-view
        class="am-vtabs-slides"
        scroll-with-animation="{{animated}}"
        scroll-y="{{true}"
        scroll-top="{{wrapScrollTop}}"
        onScroll="onScroll">
        <slot></slot>
      </scroll-view>
    </block>
    <block a:else>
      <view class="am-vtabs-slides {{animated ? 'animate' : ''}}" style="{{ transform: 'translate3d(0, ' +(-wrapScrollTop) + 'px, 0)' }}">
        <slot></slot>
      </view>
    </block>
  </view>
</view>