variables.tsx 351 B

123456789
  1. import { IFlowNodeParameter } from '@/types/flow';
  2. import { convertKeysToCamelCase } from '@/utils/flow';
  3. import { Input } from 'antd';
  4. export const renderVariables = (data: IFlowNodeParameter) => {
  5. const attr = convertKeysToCamelCase(data.ui?.attr || {});
  6. return <Input {...attr} className='w-full' placeholder='please input' allowClear />;
  7. };