raise-common-lib 0.0.54 → 0.0.55
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 +17 -4
- 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 +13 -5
- package/esm5/lib/layout/multi-tab/index.component.js +18 -5
- package/fesm2015/raise-common-lib.js +12 -4
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +17 -4
- 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
|
@@ -1954,7 +1954,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1954
1954
|
* @param {?} ele
|
|
1955
1955
|
* @return {?}
|
|
1956
1956
|
*/
|
|
1957
|
-
function (ele) { return ele.url === _this.router.url; }));
|
|
1957
|
+
function (ele) { return ele.url === _this.urlWithoutQuery(_this.router.url); }));
|
|
1958
1958
|
if (isExistIdx !== -1) {
|
|
1959
1959
|
this.selectedTab = isExistIdx;
|
|
1960
1960
|
}
|
|
@@ -1982,11 +1982,11 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1982
1982
|
/** @type {?} */
|
|
1983
1983
|
var title = state && state.title;
|
|
1984
1984
|
if (currentRoute && !skipLocationChange) {
|
|
1985
|
-
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
1985
|
+
if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
|
|
1986
1986
|
return; // 排除不生成tab的url
|
|
1987
1987
|
}
|
|
1988
1988
|
/** @type {?} */
|
|
1989
|
-
var urlWithoutQuery = _this.router.url
|
|
1989
|
+
var urlWithoutQuery = _this.urlWithoutQuery(_this.router.url);
|
|
1990
1990
|
_this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
@@ -2108,7 +2108,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2108
2108
|
if (title) {
|
|
2109
2109
|
sessionStorage.removeItem("firstTabTitle");
|
|
2110
2110
|
/** @type {?} */
|
|
2111
|
-
var url = this.router.url;
|
|
2111
|
+
var url = this.urlWithoutQuery(this.router.url);
|
|
2112
2112
|
this.addTab(url, title);
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
@@ -2264,6 +2264,19 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2264
2264
|
this.keepAlive.clearCache(url); // 调用自定义策略的清除缓存方法
|
|
2265
2265
|
this.drawer.deleteCache(url);
|
|
2266
2266
|
};
|
|
2267
|
+
/**
|
|
2268
|
+
* @private
|
|
2269
|
+
* @param {?} url
|
|
2270
|
+
* @return {?}
|
|
2271
|
+
*/
|
|
2272
|
+
MultiTabComponent.prototype.urlWithoutQuery = /**
|
|
2273
|
+
* @private
|
|
2274
|
+
* @param {?} url
|
|
2275
|
+
* @return {?}
|
|
2276
|
+
*/
|
|
2277
|
+
function (url) {
|
|
2278
|
+
return url.split("?")[0];
|
|
2279
|
+
};
|
|
2267
2280
|
MultiTabComponent.decorators = [
|
|
2268
2281
|
{ type: Component, args: [{
|
|
2269
2282
|
selector: "rs-multi-tab",
|