diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2019-08-30 11:01:57 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2019-08-30 11:02:10 +0800 |
commit | 72bb08d969f6d9f98f6dad89b3c4935d50dc09d8 (patch) | |
tree | 16553961a178eddcd9c7e7c0fd457cf96639916c /usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | |
parent | 44b2c522ad321e5a6b7c2d7737e7e9c60a343130 (diff) |
style: services-list page style optimization
Change-Id: I6c8c46198ab74a18e82e42195fea7b89f8006a02
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/views/services/services-list/services-list.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/views/services/services-list/services-list.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts index fb78aff5..d4f5c2b5 100644 --- a/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts +++ b/usecaseui-portal/src/app/views/services/services-list/services-list.component.ts @@ -18,6 +18,7 @@ import { MyhttpService } from '../../../core/services/myhttp.service'; import { slideToRight } from '../../../shared/utils/animates'; import { NzModalService } from 'ng-zorro-antd'; import { NzNotificationService } from 'ng-zorro-antd'; +import { Observable } from 'rxjs/Rx'; @Component({ selector: 'app-services-list', @@ -28,11 +29,17 @@ import { NzNotificationService } from 'ng-zorro-antd'; export class ServicesListComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; + public width:number = document.documentElement.clientWidth; + constructor(private myhttp: MyhttpService, private modalService: NzModalService, private notification: NzNotificationService) { } ngOnInit() { this.getallCustomers(); + + Observable.fromEvent(window, 'resize').subscribe((event) => { + this.width = document.documentElement.clientWidth + }); } // customer servicetype |