diff --git a/src/checkbox/README.md b/src/checkbox/README.md index 56c344baf..99ed51d0d 100644 --- a/src/checkbox/README.md +++ b/src/checkbox/README.md @@ -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` | - | diff --git a/src/radio/README.md b/src/radio/README.md index cfc83972e..a7d89078e 100644 --- a/src/radio/README.md +++ b/src/radio/README.md @@ -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