mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: customize edge arrow #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -28,13 +28,15 @@ const FormMap = {
|
||||
[Operator.RewriteQuestion]: RewriteQuestionForm,
|
||||
};
|
||||
|
||||
const EmptyContent = () => <div>empty</div>;
|
||||
|
||||
const FlowDrawer = ({
|
||||
visible,
|
||||
hideModal,
|
||||
node,
|
||||
}: IModalProps<any> & IProps) => {
|
||||
const operatorName: Operator = node?.data.label;
|
||||
const OperatorForm = FormMap[operatorName];
|
||||
const OperatorForm = FormMap[operatorName] ?? EmptyContent;
|
||||
const [form] = Form.useForm();
|
||||
const { name, handleNameBlur, handleNameChange } =
|
||||
useHandleNodeNameChange(node);
|
||||
|
||||
Reference in New Issue
Block a user