mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Checkbox): fix v-model name (#9062)
This commit is contained in:
parent
53969c455f
commit
1b84a9166d
@ -147,7 +147,7 @@ export default {
|
||||
### Maximum amount of checked options
|
||||
|
||||
```html
|
||||
<van-checkbox-group v-model="result" :max="2">
|
||||
<van-checkbox-group v-model="checked" :max="2">
|
||||
<van-checkbox name="a">Checkbox a</van-checkbox>
|
||||
<van-checkbox name="b">Checkbox b</van-checkbox>
|
||||
<van-checkbox name="c">Checkbox c</van-checkbox>
|
||||
|
@ -161,7 +161,7 @@ export default {
|
||||
通过 `max` 属性可以限制复选框组的最大可选数。
|
||||
|
||||
```html
|
||||
<van-checkbox-group v-model="result" :max="2">
|
||||
<van-checkbox-group v-model="checked" :max="2">
|
||||
<van-checkbox name="a">复选框 a</van-checkbox>
|
||||
<van-checkbox name="b">复选框 b</van-checkbox>
|
||||
<van-checkbox name="c">复选框 c</van-checkbox>
|
||||
@ -173,7 +173,7 @@ export default {
|
||||
通过 `CheckboxGroup` 实例上的 `toggleAll` 方法可以实现全选与反选。
|
||||
|
||||
```html
|
||||
<van-checkbox-group v-model="result" ref="checkboxGroup">
|
||||
<van-checkbox-group v-model="checked" ref="checkboxGroup">
|
||||
<van-checkbox name="a">复选框 a</van-checkbox>
|
||||
<van-checkbox name="b">复选框 b</van-checkbox>
|
||||
<van-checkbox name="c">复选框 c</van-checkbox>
|
||||
|
Loading…
x
Reference in New Issue
Block a user