UNPKG

ng-zorro-antd-yj

Version:

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

55 lines 3.71 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { ChangeDetectionStrategy, Component, ElementRef, Renderer2, ViewEncapsulation } from '@angular/core'; export class NzLayoutComponent { /** * @param {?} elementRef * @param {?} renderer */ constructor(elementRef, renderer) { this.elementRef = elementRef; this.renderer = renderer; renderer.addClass(elementRef.nativeElement, 'ant-layout'); } /** * @return {?} */ destroySider() { this.renderer.removeClass(this.elementRef.nativeElement, 'ant-layout-has-sider'); } /** * @return {?} */ initSider() { this.renderer.addClass(this.elementRef.nativeElement, 'ant-layout-has-sider'); } } NzLayoutComponent.decorators = [ { type: Component, args: [{ selector: 'nz-layout', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, preserveWhitespaces: false, template: "<ng-content></ng-content>" }] } ]; /** @nocollapse */ NzLayoutComponent.ctorParameters = () => [ { type: ElementRef }, { type: Renderer2 } ]; if (false) { /** * @type {?} * @private */ NzLayoutComponent.prototype.elementRef; /** * @type {?} * @private */ NzLayoutComponent.prototype.renderer; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotbGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQteWovIiwic291cmNlcyI6WyJsYXlvdXQvbnotbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBUzdHLE1BQU0sT0FBTyxpQkFBaUI7Ozs7O0lBUzVCLFlBQW9CLFVBQXNCLEVBQVUsUUFBbUI7UUFBbkQ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