Skip to content

Commit 37d0357

Browse files
committed
Added new classes for start and end dates
1 parent f731d96 commit 37d0357

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "A style-uninstallable datepicker component for Vue.js",
9-
"version": "2.1.6",
9+
"version": "2.1.7",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/assets/scss/calendar.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,6 @@ input.vfc-single-input {
217217
border-radius: 50%;
218218
margin: 0 auto;
219219

220-
&.borderd {
221-
222-
}
223-
224220
&.vfc-today {
225221
background-color: #ff8498;
226222

src/components/FunctionalCalendar.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,14 @@
667667
}
668668
}
669669
670+
if(day.date === this.calendar.dateRange.start){
671+
classes.push('vfc-start-date')
672+
}
673+
674+
if(day.date === this.calendar.dateRange.end){
675+
classes.push('vfc-end-date')
676+
}
677+
670678
if(day.date === this.calendar.dateRange.start || day.date === this.calendar.dateRange.end || day.date === this.calendar.selectedDate){
671679
classes.push('borderd');
672680
}

0 commit comments

Comments
 (0)