import type { Dayjs } from 'dayjs'; import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs'; import type { PickerProps, PickerDateProps, RangePickerProps as BaseRangePickerProps, } from './generatePicker'; import generatePicker from './generatePicker'; export type DatePickerProps = PickerProps; export type MonthPickerProps = Omit, 'picker'>; export type WeekPickerProps = Omit, 'picker'>; export type RangePickerProps = BaseRangePickerProps; const DatePicker = generatePicker(dayjsGenerateConfig); export default DatePicker;