* chore(docs): update basic example styles * chore(docs): update confirm delete example styles * chore(docs): update dnd example styles * chore(docs): update hidden example * chore(docs): update update node example * chore(docs): update node toolbar example styles * chore(docs): update transition example styles * chore(docs): cleanup basic example els * chore(docs): cleanup examples
19 lines
432 B
Vue
19 lines
432 B
Vue
<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', data: { label: 'Node 1' }, position: { x: 100, y: 100 } }])
|
|
|
|
const edges = ref([])
|
|
</script>
|
|
|
|
<template>
|
|
<VueFlow :nodes="nodes" :edges="edges">
|
|
<SaveRestoreControls />
|
|
|
|
<Background />
|
|
</VueFlow>
|
|
</template>
|