UNPKG

yoyo-ng-modulewindy

Version:

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

41 lines 1.62 kB
import { Component, Input, Output, EventEmitter, } from '@angular/core'; import { Subscription } from 'rxjs'; import { ReuseTabContextService } from './reuse-tab-context.service'; var ReuseTabContextComponent = /** @class */ (function () { function ReuseTabContextComponent(srv) { var _this = this; this.srv = srv; this.sub$ = new Subscription(); this.change = new EventEmitter(); this.sub$.add(srv.show.subscribe(function (context) { return _this.srv.open(context); })); this.sub$.add(srv.close.subscribe(function (res) { return _this.change.emit(res); })); } Object.defineProperty(ReuseTabContextComponent.prototype, "i18n", { set: function (value) { this.srv.i18n = value; }, enumerable: true, configurable: true }); ReuseTabContextComponent.prototype.ngOnDestroy = function () { this.sub$.unsubscribe(); }; ReuseTabContextComponent.decorators = [ { type: Component, args: [{ selector: 'reuse-tab-context', template: "", preserveWhitespaces: false, },] }, ]; /** @nocollapse */ ReuseTabContextComponent.ctorParameters = function () { return [ { type: ReuseTabContextService } ]; }; ReuseTabContextComponent.propDecorators = { i18n: [{ type: Input }], change: [{ type: Output }] }; return ReuseTabContextComponent; }()); export { ReuseTabContextComponent }; //# sourceMappingURL=reuse-tab-context.component.js.map