Files
element-plus/packages/constants/date.ts
yuchen 42d1738463 feat(components): [date-picker] add type years for year multiple select (#15980)
* feat(components): [date-picker] add type years for year multiple select

* fix(components): [date-picker] fix footerVisible while type is not years

* style(components): [date-picker] stand out selected item for year/month

* style(components): [date-picker] remove the in-range background

* docs(components): [date-picker] add 'years' for attribute type
2024-03-01 09:35:52 +08:00

25 lines
328 B
TypeScript

export const datePickTypes = [
'year',
'years',
'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]