feat(nodes): Add nodeElement as Prop to Nodes
Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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),
|
||||
}"
|
||||
|
||||
@@ -64,4 +64,5 @@ export interface NodeProps<T = any> {
|
||||
parentNode?: any
|
||||
isParent?: boolean
|
||||
children?: Node<T>[]
|
||||
nodeElement: HTMLDivElement
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user