element-plus
Version:
A Component Library for Vue 3
1 lines • 1.03 kB
Source Map (JSON)
{"version":3,"file":"date-picker.type.mjs","sources":["../../../../../../packages/components/date-picker/src/date-picker.type.ts"],"sourcesContent":["import type { InjectionKey, SetupContext } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport declare type IDatePickerType =\n | 'year'\n | 'month'\n | 'date'\n | 'dates'\n | 'week'\n | 'datetime'\n | 'datetimerange'\n | 'daterange'\n | 'monthrange'\n\ntype DateCellType = 'normal' | 'today' | 'week' | 'next-month' | 'prev-month'\nexport interface DateCell {\n column?: number\n customClass?: string\n disabled?: boolean\n end?: boolean\n inRange?: boolean\n row?: number\n selected?: Dayjs\n isCurrent?: boolean\n isSelected?: boolean\n start?: boolean\n text?: number\n timestamp?: number\n date?: Date\n dayjs?: Dayjs\n type?: DateCellType\n}\n\ninterface DatePickerContext {\n ctx: SetupContext\n}\n\nexport const ROOT_PICKER_INJECTION_KEY: InjectionKey<DatePickerContext> =\n Symbol()\n"],"names":[],"mappings":"AAAY,MAAC,yBAAyB,GAAG,MAAM;;;;"}