123456789101112131415161718 |
- <view
- class="{{prefix}}-class {{classPrefix}} {{classPrefix}}--{{direction}} {{classPrefix}}--position-{{paginationPosition}}"
- wx:if="{{total >= minShowNum}}"
- >
- <view wx:if="{{ type === 'dots' || type === 'dots-bar'}}" class="{{classPrefix}}__{{type}}">
- <view
- wx:for="{{total}}"
- wx:for-index="idx"
- wx:key="idx"
- class="{{classPrefix}}__{{type}}-item {{index === idx ? prefix + '-is-active' : ''}}"
- />
- </view>
- <view wx:if="{{ type === 'fraction'}}" class="{{classPrefix}}__fraction"> {{index+1}}/{{total}} </view>
- <view wx:if="{{hasNavBtn}}" class="{{classPrefix}}__btn">
- <view class="{{classPrefix}}__btn--prev" bind:tap="nav" data-dir="prev" />
- <view class="{{classPrefix}}__btn--next" bind:tap="nav" data-dir="next" />
- </view>
- </view>
|