UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

41 lines (40 loc) 1.6 kB
/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { MediaMatcher } from '@angular/cdk/layout'; import { Platform } from '@angular/cdk/platform'; import { AfterContentInit, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef } from '@angular/core'; import { Breakpoint } from 'ng-zorro-antd/core'; import { NzDescriptionsItemRenderProps, NzDescriptionsSize } from './nz-descriptions-definitions'; import { NzDescriptionsItemComponent } from './nz-descriptions-item.component'; export declare class NzDescriptionsComponent implements OnChanges, OnDestroy, AfterContentInit { private cdr; private ngZone; private mediaMatcher; private platform; items: QueryList<NzDescriptionsItemComponent>; nzBordered: boolean; nzColumn: number | { [key in Breakpoint]: number; }; nzSize: NzDescriptionsSize; nzTitle: string | TemplateRef<void>; itemMatrix: NzDescriptionsItemRenderProps[][]; realColumn: number; private destroy$; private resize$; constructor(cdr: ChangeDetectorRef, ngZone: NgZone, mediaMatcher: MediaMatcher, platform: Platform); ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; ngOnDestroy(): void; /** * Prepare the render matrix according to description items' spans. */ private prepareMatrix; private matchMedia; private getColumn; }