chore: Add DatePicker related interface ts export (#20900)

pull/20904/head
二货机器人 5 years ago committed by GitHub
parent 4366c2dd6c
commit 5556ab585f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,15 @@
import { Moment } from 'moment'; import { Moment } from 'moment';
import momentGenerateConfig from 'rc-picker/lib/generate/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); const DatePicker = generatePicker<Moment>(momentGenerateConfig);

Loading…
Cancel
Save