# 이슈처리 243
This commit is contained in:
parent
59774abb1f
commit
e87b27a4fa
|
@ -16,7 +16,9 @@
|
|||
class="left-side-tabs-contents"
|
||||
[style.display]="MainMenu.Chat === currentTabLable ? 'block' : 'none'"
|
||||
>
|
||||
<app-layout-chat-left-sidenav-chat></app-layout-chat-left-sidenav-chat>
|
||||
<app-layout-chat-left-sidenav-chat
|
||||
[isVisible]="currentTabLable === MainMenu.Chat"
|
||||
></app-layout-chat-left-sidenav-chat>
|
||||
</div>
|
||||
<div
|
||||
#tabs
|
||||
|
|
|
@ -37,6 +37,7 @@ import { FormGroup, FormBuilder } from '@angular/forms';
|
|||
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
||||
import { PerfectScrollbarDirective } from 'ngx-perfect-scrollbar';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { VirtualScrollerComponent } from 'ngx-virtual-scroller';
|
||||
|
||||
@Component({
|
||||
selector: 'app-layout-chat-left-sidenav-chat',
|
||||
|
@ -48,8 +49,8 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||
@Input()
|
||||
isVisible = true;
|
||||
|
||||
@ViewChild('cvsvChatList', { static: false })
|
||||
cvsvChatList: CdkVirtualScrollViewport;
|
||||
@ViewChild('vsChatRoomList', { static: false })
|
||||
private vsChatRoomList: VirtualScrollerComponent;
|
||||
|
||||
@ViewChild(PerfectScrollbarDirective, { static: false })
|
||||
psDirectiveRef?: PerfectScrollbarDirective;
|
||||
|
@ -192,14 +193,18 @@ export class ChatComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||
|
||||
ngAfterViewChecked(): void {
|
||||
if (
|
||||
!!this.cvsvChatList &&
|
||||
!!this.vsChatRoomList &&
|
||||
!!this.roomList &&
|
||||
this.roomList.length > 0 &&
|
||||
!this.isInitList &&
|
||||
this.isVisible
|
||||
) {
|
||||
this.isInitList = true;
|
||||
this.cvsvChatList.checkViewportSize();
|
||||
this.vsChatRoomList.refresh();
|
||||
|
||||
if (!!this.psDirectiveRef) {
|
||||
this.psDirectiveRef.update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -298,6 +298,7 @@ export class OrganizationComponent
|
|||
this.isVisible
|
||||
) {
|
||||
this.isInitList = true;
|
||||
this.vsDeptUser.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user