* 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
24 lines
542 B
Vue
24 lines
542 B
Vue
<script setup>
|
|
import { ref } from 'vue'
|
|
import { VueFlow } from '@vue-flow/core'
|
|
import ResizableNode from './ResizableNode.vue'
|
|
|
|
const nodes = ref([
|
|
{
|
|
id: '1',
|
|
type: 'resizable',
|
|
data: { label: 'NodeResizer' },
|
|
position: { x: 0, y: 0 },
|
|
style: { background: '#fff', border: '2px solid black' },
|
|
},
|
|
])
|
|
</script>
|
|
|
|
<template>
|
|
<VueFlow :nodes="nodes" fit-view-on-init>
|
|
<template #node-resizable="resizableNodeProps">
|
|
<ResizableNode :data="resizableNodeProps.data" />
|
|
</template>
|
|
</VueFlow>
|
|
</template>
|