mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +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;
|