Просмотр исходного кода

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

xiamidaxia 4 месяцев назад
Родитель
Сommit
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: () => <></>,