Skip to content

Commit

Permalink
Page add key to resolve warning about wx:for
Browse files Browse the repository at this point in the history
  • Loading branch information
icarusion committed Jun 5, 2018
1 parent 1969510 commit 4844ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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 }}"></view>
<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>
Expand Down

0 comments on commit 4844ac9

Please sign in to comment.