import React, { PropsWithChildren } from 'react'; export interface InputItemPropsType extends PropsWithChildren { type?: 'text' | 'bankCard' | 'phone' | 'number' | 'digit' | 'money'; editable?: boolean; disabled?: boolean; name?: string; value?: string; defaultValue?: string; placeholder?: string; clear?: boolean; maxLength?: number; extra?: React.ReactNode; error?: string; textAlign?: 'left' | 'center' | 'right'; data?: any; hidebottomline?: boolean; isSearch?: boolean; title?: string; titleWidth?: string; textStyle?: React.CSSProperties; inputStyle?: React.CSSProperties; desc?: string; isTitleUp?: boolean; leftTitleIcon?: string; onChange?: (value: string) => any; onFocus?: InputEventHandler; onBlur?: InputEventHandler; onSearchItemClick?: (item: any, index: number) => any; onErrorClick?: React.MouseEventHandler; onExtraClick?: React.MouseEventHandler; showTitleIcon?: boolean; titleIconSrc?: string; titleIconFunc?: () => void; isReg?: boolean; inputAriaLabel?: string; onEnterPress?: (e: any) => void; } export type InputEventHandler = (value?: string) => void; export type InputKey = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '.';