fix: label type in edges

This commit is contained in:
Braks
2021-10-20 23:09:36 +02:00
parent 2bfecf7148
commit ff7ee5c7fe
7 changed files with 36 additions and 23 deletions
+6 -1
View File
@@ -16,7 +16,12 @@ interface BezierEdgeProps<T = any> {
animated?: boolean
sourcePosition?: Position
targetPosition?: Position
label?: string | VNode
label?:
| string
| {
component: VNode
props?: any
}
labelStyle?: any
labelShowBg?: boolean
labelBgStyle?: any
+6 -1
View File
@@ -16,7 +16,12 @@ export interface EdgeSmoothStepProps<T = any> {
animated?: boolean
sourcePosition?: Position
targetPosition?: Position
label?: string | VNode
label?:
| string
| {
component: VNode
props?: any
}
labelStyle?: any
labelShowBg?: boolean
labelBgStyle?: any
+6 -1
View File
@@ -15,7 +15,12 @@ export interface EdgeStepProps<T = any> {
animated?: boolean
sourcePosition?: Position
targetPosition?: Position
label?: string | VNode
label?:
| string
| {
component: VNode
props?: any
}
labelStyle?: any
labelShowBg?: boolean
labelBgStyle?: any
+6 -1
View File
@@ -16,7 +16,12 @@ interface StraightEdgeProps<T = any> {
animated?: boolean
sourcePosition?: Position
targetPosition?: Position
label?: string | VNode
label?:
| string
| {
component: VNode
props?: any
}
labelStyle?: any
labelShowBg?: boolean
labelBgStyle?: any