From 7a75f72f4fc3576397b4521a13f6937c9c71d453 Mon Sep 17 00:00:00 2001 From: LouisMazel Date: Mon, 9 Dec 2024 23:51:02 +0100 Subject: [PATCH] fix(maz-ui): MazPicker - js errors while lazy loading of children components --- packages/lib/components/MazPicker/MazPickerCalendar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lib/components/MazPicker/MazPickerCalendar.vue b/packages/lib/components/MazPicker/MazPickerCalendar.vue index f43f5db4d6..3998e47022 100644 --- a/packages/lib/components/MazPicker/MazPickerCalendar.vue +++ b/packages/lib/components/MazPicker/MazPickerCalendar.vue @@ -2,10 +2,13 @@ import type { Dayjs } from 'dayjs' import type { Color } from '../types' import type { PickerShortcut, PickerValue } from './types' -import { computed, defineAsyncComponent, type PropType, ref } from 'vue' +import { computed, type PropType, ref } from 'vue' import MazPickerCalendarMonth from './MazPickerCalendarMonth/MazPickerCalendarMonth.vue' import MazPickerCalendarSwitcher from './MazPickerCalendarSwitcher.vue' +import MazPickerMonthSwitcher from './MazPickerMonthSwitcher.vue' +import MazPickerShortcuts from './MazPickerShortcuts.vue' +import MazPickerYearSwitcher from './MazPickerYearSwitcher.vue' const props = defineProps({ modelValue: { @@ -31,9 +34,6 @@ const props = defineProps({ disabled: { type: Boolean, required: true }, }) const emits = defineEmits(['update:model-value', 'update:calendar-date']) -const MazPickerMonthSwitcher = defineAsyncComponent(() => import('./MazPickerMonthSwitcher.vue')) -const MazPickerYearSwitcher = defineAsyncComponent(() => import('./MazPickerYearSwitcher.vue')) -const MazPickerShortcuts = defineAsyncComponent(() => import('./MazPickerShortcuts.vue')) const hoverredDay = ref()