import React from 'react'; import { type ClassValue } from '../../utils/cx'; /** * TextArea 多行文本输入框。 */ export interface TextareaControlSchema { /** * 最大行数 */ maxRows?: number; /** * 最小行数 */ minRows?: number; /** * 是否只读 */ readOnly?: boolean; } export interface TextAreaProps { placeholder?: string; minRows?: number; maxRows?: number; readOnly?: boolean; trimContents?: boolean; value?: string; disabled?: boolean; quickStatic?: boolean; quickStaticStr?: boolean; staticPlaceholder?: string; name?: string; className?: ClassValue; /** * 状态 */ status?: 'error' | 'warning'; onChange?: (val: any) => void; onBlur?: (val: any) => void; onFocus?: (val: any) => void; } declare class TextAreaControl extends React.Component { static defaultProps: Partial; state: { value: string; }; componentDidUpdate(prevProps: TextAreaProps): void; input?: HTMLInputElement; inputRef: (ref: any) => HTMLInputElement; focus(): void; handleChange(e: any): void; handleFocus(e: React.FocusEvent): void; handleBlur(e: React.FocusEvent): void; render(): JSX.Element; } export default TextAreaControl;