chore(examples): update examples with new API for add/remove
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -20,7 +20,7 @@ const { onConnect, addEdges, setTransform, toObject } = useVueFlow({
|
||||
maxZoom: 4,
|
||||
})
|
||||
|
||||
onConnect((params) => addEdges([params]))
|
||||
onConnect(addEdges)
|
||||
|
||||
function updatePos() {
|
||||
return elements.value.forEach((el) => {
|
||||
|
||||
@@ -50,7 +50,7 @@ export default defineComponent({
|
||||
this.instance = instance as any
|
||||
},
|
||||
onConnect(params: FlowEvents['connect']) {
|
||||
this.instance?.addEdges([params])
|
||||
this.instance?.addEdges(params)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user