Skip to content

Commit

Permalink
fix(maz-ui): MazPicker - js errors while lazy loading of children com…
Browse files Browse the repository at this point in the history
…ponents
  • Loading branch information
LouisMazel committed Dec 9, 2024
1 parent 5599711 commit 7a75f72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lib/components/MazPicker/MazPickerCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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<Dayjs>()
Expand Down

0 comments on commit 7a75f72

Please sign in to comment.