Skip to content

Commit 4844ac9

Browse files
committed
Page add key to resolve warning about wx:for
1 parent 1969510 commit 4844ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/page/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<view class="i-page-number-current">{{ current }}</view>/{{total}}
77
</view>
88
<view class="i-page-pointer" wx:if="{{ mode === 'pointer' }}">
9-
<view class="i-page-pointer-dot {{ (index + 1) === current ? 'current' : '' }}" wx:for="{{ total }}"></view>
9+
<view class="i-page-pointer-dot {{ (index + 1) === current ? 'current' : '' }}" wx:for="{{ total }}" wx:key="index"></view>
1010
</view>
1111
<view class="i-page-next" wx:if="{{ mode === 'button' }}">
1212
<i-button i-class="i-page-button" type="ghost" bindclick="handleNext" disabled="{{ current === total }}"><slot name="next"></slot></i-button>

0 commit comments

Comments
 (0)