refactor(nodes, edges): Add slots to node/edge labels

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 518d12d381
commit d9e0675385
7 changed files with 31 additions and 20 deletions
+6 -1
View File
@@ -10,7 +10,12 @@ export type FlowElement<N = any, E = any> = GraphNode<N> | GraphEdge<E>
export type FlowElements<N = any, E = any> = FlowElement<N, E>[]
export interface Element<Data = any> {
id: string
label?: string
label?:
| string
| {
props?: any
component: any
}
type?: string
data?: Data
class?: string