UNPKG

yoyo-ng-modulewindy

Version:

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

39 lines 1.41 kB
import { Directive, Input, TemplateRef } from '@angular/core'; import { SimpleTableComponent } from './simple-table.component'; var SimpleTableRowDirective = /** @class */ (function () { function SimpleTableRowDirective(templateRef, table) { this.templateRef = templateRef; this.table = table; } SimpleTableRowDirective.prototype.ngOnInit = function () { var _this = this; var col = this.table._columns.find(function (w) { return w.render === _this.id; }); if (!col) return; switch (this.type) { case 'title': col.__renderTitle = this.templateRef; break; default: col.__render = this.templateRef; break; } }; SimpleTableRowDirective.decorators = [ { type: Directive, args: [{ selector: '[st-row]', },] }, ]; /** @nocollapse */ SimpleTableRowDirective.ctorParameters = function () { return [ { type: TemplateRef }, { type: SimpleTableComponent } ]; }; SimpleTableRowDirective.propDecorators = { id: [{ type: Input, args: ['st-row',] }], type: [{ type: Input }] }; return SimpleTableRowDirective; }()); export { SimpleTableRowDirective }; //# sourceMappingURL=simple-table-row.directive.js.map