use-calendar.d.ts 686 B

123456789101112
  1. import dayjs from 'dayjs';
  2. import type { ComputedRef, SetupContext } from 'vue';
  3. import type { Dayjs } from 'dayjs';
  4. import type { CalendarDateType, CalendarEmits, CalendarProps } from './calendar';
  5. export declare const useCalendar: (props: CalendarProps, emit: SetupContext<CalendarEmits>['emit'], componentName: string) => {
  6. calculateValidatedDateRange: (startDayjs: Dayjs, endDayjs: Dayjs) => [Dayjs, Dayjs][];
  7. date: ComputedRef<dayjs.Dayjs>;
  8. realSelectedDay: import("vue").WritableComputedRef<dayjs.Dayjs | undefined>;
  9. pickDay: (day: Dayjs) => void;
  10. selectDate: (type: CalendarDateType) => void;
  11. validatedRange: ComputedRef<[dayjs.Dayjs, dayjs.Dayjs][]>;
  12. };