utils.d.ts 774 B

1234567891011121314
  1. import { Dayjs } from 'dayjs';
  2. import { CellState, LocaleText, SelectionMode, CalendarValue } from './props';
  3. export declare function getMonthListFromRange(start: Dayjs, end: Dayjs): Dayjs[];
  4. export declare function defaultMonthRange(): [number, number];
  5. /**
  6. *
  7. * @param month 月份的某一天
  8. * @param weekStartsOn 日历以星期几开始
  9. * @returns 获取当月日历所有的日子
  10. */
  11. export declare function getDate(month: Dayjs, weekStartsOn: string): Dayjs[];
  12. export declare function renderCells(cellsMonth: Dayjs, weekStartsOn: string, value: CalendarValue, localeText: LocaleText): CellState[];
  13. export declare function getSelectionModeFromValue(value?: CalendarValue): SelectionMode;
  14. export declare function getScrollIntoViewId(value: CalendarValue): string;