File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 6
6
},
7
7
"name" : " vue-functional-calendar" ,
8
8
"description" : " A style-uninstallable datepicker component for Vue.js" ,
9
- "version" : " 2.1.7 " ,
9
+ "version" : " 2.1.8 " ,
10
10
"license" : " MIT" ,
11
11
"repository" : {
12
12
"type" : " git" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<functional-calendar class =" demo-calendar"
4
+ v-model =" calendarData"
4
5
:sunday-start =" true"
5
6
:is-modal =" false"
6
7
:date-format =" 'dd.mm.yyyy'"
34
35
},
35
36
data () {
36
37
return {
38
+ calendarData: {},
37
39
calendar: {
38
40
dateRange: {
39
41
Original file line number Diff line number Diff line change 206
206
this .input .selectedDate = val = helpCalendar .mask (val);
207
207
if (helpCalendar .getDateFromFormat (val).getMonth ()) {
208
208
this .calendar .selectedDate = val;
209
- this .pickYear (helpCalendar .getDateFromFormat (val).getFullYear ());
210
- this .pickMonth (helpCalendar .getDateFromFormat (val).getMonth ());
211
209
this .markChooseDays ();
212
210
}
213
211
}
217
215
this .input .dateRange .start = val = helpCalendar .mask (val);
218
216
if (helpCalendar .getDateFromFormat (val).getMonth ()) {
219
217
this .calendar .dateRange .start = val;
220
- // this.pickYear(helpCalendar.getDateFromFormat(val).getFullYear());
221
- // this.pickMonth(helpCalendar.getDateFromFormat(val).getMonth());
222
218
this .markChooseDays ();
223
219
}
224
220
}
228
224
this .input .dateRange .end = val = helpCalendar .mask (val);
229
225
if (helpCalendar .getDateFromFormat (val).getMonth ()) {
230
226
this .calendar .dateRange .end = val;
231
- // this.pickYear(helpCalendar.getDateFromFormat(val).getFullYear());
232
- // this.pickMonth(helpCalendar.getDateFromFormat(val).getMonth());
233
227
this .markChooseDays ();
234
228
}
235
229
}
425
419
this .$emit (' selectedDaysCount' , diffDays);
426
420
}
427
421
428
- this .$emit (' input' , {
429
- dateRange: this .calendar
430
- });
422
+ this .$emit (' input' , this .calendar );
431
423
} else if (this .fConfigs .isDatePicker ) {
432
424
this .calendar .selectedDate = item .date ;
433
425
this .$emit (' input' , this .calendar );
You can’t perform that action at this time.
0 commit comments