docs: [calendar] add CalendarDateType Type Declarations (#19766)

docs: [calendar] add Type Declarations
This commit is contained in:
jiaxiang
2025-02-02 17:02:18 +08:00
committed by GitHub
parent a49d1cabd5
commit 329ac01b4c

View File

@@ -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
<details>
<summary>Show declarations</summary>
```ts
type CalendarDateType =
| 'prev-month'
| 'next-month'
| 'prev-year'
| 'next-year'
| 'today'
```
</details>