Skip to content

Commit 1c7896d

Browse files
committed
fix(VCalendar): import directives
fixes #22122
1 parent 50a150b commit 1c7896d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/vuetify/src/labs/VCalendar/VCalendar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import { makeCalendarBaseProps } from './composables/calendarBase'
1313
import { makeCalendarWithEventsProps, useCalendarWithEvents } from './composables/calendarWithEvents'
1414
import { forwardRefs } from '@/composables/forwardRefs'
1515

16+
// Directives
17+
import vResize from '@/directives/resize'
18+
1619
// Utilities
1720
import { computed, onMounted, onUpdated, ref, watch } from 'vue'
1821
import { getParsedCategories } from './util/parser'
@@ -109,6 +112,8 @@ export const VCalendar = genericComponent<new (
109112
) => GenericProps<typeof props, typeof slots>>()({
110113
name: 'VCalendar',
111114

115+
directives: { vResize },
116+
112117
props: {
113118
modelValue: {
114119
type: [String, Number, Date] as PropType<string | number | Date>,

packages/vuetify/src/labs/VCalendar/composables/calendarWithEvents.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import './calendarWithEvents.sass'
44
// Composables
55
import { useCalendarBase } from './calendarBase'
66

7+
// Directives
8+
import vRipple from '@/directives/ripple'
9+
710
// Utilities
811
import { computed, ref } from 'vue'
912
import { CalendarEventOverlapModes } from '../modes'
@@ -64,6 +67,9 @@ export interface VEventScopeInput {
6467
timed: boolean
6568
}
6669

70+
// Prevent import from being erased
71+
void vRipple
72+
6773
export const makeCalendarWithEventsProps = propsFactory({
6874
events: {
6975
type: Array as PropType<CalendarEvent[]>,

0 commit comments

Comments
 (0)