浏览代码

fix(demo-free-layout): group node cannot add from node-panel (#723)

xiamidaxia 5 月之前
父节点
当前提交
e4a768711f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      apps/demo-free-layout/src/nodes/group/index.tsx

+ 5 - 0
apps/demo-free-layout/src/nodes/group/index.tsx

@@ -38,6 +38,11 @@ export const GroupNodeRegistry: FlowNodeRegistry = {
       return !transform.bounds.contains(mousePos.x, mousePos.y);
     },
     expandable: false,
+    /**
+     * It cannot be added through the panel
+     * 不能通过面板添加
+     */
+    nodePanelVisible: false,
   },
   formMeta: {
     render: () => <></>,