Angular 17 (#2422)
This commit is contained in:
parent
43f91b123f
commit
b8f12116f4
14 changed files with 2689 additions and 2212 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import {CdkVirtualScrollViewport} from '@angular/cdk/scrolling';
|
||||
import {CommonModule, DOCUMENT} from '@angular/common';
|
||||
import {
|
||||
afterNextRender,
|
||||
AfterRenderPhase, AfterViewInit,
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
|
|
@ -95,7 +96,6 @@ export class CardDetailLayoutComponent implements OnInit, OnChanges {
|
|||
@ContentChild('cardItem') itemTemplate!: TemplateRef<any>;
|
||||
@ContentChild('noData') noDataTemplate!: TemplateRef<any>;
|
||||
@ViewChild('.jump-bar') jumpBar!: ElementRef<HTMLDivElement>;
|
||||
@ViewChild('scroller') scroller!: CdkVirtualScrollViewport;
|
||||
|
||||
@ViewChild(VirtualScrollerComponent) private virtualScroller!: VirtualScrollerComponent;
|
||||
|
||||
|
|
@ -110,6 +110,7 @@ export class CardDetailLayoutComponent implements OnInit, OnChanges {
|
|||
|
||||
constructor(@Inject(DOCUMENT) private document: Document) {}
|
||||
|
||||
|
||||
@HostListener('window:resize', ['$event'])
|
||||
@HostListener('window:orientationchange', ['$event'])
|
||||
resizeJumpBar() {
|
||||
|
|
@ -139,8 +140,6 @@ export class CardDetailLayoutComponent implements OnInit, OnChanges {
|
|||
this.virtualScroller.refresh();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue