diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index b3d53d216..b6257dcce 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -342,6 +342,10 @@ const CalendarSlots = [ { name: "date", description: "Custom content for the calendar cell." + }, + { + name: "decade", + description: "Custom content for the calendar decade." } ]; diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index 1d38fa6d7..beabaa87d 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -50,6 +50,10 @@ interface CalendarDateSlotInterface { date: any; } +interface CalendarDecadeSlotInterface { + years: any; +} + declare class Calendar { $props: CalendarProps; $emit(eventName: 'update:modelValue', value: Date | Date[]): this; @@ -64,6 +68,7 @@ declare class Calendar { header: VNode[]; date: CalendarDateSlotInterface; footer: VNode[]; + decade: CalendarDecadeSlotInterface; }; }