update(docs): Add all examples

This commit is contained in:
Braks
2021-11-06 08:54:35 +01:00
parent 61779638ac
commit e99dfc3dd2
54 changed files with 2582 additions and 285 deletions
+1
View File
@@ -128,6 +128,7 @@ const edgePos = computed(() =>
inactive: !store.elementsSelectable,
updating,
},
props.edge.class,
]"
@click="onEdgeClick"
@contextmenu="onEdgeContextMenu"
+1
View File
@@ -162,6 +162,7 @@ watch(
selected: props.selected,
selectable: selectable,
},
props.node.class,
]"
:style="{
zIndex: props.selected ? 10 : 3,
+1 -4
View File
@@ -128,10 +128,7 @@ const init = (opts: typeof props) => {
onBeforeUnmount(() => store?.$dispose())
watch(
() => props,
(val) => init(val),
)
watch(props, (val) => init(val))
init(props)
const nodeTypes = controlledComputed(