UNPKG

frc-ui

Version:

React Web UI

26 lines (25 loc) 936 B
import React from 'react'; import Input, { InputProps } from 'antd/es/input'; import Search from './Search'; export interface InputState { value: any; showClear: boolean; focus: boolean; } declare class SInput extends React.Component<InputProps, InputState> { input: any; timer: any; clearing: boolean; static Search: typeof Search; static TextArea: typeof Input.TextArea; constructor(props: InputProps); componentWillReceiveProps(nextProps: InputProps): void; setValue(value: string, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement, MouseEvent>, callback?: () => void): void; handleClear: (ev: React.MouseEvent<HTMLElement, MouseEvent>) => void; handleChange: (ev: React.ChangeEvent<HTMLInputElement>) => void; onFocus: (ev: any) => void; onBlur: (ev: any) => any; saveInput: (node: any) => void; render(): JSX.Element; } export default SInput;