import * as React from "react"; import { ConfigConsumerProps } from "../Config"; interface ITimePickerProps { /** * 默认时间 * * @default new Date() **/ defaultValue?: Date; /** * 组件自定样式 * * @default '' **/ className?: string; /** * 格式化字符串,配置参考 dayjs 文档(https://github.com/iamkun/dayjs/blob/master/docs/en/API-reference.md#list-of-all-available-formats) * * @default 'HH:mm:ss' **/ format?: string; /** * 时间变化时候回调函数 * * @default function(e,str,date) **/ onChange?: (event: any, showStr: any, nextDate: any) => void; /** * 默认前缀 * * @default 'lg' **/ prefixCls?: string; /** * 展示分的间隔 * * @default 1 **/ mInterval?: number; /** * 展示秒的间隔 * * @default 1 **/ sInterval?: number; /** * 不可用 * * @default false **/ disabled: boolean; /** * 自定义样式 * * @default **/ style?: React.CSSProperties; } interface ITimePickerState { value: Date | undefined; open: boolean; inputval: string; } declare class TimePicker extends React.PureComponent { private inputel; private handerInputFocus; private prefixCls; static defaultProps: { defaultValue: Date; className: string; format: string; onChange: () => void; mInterval: number; sInterval: number; disabled: boolean; }; constructor(props: ITimePickerProps); componentWillReceiveProps(nextprops: any): void; onClickItem: (event: any, number: any, type: any) => void; onClickOutside: (e: any) => void; handerInputChange(e: any): void; handerBlur: (e: any) => void; handerInputClick: () => void; renderTimePicker: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default TimePicker;