mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
8692965e80
* fix(components): fix bug #14637 * refactor(components): [el-button]update props autoBlur name * docs(components): [el-button] update docs ablout props clickAutoBlur * fix(components): [date-picker] fix bug #14728 * feat(components): [date-picker] add yearrange * feat(components): [date-picker] update yearrange codes * feat(components): [date-picker]fix select range ui bug * refactor(components): [date-picker]convert setup() to setup, add TS type * refactor(components): refactor pane-year-range * refactor(components): [date-picker] refactor panel-year-range styles * docs(components): [date-picker] update year-range docs #6388 #2487 #7051 * style(components): [date-picker] remove repeat css * feat(components): [date-picker]add yearrange unit test * fix(components): [date-picker] fix unit test case failed error * fix(components): [date-picker] resolve some pr problems * docs(components): [yearrange] update docs * fix(docs): [yearrange] update example of year-range * refactor(components): [date-picker] resolve some code review suggestions * fix(components): [date-picker] resolve some CR problems * refactor(components): [date-picker] resolve some CR conversations * refactor(components): [date-picker] uniform date compute logic * fix(components): [date-picker] error occurs when mannul input the date * refactor(components): [date-picker] resolve some CR conversations * refactor(components): [date-picker] resolve some CR conversations * refactor(components): [date-picker] resolve some CR conversations * refactor(components): [date-picker] optimize YearTableClick func --------- Co-authored-by: 曾咏波 <cherishtheyouth@qq.com> Co-authored-by: yongbo.zeng_U+ <yongbo.zeng@united-imaging.com> Co-authored-by: upthen <zyb.6616@icloud.com>
27 lines
355 B
TypeScript
27 lines
355 B
TypeScript
export const datePickTypes = [
|
|
'year',
|
|
'years',
|
|
'month',
|
|
'months',
|
|
'date',
|
|
'dates',
|
|
'week',
|
|
'datetime',
|
|
'datetimerange',
|
|
'daterange',
|
|
'monthrange',
|
|
'yearrange',
|
|
] as const
|
|
|
|
export const WEEK_DAYS = [
|
|
'sun',
|
|
'mon',
|
|
'tue',
|
|
'wed',
|
|
'thu',
|
|
'fri',
|
|
'sat',
|
|
] as const
|
|
|
|
export type DatePickType = typeof datePickTypes[number]
|