swiper-nav.wxml 790 B

123456789101112131415161718
  1. <view
  2. class="{{prefix}}-class {{classPrefix}} {{classPrefix}}--{{direction}} {{classPrefix}}--position-{{paginationPosition}}"
  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"> {{index+1}}/{{total}} </view>
  14. <view wx:if="{{hasNavBtn}}" class="{{classPrefix}}__btn">
  15. <view class="{{classPrefix}}__btn--prev" bind:tap="nav" data-dir="prev" />
  16. <view class="{{classPrefix}}__btn--next" bind:tap="nav" data-dir="next" />
  17. </view>
  18. </view>