From 329ac01b4c56db178ce7ea72533759d3f60479bb Mon Sep 17 00:00:00 2001 From: jiaxiang Date: Sun, 2 Feb 2025 17:02:18 +0800 Subject: [PATCH] docs: [calendar] add CalendarDateType Type Declarations (#19766) docs: [calendar] add Type Declarations --- docs/en-US/component/calendar.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/en-US/component/calendar.md b/docs/en-US/component/calendar.md index 8182065faa..d8f20751de 100644 --- a/docs/en-US/component/calendar.md +++ b/docs/en-US/component/calendar.md @@ -69,3 +69,19 @@ Note, date time locale (month name, first day of the week ...) are also configur | pickDay | select a specific date | ^[Function]`(day: dayjs.Dayjs) => void` | | selectDate | select date | ^[Function]`(type: CalendarDateType) => void` | | calculateValidatedDateRange | Calculate the validate date range according to the start and end dates | ^[Function]`(startDayjs: dayjs.Dayjs, endDayjs: dayjs.Dayjs) => [dayjs.Dayjs, dayjs.Dayjs][]` | + +## Type Declarations + +
+ Show declarations + +```ts +type CalendarDateType = + | 'prev-month' + | 'next-month' + | 'prev-year' + | 'next-year' + | 'today' +``` + +