@jdcfe/yep-react
Version:
一套移动端的React组件库
18 lines (17 loc) • 683 B
TypeScript
import * as React from 'react';
import { InputEventHandler } from './types';
import { Omit } from '../_utils/types';
export declare type HTMLInputElementProps = Omit<React.HTMLProps<HTMLInputElement>, 'onFocus' | 'onBlur'>;
export interface InputProps extends HTMLInputElementProps {
onFocus?: InputEventHandler;
onBlur?: InputEventHandler;
}
declare class Input extends React.PureComponent<InputProps> {
inputRef: HTMLInputElement;
onInputBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
onInputFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
focus: () => void;
onClick: (e: any) => void;
render(): JSX.Element;
}
export default Input;