<view
  class="coolui-index-anchor-wrapper"
  style="{{ wrapperStyle }}"
>
  <view
    class="coolui-index-anchor {{ active ? 'coolui-index-anchor--active coolui-hairline--bottom' : '' }}"
    style="{{ anchorStyle }}"
  >
    <slot wx:if="{{ useSlot }}"/>
    <block wx:else>
      <text>{{ index }}</text>
    </block>
  </view>
</view>
