raise-common-lib 0.0.44 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1480,6 +1480,8 @@ var CommonFunctionService = /** @class */ (function () {
1480
1480
  function CommonFunctionService() {
1481
1481
  this.closeTabSubject = new Subject();
1482
1482
  this.closeTab$ = this.closeTabSubject.asObservable();
1483
+ this.pub = new Subject();
1484
+ this.pub$ = this.pub.asObservable();
1483
1485
  }
1484
1486
  /**
1485
1487
  * @return {?}
@@ -1571,6 +1573,17 @@ var CommonFunctionService = /** @class */ (function () {
1571
1573
  function (tabIndex) {
1572
1574
  return this.closeTabSubject.next(tabIndex);
1573
1575
  };
1576
+ /**
1577
+ * @param {?} event
1578
+ * @return {?}
1579
+ */
1580
+ CommonFunctionService.prototype.publish = /**
1581
+ * @param {?} event
1582
+ * @return {?}
1583
+ */
1584
+ function (event) {
1585
+ this.pub.next(event);
1586
+ };
1574
1587
  CommonFunctionService.decorators = [
1575
1588
  { type: Injectable, args: [{
1576
1589
  providedIn: "root",
@@ -1589,6 +1602,10 @@ if (false) {
1589
1602
  CommonFunctionService.prototype.closeTabSubject;
1590
1603
  /** @type {?} */
1591
1604
  CommonFunctionService.prototype.closeTab$;
1605
+ /** @type {?} */
1606
+ CommonFunctionService.prototype.pub;
1607
+ /** @type {?} */
1608
+ CommonFunctionService.prototype.pub$;
1592
1609
  }
1593
1610
 
1594
1611
  /**
@@ -1885,6 +1902,7 @@ var MultiTabComponent = /** @class */ (function () {
1885
1902
  //只能单个缓存的url
1886
1903
  this.noGenerateTabUrls = []; //不生成tab的url
1887
1904
  //不生成tab的url
1905
+ this.onRefreshTab = new EventEmitter();
1888
1906
  this.subscriptions = [];
1889
1907
  this.TAB_WIDTH = 164;
1890
1908
  this.GAP_NORMAL = 54;
@@ -2201,17 +2219,14 @@ var MultiTabComponent = /** @class */ (function () {
2201
2219
  * @return {?}
2202
2220
  */
2203
2221
  function () {
2204
- var _this = this;
2205
- this.keepAlive.clearCache(this.tabList[this.selectedTab].url);
2206
- this.drawer.deleteCache(this.tabList[this.selectedTab].url);
2222
+ // this.keepAlive.clearCache(this.tabList[this.selectedTab].url);
2223
+ // this.drawer.deleteCache(this.tabList[this.selectedTab].url);
2207
2224
  /** @type {?} */
2208
2225
  var currentUrl = this.router.url;
2209
- this.router.navigateByUrl("/", { skipLocationChange: true }).then((/**
2210
- * @return {?}
2211
- */
2212
- function () {
2213
- _this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
2214
- }));
2226
+ this.onRefreshTab.emit(currentUrl);
2227
+ // this.router.navigateByUrl("/", { skipLocationChange: true }).then(() => {
2228
+ // this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
2229
+ // });
2215
2230
  };
2216
2231
  /**
2217
2232
  * @param {?} url
@@ -2244,6 +2259,7 @@ var MultiTabComponent = /** @class */ (function () {
2244
2259
  MultiTabComponent.propDecorators = {
2245
2260
  singleReuseUrls: [{ type: Input }],
2246
2261
  noGenerateTabUrls: [{ type: Input }],
2262
+ onRefreshTab: [{ type: Output }],
2247
2263
  onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
2248
2264
  };
2249
2265
  return MultiTabComponent;
@@ -2255,6 +2271,8 @@ if (false) {
2255
2271
  MultiTabComponent.prototype.singleReuseUrls;
2256
2272
  /** @type {?} */
2257
2273
  MultiTabComponent.prototype.noGenerateTabUrls;
2274
+ /** @type {?} */
2275
+ MultiTabComponent.prototype.onRefreshTab;
2258
2276
  /**
2259
2277
  * @type {?}
2260
2278
  * @private