mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs: [calendar] add CalendarDateType Type Declarations (#19766)
docs: [calendar] add Type Declarations
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user