chore(docs): update save and restore example

This commit is contained in:
braks
2024-06-09 14:52:26 +02:00
parent 6ee31708ab
commit 5e953bdb44
8 changed files with 77 additions and 27 deletions
+7 -2
View File
@@ -1,13 +1,18 @@
<script lang="ts" setup>
<script setup>
import { ref } from 'vue'
import { VueFlow } from '@vue-flow/core'
import { Background } from '@vue-flow/background'
import SaveRestoreControls from './Controls.vue'
const nodes = ref([{ id: '1', label: 'Node 1', position: { x: 100, y: 100 } }])
const edges = ref([])
</script>
<template>
<VueFlow :nodes="nodes">
<VueFlow :nodes="nodes" :edges="edges">
<SaveRestoreControls />
<Background />
</VueFlow>
</template>