@jdcfe/yep-react
Version:
一套移动端的React组件库
43 lines (42 loc) • 1.31 kB
TypeScript
import * as React from 'react';
import Input from './Input';
import { InputItemPropsType } from './types';
declare type State = {
value?: string | number;
placeholder?: string;
focus?: boolean;
};
declare class InputItem extends React.PureComponent<InputItemPropsType, State> {
inputRef: Input | null;
debounceTimeout: any;
constructor(props: InputItemPropsType);
static defaultProps: {
prefixCls: string;
prefixListCls: string;
style: {};
type: string;
editable: boolean;
disabled: boolean;
placeholder: string;
clear: boolean;
onChange: () => null;
onBlur: () => null;
onFocus: () => null;
extra: string;
onExtraClick: () => null;
error: boolean;
onErrorClick: () => null;
labelNumber: number;
updatePlaceholder: boolean;
};
componentWillReceiveProps(nextProps: any): void;
componentWillUnmount(): void;
handleOnChange: (value: string, isMutated?: boolean) => void;
onInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onInputFocus: (value: string) => void;
onInputBlur: (value: string) => void;
clearInput: () => void;
focus: () => void;
render(): JSX.Element;
}
export default InputItem;