import React from 'react'; import { Option } from '../select2/select'; export interface InputBoxProps extends Omit, 'prefix' | 'onChange'> { size?: any; value?: string | undefined; readOnly?: boolean; quickEdit?: boolean; quickStatic?: boolean; quickStaticStr?: boolean; staticPlaceholder?: string; onChange?: (value: React.ChangeEvent) => void; onClear?: (e: React.MouseEvent) => void; clearable?: boolean; disabled?: boolean; hasError?: boolean; placeholder?: any; container?: any; /** * 有前缀图标 */ prefix?: JSX.Element; children?: JSX.Element; /** * 有前缀图标 */ suffix?: JSX.Element | null; prefixCls?: string; className?: string; autoComplete?: any; /** * input 类型 password */ type?: string; } export interface ResultBoxProps extends Omit { onChange?: (value: string) => void; onResultClick?: (e: React.MouseEvent) => void; result?: Array | any; renderLabel: (value: any) => JSX.Element | string; renderValue?: (item: Option) => JSX.Element; onResultChange?: (value: Array) => void; onClear?: (e: React.MouseEvent) => void; allowInput?: boolean; inputPlaceholder: string; hasDropDownArrow?: boolean; borderMode?: any; options?: any; delimiter?: string; valueField?: string; multiple?: boolean; } export declare class ResultBox extends React.Component { static contextType?: React.Context | undefined; static defaultProps: Pick; state: { isFocused: boolean; }; inputRef: React.RefObject; focus(): void; blur(): void; clearValue(e: React.MouseEvent): void; handleFocus(e: any): void; handleBlur(e: any): void; removeItem(e: React.MouseEvent): void; handleChange(e: React.ChangeEvent): void; render(): JSX.Element; } declare const _default: any; export default _default;