raise-common-lib 0.0.20 → 0.0.21

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.
@@ -1807,6 +1807,10 @@
1807
1807
  * @return {?}
1808
1808
  */
1809
1809
  function (route) {
1810
+ if (!route.routeConfig)
1811
+ return null;
1812
+ if (route.routeConfig.loadChildren)
1813
+ return null;
1810
1814
  return storedRoutes[this.getRoutePath(route)];
1811
1815
  };
1812
1816
  /**
@@ -1861,11 +1865,12 @@
1861
1865
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1862
1866
  */
1863
1867
  var MultiTabComponent = /** @class */ (function () {
1864
- function MultiTabComponent(router, cf, activatedRoute, keepAlive) {
1868
+ function MultiTabComponent(router, cf, activatedRoute, keepAlive, ref) {
1865
1869
  this.router = router;
1866
1870
  this.cf = cf;
1867
1871
  this.activatedRoute = activatedRoute;
1868
1872
  this.keepAlive = keepAlive;
1873
+ this.ref = ref;
1869
1874
  this.singleReuseUrls = []; //只能单个缓存的url
1870
1875
  //只能单个缓存的url
1871
1876
  this.TAB_WIDTH = 164;
@@ -2032,6 +2037,7 @@
2032
2037
  }
2033
2038
  this.setEllipsisTitle();
2034
2039
  sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
2040
+ this.ref.markForCheck();
2035
2041
  };
2036
2042
  /**
2037
2043
  * @param {?} tab
@@ -2046,6 +2052,7 @@
2046
2052
  function (tab, idx) {
2047
2053
  this.router.navigateByUrl(tab.url);
2048
2054
  this.selectedTab = idx;
2055
+ this.ref.markForCheck();
2049
2056
  };
2050
2057
  /**
2051
2058
  * @param {?} url
@@ -2069,6 +2076,7 @@
2069
2076
  this.selectedTab = this.tabList.length - 1;
2070
2077
  this.setEllipsisTitle();
2071
2078
  sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
2079
+ this.ref.markForCheck();
2072
2080
  };
2073
2081
  /**
2074
2082
  * @param {?} url
@@ -2102,15 +2110,14 @@
2102
2110
  * @param {?} ele
2103
2111
  * @return {?}
2104
2112
  */
2105
- function (ele) {
2106
- return !ele.url.includes(_this.singleReuseUrls[singleIdx_1]);
2107
- }));
2113
+ function (ele) { return !ele.url.includes(_this.singleReuseUrls[singleIdx_1]); }));
2108
2114
  this.keepAlive.clearCache(url);
2109
2115
  }
2110
2116
  this.addTab(url, title);
2111
2117
  }
2112
2118
  else {
2113
2119
  this.selectedTab = isExistIdx;
2120
+ this.ref.markForCheck();
2114
2121
  }
2115
2122
  };
2116
2123
  /**
@@ -2154,7 +2161,8 @@
2154
2161
  { type: router.Router },
2155
2162
  { type: CommonFunctionService },
2156
2163
  { type: router.ActivatedRoute },
2157
- { type: KeepAliveService }
2164
+ { type: KeepAliveService },
2165
+ { type: core.ChangeDetectorRef }
2158
2166
  ]; };
2159
2167
  MultiTabComponent.propDecorators = {
2160
2168
  singleReuseUrls: [{ type: core.Input }],
@@ -2193,6 +2201,11 @@
2193
2201
  MultiTabComponent.prototype.activatedRoute;
2194
2202
  /** @type {?} */
2195
2203
  MultiTabComponent.prototype.keepAlive;
2204
+ /**
2205
+ * @type {?}
2206
+ * @private
2207
+ */
2208
+ MultiTabComponent.prototype.ref;
2196
2209
  }
2197
2210
 
2198
2211
  /**
@@ -2219,7 +2232,7 @@
2219
2232
  MainContainerComponent.decorators = [
2220
2233
  { type: core.Component, args: [{
2221
2234
  selector: "rs-main-container",
2222
- template: "<div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n <div class=\"main-page\">\r\n <div class=\"left-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[leftAsideSlot]\"></ng-content>\r\n </div>\r\n <div class=\"right-aside\">\r\n <rs-multi-tab [singleReuseUrls]=\"singleReuseUrls\"></rs-multi-tab>\r\n <div class=\"router-content\">\r\n <ng-content select=\"[routerSlot]\"></ng-content>\r\n </div>\r\n <rs-footer></rs-footer>\r\n </div>\r\n </div>\r\n</div>\r\n",
2235
+ template: "<div class=\"app-main-container\">\r\n <ng-content select=\"[headerSlot]\"></ng-content>\r\n <div class=\"main-page\">\r\n <div class=\"left-aside\" [ngClass]=\"{ isCollapsed: isCollapsed }\">\r\n <ng-content select=\"[leftAsideSlot]\"></ng-content>\r\n </div>\r\n <div class=\"right-aside\">\r\n <ng-content select=\"[multiTabSlot]\"></ng-content>\r\n <!-- <rs-multi-tab [singleReuseUrls]=\"singleReuseUrls\"></rs-multi-tab> -->\r\n <div class=\"router-content\">\r\n <ng-content select=\"[routerSlot]\"></ng-content>\r\n </div>\r\n <rs-footer></rs-footer>\r\n </div>\r\n </div>\r\n</div>\r\n",
2223
2236
  styles: [".app-main-container{display:flex;flex-direction:column;height:100vh}.app-main-container .main-page{flex:1;height:0;display:flex;background-color:var(--rs-container-bg)}.app-main-container .left-aside{width:240px;height:100%;padding-right:16px;will-change:width;transition:width .3s}.app-main-container .left-aside.isCollapsed{width:64px;padding-right:0}.app-main-container .right-aside{width:0;flex:1;display:flex;flex-direction:column;padding-right:12px}.app-main-container .right-aside .router-content{flex:1;overflow:auto}"]
2224
2237
  }] }
2225
2238
  ];