UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

50 lines (49 loc) 1.68 kB
import { ReactNode } from 'react'; import TextArea, { TextAreaProps } from '../text-area/TextArea'; import { ResizeType } from '../text-area/enum'; import { IntlType } from './enum'; import { ModalProps } from '../modal/Modal'; export interface IntlFieldProps extends TextAreaProps { modalProps?: ModalProps; maxLengths?: object; type?: IntlType; } export default class IntlField extends TextArea<IntlFieldProps> { static displayName: string; static defaultProps: { rows: number; resize: ResizeType; type: IntlType; suffixCls: string; autoSize: boolean; clearButton: boolean; multiple: boolean; border: boolean; valueChangeAction: import("../text-field/enum").ValueChangeAction; waitType: import("../core/enum").WaitType; readOnly: boolean; disabled: boolean; noValidate: boolean; trim: import("../data-set/enum").FieldTrim; }; modal: any; locales?: object; loading?: boolean; constructor(props: any, context: any); openModal: () => Promise<void>; setLoading(loading: any): void; handleIntlListClose: () => Promise<void>; handleIntlListOk(): Promise<boolean | undefined>; handleIntlListCancel(): Promise<void>; handleKeyDown(e: any): void; handleBlur(e: any): void; storeLocales(): void; getOmitPropsKeys(): string[]; getOtherProps(): any; getWrapperClassNames(...args: any[]): string; getSuffix(): ReactNode; handleEnterDown(e: any): void; componentWillReceiveProps(nextProps: any, nextContext: any): void; componentWillUnmount(): void; renderWrapper(): ReactNode; }