Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierpoisson committed Jan 17, 2025
1 parent c13ed40 commit a64b27e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vuetify/src/labs/VCalendar/VCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const makeVCalendarProps = propsFactory({
...makeCalendarProps(),
...makeVCalendarDayProps(),
...makeVCalendarHeaderProps(),
}, 'VCalender')
}, 'VCalendar')

export type VCalendarSlots = VCalendarDaySlots & {
allDayContent: { day?: CalendarDay, events?: Array<any> }
Expand All @@ -34,7 +34,7 @@ export type VCalendarSlots = VCalendarDaySlots & {
dayTitle: { title?: number | string }
dayEvent: { day?: CalendarDay, allDay: Boolean, event?: Record<string, unknown> }
header: { title: string, clickNext: Function, clickPrev: Function, clickToday: Function }
intervalDay: { day?: CalendarDay, dayIndex: Number, events?: Array<any> }
weekDayCalendarCell: { day?: CalendarDay, dayIndex: Number, events?: Array<any> }
title: { title?: string }
}

Expand Down Expand Up @@ -208,7 +208,7 @@ export const VCalendar = genericComponent<VCalendarSlots>()({
)}
{ props.viewMode === 'week' && (
daysInWeek.value.map((day, i) =>
slots.intervalDay ? slots.intervalDay?.({
slots.weekDayCalendarCell ? slots.weekDayCalendarCell?.({
...calendarDayProps,
day,
dayIndex: i,
Expand All @@ -230,7 +230,7 @@ export const VCalendar = genericComponent<VCalendarSlots>()({
}

{ props.viewMode === 'day' && (
slots.intervalDay ? slots.intervalDay({
slots.weekDayCalendarCell ? slots.weekDayCalendarCell({
day: genDays([displayValue.value as Date], adapter.date() as Date)[0],
dayIndex: 0,
events: props.events?.filter(e =>
Expand Down

0 comments on commit a64b27e

Please sign in to comment.