UNPKG

963 BTypeScriptView Raw
1import * as PropTypes from 'prop-types';
2import * as React from 'react';
3import { DatePickerPropsType } from './PropsType';
4export interface PropsType extends DatePickerPropsType {
5 prefixCls?: string;
6 className?: string;
7 use12Hours?: boolean;
8 pickerPrefixCls?: string;
9 popupPrefixCls?: string;
10 onOk?: (x: any) => void;
11 onVisibleChange?: (visible: boolean) => void;
12}
13export default class DatePicker extends React.Component<PropsType, any> {
14 static defaultProps: {
15 mode: string;
16 prefixCls: string;
17 pickerPrefixCls: string;
18 popupPrefixCls: string;
19 minuteStep: number;
20 use12Hours: boolean;
21 };
22 static contextTypes: {
23 antLocale: PropTypes.Requireable<object>;
24 };
25 private scrollValue;
26 setScrollValue: (v: any) => void;
27 onOk: (v: any) => void;
28 onVisibleChange: (visible: boolean) => void;
29 fixOnOk: (picker: any) => void;
30 render(): JSX.Element;
31}