tabs.wxml 423 Bytes
<!--page/subPackage/pages/zeroSell/components/tabs.wxml-->

<view class="tabs tabs-class">
  <block wx:for="{{tabs}}" wx:key="">
    <block wx:if="{{item.active}}">
      <view class="tab active" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
    </block>

    <block wx:else>
      <view class="tab" data-index="{{index}}" bindtap="_onTap">{{item.name}}</view>
    </block>
  </block>
</view>

<slot></slot>