UNPKG

antd-mobile

Version:

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

43 lines (42 loc) 1.1 kB
/// <reference types="react" /> import React from 'react'; interface InputItemProps { style?: any; /** web only */ prefixCls?: string; /** web only */ prefixListCls?: string; /** web only */ className?: string; type?: 'text' | 'bankCard' | 'phone' | 'password' | 'number' | 'idcard' | 'digit' | 'money'; editable?: boolean; disabled?: boolean; name?: string; value?: string; defaultValue?: string; placeholder?: string; clear?: boolean; maxLength?: number; onChange?: Function; onBlur?: Function; onFocus?: Function; extra?: React.ReactNode; onExtraClick?: Function; onExtraPress?: Function; error?: boolean; onErrorClick?: Function; onErrorPress?: Function; size?: 'large' | 'small'; labelNumber?: number; labelPosition?: 'left' | 'top'; textAlign?: 'left' | 'center'; /** rn only */ last?: boolean; children?: any; updatePlaceholder?: boolean; styles?: any; autoFocus?: boolean; focused?: boolean; locale?: object; } export default InputItemProps;