raise-common-lib 0.0.51 → 0.0.53
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 +36 -2
- 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 +18 -1
- package/esm2015/lib/layout/rs-aside/index.component.js +19 -3
- package/esm5/lib/layout/multi-tab/index.component.js +19 -1
- package/esm5/lib/layout/rs-aside/index.component.js +19 -3
- package/fesm2015/raise-common-lib.js +35 -2
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +36 -2
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/multi-tab/index.component.d.ts +1 -0
- package/lib/layout/rs-aside/index.component.d.ts +1 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -1911,6 +1911,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1911
1911
|
this.selectedTab = 0;
|
|
1912
1912
|
this.maxTabs = 10;
|
|
1913
1913
|
this.screenWidth = window.innerWidth; // 初始化屏幕宽度
|
|
1914
|
+
this.timer = null;
|
|
1914
1915
|
this.keepAlive = (/** @type {?} */ (this.routeReuseStrategy));
|
|
1915
1916
|
}
|
|
1916
1917
|
// 初始化屏幕宽度
|
|
@@ -2227,6 +2228,21 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2227
2228
|
* @return {?}
|
|
2228
2229
|
*/
|
|
2229
2230
|
function () {
|
|
2231
|
+
var _this = this;
|
|
2232
|
+
/** @type {?} */
|
|
2233
|
+
var loadingIcon = document.getElementById("loadingIcon");
|
|
2234
|
+
loadingIcon.classList.add("refresh-tab-loading");
|
|
2235
|
+
if (this.timer) {
|
|
2236
|
+
clearInterval(this.timer);
|
|
2237
|
+
}
|
|
2238
|
+
// 模拟加载过程,1秒后移除动画
|
|
2239
|
+
this.timer = setTimeout((/**
|
|
2240
|
+
* @return {?}
|
|
2241
|
+
*/
|
|
2242
|
+
function () {
|
|
2243
|
+
loadingIcon.classList.remove("refresh-tab-loading");
|
|
2244
|
+
_this.timer = null;
|
|
2245
|
+
}), 1500);
|
|
2230
2246
|
// this.keepAlive.clearCache(this.tabList[this.selectedTab].url);
|
|
2231
2247
|
// this.drawer.deleteCache(this.tabList[this.selectedTab].url);
|
|
2232
2248
|
/** @type {?} */
|
|
@@ -2307,6 +2323,8 @@ if (false) {
|
|
|
2307
2323
|
/** @type {?} */
|
|
2308
2324
|
MultiTabComponent.prototype.screenWidth;
|
|
2309
2325
|
/** @type {?} */
|
|
2326
|
+
MultiTabComponent.prototype.timer;
|
|
2327
|
+
/** @type {?} */
|
|
2310
2328
|
MultiTabComponent.prototype.router;
|
|
2311
2329
|
/** @type {?} */
|
|
2312
2330
|
MultiTabComponent.prototype.cf;
|
|
@@ -19553,6 +19571,7 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19553
19571
|
this.isCollapsed = false; // 接收输入属性
|
|
19554
19572
|
// 接收输入属性
|
|
19555
19573
|
this.navList = [];
|
|
19574
|
+
this.relationStart = [];
|
|
19556
19575
|
this.currentNav = "";
|
|
19557
19576
|
}
|
|
19558
19577
|
/**
|
|
@@ -19575,7 +19594,19 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19575
19594
|
* @return {?}
|
|
19576
19595
|
*/
|
|
19577
19596
|
function () {
|
|
19578
|
-
|
|
19597
|
+
// console.log('this.router.url', this.router.url)
|
|
19598
|
+
/** @type {?} */
|
|
19599
|
+
var idx = _this.relationStart.findIndex((/**
|
|
19600
|
+
* @param {?} item
|
|
19601
|
+
* @return {?}
|
|
19602
|
+
*/
|
|
19603
|
+
function (item) { return _this.router.url.startsWith(item.url); }));
|
|
19604
|
+
if (idx !== -1) {
|
|
19605
|
+
_this.currentNav = _this.relationStart[idx].target;
|
|
19606
|
+
}
|
|
19607
|
+
else {
|
|
19608
|
+
_this.currentNav = _this.router.url;
|
|
19609
|
+
}
|
|
19579
19610
|
}));
|
|
19580
19611
|
};
|
|
19581
19612
|
/**
|
|
@@ -19609,7 +19640,8 @@ var RSAsideComponent = /** @class */ (function () {
|
|
|
19609
19640
|
RSAsideComponent.propDecorators = {
|
|
19610
19641
|
toggleMenu: [{ type: Output }],
|
|
19611
19642
|
isCollapsed: [{ type: Input }],
|
|
19612
|
-
navList: [{ type: Input }]
|
|
19643
|
+
navList: [{ type: Input }],
|
|
19644
|
+
relationStart: [{ type: Input }]
|
|
19613
19645
|
};
|
|
19614
19646
|
return RSAsideComponent;
|
|
19615
19647
|
}());
|
|
@@ -19621,6 +19653,8 @@ if (false) {
|
|
|
19621
19653
|
/** @type {?} */
|
|
19622
19654
|
RSAsideComponent.prototype.navList;
|
|
19623
19655
|
/** @type {?} */
|
|
19656
|
+
RSAsideComponent.prototype.relationStart;
|
|
19657
|
+
/** @type {?} */
|
|
19624
19658
|
RSAsideComponent.prototype.currentNav;
|
|
19625
19659
|
/** @type {?} */
|
|
19626
19660
|
RSAsideComponent.prototype.router;
|