element-plus/packages/constants/date.ts
bqy_fe 209f505a27
refactor(components): [calendar] refactor (#6682)
* refactor(components): [calendar] refactor

* fix: extract constant & rename type
2022-04-01 15:28:41 +08:00

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]