32 lines
1004 B
TypeScript
32 lines
1004 B
TypeScript
import React from 'react';
|
|
import { noop } from '../../common/utils/fns';
|
|
import { ScrollpickerProps } from '../Scrollpicker';
|
|
export interface DatepickerProps extends ScrollpickerProps {
|
|
startYear?: number;
|
|
proportion?: number[];
|
|
numberOfYears?: number;
|
|
date?: string | null | undefined;
|
|
onChange?: Function;
|
|
}
|
|
export declare class Datepicker extends React.Component<DatepickerProps, any> {
|
|
static defaultProps: {
|
|
startYear: number;
|
|
numberOfYears: number;
|
|
date: string;
|
|
onChange: typeof noop;
|
|
proportion: number[];
|
|
};
|
|
constructor(props: any);
|
|
initialize(props: any): {
|
|
list: any[][];
|
|
value: number[];
|
|
};
|
|
getDateInputByString(param: any): any;
|
|
getDays(year: any, month: any): any[];
|
|
componentWillReceiveProps(nextProps: any): void;
|
|
getViewList(list: any): any;
|
|
handleChange: (index1: any, index2: any) => void;
|
|
getDateByIndex(list: any, value: any): any;
|
|
render(): JSX.Element;
|
|
}
|