chore(vue-flow): remove NodeProps generic from node label type

This commit is contained in:
bcakmakoglu
2022-06-10 21:11:10 +02:00
committed by Braks
parent 8fd5505eec
commit 7de3509bd2
+1 -2
View File
@@ -20,7 +20,7 @@ export interface Node<Data = ElementData> {
/** Unique node id */ /** Unique node id */
id: string id: string
/** A node label */ /** A node label */
label?: string | VNode | Component<NodeProps> label?: string | VNode | Component
/** initial node position x, y */ /** initial node position x, y */
position: XYPosition position: XYPosition
/** node type, can be a default type or a custom type */ /** node type, can be a default type or a custom type */
@@ -122,7 +122,6 @@ export interface NodeProps<Data = ElementData> {
sourcePosition?: Position sourcePosition?: Position
/** drag handle query selector */ /** drag handle query selector */
dragHandle?: string dragHandle?: string
/** node DOM-element */ /** node DOM-element */
nodeElement: HTMLDivElement nodeElement: HTMLDivElement
} }