chore(docs): update example styles (#1469)

* 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
This commit is contained in:
Braks
2024-06-10 23:36:55 +02:00
committed by braks
parent 5dc8711a6b
commit d71de0a92d
34 changed files with 528 additions and 244 deletions

View File

@@ -7,7 +7,7 @@ const nodes = ref([
{
id: '1',
type: 'resizable',
label: 'NodeResizer',
data: { label: 'NodeResizer' },
position: { x: 0, y: 0 },
style: { background: '#fff', border: '2px solid black' },
},
@@ -17,7 +17,7 @@ const nodes = ref([
<template>
<VueFlow :nodes="nodes" fit-view-on-init>
<template #node-resizable="resizableNodeProps">
<ResizableNode :label="resizableNodeProps.label" />
<ResizableNode :data="resizableNodeProps.data" />
</template>
</VueFlow>
</template>

View File

@@ -2,13 +2,13 @@
import { Handle, Position } from '@vue-flow/core'
import { NodeResizer } from '@vue-flow/node-resizer'
defineProps(['label'])
defineProps(['data'])
</script>
<template>
<NodeResizer min-width="100" min-height="30" />
<Handle type="target" :position="Position.Left" />
<div style="padding: 10px">{{ label }}</div>
<div style="padding: 10px">{{ data.label }}</div>
<Handle type="source" :position="Position.Right" />
</template>