mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 23:19:15 +08:00
docs: fix incorrect word (#4467)
This commit is contained in:
parent
71941c9816
commit
292054fd5d
@ -57,13 +57,15 @@ Use icon slot to custom icon
|
||||
```js
|
||||
export default {
|
||||
data() {
|
||||
checked: true,
|
||||
icon: {
|
||||
active: 'https://img.yzcdn.cn/vant/user-active.png',
|
||||
inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
|
||||
}
|
||||
return {
|
||||
checked: true,
|
||||
icon: {
|
||||
active: 'https://img.yzcdn.cn/vant/user-active.png',
|
||||
inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
### Checkbox Group
|
||||
@ -148,7 +150,7 @@ export default {
|
||||
| name | Checkbox name | *any* | - | - |
|
||||
| shape | Can be set to `square` | *string* | `round` | - |
|
||||
| v-model | Check status | *boolean* | `false` | - |
|
||||
| disabled | Diable checkbox | *boolean* | `false` | - |
|
||||
| disabled | Disable checkbox | *boolean* | `false` | - |
|
||||
| icon-size | Icon size | *string \| number* | `20px` | - |
|
||||
| label-disabled | Whether to disable label click | *boolean* | `false` | - |
|
||||
| label-position | Can be set to `left` | *string* | `right` | - |
|
||||
|
@ -79,13 +79,15 @@ Use icon slot to custom icon
|
||||
```js
|
||||
export default {
|
||||
data() {
|
||||
radio: '1',
|
||||
icon: {
|
||||
active: 'https://img.yzcdn.cn/vant/user-active.png',
|
||||
inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
|
||||
}
|
||||
return {
|
||||
radio: '1',
|
||||
icon: {
|
||||
active: 'https://img.yzcdn.cn/vant/user-active.png',
|
||||
inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
### Inside a Cell
|
||||
@ -122,7 +124,7 @@ export default {
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| v-model | Name of checked radio | *any* | - | - |
|
||||
| disabled | Diable all radios | *boolean* | `false` | - |
|
||||
| disabled | Disable all radios | *boolean* | `false` | - |
|
||||
|
||||
### Radio Events
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user