UNPKG

ng-zorro-antd-yj

Version:

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

59 lines 4.01 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { ChangeDetectionStrategy, Component, ElementRef, Renderer2, ViewEncapsulation } from '@angular/core'; var NzLayoutComponent = /** @class */ (function () { function NzLayoutComponent(elementRef, renderer) { this.elementRef = elementRef; this.renderer = renderer; renderer.addClass(elementRef.nativeElement, 'ant-layout'); } /** * @return {?} */ NzLayoutComponent.prototype.destroySider = /** * @return {?} */ function () { this.renderer.removeClass(this.elementRef.nativeElement, 'ant-layout-has-sider'); }; /** * @return {?} */ NzLayoutComponent.prototype.initSider = /** * @return {?} */ function () { 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 = function () { return [ { type: ElementRef }, { type: Renderer2 } ]; }; return NzLayoutComponent; }()); export { NzLayoutComponent }; if (false) { /** * @type {?} * @private */ NzLayoutComponent.prototype.elementRef; /** * @type {?} * @private */ NzLayoutComponent.prototype.renderer; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotbGF5b3V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQteWovIiwic291cmNlcyI6WyJsYXlvdXQvbnotbGF5b3V0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTd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