index.axml 761 B

1234567891011
  1. <view class='index-bar-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <view class='van-index-bar'>
  3. <slot>
  4. </slot>
  5. <view a:if='{{ showSidebar }}' class='van-index-bar__sidebar' catchTap='antmoveAction' data-antmove-tap='onClick' catchTouchMove='antmoveAction' data-antmove-touchmove='onTouchMove' catchTouchEnd='antmoveAction' data-antmove-touchend='onTouchStop' catchTouchCancel='antmoveAction' data-antmove-touchcancel='onTouchStop'>
  6. <view a:for='{{ indexList }}' a:key='{{index}}' class='van-index-bar__index' style="z-index: {{ zIndex + 1 }}; color: {{ activeAnchorIndex === index ? highlightColor : '' }}" data-index='{{ index }}' ref-numbers='{{ indexList }}'>
  7. {{ item }}
  8. </view>
  9. </view>
  10. </view>
  11. </view>