raise-common-lib 0.0.25 → 0.0.26
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 -5
- 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 -3
- package/esm2015/lib/layout/rs-header/index.component.js +4 -2
- package/esm5/lib/layout/multi-tab/index.component.js +15 -5
- package/esm5/lib/layout/rs-header/index.component.js +4 -2
- package/fesm2015/raise-common-lib.js +15 -3
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +17 -5
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/multi-tab/index.component.d.ts +1 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -1952,6 +1952,16 @@
|
|
|
1952
1952
|
function () {
|
|
1953
1953
|
var _this = this;
|
|
1954
1954
|
this.initTab();
|
|
1955
|
+
// 解决刷新页面后,选中的 tab 丢失问题
|
|
1956
|
+
/** @type {?} */
|
|
1957
|
+
var isExistIdx = this.tabList.findIndex((/**
|
|
1958
|
+
* @param {?} ele
|
|
1959
|
+
* @return {?}
|
|
1960
|
+
*/
|
|
1961
|
+
function (ele) { return ele.url === _this.router.url; }));
|
|
1962
|
+
if (isExistIdx !== -1) {
|
|
1963
|
+
this.selectedTab = isExistIdx;
|
|
1964
|
+
}
|
|
1955
1965
|
this.router.events
|
|
1956
1966
|
.pipe(operators.filter((/**
|
|
1957
1967
|
* @param {?} event
|
|
@@ -2130,14 +2140,14 @@
|
|
|
2130
2140
|
};
|
|
2131
2141
|
/**
|
|
2132
2142
|
* @param {?} url
|
|
2133
|
-
* @param {
|
|
2134
|
-
* @param {
|
|
2143
|
+
* @param {?=} pureUrl
|
|
2144
|
+
* @param {?=} title
|
|
2135
2145
|
* @return {?}
|
|
2136
2146
|
*/
|
|
2137
2147
|
MultiTabComponent.prototype.setTab = /**
|
|
2138
2148
|
* @param {?} url
|
|
2139
|
-
* @param {
|
|
2140
|
-
* @param {
|
|
2149
|
+
* @param {?=} pureUrl
|
|
2150
|
+
* @param {?=} title
|
|
2141
2151
|
* @return {?}
|
|
2142
2152
|
*/
|
|
2143
2153
|
function (url, pureUrl, title) {
|
|
@@ -2286,11 +2296,13 @@
|
|
|
2286
2296
|
function (options) {
|
|
2287
2297
|
this._langOptions = options;
|
|
2288
2298
|
if (options && options.length > 0) {
|
|
2299
|
+
/** @type {?} */
|
|
2300
|
+
var languageCode_1 = localStorage.getItem("language");
|
|
2289
2301
|
this.currentLang = options.find((/**
|
|
2290
2302
|
* @param {?} e
|
|
2291
2303
|
* @return {?}
|
|
2292
2304
|
*/
|
|
2293
|
-
function (e) { return e.
|
|
2305
|
+
function (e) { return e.languageCode === languageCode_1; }));
|
|
2294
2306
|
}
|
|
2295
2307
|
},
|
|
2296
2308
|
enumerable: true,
|