chore: fix unvalid wx:key (#2398)

This commit is contained in:
neverland 2019-11-27 10:30:02 +08:00 committed by GitHub
parent 71b727bd69
commit d36cbbb752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<van-collapse <van-collapse
wx:for="{{ list }}" wx:for="{{ list }}"
wx:for-item="group" wx:for-item="group"
wx:key="group.title" wx:key="title"
value="{{ activeNames }}" value="{{ activeNames }}"
border="{{ false }}" border="{{ false }}"
bind:change="onChangeCollapse" bind:change="onChangeCollapse"
@ -29,7 +29,7 @@
/> />
<van-cell <van-cell
wx:for="{{ group.list }}" wx:for="{{ group.list }}"
wx:key="item.title" wx:key="title"
is-link is-link
url="/pages{{ item.path }}/index" url="/pages{{ item.path }}/index"
data-url="/pages{{ item.path }}/index" data-url="/pages{{ item.path }}/index"

View File

@ -38,7 +38,7 @@
<picker-column <picker-column
class="van-picker__column" class="van-picker__column"
wx:for="{{ isSimple(columns) ? [columns] : columns }}" wx:for="{{ isSimple(columns) ? [columns] : columns }}"
wx:key="{{ index }}" wx:key="index"
data-index="{{ index }}" data-index="{{ index }}"
custom-class="column-class" custom-class="column-class"
value-key="{{ valueKey }}" value-key="{{ valueKey }}"

View File

@ -8,7 +8,7 @@
<block wx:if="{{ previewImage }}"> <block wx:if="{{ previewImage }}">
<view <view
wx:for="{{ lists }}" wx:for="{{ lists }}"
wx:key="{{ index }}" wx:key="index"
class="van-uploader__preview" class="van-uploader__preview"
> >
<image <image