UNPKG

yoyo-ng-modulewindy

Version:

服务于52ABP模板的前端开源的相关组件内容。整合了ng-alain和你NG ZORRO的内容

40 lines 1.9 kB
import { Component, Input, QueryList, ContentChildren } from '@angular/core'; import { AvatarListItemComponent } from './avatar-list-item.component'; var AvatarListComponent = /** @class */ (function () { function AvatarListComponent() { this._size = ''; this._avatarSize = ''; } Object.defineProperty(AvatarListComponent.prototype, "size", { set: function (value) { this._size = value === 'default' ? '' : value; switch (value) { case 'large': case 'small': case 'default': this._avatarSize = value; break; default: this._avatarSize = 'small'; break; } }, enumerable: true, configurable: true }); AvatarListComponent.decorators = [ { type: Component, args: [{ selector: 'avatar-list', template: "\n <ul>\n <li *ngFor=\"let i of _items\" class=\"item\" [ngClass]=\"_size\">\n <nz-tooltip *ngIf=\"i.tips\" [nzTitle]=\"i.tips\">\n <nz-avatar nz-tooltip [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"_avatarSize\"></nz-avatar>\n </nz-tooltip>\n <nz-avatar *ngIf=\"!i.tips\" [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"_avatarSize\"></nz-avatar>\n </li>\n </ul>\n ", host: { '[class.ad-avatar-list]': 'true' }, preserveWhitespaces: false, },] }, ]; AvatarListComponent.propDecorators = { size: [{ type: Input }], _items: [{ type: ContentChildren, args: [AvatarListItemComponent,] }] }; return AvatarListComponent; }()); export { AvatarListComponent }; //# sourceMappingURL=avatar-list.component.js.map