mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +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
|
||||
wx:for="{{ list }}"
|
||||
wx:key="{{ index }}"
|
||||
wx:key="index"
|
||||
name="{{ item }}"
|
||||
>
|
||||
复选框 {{ item }}
|
||||
@ -112,7 +112,7 @@ Page({
|
||||
<van-checkbox-group value="{{ result }}" bind:change="onChange" max="2">
|
||||
<van-checkbox
|
||||
wx:for="{{ list }}"
|
||||
wx:key="{{ index }}"
|
||||
wx:key="index"
|
||||
name="{{ item }}"
|
||||
>
|
||||
复选框 {{ item }}
|
||||
@ -129,7 +129,7 @@ Page({
|
||||
<van-cell-group >
|
||||
<van-cell
|
||||
wx:for="{{ list }}"
|
||||
wx:key="{{ index }}"
|
||||
wx:key="index"
|
||||
title="复选框 {{ item }}"
|
||||
clickable
|
||||
data-name="{{ item }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user