mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Enables the message operator form to reference the data defined by the begin operator #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
25 lines
613 B
TypeScript
25 lines
613 B
TypeScript
import { Form } from 'antd';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { IOperatorForm } from '../../interface';
|
|
import { PromptEditor } from '../components/prompt-editor';
|
|
|
|
const TemplateForm = ({ onValuesChange, form }: IOperatorForm) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<Form
|
|
name="basic"
|
|
autoComplete="off"
|
|
form={form}
|
|
onValuesChange={onValuesChange}
|
|
layout={'vertical'}
|
|
>
|
|
<Form.Item name={['content']} label={t('flow.content')}>
|
|
<PromptEditor></PromptEditor>
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
};
|
|
|
|
export default TemplateForm;
|