1 | import * as React from 'react';
|
2 | import { TextAreaItemPropsType } from './PropsType';
|
3 | import { Omit } from '../_util/types';
|
4 | export declare type HTMLTextAreaProps = Omit<React.HTMLProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'defaultValue' | 'type' | 'title'>;
|
5 | export interface TextareaItemProps extends TextAreaItemPropsType, HTMLTextAreaProps {
|
6 | prefixCls?: string;
|
7 | prefixListCls?: string;
|
8 | }
|
9 | declare function noop(): void;
|
10 | export interface TextareaItemState {
|
11 | focus?: boolean;
|
12 | value?: string;
|
13 | }
|
14 | export default class TextareaItem extends React.Component<TextareaItemProps, TextareaItemState> {
|
15 | static defaultProps: {
|
16 | prefixCls: string;
|
17 | prefixListCls: string;
|
18 | autoHeight: boolean;
|
19 | editable: boolean;
|
20 | disabled: boolean;
|
21 | placeholder: string;
|
22 | clear: boolean;
|
23 | rows: number;
|
24 | onChange: typeof noop;
|
25 | onBlur: typeof noop;
|
26 | onFocus: typeof noop;
|
27 | onErrorClick: typeof noop;
|
28 | error: boolean;
|
29 | labelNumber: number;
|
30 | };
|
31 | textareaRef: any;
|
32 | private debounceTimeout;
|
33 | constructor(props: TextareaItemProps);
|
34 | focus: () => void;
|
35 | componentWillReceiveProps(nextProps: TextareaItemProps): void;
|
36 | componentDidMount(): void;
|
37 | componentDidUpdate(): void;
|
38 | reAlignHeight: () => void;
|
39 | componentWillUnmount(): void;
|
40 | onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
41 | onBlur: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
42 | onFocus: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
43 | onErrorClick: () => void;
|
44 | clearInput: () => void;
|
45 | render(): JSX.Element;
|
46 | }
|
47 | export {};
|