@matechat/core
Version:
前端智能化场景解决方案UI库,轻松构建你的AI应用。
18 lines (17 loc) • 486 B
TypeScript
/**
* Textarea height calculation utilities
* Based on DevUI Vue and react-component
*/
interface TextareaHeight {
height: string;
minHeight?: string;
overflowY?: string;
}
/**
* 计算 textarea 的高度
* @param targetElement - 目标 textarea 元素
* @param minRows - 最小行数
* @param maxRows - 最大行数
*/
export declare function computeTextareaHeight(targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: number): TextareaHeight;
export {};