jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Calendar/utils.d.ts
2024-12-01 19:56:54 +08:00

15 lines
799 B
TypeScript

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