index.wxml 934 B

123456789101112131415
  1. <view class="i-class i-page">
  2. <view class="i-page-prev" wx:if="{{ mode === 'button' }}">
  3. <button class="i-page-button" type="ghost" bindtap="handlePrev" disabled="{{ current === 1 }}"><slot name="prev"></slot></button>
  4. </view>
  5. <view class="i-page-number" wx:if="{{ mode !== 'pointer' && !simple }}">
  6. <view style='width:50%;display:inline-block;'><slot name="content"></slot></view>
  7. <view ><view class="i-page-number-current">{{ current }}</view>/{{total}}</view>
  8. </view>
  9. <view class="i-page-pointer" wx:if="{{ mode === 'pointer' }}">
  10. <view class="i-page-pointer-dot {{ (index + 1) === current ? 'current' : '' }}" wx:for="{{ total }}" wx:key="index"></view>
  11. </view>
  12. <view class="i-page-next" wx:if="{{ mode === 'button' }}">
  13. <button class="i-page-button" bindtap="handleNext" disabled="{{ current === total }}"><slot name="next"></slot></button>
  14. </view>
  15. </view>