amis-rpc-design/node_modules/rc-picker/lib/panels/MonthPanel/MonthBody.d.ts
2023-10-07 19:42:30 +08:00

18 lines
717 B
TypeScript

import * as React from 'react';
import type { GenerateConfig } from '../../generate';
import type { CellRender, Locale } from '../../interface';
export declare const MONTH_COL_COUNT = 3;
export type MonthCellRender<DateType> = (currentDate: DateType, locale: Locale) => React.ReactNode;
export type MonthBodyProps<DateType> = {
prefixCls: string;
locale: Locale;
generateConfig: GenerateConfig<DateType>;
value?: DateType | null;
viewDate: DateType;
disabledDate?: (date: DateType) => boolean;
cellRender?: CellRender<DateType>;
onSelect: (value: DateType) => void;
};
declare function MonthBody<DateType>(props: MonthBodyProps<DateType>): React.JSX.Element;
export default MonthBody;