mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
16 lines
312 B
TypeScript
16 lines
312 B
TypeScript
export const isValidComponentSize = (val: string) =>
|
|
['', 'large', 'default', 'small'].includes(val)
|
|
|
|
export const isValidDatePickType = (val: string) =>
|
|
[
|
|
'year',
|
|
'month',
|
|
'date',
|
|
'dates',
|
|
'week',
|
|
'datetime',
|
|
'datetimerange',
|
|
'daterange',
|
|
'monthrange',
|
|
].includes(val)
|