feat(nodes): Add nodeElement as Prop to Nodes

Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
bcakmakoglu
2022-03-07 12:57:44 +01:00
parent 0c5e4a47aa
commit 2bb3ecbe73
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -168,6 +168,7 @@ export default {
>
<slot
v-bind="{
nodeElement,
connectable: props.connectable,
...removeEmpty(node),
}"
@@ -175,6 +176,7 @@ export default {
<component
:is="props.component ?? node.type"
v-bind="{
nodeElement,
connectable: props.connectable,
...removeEmpty(node),
}"
+1
View File
@@ -64,4 +64,5 @@ export interface NodeProps<T = any> {
parentNode?: any
isParent?: boolean
children?: Node<T>[]
nodeElement: HTMLDivElement
}