project init & fix ui
This commit is contained in:
21
miniprogram_npm/tdesign-miniprogram/swiper/swiper-nav.wxml
Normal file
21
miniprogram_npm/tdesign-miniprogram/swiper/swiper-nav.wxml
Normal file
@@ -0,0 +1,21 @@
|
||||
<wxs src="../common/utils.wxs" module="_" />
|
||||
|
||||
<view wx:if="{{showControls}}" 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
|
||||
wx:if="{{total >= minShowNum}}"
|
||||
style="{{ customStyle }}"
|
||||
class="{{prefix}}-class {{classPrefix}} {{classPrefix}}--{{direction}} {{classPrefix}}__{{type}} {{classPrefix}}--{{paginationPosition}}"
|
||||
>
|
||||
<block wx:if="{{ type === 'dots' || type === 'dots-bar'}}">
|
||||
<view
|
||||
wx:for="{{total}}"
|
||||
wx:for-index="idx"
|
||||
wx:key="idx"
|
||||
class="{{_.cls(classPrefix + '__' + type + '-item', [['active', index === idx], direction])}}"
|
||||
/>
|
||||
</block>
|
||||
<block wx:if="{{ type === 'fraction'}}"> {{index + 1}}/{{total}} </block>
|
||||
</view>
|
||||
Reference in New Issue
Block a user