UNPKG

antd-mobile-alita

Version:

基于 React 的移动设计规范实现

17 lines (16 loc) 649 B
import * as React from 'react'; import { InputEventHandler } from './PropsType'; import { Omit } from '../_util/types'; export declare type HTMLInputProps = Omit<React.HTMLProps<HTMLInputElement>, 'onFocus' | 'onBlur'>; export interface InputProps extends HTMLInputProps { onFocus?: InputEventHandler; onBlur?: InputEventHandler; } declare class Input extends React.Component<InputProps, any> { inputRef: HTMLInputElement | null; onInputBlur: (e: React.FocusEvent<HTMLInputElement>) => void; onInputFocus: (e: React.FocusEvent<HTMLInputElement>) => void; focus: () => void; render(): JSX.Element; } export default Input;