element-plus/packages/constants/date.ts

24 lines
317 B
TypeScript
Raw Normal View History

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]