UNPKG

ng-zorro-antd-yj

Version:

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

46 lines 3.72 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { ChangeDetectionStrategy, Component, ContentChildren, Input, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core'; import { NzOptionComponent } from './nz-option.component'; export class NzOptionGroupComponent { constructor() { this.isLabelString = false; } /** * @param {?} value * @return {?} */ set nzLabel(value) { this.label = value; this.isLabelString = !(this.nzLabel instanceof TemplateRef); } /** * @return {?} */ get nzLabel() { return this.label; } } NzOptionGroupComponent.decorators = [ { type: Component, args: [{ selector: 'nz-option-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>" }] } ]; NzOptionGroupComponent.propDecorators = { listOfNzOptionComponent: [{ type: ContentChildren, args: [NzOptionComponent,] }], nzLabel: [{ type: Input }] }; if (false) { /** @type {?} */ NzOptionGroupComponent.prototype.isLabelString; /** @type {?} */ NzOptionGroupComponent.prototype.label; /** @type {?} */ NzOptionGroupComponent.prototype.listOfNzOptionComponent; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnotb3B0aW9uLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXpvcnJvLWFudGQteWovIiwic291cmNlcyI6WyJzZWxlY3Qvbnotb3B0aW9uLWdyb3VwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsZUFBZSxFQUNmLEtBQUssRUFDTCxTQUFTLEVBQ1QsV0FBVyxFQUNYLGlCQUFpQixFQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ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