diff --git a/components/collapse/collapse-panel.component.ts b/components/collapse/collapse-panel.component.ts index 3e19cba1b2..6c2de7db96 100644 --- a/components/collapse/collapse-panel.component.ts +++ b/components/collapse/collapse-panel.component.ts @@ -7,22 +7,26 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, + ElementRef, EventEmitter, Host, Input, + NgZone, OnDestroy, OnInit, Optional, Output, TemplateRef, + ViewChild, ViewEncapsulation } from '@angular/core'; -import { Subject } from 'rxjs'; -import { takeUntil } from 'rxjs/operators'; +import { fromEvent } from 'rxjs'; +import { filter, takeUntil } from 'rxjs/operators'; import { collapseMotion } from 'ng-zorro-antd/core/animation'; import { NzConfigKey, NzConfigService, WithConfig } from 'ng-zorro-antd/core/config'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; +import { NzDestroyService } from 'ng-zorro-antd/core/services'; import { BooleanInput } from 'ng-zorro-antd/core/types'; import { InputBoolean } from 'ng-zorro-antd/core/util'; @@ -37,7 +41,7 @@ const NZ_CONFIG_MODULE_NAME: NzConfigKey = 'collapsePanel'; encapsulation: ViewEncapsulation.None, animations: [collapseMotion], template: ` -