decade slot added

pull/1792/head
Tuğçe Küçükoğlu 2021-11-18 15:11:08 +03:00
parent cf3b2e8b23
commit afc5b0cd31
2 changed files with 9 additions and 0 deletions

View File

@ -342,6 +342,10 @@ const CalendarSlots = [
{ {
name: "date", name: "date",
description: "Custom content for the calendar cell." description: "Custom content for the calendar cell."
},
{
name: "decade",
description: "Custom content for the calendar decade."
} }
]; ];

View File

@ -50,6 +50,10 @@ interface CalendarDateSlotInterface {
date: any; date: any;
} }
interface CalendarDecadeSlotInterface {
years: any;
}
declare class Calendar { declare class Calendar {
$props: CalendarProps; $props: CalendarProps;
$emit(eventName: 'update:modelValue', value: Date | Date[]): this; $emit(eventName: 'update:modelValue', value: Date | Date[]): this;
@ -64,6 +68,7 @@ declare class Calendar {
header: VNode[]; header: VNode[];
date: CalendarDateSlotInterface; date: CalendarDateSlotInterface;
footer: VNode[]; footer: VNode[];
decade: CalendarDecadeSlotInterface;
}; };
} }