[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
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ export default {
### Radio Slots
| Name | Description | slot-scope |
| Name | Description | SlotProps |
|------|------|------|
| default | Custom label | - |
| icon | Custom icon | checked: whether to be checked |
+2 -2
View File
@@ -56,7 +56,7 @@ export default {
### 自定义图标
通过`icon`插槽自定义图标,并通过`slot-scope`判断是否为选中状态
通过`icon`插槽自定义图标,并通过`slotProps`判断是否为选中状态
```html
<van-radio-group v-model="radio">
@@ -143,7 +143,7 @@ export default {
### Radio Slots
| 名称 | 说明 | slot-scope 参数 |
| 名称 | 说明 | SlotProps |
|------|------|------|
| default | 自定义文本 | - |
| icon | 自定义图标 | checked: 是否为选中状态 |