diff --git a/package.json b/package.json index d3e4e83..0233031 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "name": "vue-functional-calendar", "description": "A style-uninstallable datepicker component for Vue.js", - "version": "2.3.6", + "version": "2.3.7", "license": "MIT", "repository": { "type": "git", diff --git a/src/Demo.vue b/src/Demo.vue index ef6a45f..8c18a30 100644 --- a/src/Demo.vue +++ b/src/Demo.vue @@ -9,8 +9,8 @@ :change-month-function="true" :is-typeable="true" :change-year-function="true" - :is-date-picker="true" - :is-date-range="false" + :is-date-picker="false" + :is-date-range="true" :with-time-picker="true" :is-multiple="false" :calendars-count="2" diff --git a/src/assets/scss/calendar.scss b/src/assets/scss/calendar.scss index a1afca1..982cbf4 100644 --- a/src/assets/scss/calendar.scss +++ b/src/assets/scss/calendar.scss @@ -207,6 +207,9 @@ input.vfc-single-input { border-radius: .28571429rem .28571429rem 0 0; span { margin-left: 15px; + span.vfc-active { + text-decoration: underline; + } } } } diff --git a/src/components/FunctionalCalendar.vue b/src/components/FunctionalCalendar.vue index d1ce231..0b9773c 100644 --- a/src/components/FunctionalCalendar.vue +++ b/src/components/FunctionalCalendar.vue @@ -237,7 +237,6 @@ }, 'input.dateRange.start.date': { handler(val) { - console.log(val); this.input.dateRange.start.date = val = helpCalendar.mask(val); if (helpCalendar.getDateFromFormat(val).getMonth()) { this.calendar.dateRange.start.date = val; @@ -468,9 +467,7 @@ // Time Picker if (this.fConfigs.withTimePicker) { - if (this.fConfigs.isDateRange && this.calendar.dateRange.end.date) { - this.openTimePicker(); - } else if (this.fConfigs.isDatePicker) { + if (this.fConfigs.isDateRange || this.fConfigs.isDatePicker) { this.openTimePicker(); } } diff --git a/src/components/TimePicker.vue b/src/components/TimePicker.vue index 1f196f0..e81af7c 100644 --- a/src/components/TimePicker.vue +++ b/src/components/TimePicker.vue @@ -3,14 +3,29 @@
- {{ $parent.calendar.selectedDateTime }} + + + +
-
{{ i < 10 ? '0'+(i-1) : i}}
+
{{ i < 10 ? '0'+(i-1) : i}} +
-
{{ i < 10 ? '0'+(i-1) : i}}
+
{{ i < 10 ? '0'+(i-1) : i}} +
@@ -20,7 +35,26 @@