chore(vue-flow): remove NodeProps generic from node label type
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user