examples: move current examples into examples/vite

This commit is contained in:
bcakmakoglu
2022-06-03 19:32:46 +02:00
committed by Braks
parent c6bda81c5e
commit 8dd7c79700
68 changed files with 94 additions and 91 deletions
@@ -0,0 +1,22 @@
<script lang="ts" setup>
import { VueFlow, useVueFlow } from '../../packages/vue-flow'
import { getElements } from './utils'
const { nodes, edges } = getElements(10, 10)
const { getNode, onPaneReady } = useVueFlow({
nodes,
edges,
})
onPaneReady((i) => {
i.fitView({
padding: 0.2,
})
console.log(i.getElements())
})
</script>
<template>
<VueFlow />
</template>