C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
859 B

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