decade slot added
parent
cf3b2e8b23
commit
afc5b0cd31
|
@ -342,6 +342,10 @@ const CalendarSlots = [
|
|||
{
|
||||
name: "date",
|
||||
description: "Custom content for the calendar cell."
|
||||
},
|
||||
{
|
||||
name: "decade",
|
||||
description: "Custom content for the calendar decade."
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue