Skip to content

Commit 342841c

Browse files
authored
fix(module:graph): bring back the disappered arrows of edge (#8493)
* fix(module:graph): bring back the disappered arrows of edge * fix(module:graph): bring back the disappered arrows of edge
1 parent 2000294 commit 342841c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

components/graph/graph-defs.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ import { Component } from '@angular/core';
2323
`,
2424
standalone: true
2525
})
26-
export class NzGraphDefsComponent {
27-
constructor() {}
28-
}
26+
export class NzGraphDefsComponent {}

components/graph/graph.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { InputBoolean } from 'ng-zorro-antd/core/util';
3838
import { calculateTransform } from './core/utils';
3939
import { NzGraphData } from './data-source/graph-data-source';
4040
import { NzGraph } from './graph';
41+
import { NzGraphDefsComponent } from './graph-defs.component';
4142
import { NzGraphEdgeComponent } from './graph-edge.component';
4243
import { NzGraphEdgeDirective } from './graph-edge.directive';
4344
import { NzGraphGroupNodeDirective } from './graph-group-node.directive';
@@ -126,7 +127,7 @@ export function isDataSource(value: NzSafeAny): value is NzGraphData {
126127
'[class.nz-graph]': 'true',
127128
'[class.nz-graph-auto-size]': 'nzAutoSize'
128129
},
129-
imports: [NgTemplateOutlet, NzGraphEdgeComponent, NzGraphNodeComponent],
130+
imports: [NgTemplateOutlet, NzGraphEdgeComponent, NzGraphNodeComponent, NzGraphDefsComponent],
130131
standalone: true
131132
})
132133
export class NzGraphComponent implements OnInit, OnChanges, AfterContentChecked, OnDestroy, NzGraph {

0 commit comments

Comments
 (0)