Skip to content

Commit

Permalink
fix: nz-tree drop indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 4, 2022
1 parent d44ac45 commit a856713
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
40 changes: 40 additions & 0 deletions patches/ng-zorro-antd+13.3.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/node_modules/ng-zorro-antd/fesm2015/ng-zorro-antd-tree.mjs b/node_modules/ng-zorro-antd/fesm2015/ng-zorro-antd-tree.mjs
index 03bd5c6..bb0c608 100644
--- a/node_modules/ng-zorro-antd/fesm2015/ng-zorro-antd-tree.mjs
+++ b/node_modules/ng-zorro-antd/fesm2015/ng-zorro-antd-tree.mjs
@@ -374,12 +374,12 @@ NzTreeNodeTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
</span>
</span>
<span class="ant-tree-title" [innerHTML]="title | nzHighlight: matchedValue:'i':'font-highlight'"></span>
- <nz-tree-drop-indicator
- *ngIf="showIndicator"
- [dropPosition]="dragPosition"
- [level]="context.level"
- ></nz-tree-drop-indicator>
</ng-container>
+ <nz-tree-drop-indicator
+ *ngIf="showIndicator"
+ [dropPosition]="dragPosition"
+ [level]="context.level"
+ ></nz-tree-drop-indicator>
`, isInline: true, components: [{ type: NzTreeDropIndicatorComponent, selector: "nz-tree-drop-indicator", inputs: ["dropPosition", "level", "direction"], exportAs: ["NzTreeDropIndicator"] }], directives: [{ type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], pipes: { "nzHighlight": i4.NzHighlightPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NzTreeNodeTitleComponent, decorators: [{
type: Component,
@@ -409,12 +409,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
</span>
</span>
<span class="ant-tree-title" [innerHTML]="title | nzHighlight: matchedValue:'i':'font-highlight'"></span>
- <nz-tree-drop-indicator
- *ngIf="showIndicator"
- [dropPosition]="dragPosition"
- [level]="context.level"
- ></nz-tree-drop-indicator>
</ng-container>
+ <nz-tree-drop-indicator
+ *ngIf="showIndicator"
+ [dropPosition]="dragPosition"
+ [level]="context.level"
+ ></nz-tree-drop-indicator>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
preserveWhitespaces: false,
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,5 @@
</span>
</div>
</div>
<!-- <div *ngIf="node.component?.showIndicator" class="ant-tree-drop-indicator ng-star-inserted"
style="bottom: -3px; left: 4px; right: 0px;"></div> -->
</ng-template>
</div>

0 comments on commit a856713

Please sign in to comment.