[Doc] rename slot-scope to SlotProps (#3825)
This commit is contained in:
+1
-1
@@ -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 |
|
||||
|
||||
@@ -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: 是否为选中状态 |
|
||||
|
||||
Reference in New Issue
Block a user