fix: readme document errors (#11401)

This commit is contained in:
Ryan 2022-12-21 13:59:30 +08:00 committed by GitHub
parent 481298f279
commit 589b7b2998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@ Place two `DatePicker` components in the default slot of `PickerGroup` to select
@confirm="onConfirm"
@cancel="onCancel"
>
<van-date-picker v-model="startEnd" :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>
```
@ -128,8 +128,8 @@ Place two `TimePicker` components in the default slot of `PickerGroup` to select
@confirm="onConfirm"
@cancel="onCancel"
>
<van-time-picker v-model="startEnd" />
<van-time-picker v-model="endDate" />
<van-time-picker v-model="startTime" />
<van-time-picker v-model="endTime" />
</van-picker-group>
```

View File

@ -86,7 +86,7 @@ export default {
@confirm="onConfirm"
@cancel="onCancel"
>
<van-date-picker v-model="startEnd" :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>
```
@ -128,8 +128,8 @@ export default {
@confirm="onConfirm"
@cancel="onCancel"
>
<van-time-picker v-model="startEnd" />
<van-time-picker v-model="endDate" />
<van-time-picker v-model="startTime" />
<van-time-picker v-model="endTime" />
</van-picker-group>
```