-
Notifications
You must be signed in to change notification settings - Fork 871
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #773 from nathanreyes/bug/range-input-switching
Fix range input switching and page adjustments when date range is null
- Loading branch information
Showing
4 changed files
with
51 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<v-date-picker v-model="range" is-range> | ||
<template v-slot="{ inputValue, inputEvents }"> | ||
<div class="flex"> | ||
<input | ||
:class="inputClass" | ||
:value="inputValue.start" | ||
v-on="inputEvents.start" | ||
/> | ||
<span class="mx-2 text-lg">→</span> | ||
<input | ||
:class="inputClass" | ||
:value="inputValue.end" | ||
v-on="inputEvents.end" | ||
/> | ||
</div> | ||
</template> | ||
</v-date-picker> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
githubTitle: | ||
'Range datepicker with double inputs disallows typing dates manually', | ||
data() { | ||
return { | ||
range: null, | ||
inputClass: 'px-2 py-1 border rounded', | ||
}; | ||
}, | ||
}; | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "v-calendar", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"private": false, | ||
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.", | ||
"author": "Nathan Reyes <[email protected]>", | ||
|
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