mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
308f486d58
* feat: DatePicker.gen support * test: update snapshot * docs: update docs
16 lines
506 B
TypeScript
16 lines
506 B
TypeScript
import type { Dayjs } from 'dayjs';
|
|
import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';
|
|
import type { CalendarProps } from './generateCalendar';
|
|
import generateCalendar from './generateCalendar';
|
|
|
|
const Calendar = generateCalendar<Dayjs>(dayjsGenerateConfig);
|
|
|
|
export type CalendarType = typeof Calendar & {
|
|
generateCalendar: typeof generateCalendar;
|
|
};
|
|
|
|
(Calendar as CalendarType).generateCalendar = generateCalendar;
|
|
|
|
export type { CalendarProps };
|
|
export default Calendar as CalendarType;
|