UNPKG

yoyo-ng-modulewindy

Version:

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

36 lines 1.3 kB
import { Component, Input } from '@angular/core'; import { toBoolean } from 'yoyo-ng-module/util'; var TrendComponent = /** @class */ (function () { function TrendComponent() { this._colorful = true; } Object.defineProperty(TrendComponent.prototype, "colorful", { /** 是否彩色标记 */ get: function () { return this._colorful; }, set: function (value) { this._colorful = toBoolean(value); }, enumerable: true, configurable: true }); TrendComponent.decorators = [ { type: Component, args: [{ selector: 'trend', template: "\n <ng-content></ng-content>\n <span *ngIf=\"flag\" class=\"{{flag}}\"><i class=\"anticon anticon-caret-{{flag}}\"></i></span>\n ", host: { '[class.ad-trend]': 'true', '[class.grey]': '!colorful', }, preserveWhitespaces: false, },] }, ]; TrendComponent.propDecorators = { flag: [{ type: Input }], colorful: [{ type: Input }] }; return TrendComponent; }()); export { TrendComponent }; //# sourceMappingURL=trend.component.js.map