mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 21:48:19 +08:00
17 lines
579 B
TypeScript
Executable File
17 lines
579 B
TypeScript
Executable File
import { Moment } from 'moment';
|
|
import momentGenerateConfig from 'rc-picker/lib/generate/moment';
|
|
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);
|
|
|
|
export default DatePicker;
|