docs: move examples dir out of components dir
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<script setup>
|
||||
import { VueFlow } from '@vue-flow/core'
|
||||
import { ref } from 'vue'
|
||||
import ResizableNode from './ResizableNode.vue'
|
||||
|
||||
const elements = ref([
|
||||
{
|
||||
id: '1',
|
||||
type: 'resizable',
|
||||
label: 'NodeResizer',
|
||||
position: { x: 0, y: 0 },
|
||||
style: { background: '#fff', border: '2px solid black' },
|
||||
},
|
||||
])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VueFlow v-model="elements" fit-view-on-init>
|
||||
<template #node-resizable="resizableNodeProps">
|
||||
<ResizableNode :label="resizableNodeProps.label" />
|
||||
</template>
|
||||
</VueFlow>
|
||||
</template>
|
||||
Reference in New Issue
Block a user