增加工具栏提示。
This commit is contained in:
parent
66a87a32c9
commit
71b9507c51
@ -120,12 +120,12 @@ const WorkflowDesign: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 注册节点类型
|
// 注册节点类型
|
||||||
Graph.registerNode(nodeData.code, nodeConfig, true);
|
Graph.registerNode(nodeData.id, nodeConfig, true);
|
||||||
|
|
||||||
// 创建节点
|
// 创建节点
|
||||||
const node = graphInstance.addNode({
|
const node = graphInstance.addNode({
|
||||||
id: nodeData.id,
|
id: nodeData.id,
|
||||||
shape: nodeData.code,
|
shape: nodeData.id,
|
||||||
position: nodeData.graph.position || { x: 100, y: 100 },
|
position: nodeData.graph.position || { x: 100, y: 100 },
|
||||||
attrs: {
|
attrs: {
|
||||||
body: nodeData.graph.style,
|
body: nodeData.graph.style,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user