raise-common-lib 0.0.54 → 0.0.56
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.
- package/bundles/raise-common-lib.umd.js +20 -7
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/layout/multi-tab/index.component.js +14 -8
- package/esm5/lib/layout/multi-tab/index.component.js +21 -8
- package/fesm2015/raise-common-lib.js +13 -7
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +20 -7
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/multi-tab/index.component.d.ts +1 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -2149,7 +2149,9 @@
|
|
|
2149
2149
|
* @param {?} ele
|
|
2150
2150
|
* @return {?}
|
|
2151
2151
|
*/
|
|
2152
|
-
function (ele) {
|
|
2152
|
+
function (ele) {
|
|
2153
|
+
return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(_this.router.url);
|
|
2154
|
+
}));
|
|
2153
2155
|
if (isExistIdx !== -1) {
|
|
2154
2156
|
this.selectedTab = isExistIdx;
|
|
2155
2157
|
}
|
|
@@ -2177,12 +2179,10 @@
|
|
|
2177
2179
|
/** @type {?} */
|
|
2178
2180
|
var title = state && state.title;
|
|
2179
2181
|
if (currentRoute && !skipLocationChange) {
|
|
2180
|
-
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
2182
|
+
if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
|
|
2181
2183
|
return; // 排除不生成tab的url
|
|
2182
2184
|
}
|
|
2183
|
-
|
|
2184
|
-
var urlWithoutQuery = _this.router.url.split('?')[0];
|
|
2185
|
-
_this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
|
|
2185
|
+
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
2188
|
})));
|
|
@@ -2324,7 +2324,7 @@
|
|
|
2324
2324
|
* @return {?}
|
|
2325
2325
|
*/
|
|
2326
2326
|
function (ele) { return ele.url !== tab.url; }));
|
|
2327
|
-
this.clearCache(tab.url);
|
|
2327
|
+
this.clearCache(this.urlWithoutQuery(tab.url));
|
|
2328
2328
|
if (this.selectedTab === idx) {
|
|
2329
2329
|
/** @type {?} */
|
|
2330
2330
|
var targetIdx = Math.max(0, idx - 1);
|
|
@@ -2392,7 +2392,7 @@
|
|
|
2392
2392
|
* @param {?} ele
|
|
2393
2393
|
* @return {?}
|
|
2394
2394
|
*/
|
|
2395
|
-
function (ele) { return ele.url === url; }));
|
|
2395
|
+
function (ele) { return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(url); }));
|
|
2396
2396
|
if (isExistIdx === -1) {
|
|
2397
2397
|
/** @type {?} */
|
|
2398
2398
|
var singleIdx_1 = this.singleReuseUrls.findIndex((/**
|
|
@@ -2459,6 +2459,19 @@
|
|
|
2459
2459
|
this.keepAlive.clearCache(url); // 调用自定义策略的清除缓存方法
|
|
2460
2460
|
this.drawer.deleteCache(url);
|
|
2461
2461
|
};
|
|
2462
|
+
/**
|
|
2463
|
+
* @private
|
|
2464
|
+
* @param {?} url
|
|
2465
|
+
* @return {?}
|
|
2466
|
+
*/
|
|
2467
|
+
MultiTabComponent.prototype.urlWithoutQuery = /**
|
|
2468
|
+
* @private
|
|
2469
|
+
* @param {?} url
|
|
2470
|
+
* @return {?}
|
|
2471
|
+
*/
|
|
2472
|
+
function (url) {
|
|
2473
|
+
return url.split("?")[0];
|
|
2474
|
+
};
|
|
2462
2475
|
MultiTabComponent.decorators = [
|
|
2463
2476
|
{ type: core.Component, args: [{
|
|
2464
2477
|
selector: "rs-multi-tab",
|