mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
f0c105d262
* feat: remove the hardcode of `use client` * chore: update `@ant-design/tools` * test: update * fix: incorrect dictionary * chore: update dep * ci: check use client * chore: update ci * fix: should be LIB_DIR * ci: should only run in dist * chore: update check tsx files
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;
|