mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
209f505a27
* refactor(components): [calendar] refactor * fix: extract constant & rename type
24 lines
317 B
TypeScript
24 lines
317 B
TypeScript
export const datePickTypes = [
|
|
'year',
|
|
'month',
|
|
'date',
|
|
'dates',
|
|
'week',
|
|
'datetime',
|
|
'datetimerange',
|
|
'daterange',
|
|
'monthrange',
|
|
] as const
|
|
|
|
export const WEEK_DAYS = [
|
|
'sun',
|
|
'mon',
|
|
'tue',
|
|
'wed',
|
|
'thu',
|
|
'fri',
|
|
'sat',
|
|
] as const
|
|
|
|
export type DatePickType = typeof datePickTypes[number]
|