mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-26 11:36:33 +08:00
[docs] Checkbox: 修正文档中 wx:key
的示例 (#1128)
This commit is contained in:
parent
7a77aa69a7
commit
648c7728ba
@ -83,7 +83,7 @@ Page({
|
|||||||
<van-checkbox-group value="{{ result }}" bind:change="onChange">
|
<van-checkbox-group value="{{ result }}" bind:change="onChange">
|
||||||
<van-checkbox
|
<van-checkbox
|
||||||
wx:for="{{ list }}"
|
wx:for="{{ list }}"
|
||||||
wx:key="{{ index }}"
|
wx:key="index"
|
||||||
name="{{ item }}"
|
name="{{ item }}"
|
||||||
>
|
>
|
||||||
复选框 {{ item }}
|
复选框 {{ item }}
|
||||||
@ -112,7 +112,7 @@ Page({
|
|||||||
<van-checkbox-group value="{{ result }}" bind:change="onChange" max="2">
|
<van-checkbox-group value="{{ result }}" bind:change="onChange" max="2">
|
||||||
<van-checkbox
|
<van-checkbox
|
||||||
wx:for="{{ list }}"
|
wx:for="{{ list }}"
|
||||||
wx:key="{{ index }}"
|
wx:key="index"
|
||||||
name="{{ item }}"
|
name="{{ item }}"
|
||||||
>
|
>
|
||||||
复选框 {{ item }}
|
复选框 {{ item }}
|
||||||
@ -129,7 +129,7 @@ Page({
|
|||||||
<van-cell-group >
|
<van-cell-group >
|
||||||
<van-cell
|
<van-cell
|
||||||
wx:for="{{ list }}"
|
wx:for="{{ list }}"
|
||||||
wx:key="{{ index }}"
|
wx:key="index"
|
||||||
title="复选框 {{ item }}"
|
title="复选框 {{ item }}"
|
||||||
clickable
|
clickable
|
||||||
data-name="{{ item }}"
|
data-name="{{ item }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user