ant-design/components/calendar/index.tsx
vagusX 38cf5e8a75
docs: unify component export file as index.tsx (#50013)
* docs: unify component export file as index.tsx

* docs: compatible with old anchors

* chore: clean

* test: update snapshot

* fix: window env

---------

Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-07-23 22:22:24 +08:00

17 lines
507 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;