This commit is contained in:
lzp
2026-03-03 15:39:54 +08:00
parent 76afe1022f
commit b3b7ce2f2a
15 changed files with 141 additions and 46 deletions

View File

@@ -27,8 +27,10 @@
<zoom
:zoom="stateManager.zoom.value"
:step="0.1"
is-home
@add="(e) => flowManager.setZoom(e)"
@sub="(e) => flowManager.setZoom(e)"
@home="() => fitView({ maxZoom: 1 })"
/>
</template>
@@ -87,7 +89,6 @@
provide('nodeManager', nodeManager)
provide('nodeManager', nodeManager)
const { fitView } = useVueFlow()
const { layout } = useLayout()
const index = ref(0)