mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-29 17:45:33 +08:00

### What problem does this PR solve? Feat: Add FormDrawer to agent page. #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
22 lines
582 B
TypeScript
22 lines
582 B
TypeScript
import TopNItem from '@/components/top-n-item';
|
|
import { Form } from 'antd';
|
|
import { IOperatorForm } from '../../interface';
|
|
import DynamicInputVariable from '../components/dynamic-input-variable';
|
|
|
|
const GithubForm = ({ onValuesChange, form, node }: IOperatorForm) => {
|
|
return (
|
|
<Form
|
|
name="basic"
|
|
autoComplete="off"
|
|
form={form}
|
|
onValuesChange={onValuesChange}
|
|
layout={'vertical'}
|
|
>
|
|
<DynamicInputVariable node={node}></DynamicInputVariable>
|
|
<TopNItem initialValue={5}></TopNItem>
|
|
</Form>
|
|
);
|
|
};
|
|
|
|
export default GithubForm;
|