mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[Doc] rename slot-scope to SlotProps (#3825)
This commit is contained in:
@@ -175,7 +175,7 @@ export default {
|
||||
|
||||
### Checkbox Slots
|
||||
|
||||
| Name | Description | slot-scope |
|
||||
| Name | Description | SlotProps |
|
||||
|------|------|------|
|
||||
| default | Custom label | - |
|
||||
| icon | Custom icon | checked: whether to be checked |
|
||||
|
@@ -41,7 +41,7 @@ export default {
|
||||
|
||||
### 自定义图标
|
||||
|
||||
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断是否为选中状态
|
||||
通过 icon 插槽自定义图标,可以通过`slotProps`判断是否为选中状态
|
||||
|
||||
```html
|
||||
<van-checkbox v-model="checked">
|
||||
@@ -179,7 +179,7 @@ export default {
|
||||
|
||||
### Checkbox Slots
|
||||
|
||||
| 名称 | 说明 | slot-scope 参数 |
|
||||
| 名称 | 说明 | SlotProps |
|
||||
|------|------|------|
|
||||
| default | 自定义文本 | - |
|
||||
| icon | 自定义图标 | checked: 是否为选中状态 |
|
||||
|
@@ -125,7 +125,7 @@ export default {
|
||||
|
||||
### Slots
|
||||
|
||||
| Name | Description | slot-scope |
|
||||
| Name | Description | SlotProps |
|
||||
|------|------|------|
|
||||
| default | Custom Content | timeData |
|
||||
|
||||
|
@@ -135,7 +135,7 @@ export default {
|
||||
|
||||
### Slots
|
||||
|
||||
| 名称 | 说明 | slot-scope 参数 |
|
||||
| 名称 | 说明 | SlotProps |
|
||||
|------|------|------|
|
||||
| default | 自定义内容 | timeData |
|
||||
|
||||
|
@@ -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: 是否为选中状态 |
|
||||
|
@@ -169,6 +169,6 @@ export default {
|
||||
|
||||
### TabbarItem Slots
|
||||
|
||||
| Name | Description | slot-scope |
|
||||
| Name | Description | SlotProps |
|
||||
|------|------|------|
|
||||
| icon | Custom icon | active |
|
||||
|
@@ -175,6 +175,6 @@ export default {
|
||||
|
||||
### TabbarItem Slots
|
||||
|
||||
| 名称 | 说明 | slot-scope |
|
||||
| 名称 | 说明 | SlotProps |
|
||||
|------|------|------|
|
||||
| icon | 自定义图标 | active: 是否为选中标签 |
|
||||
|
Reference in New Issue
Block a user