update doc and fix copy node (#1399)

* update doc

* fix: copy node

* perf: adapt tip

* update doc and package

* remove code
This commit is contained in:
Archer
2024-05-09 14:09:24 +08:00
committed by GitHub
parent eb36b71ac3
commit 2155489be3
13 changed files with 91 additions and 76 deletions

View File

@@ -231,17 +231,20 @@ const MenuRender = React.memo(function MenuRender({
flowNodeType: node.data.flowNodeType,
inputs: node.data.inputs,
outputs: node.data.outputs,
showStatus: node.data.showStatus
showStatus: node.data.showStatus,
pluginId: node.data.pluginId
};
return state.concat(
storeNode2FlowNode({
item: {
flowNodeType: template.flowNodeType,
avatar: template.avatar,
name: template.name,
intro: template.intro,
nodeId: getNanoid(),
position: { x: node.position.x + 200, y: node.position.y + 50 },
flowNodeType: template.flowNodeType,
showStatus: template.showStatus,
pluginId: template.pluginId,
inputs: template.inputs,
outputs: template.outputs
}