project init
This commit is contained in:
18
components/swiper/swiper-nav.wxml
Normal file
18
components/swiper/swiper-nav.wxml
Normal file
@@ -0,0 +1,18 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user