raise-common-lib 0.0.55 → 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 +7 -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 +6 -8
- package/esm5/lib/layout/multi-tab/index.component.js +8 -8
- package/fesm2015/raise-common-lib.js +5 -7
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +7 -7
- package/fesm5/raise-common-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -1954,7 +1954,9 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1954
1954
|
* @param {?} ele
|
|
1955
1955
|
* @return {?}
|
|
1956
1956
|
*/
|
|
1957
|
-
function (ele) {
|
|
1957
|
+
function (ele) {
|
|
1958
|
+
return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(_this.router.url);
|
|
1959
|
+
}));
|
|
1958
1960
|
if (isExistIdx !== -1) {
|
|
1959
1961
|
this.selectedTab = isExistIdx;
|
|
1960
1962
|
}
|
|
@@ -1985,9 +1987,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1985
1987
|
if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
|
|
1986
1988
|
return; // 排除不生成tab的url
|
|
1987
1989
|
}
|
|
1988
|
-
|
|
1989
|
-
var urlWithoutQuery = _this.urlWithoutQuery(_this.router.url);
|
|
1990
|
-
_this.setTab(urlWithoutQuery, currentRoute.snapshot.routeConfig.path, title);
|
|
1990
|
+
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
})));
|
|
@@ -2108,7 +2108,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2108
2108
|
if (title) {
|
|
2109
2109
|
sessionStorage.removeItem("firstTabTitle");
|
|
2110
2110
|
/** @type {?} */
|
|
2111
|
-
var url = this.
|
|
2111
|
+
var url = this.router.url;
|
|
2112
2112
|
this.addTab(url, title);
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
@@ -2129,7 +2129,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2129
2129
|
* @return {?}
|
|
2130
2130
|
*/
|
|
2131
2131
|
function (ele) { return ele.url !== tab.url; }));
|
|
2132
|
-
this.clearCache(tab.url);
|
|
2132
|
+
this.clearCache(this.urlWithoutQuery(tab.url));
|
|
2133
2133
|
if (this.selectedTab === idx) {
|
|
2134
2134
|
/** @type {?} */
|
|
2135
2135
|
var targetIdx = Math.max(0, idx - 1);
|
|
@@ -2197,7 +2197,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2197
2197
|
* @param {?} ele
|
|
2198
2198
|
* @return {?}
|
|
2199
2199
|
*/
|
|
2200
|
-
function (ele) { return ele.url === url; }));
|
|
2200
|
+
function (ele) { return _this.urlWithoutQuery(ele.url) === _this.urlWithoutQuery(url); }));
|
|
2201
2201
|
if (isExistIdx === -1) {
|
|
2202
2202
|
/** @type {?} */
|
|
2203
2203
|
var singleIdx_1 = this.singleReuseUrls.findIndex((/**
|