chore(docs): update edges example

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 88beaeca2b
commit 14f3abef1a
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
import { h, ref } from 'vue'
import { Background } from '@vue-flow/background'
import { MarkerType, VueFlow } from '@vue-flow/core'
import CustomEdge from './CustomEdge.vue'
import EdgeWithButton from './EdgeWithButton.vue'
import CustomEdge2 from './CustomEdge2.vue'
import CustomEdgeLabel from './CustomEdgeLabel.vue'
@@ -66,7 +66,7 @@ const edges = ref([
<template>
<VueFlow :nodes="nodes" :edges="edges" fit-view-on-init>
<template #edge-custom="props">
<CustomEdge v-bind="props" />
<EdgeWithButton v-bind="props" />
</template>
<template #edge-custom2="props">
+1 -1
View File
@@ -1,5 +1,5 @@
export { default as EdgesApp } from './App.vue?raw'
export { default as CustomEdge } from './CustomEdge.vue?raw'
export { default as EdgeWithButton } from './EdgeWithButton.vue?raw'
export { default as CustomEdge2 } from './CustomEdge2.vue?raw'
export { default as CustomEdgeLabel } from './CustomEdgeLabel.vue?raw'
export { default as EdgeCSS } from './style.css?inline'
+2 -2
View File
@@ -1,7 +1,7 @@
import { BasicApp, BasicCSS, BasicElements, BasicIcon } from './basic'
import { ColorPresets, ColorSelectorNode, CustomNodeApp, CustomNodeCSS, OutputNode } from './custom-node'
import { CustomConnectionLine, CustomConnectionLineApp } from './connectionline'
import { CustomEdge, CustomEdge2, CustomEdgeLabel, EdgeCSS, EdgesApp } from './edges'
import { CustomEdge2, CustomEdgeLabel, EdgeCSS, EdgeWithButton, EdgesApp } from './edges'
import { NestedApp } from './nested'
import { StressApp, StressCSS, StressUtils } from './stress'
import { UpdateEdgeApp } from './update-edge'
@@ -41,7 +41,7 @@ export const exampleImports = {
},
edges: {
'App.vue': EdgesApp,
'CustomEdge.vue': CustomEdge,
'CustomEdge.vue': EdgeWithButton,
'CustomEdge2.vue': CustomEdge2,
'CustomEdgeLabel.vue': CustomEdgeLabel,
'style.css': EdgeCSS,