JewelryMall/admin/node_modules/element-plus/es/components/calendar/src/use-calendar.d.ts
2026-02-14 19:29:15 +08:00

14 lines
741 B
TypeScript

import dayjs from 'dayjs';
import type { ComputedRef, SetupContext } from 'vue';
import type { Dayjs } from 'dayjs';
import type { CalendarDateType, CalendarEmits, CalendarProps } from './calendar';
export declare const useCalendar: (props: CalendarProps, emit: SetupContext<CalendarEmits>["emit"], componentName: string) => {
calculateValidatedDateRange: (startDayjs: Dayjs, endDayjs: Dayjs) => [Dayjs, Dayjs][];
date: ComputedRef<dayjs.Dayjs>;
realSelectedDay: import("vue").WritableComputedRef<dayjs.Dayjs | undefined>;
pickDay: (day: Dayjs) => void;
selectDate: (type: CalendarDateType) => void;
validatedRange: ComputedRef<[dayjs.Dayjs, dayjs.Dayjs][]>;
handleDateChange: (date: Dayjs | "today") => void;
};