This commit is contained in:
2025-09-19 14:25:20 +08:00
parent 269893a435
commit fbf3f77229
24949 changed files with 2839404 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import dayjs from 'dayjs';
import type { SetupContext } from 'vue';
import type { Dayjs } from 'dayjs';
import type { CalendarDateCell, CalendarDateCellType, DateTableEmits, DateTableProps } from './date-table';
export declare const useDateTable: (props: DateTableProps, emit: SetupContext<DateTableEmits>["emit"]) => {
now: dayjs.Dayjs;
isInRange: import("vue").ComputedRef<boolean>;
rows: import("vue").ComputedRef<CalendarDateCell[][]>;
weekDays: import("vue").ComputedRef<string[]>;
getFormattedDate: (day: number, type: CalendarDateCellType) => Dayjs;
handlePickDay: ({ text, type }: CalendarDateCell) => void;
getSlotData: ({ text, type }: CalendarDateCell) => {
isSelected: boolean;
type: string;
day: string;
date: Date;
};
};