UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

43 lines (42 loc) 1.51 kB
import { FormEvent } from 'react'; import { BaseComponentAttributes, BasicSizeType } from '../utils/types'; export interface InputProps extends BaseComponentAttributes { size?: BasicSizeType; type?: 'normal' | 'inverse'; value?: string | number; defaultValue?: string | number; placeholder?: string; keyboardType?: string; useOriginalRef?: boolean; isPassword?: boolean; htmlType?: string; state?: 'loading' | 'warning' | 'success' | 'error'; maxLength?: number; showLimitHint?: boolean; readOnly?: boolean; hasClear?: boolean; multiline?: boolean; disabled?: boolean; autoFocus?: boolean; focused?: boolean; align?: 'left' | 'right'; rows?: number; controlled?: boolean; highlightable?: boolean; addonAfter?: any; addonBefore?: any; innerAfter?: any; innerBefore?: any; confirmType?: 'done' | 'go' | 'next' | 'search' | 'send'; enableNative?: boolean; composition?: boolean; onFocus?: (e?: FormEvent<HTMLInputElement>) => void; onClear?: (e?: any) => void; onBlur?: (e?: FormEvent<HTMLInputElement>) => void; onChange?: (val: string, e?: FormEvent<HTMLInputElement>) => void; onConfirm?: (val: string, e: FormEvent<HTMLInputElement>) => void; onCompositionStart?: (e?: any) => void; onCompositionEnd?: (e?: any) => void; } declare const _default: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<any>>; export default _default;