mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-03 09:34:04 +00:00
11 lines
356 B
TypeScript
11 lines
356 B
TypeScript
import { IFlowNodeParameter } from '@/types/flow';
|
|
import { convertKeysToCamelCase } from '@/utils/flow';
|
|
import { Input } from 'antd';
|
|
|
|
const { TextArea } = Input;
|
|
|
|
export const renderTextArea = (data: IFlowNodeParameter) => {
|
|
const attr = convertKeysToCamelCase(data.ui?.attr || {});
|
|
return <TextArea className='nowheel mb-3 nodrag' {...attr} />;
|
|
};
|