This commit is contained in:
2026-02-27 09:56:49 +08:00
parent b6af9d5044
commit a8a898d2df
9 changed files with 98 additions and 56 deletions

View File

@@ -6,6 +6,16 @@ export class StateManager {
nodes: any
edges: any
zoom: any
// 管理器
eventManager: any
flowManager: any
nodeManager: any
// 设置管理器
setManager(options) {
options.eventManager && (this.eventManager = options.eventManager)
options.flowManager && (this.flowManager = options.flowManager)
options.nodeManager && (this.nodeManager = options.nodeManager)
}
constructor(options) {
this.vueFlow = options.vueFlow
this.nodes = ref<any[]>([
@@ -87,4 +97,5 @@ export class StateManager {
this.zoom = ref(1)
}
}