小程序源码
This commit is contained in:
14
source/wx/xzs-student/component/iView/page/index.wxml
Normal file
14
source/wx/xzs-student/component/iView/page/index.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<view class="i-class i-page">
|
||||
<view class="i-page-prev" wx:if="{{ mode === 'button' }}">
|
||||
<i-button i-class="i-page-button" type="ghost" bindclick="handlePrev" disabled="{{ current === 1 }}"><slot name="prev"></slot></i-button>
|
||||
</view>
|
||||
<view class="i-page-number" wx:if="{{ mode !== 'pointer' && !simple }}">
|
||||
<view class="i-page-number-current">{{ current }}</view>/{{total}}
|
||||
</view>
|
||||
<view class="i-page-pointer" wx:if="{{ mode === 'pointer' }}">
|
||||
<view class="i-page-pointer-dot {{ (index + 1) === current ? 'current' : '' }}" wx:for="{{ total }}" wx:key="index"></view>
|
||||
</view>
|
||||
<view class="i-page-next" wx:if="{{ mode === 'button' }}">
|
||||
<i-button i-class="i-page-button" type="ghost" bindclick="handleNext" disabled="{{ current === total }}"><slot name="next"></slot></i-button>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user