support multi group for node

This commit is contained in:
codetypes committed 2025-03-19 11:02:32 +08:00
1 parent 9cdc4cee68
commit 7395935e6f
7 files changed
+86 -47

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ G6.registerNode(
!nodeDefs.has(data.name) ||
(data.path && !data.children?.length) ||
!checkTreeData(data) ||
(nodeDef.group && !usingGroups[nodeDef.group]) ||
(nodeDef.group && !nodeDef.group.some((g) => usingGroups[g])) ||
(usingVars &&
(data.input?.some((v) => v && usingVars?.[v] === undefined) ||
data.output?.some((v) => v && usingVars?.[v] === undefined) ||