Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(VDatePicker): pick date range (#8891)
* feat(vdatepicker): pick date range fixes #1646 * test(vdatepicker): add unit test * Update packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts Co-Authored-By: Dmitry Sharshakov <d3dx12.xx@gmail.com> * refactor(vdatepicker): fix based on review * refactor(vdatepicker): fix based on review * docs(vdatepicker): add docs for range prop * Update packages/docs/src/lang/en/components/DatePickers.json Co-Authored-By: Dmitry Sharshakov <d3dx12.xx@gmail.com> * docs(vdatepicker): fix based on review
- Loading branch information
1 parent
100b2ed
commit 64867ba
Showing
6 changed files
with
99 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/docs/src/examples/date-pickers/intermediate/date-range.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<v-row> | ||
<v-col cols="12" sm="6"> | ||
<v-date-picker v-model="dates" range></v-date-picker> | ||
</v-col> | ||
<v-col cols="12" sm="6"> | ||
<v-text-field v-model="dateRangeText" label="Date range" prepend-icon="event" readonly></v-text-field> | ||
model: {{ dates }} | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
dates: ['2019-09-10', '2019-09-20'], | ||
}), | ||
computed: { | ||
dateRangeText () { | ||
return this.dates.join(' ~ ') | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters