import React from "react"; import { Moment } from "moment"; import { ControlledProps } from "../form/controlled"; import { TimeDisabledProps } from "../timepicker/TimeProps"; import { showTimeType } from "../calendar/DateProps"; import { CommonDatePickerProps } from "./DatePickerProps"; export interface DatePickerProps extends CommonDatePickerProps, ControlledProps { /** * 是否开启时间选择 */ showTime?: showTimeType; /** * 设置不可选日期,返回: * * - `true` 可选 * - `false` 不可选 */ disabledDate?: (date: Moment) => boolean; /** * 设置不可选时间 */ disabledTime?: (date: Moment) => TimeDisabledProps; } export declare const DatePicker: React.FunctionComponent> & { RangePicker: React.FunctionComponent> & { defaultLabelAlign: string; }; MonthPicker: React.FunctionComponent> & { defaultLabelAlign: string; }; QuarterPicker: React.FunctionComponent> & { defaultLabelAlign: string; }; defaultLabelAlign: string; };