增加工具栏提示。

This commit is contained in:
dengqichen 2024-12-13 12:06:22 +08:00
parent 66a87a32c9
commit 71b9507c51

View File

@ -120,12 +120,12 @@ const WorkflowDesign: React.FC = () => {
};
// 注册节点类型
Graph.registerNode(nodeData.code, nodeConfig, true);
Graph.registerNode(nodeData.id, nodeConfig, true);
// 创建节点
const node = graphInstance.addNode({
id: nodeData.id,
shape: nodeData.code,
shape: nodeData.id,
position: nodeData.graph.position || { x: 100, y: 100 },
attrs: {
body: nodeData.graph.style,