forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
799 B
19 lines
799 B
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;
|
|
};
|
|
};
|