[Doc] rename slot-scope to SlotProps (#3825)

This commit is contained in:
neverland 2019-07-11 17:05:49 +08:00 committed by GitHub
parent db8428dd19
commit 0c7fc25d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 10 deletions

View File

@ -175,7 +175,7 @@ export default {
### Checkbox Slots ### Checkbox Slots
| Name | Description | slot-scope | | Name | Description | SlotProps |
|------|------|------| |------|------|------|
| default | Custom label | - | | default | Custom label | - |
| icon | Custom icon | checked: whether to be checked | | icon | Custom icon | checked: whether to be checked |

View File

@ -41,7 +41,7 @@ export default {
### 自定义图标 ### 自定义图标
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断是否为选中状态 通过 icon 插槽自定义图标,可以通过`slotProps`判断是否为选中状态
```html ```html
<van-checkbox v-model="checked"> <van-checkbox v-model="checked">
@ -179,7 +179,7 @@ export default {
### Checkbox Slots ### Checkbox Slots
| 名称 | 说明 | slot-scope 参数 | | 名称 | 说明 | SlotProps |
|------|------|------| |------|------|------|
| default | 自定义文本 | - | | default | 自定义文本 | - |
| icon | 自定义图标 | checked: 是否为选中状态 | | icon | 自定义图标 | checked: 是否为选中状态 |

View File

@ -125,7 +125,7 @@ export default {
### Slots ### Slots
| Name | Description | slot-scope | | Name | Description | SlotProps |
|------|------|------| |------|------|------|
| default | Custom Content | timeData | | default | Custom Content | timeData |

View File

@ -135,7 +135,7 @@ export default {
### Slots ### Slots
| 名称 | 说明 | slot-scope 参数 | | 名称 | 说明 | SlotProps |
|------|------|------| |------|------|------|
| default | 自定义内容 | timeData | | default | 自定义内容 | timeData |

View File

@ -137,7 +137,7 @@ export default {
### Radio Slots ### Radio Slots
| Name | Description | slot-scope | | Name | Description | SlotProps |
|------|------|------| |------|------|------|
| default | Custom label | - | | default | Custom label | - |
| icon | Custom icon | checked: whether to be checked | | icon | Custom icon | checked: whether to be checked |

View File

@ -56,7 +56,7 @@ export default {
### 自定义图标 ### 自定义图标
通过`icon`插槽自定义图标,并通过`slot-scope`判断是否为选中状态 通过`icon`插槽自定义图标,并通过`slotProps`判断是否为选中状态
```html ```html
<van-radio-group v-model="radio"> <van-radio-group v-model="radio">
@ -143,7 +143,7 @@ export default {
### Radio Slots ### Radio Slots
| 名称 | 说明 | slot-scope 参数 | | 名称 | 说明 | SlotProps |
|------|------|------| |------|------|------|
| default | 自定义文本 | - | | default | 自定义文本 | - |
| icon | 自定义图标 | checked: 是否为选中状态 | | icon | 自定义图标 | checked: 是否为选中状态 |

View File

@ -169,6 +169,6 @@ export default {
### TabbarItem Slots ### TabbarItem Slots
| Name | Description | slot-scope | | Name | Description | SlotProps |
|------|------|------| |------|------|------|
| icon | Custom icon | active | | icon | Custom icon | active |

View File

@ -175,6 +175,6 @@ export default {
### TabbarItem Slots ### TabbarItem Slots
| 名称 | 说明 | slot-scope | | 名称 | 说明 | SlotProps |
|------|------|------| |------|------|------|
| icon | 自定义图标 | active: 是否为选中标签 | | icon | 自定义图标 | active: 是否为选中标签 |