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" @confirm="onConfirm"
@cancel="onCancel" @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-date-picker v-model="endDate" :min-date="minDate" :max-date="maxDate" />
</van-picker-group> </van-picker-group>
``` ```
@ -162,7 +166,8 @@ export default {
### Props ### Props
| Attribute | Description | Type | Default | | Attribute | Description | Type | Default |
| ------------------- | ---------------------- | -------- | --------- | | ------------------- | ---------------------- | ---------- | --------- |
| tabs | Titles of tabs | _string[]_ | `[]` |
| title | Toolbar title | _string_ | `''` | | title | Toolbar title | _string_ | `''` |
| confirm-button-text | Text of confirm button | _string_ | `Confirm` | | confirm-button-text | Text of confirm button | _string_ | `Confirm` |
| cancel-button-text | Text of cancel button | _string_ | `Cancel` | | cancel-button-text | Text of cancel button | _string_ | `Cancel` |

View File

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