resut
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';
|
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';
|
||||||
|
import { OnReuseDestroy } from '@delon/abc/reuse-tab';
|
||||||
import { SFComponent, SFSchema } from '@delon/form';
|
import { SFComponent, SFSchema } from '@delon/form';
|
||||||
import { SearchDrawerService } from '@shared';
|
import { SearchDrawerService } from '@shared';
|
||||||
import { fromEvent, Subscription } from 'rxjs';
|
import { fromEvent, Subscription } from 'rxjs';
|
||||||
@ -24,7 +25,7 @@ import { debounceTime } from 'rxjs/operators';
|
|||||||
@Component({
|
@Component({
|
||||||
template: ''
|
template: ''
|
||||||
})
|
})
|
||||||
export class BasicTableComponent implements AfterViewInit, OnDestroy {
|
export class BasicTableComponent implements AfterViewInit, OnDestroy, OnReuseDestroy {
|
||||||
scrollY = '400px';
|
scrollY = '400px';
|
||||||
|
|
||||||
sf!: SFComponent;
|
sf!: SFComponent;
|
||||||
@ -35,6 +36,9 @@ export class BasicTableComponent implements AfterViewInit, OnDestroy {
|
|||||||
deviationHeight = 0;
|
deviationHeight = 0;
|
||||||
|
|
||||||
constructor(public searchDrawerService: SearchDrawerService) {}
|
constructor(public searchDrawerService: SearchDrawerService) {}
|
||||||
|
_onReuseDestroy(): void {
|
||||||
|
this.drawer.forEach(sub => sub.unsubscribe());
|
||||||
|
}
|
||||||
|
|
||||||
ngAfterViewInit(): void {
|
ngAfterViewInit(): void {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user