Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit 892efb9

Browse files
committed
style: Correct types
1 parent d177422 commit 892efb9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Vue3DatePicker/components/DatepickerMenu.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,16 @@
203203
204204
// Get dates for the currently selected month and year
205205
const dates = computed(() => {
206-
return getCalendarDays(month.value, year.value, +props.weekStart, props.hideOffsetDates);
206+
return getCalendarDays(month.value, year.value, +props.weekStart as WeekStartNum, props.hideOffsetDates);
207207
});
208208
209209
const datesNextMonth = computed(() => {
210-
return getCalendarDays(monthNext.value, yearNext.value, +props.weekStart, props.hideOffsetDates);
210+
return getCalendarDays(
211+
monthNext.value,
212+
yearNext.value,
213+
+props.weekStart as WeekStartNum,
214+
props.hideOffsetDates,
215+
);
211216
});
212217
213218
// If datepicker is using only month or time picker

0 commit comments

Comments
 (0)