docs: add node resizer example

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-13 15:49:20 +01:00
committed by Braks
parent 1739797cfe
commit f31f0073f7
12 changed files with 63 additions and 0 deletions
@@ -0,0 +1,23 @@
<script lang="ts" 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>