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
+1 -1
View File
@@ -5,7 +5,7 @@ import { MiniMap } from '@vue-flow/minimap'
const { nodes, addNodes, addEdges, onConnect, dimensions } = useVueFlow()
onConnect((params) => addEdges([params]))
onConnect((params) => addEdges(params))
function addRandomNode() {
const nodeId = (nodes.value.length + 1).toString()