chore(docs): cleanup examples

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 034885062c
commit 24c2091c7a
13 changed files with 141 additions and 159 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
<script setup>
import { Position, VueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import { Position, VueFlow } from '@vue-flow/core'
import ToolbarNode from './ToolbarNode.vue'
const defaultNodeStyle = {
@@ -10,7 +10,7 @@ const defaultNodeStyle = {
borderRadius: '99px',
}
const elements = ref([
const nodes = ref([
{
id: '1',
type: 'toolbar',
@@ -55,7 +55,7 @@ const elements = ref([
</script>
<template>
<VueFlow v-model="elements" fit-view-on-init class="vue-flow-basic-example">
<VueFlow :nodes="nodes" fit-view-on-init class="vue-flow-basic-example">
<template #node-toolbar="nodeProps">
<ToolbarNode :data="nodeProps.data" :label="nodeProps.label" />
</template>