chore(docs): update examples with new API for add/remove

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-05-11 15:33:42 +02:00
committed by Braks
parent e464d7b8a5
commit 945af78c8b
8 changed files with 11 additions and 9 deletions
+3 -1
View File
@@ -32,7 +32,7 @@ onNodeDragStop((e) => console.log('drag stop', e))
* onConnect is called when a new connection is created.
* You can add additional properties to your new edge (like a type or label) or block the creation altogether
*/
onConnect((params) => addEdges([params]))
onConnect((params) => addEdges(params))
const dark = ref(false)
@@ -73,7 +73,9 @@ function toggleClass() {
<template>
<VueFlow v-model="elements" :class="{ dark }" class="basicflow" :default-viewport="{ zoom: 1.5 }" :min-zoom="0.2" :max-zoom="4">
<Background :pattern-color="dark ? '#FFFFFB' : '#aaa'" gap="8" />
<MiniMap />
<Controls />
<Panel :position="PanelPosition.TopRight" class="controls">