|
|
|
@ -1,6 +1,15 @@
|
|
|
|
|
import { Moment } from 'moment';
|
|
|
|
|
import momentGenerateConfig from 'rc-picker/lib/generate/moment';
|
|
|
|
|
import generatePicker from './generatePicker';
|
|
|
|
|
import generatePicker, {
|
|
|
|
|
PickerProps,
|
|
|
|
|
PickerDateProps,
|
|
|
|
|
RangePickerProps as BaseRangePickerProps,
|
|
|
|
|
} from './generatePicker';
|
|
|
|
|
|
|
|
|
|
export type DatePickerProps = PickerProps<Moment>;
|
|
|
|
|
export type MonthPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
|
|
|
|
|
export type WeekPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
|
|
|
|
|
export type RangePickerProps = BaseRangePickerProps<Moment>;
|
|
|
|
|
|
|
|
|
|
const DatePicker = generatePicker<Moment>(momentGenerateConfig);
|
|
|
|
|
|
|
|
|
|