element-plus/packages/time-picker/src/common/constant.ts

13 lines
373 B
TypeScript
Raw Normal View History

// daterange: 'YYYY-MM-DD',
// monthrange: 'YYYY-MM',
// datetimerange: 'yyyy-MM-DD HH:mm:ss',
export const DEFAULT_FORMATS_TIME = 'HH:mm:ss'
export const DEFAULT_FORMATS_DATE = 'YYYY-MM-DD'
export const DEFAULT_FORMATS_DATEPICKER = {
'date': DEFAULT_FORMATS_DATE,
'week': 'YYYYwWW',
'year': 'YYYY',
'month': 'YYYY-MM',
'datetime': 'YYYY-MM-DD HH:mm:ss',
}