mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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
25 lines
328 B
TypeScript
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]
|