first commit
This commit is contained in:
37
frontend/node_modules/rc-textarea/lib/interface.d.ts
generated
vendored
Normal file
37
frontend/node_modules/rc-textarea/lib/interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { BaseInputProps, CommonInputProps, InputProps } from 'rc-input/lib/interface';
|
||||
import type React from 'react';
|
||||
import type { CSSProperties } from 'react';
|
||||
export interface AutoSizeType {
|
||||
minRows?: number;
|
||||
maxRows?: number;
|
||||
}
|
||||
export interface ResizableTextAreaRef {
|
||||
textArea: HTMLTextAreaElement;
|
||||
}
|
||||
export type HTMLTextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
||||
export type TextAreaProps = Omit<HTMLTextareaProps, 'onResize' | 'value'> & {
|
||||
value?: HTMLTextareaProps['value'] | bigint;
|
||||
prefixCls?: string;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
autoSize?: boolean | AutoSizeType;
|
||||
onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
|
||||
onResize?: (size: {
|
||||
width: number;
|
||||
height: number;
|
||||
}) => void;
|
||||
classNames?: CommonInputProps['classNames'] & {
|
||||
textarea?: string;
|
||||
count?: string;
|
||||
};
|
||||
styles?: {
|
||||
textarea?: CSSProperties;
|
||||
count?: CSSProperties;
|
||||
};
|
||||
} & Pick<BaseInputProps, 'allowClear' | 'suffix'> & Pick<InputProps, 'showCount' | 'count' | 'onClear'>;
|
||||
export type TextAreaRef = {
|
||||
resizableTextArea: ResizableTextAreaRef;
|
||||
focus: () => void;
|
||||
blur: () => void;
|
||||
nativeElement: HTMLElement;
|
||||
};
|
||||
Reference in New Issue
Block a user