feat(docs): Add additional demo

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 2915c802e7
commit e27ab86249
4 changed files with 122 additions and 3 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import {
Controls,
MiniMap,
GraphNode,
StringFunc,
MiniMapNodeFunc,
useVueFlow
} from "@braks/vue-flow";
import { templateRef } from "@vueuse/core";
@@ -52,7 +52,7 @@ const color = ref<Colors>({
const onChange = ({ color: c, val }: { color: keyof Colors; val: number }) => (color.value[c] = Number(val));
const nodeColor: StringFunc = (node: GraphNode) => {
const nodeColor: MiniMapNodeFunc = (node: GraphNode) => {
switch (node.id) {
case "1":
return "green";