fix(ui): antd nested form bugs

This commit is contained in:
Fu Diwei
2025-01-06 19:10:29 +08:00
parent 4ba7237326
commit 87e1749553
60 changed files with 1694 additions and 1358 deletions

View File

@@ -9,14 +9,13 @@ import {
} from "@ant-design/icons";
import { Dropdown } from "antd";
import { type WorkflowNode, WorkflowNodeType, newNode } from "@/domain/workflow";
import { WorkflowNodeType, newNode } from "@/domain/workflow";
import { useZustandShallowSelector } from "@/hooks";
import { useWorkflowStore } from "@/stores/workflow";
export type AddNodeProps = {
node: WorkflowNode;
disabled?: boolean;
};
import { type SharedNodeProps } from "./_SharedNode";
export type AddNodeProps = SharedNodeProps;
const AddNode = ({ node, disabled }: AddNodeProps) => {
const { t } = useTranslation();