feat(flow): Add setNodes and OnNodesChange / setEdges OnEdgesChange utils to useNode/Edge-state

* add option to apply default change handler
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 17a1b08ee0
commit 65b2e0d148
6 changed files with 46 additions and 17 deletions
@@ -27,8 +27,8 @@ const { store } = useVueFlow()
>
<slot :name="`edge-${edgeName}`" v-bind="edgeProps" />
</template>
<template #custom-connection-line="customConnectionLineProps">
<slot name="custom-connection-line" v-bind="customConnectionLineProps" />
<template #connection-line="customConnectionLineProps">
<slot name="connection-line" v-bind="customConnectionLineProps" />
</template>
</EdgeRenderer>
</div>