| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import { EpPropFinalized } from "../../../utils/vue/props/types.js";
- import * as _$vue from "vue";
- import { ExtractPublicPropTypes } from "vue";
- //#region ../../packages/components/calendar/src/calendar.d.ts
- type CalendarDateType = 'prev-month' | 'next-month' | 'prev-year' | 'next-year' | 'today';
- interface CalendarProps {
- /**
- * @description binding value
- */
- modelValue?: Date;
- /**
- * @description time range, including start time and end time.
- * Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months.
- */
- range?: [Date, Date];
- /**
- * @description type of the controller for the Calendar header
- */
- controllerType?: 'button' | 'select';
- /**
- * @description format label when `controller-type` is 'select'
- */
- formatter?: (value: number, type: 'year' | 'month') => string | number;
- }
- /**
- * @deprecated Removed after 3.0.0, Use `CalendarProps` instead.
- */
- declare const calendarProps: {
- readonly modelValue: {
- readonly type: _$vue.PropType<Date>;
- readonly required: false;
- readonly validator: ((val: unknown) => boolean) | undefined;
- __epPropKey: true;
- };
- readonly range: {
- readonly type: _$vue.PropType<[Date, Date]>;
- readonly required: false;
- readonly validator: ((val: unknown) => boolean) | undefined;
- __epPropKey: true;
- };
- readonly controllerType: EpPropFinalized<StringConstructor, "button" | "select", unknown, "button", boolean>;
- readonly formatter: {
- readonly type: _$vue.PropType<(value: number, type: "year" | "month") => string | number>;
- readonly required: false;
- readonly validator: ((val: unknown) => boolean) | undefined;
- __epPropKey: true;
- };
- };
- /**
- * @deprecated Removed after 3.0.0, Use `CalendarProps` instead.
- */
- type CalendarPropsPublic = ExtractPublicPropTypes<typeof calendarProps>;
- declare const calendarEmits: {
- "update:modelValue": (value: Date) => boolean;
- input: (value: Date) => boolean;
- };
- type CalendarEmits = typeof calendarEmits;
- //#endregion
- export { CalendarDateType, CalendarEmits, CalendarProps, CalendarPropsPublic, calendarEmits, calendarProps };
|