swiper-nav.wxml 747 B

1234567891011121314151617181920
  1. <view
  2. class="{{prefix}}-class {{classPrefix}} {{classPrefix}}--{{direction}}"
  3. wx:if="{{total >= minShowNum}}"
  4. >
  5. <view wx:if="{{ type === 'dots' || type === 'dots-bar'}}" class="{{classPrefix}}__{{type}}">
  6. <view
  7. wx:for="{{total}}"
  8. wx:for-index="idx"
  9. wx:key="idx"
  10. class="{{classPrefix}}__{{type}}-item {{index === idx ? prefix + '-is-active' : ''}}"
  11. />
  12. </view>
  13. <view wx:if="{{ type === 'fraction'}}" class="{{classPrefix}}__fraction">
  14. {{index+1}}/{{total}}
  15. </view>
  16. <view wx:if="{{hasNavBtn}}" class="{{classPrefix}}__btn">
  17. <view class="{{classPrefix}}__btn--prev" bind:tap="nav" data-dir="prev" />
  18. <view class="{{classPrefix}}__btn--next" bind:tap="nav" data-dir="next" />
  19. </view>
  20. </view>