mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Add the iteration Node #4242 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
27 lines
722 B
TypeScript
27 lines
722 B
TypeScript
import { Form, Input } from 'antd';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { IOperatorForm } from '../../interface';
|
|
import DynamicParameters from '../generate-form/dynamic-parameters';
|
|
|
|
const TemplateForm = ({ onValuesChange, form, node }: IOperatorForm) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Form
|
|
name="basic"
|
|
autoComplete="off"
|
|
form={form}
|
|
onValuesChange={onValuesChange}
|
|
layout={'vertical'}
|
|
>
|
|
<Form.Item name={['content']} label={t('flow.content')}>
|
|
<Input.TextArea rows={8} placeholder={t('flow.blank')} />
|
|
</Form.Item>
|
|
|
|
<DynamicParameters node={node}></DynamicParameters>
|
|
</Form>
|
|
);
|
|
};
|
|
|
|
export default TemplateForm;
|