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",
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;
}
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;
};
}