Feat: Add DynamicVariableForm with shadcn-ui. #3221 (#5336)

### What problem does this PR solve?

Feat: Add DynamicVariableForm with shadcn-ui. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-02-25 16:57:46 +08:00
committed by GitHub
parent 1a41b92f77
commit 93b2e80eb8
7 changed files with 629 additions and 65 deletions

View File

@ -1,5 +1,6 @@
import { RAGFlowNodeType } from '@/interfaces/database/flow';
import { FormInstance } from 'antd';
import { UseFormReturn } from 'react-hook-form';
export interface IOperatorForm {
onValuesChange?(changedValues: any, values: any): void;
@ -8,6 +9,12 @@ export interface IOperatorForm {
nodeId?: string;
}
export interface INextOperatorForm {
form: UseFormReturn;
node?: RAGFlowNodeType;
nodeId?: string;
}
export interface IGenerateParameter {
id?: string;
key: string;