fix(types): node/edge label type

* add Component to label type
This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 88f808711a
commit 440ad3c681
5 changed files with 6 additions and 15 deletions
+1 -6
View File
@@ -29,12 +29,7 @@ const initialEdges: Edge[] = [
id: 'e5-6',
source: '5',
target: '6',
label: {
component: markRaw(CustomLabel),
props: {
label: 'custom label text',
},
},
label: h(CustomLabel, { label: 'custom label text' }, {}),
labelStyle: { fill: 'red', fontWeight: 700 },
markerEnd: {
type: MarkerType.Arrow,