docs(PickerGroup): fix missing tabs prop (#11486)

This commit is contained in:
neverland 2023-01-15 10:14:25 +08:00 committed by GitHub
parent 2dcb4e39b1
commit 082a596568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 12 deletions

View File

@ -86,7 +86,11 @@ Place two `DatePicker` components in the default slot of `PickerGroup` to select
@confirm="onConfirm"
@cancel="onCancel"
>
<van-date-picker v-model="startDate" :min-date="minDate" :max-date="maxDate" />
<van-date-picker
v-model="startDate"
:min-date="minDate"
:max-date="maxDate"
/>
<van-date-picker v-model="endDate" :min-date="minDate" :max-date="maxDate" />
</van-picker-group>
```
@ -161,11 +165,12 @@ export default {
### Props
| Attribute | Description | Type | Default |
| ------------------- | ---------------------- | -------- | --------- |
| title | Toolbar title | _string_ | `''` |
| confirm-button-text | Text of confirm button | _string_ | `Confirm` |
| cancel-button-text | Text of cancel button | _string_ | `Cancel` |
| Attribute | Description | Type | Default |
| ------------------- | ---------------------- | ---------- | --------- |
| tabs | Titles of tabs | _string[]_ | `[]` |
| title | Toolbar title | _string_ | `''` |
| confirm-button-text | Text of confirm button | _string_ | `Confirm` |
| cancel-button-text | Text of cancel button | _string_ | `Cancel` |
### Slots

View File

@ -86,7 +86,11 @@ export default {
@confirm="onConfirm"
@cancel="onCancel"
>
<van-date-picker v-model="startDate" :min-date="minDate" :max-date="maxDate" />
<van-date-picker
v-model="startDate"
:min-date="minDate"
:max-date="maxDate"
/>
<van-date-picker v-model="endDate" :min-date="minDate" :max-date="maxDate" />
</van-picker-group>
```
@ -161,11 +165,12 @@ export default {
### Props
| 参数 | 说明 | 类型 | 默认值 |
| ------------------- | ------------ | -------- | ------ |
| title | 顶部栏标题 | _string_ | `''` |
| confirm-button-text | 确认按钮文字 | _string_ | `确认` |
| cancel-button-text | 取消按钮文字 | _string_ | `取消` |
| 参数 | 说明 | 类型 | 默认值 |
| ------------------- | ---------------- | ---------- | ------ |
| tabs | 设置标签页的标题 | _string[]_ | `[]` |
| title | 顶部栏标题 | _string_ | `''` |
| confirm-button-text | 确认按钮文字 | _string_ | `确认` |
| cancel-button-text | 取消按钮文字 | _string_ | `取消` |
### Slots