use-date-table.d.ts 861 B

12345678910111213141516171819202122232425262728
  1. import { CalendarDateCell, CalendarDateCellType, DateTableEmits, DateTableProps } from "./date-table.js";
  2. import * as _$vue from "vue";
  3. import { SetupContext } from "vue";
  4. import dayjs, { Dayjs } from "dayjs";
  5. //#region ../../packages/components/calendar/src/use-date-table.d.ts
  6. declare const useDateTable: (props: DateTableProps, emit: SetupContext<DateTableEmits>["emit"]) => {
  7. now: dayjs.Dayjs;
  8. isInRange: _$vue.ComputedRef<boolean>;
  9. rows: _$vue.ComputedRef<CalendarDateCell[][]>;
  10. weekDays: _$vue.ComputedRef<string[]>;
  11. getFormattedDate: (day: number, type: CalendarDateCellType) => Dayjs;
  12. handlePickDay: ({
  13. text,
  14. type
  15. }: CalendarDateCell) => void;
  16. getSlotData: ({
  17. text,
  18. type
  19. }: CalendarDateCell) => {
  20. isSelected: boolean;
  21. type: string;
  22. day: string;
  23. date: Date;
  24. };
  25. };
  26. //#endregion
  27. export { useDateTable };