fix: typings for UseVueFlow

Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
bcakmakoglu
2022-02-21 20:25:17 +01:00
committed by Braks
parent f44784b1d0
commit 2731d0bf5e
6 changed files with 18 additions and 12 deletions
-2
View File
@@ -40,12 +40,10 @@ const {
applyEdgeChanges,
nodes: storedNodes,
edges: storedEdges,
state,
} = useVueFlow(props)
useHooks(hooks.value, emit)
const { modelValue, nodes, edges } = useVModels(props, emit)
const foo = store.nodes
if (applyDefault.value) {
onNodesChange(applyNodeChanges)
onEdgesChange(applyEdgeChanges)
+5 -1
View File
@@ -49,7 +49,11 @@ export default (
})
}
watch([() => props.maxZoom], (v) => isDef(v) && store.setMaxZoom(v), { immediate: isDef(props.maxZoom) })
watch(
() => props.maxZoom,
(v) => isDef(v) && store.setMaxZoom(v),
{ immediate: isDef(props.maxZoom) },
)
watch(
() => props.minZoom,
(v) => isDef(v) && store.setMinZoom(v),