Browse Source

Merge pull request #15108 from abpframework/minifix

Add missing 'this' keyword on tree.component
pull/15109/head
Muhammed Altuğ 4 years ago
committed by GitHub
parent
commit
f92e8fa9bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      npm/ng-packs/packages/components/tree/src/lib/components/tree.component.ts

10
npm/ng-packs/packages/components/tree/src/lib/components/tree.component.ts

@ -8,7 +8,7 @@ import {
Output, Output,
TemplateRef, TemplateRef,
ViewEncapsulation, ViewEncapsulation,
OnInit OnInit,
} from '@angular/core'; } from '@angular/core';
import { NzFormatBeforeDropEvent, NzFormatEmitEvent } from 'ng-zorro-antd/tree'; import { NzFormatBeforeDropEvent, NzFormatEmitEvent } from 'ng-zorro-antd/tree';
import { of } from 'rxjs'; import { of } from 'rxjs';
@ -34,11 +34,11 @@ export class TreeComponent implements OnInit {
constructor( constructor(
private lazyLoadService: LazyLoadService, private lazyLoadService: LazyLoadService,
subscriptionService: SubscriptionService, private subscriptionService: SubscriptionService,
@Optional() @Optional()
@Inject(DISABLE_TREE_STYLE_LOADING_TOKEN) @Inject(DISABLE_TREE_STYLE_LOADING_TOKEN)
private disableTreeStyleLoading: boolean | undefined, private disableTreeStyleLoading: boolean | undefined,
) { } ) {}
@ContentChild('menu') menu: TemplateRef<any>; @ContentChild('menu') menu: TemplateRef<any>;
@ContentChild(TreeNodeTemplateDirective) customNodeTemplate: TreeNodeTemplateDirective; @ContentChild(TreeNodeTemplateDirective) customNodeTemplate: TreeNodeTemplateDirective;
@ -64,7 +64,7 @@ export class TreeComponent implements OnInit {
}; };
ngOnInit() { ngOnInit() {
this.loadStyle() this.loadStyle();
} }
private loadStyle() { private loadStyle() {
@ -76,7 +76,7 @@ export class TreeComponent implements OnInit {
); );
this.subscriptionService.addOne(loaded$); this.subscriptionService.addOne(loaded$);
} }
onSelectedNodeChange(node) { onSelectedNodeChange(node) {
this.selectedNode = node.origin.entity; this.selectedNode = node.origin.entity;
if (this.changeCheckboxWithNode) { if (this.changeCheckboxWithNode) {

Loading…
Cancel
Save