File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ export default {
150
150
}
151
151
````
152
152
153
+ ### A note on markDates
154
+
155
+ The ` markDates` and ` markDatesMore` properties ** must** be in JavaScript Date format, e .g , no leading zeroes on month and days.
156
+
157
+ ✅ Correct: 2019 / 1 / 16
158
+ ❎ Incorrect: 2019 / 01 / 16
159
+
153
160
### API
154
161
155
162
| Attributes | Description | Whether it must pass |
@@ -171,6 +178,6 @@ For example: <FunctionalCalendar ref="Calendar"></FunctionalCalendar>
171
178
172
179
## Other
173
180
* The following Demo.vue has a demo for reference.
174
- * If there are other issues or versions, functionally incompatible mail communication manuk.minasyan1@gmail.com
181
+ * If there are other issues or versions, or functionally incompatible issues, please email manuk.minasyan1@gmail.com
175
182
176
183
To develop this package, I used the component vue-calendar-component.
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" : " 1.3.2 " ,
9
+ "version" : " 1.3.3 " ,
10
10
"license" : " ISC" ,
11
11
"repository" : {
12
12
"type" : " git" ,
Original file line number Diff line number Diff line change 384
384
classNames .push (' wh_isMark_disabled' );
385
385
}
386
386
387
+ // Disable days of week if set in configuration
388
+ let dayOfWeekString = this .fConfigs .dayNames [new Date (item .date ).getDay ()];
389
+
390
+ if (this .fConfigs .disabledDayNames .includes (dayOfWeekString)) {
391
+ classNames .push (' cursor-disallowed' );
392
+ classNames .push (' wh_other_dayhide' );
393
+ }
394
+
387
395
return classNames;
388
396
},
389
397
clickDay : function (item ) {
390
398
391
399
// Disable days of week if set in configuration
392
- let dayOfWeek = new Date (item .date ).getDay ();
393
- let dayOfWeekString = this .fConfigs .dayNames [dayOfWeek];
400
+ let dayOfWeekString = this .fConfigs .dayNames [new Date (item .date ).getDay ()];
394
401
395
402
if (this .fConfigs .disabledDayNames .includes (dayOfWeekString)) {
396
403
return false ;
632
639
this .fConfigs .isModal = this .isModal ;
633
640
634
641
this .fConfigs .applyStylesheet = this .applyStylesheet ;
642
+
643
+ this .fConfigs .disabledDayNames = this .disabledDayNames ;
644
+ this .fConfigs .disableMarkDates = this .disableMarkDates ;
635
645
}
636
646
637
647
You can’t perform that action at this time.
0 commit comments