amis-rpc-design/node_modules/antd/lib/calendar/Header.d.ts
2023-10-07 19:42:30 +08:00

18 lines
715 B
TypeScript

import type { GenerateConfig } from 'rc-picker/lib/generate';
import type { Locale } from 'rc-picker/lib/interface';
import * as React from 'react';
import type { CalendarMode, SelectInfo } from './generateCalendar';
export interface CalendarHeaderProps<DateType> {
prefixCls: string;
value: DateType;
validRange?: [DateType, DateType];
generateConfig: GenerateConfig<DateType>;
locale: Locale;
mode: CalendarMode;
fullscreen: boolean;
onChange: (date: DateType, source: SelectInfo['source']) => void;
onModeChange: (mode: CalendarMode) => void;
}
declare function CalendarHeader<DateType>(props: CalendarHeaderProps<DateType>): React.JSX.Element;
export default CalendarHeader;