raise-common-lib 0.0.44 → 0.0.46
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 +28 -10
- 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 -11
- package/esm2015/lib/service/common-function.service.js +14 -1
- package/esm5/lib/layout/multi-tab/index.component.js +13 -12
- package/esm5/lib/service/common-function.service.js +18 -1
- package/fesm2015/raise-common-lib.js +24 -9
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +28 -10
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/multi-tab/index.component.d.ts +2 -1
- package/lib/service/common-function.service.d.ts +4 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/reset/grid.scss +10 -1
|
@@ -1480,6 +1480,8 @@ var CommonFunctionService = /** @class */ (function () {
|
|
|
1480
1480
|
function CommonFunctionService() {
|
|
1481
1481
|
this.closeTabSubject = new Subject();
|
|
1482
1482
|
this.closeTab$ = this.closeTabSubject.asObservable();
|
|
1483
|
+
this.pub = new Subject();
|
|
1484
|
+
this.pub$ = this.pub.asObservable();
|
|
1483
1485
|
}
|
|
1484
1486
|
/**
|
|
1485
1487
|
* @return {?}
|
|
@@ -1571,6 +1573,17 @@ var CommonFunctionService = /** @class */ (function () {
|
|
|
1571
1573
|
function (tabIndex) {
|
|
1572
1574
|
return this.closeTabSubject.next(tabIndex);
|
|
1573
1575
|
};
|
|
1576
|
+
/**
|
|
1577
|
+
* @param {?} event
|
|
1578
|
+
* @return {?}
|
|
1579
|
+
*/
|
|
1580
|
+
CommonFunctionService.prototype.publish = /**
|
|
1581
|
+
* @param {?} event
|
|
1582
|
+
* @return {?}
|
|
1583
|
+
*/
|
|
1584
|
+
function (event) {
|
|
1585
|
+
this.pub.next(event);
|
|
1586
|
+
};
|
|
1574
1587
|
CommonFunctionService.decorators = [
|
|
1575
1588
|
{ type: Injectable, args: [{
|
|
1576
1589
|
providedIn: "root",
|
|
@@ -1589,6 +1602,10 @@ if (false) {
|
|
|
1589
1602
|
CommonFunctionService.prototype.closeTabSubject;
|
|
1590
1603
|
/** @type {?} */
|
|
1591
1604
|
CommonFunctionService.prototype.closeTab$;
|
|
1605
|
+
/** @type {?} */
|
|
1606
|
+
CommonFunctionService.prototype.pub;
|
|
1607
|
+
/** @type {?} */
|
|
1608
|
+
CommonFunctionService.prototype.pub$;
|
|
1592
1609
|
}
|
|
1593
1610
|
|
|
1594
1611
|
/**
|
|
@@ -1885,6 +1902,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1885
1902
|
//只能单个缓存的url
|
|
1886
1903
|
this.noGenerateTabUrls = []; //不生成tab的url
|
|
1887
1904
|
//不生成tab的url
|
|
1905
|
+
this.onRefreshTab = new EventEmitter();
|
|
1888
1906
|
this.subscriptions = [];
|
|
1889
1907
|
this.TAB_WIDTH = 164;
|
|
1890
1908
|
this.GAP_NORMAL = 54;
|
|
@@ -1966,7 +1984,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
1966
1984
|
if (_this.noGenerateTabUrls.includes(_this.router.url)) {
|
|
1967
1985
|
return; // 排除不生成tab的url
|
|
1968
1986
|
}
|
|
1969
|
-
if (_this.tabList.length === 0
|
|
1987
|
+
if (_this.tabList.length === 0) {
|
|
1970
1988
|
title = sessionStorage.getItem("firstTabTitle");
|
|
1971
1989
|
sessionStorage.removeItem("firstTabTitle");
|
|
1972
1990
|
}
|
|
@@ -2201,17 +2219,14 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2201
2219
|
* @return {?}
|
|
2202
2220
|
*/
|
|
2203
2221
|
function () {
|
|
2204
|
-
|
|
2205
|
-
this.
|
|
2206
|
-
this.drawer.deleteCache(this.tabList[this.selectedTab].url);
|
|
2222
|
+
// this.keepAlive.clearCache(this.tabList[this.selectedTab].url);
|
|
2223
|
+
// this.drawer.deleteCache(this.tabList[this.selectedTab].url);
|
|
2207
2224
|
/** @type {?} */
|
|
2208
2225
|
var currentUrl = this.router.url;
|
|
2209
|
-
this.
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
_this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
|
|
2214
|
-
}));
|
|
2226
|
+
this.onRefreshTab.emit(currentUrl);
|
|
2227
|
+
// this.router.navigateByUrl("/", { skipLocationChange: true }).then(() => {
|
|
2228
|
+
// this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
|
|
2229
|
+
// });
|
|
2215
2230
|
};
|
|
2216
2231
|
/**
|
|
2217
2232
|
* @param {?} url
|
|
@@ -2244,6 +2259,7 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
2244
2259
|
MultiTabComponent.propDecorators = {
|
|
2245
2260
|
singleReuseUrls: [{ type: Input }],
|
|
2246
2261
|
noGenerateTabUrls: [{ type: Input }],
|
|
2262
|
+
onRefreshTab: [{ type: Output }],
|
|
2247
2263
|
onResize: [{ type: HostListener, args: ["window:resize", ["$event"],] }]
|
|
2248
2264
|
};
|
|
2249
2265
|
return MultiTabComponent;
|
|
@@ -2255,6 +2271,8 @@ if (false) {
|
|
|
2255
2271
|
MultiTabComponent.prototype.singleReuseUrls;
|
|
2256
2272
|
/** @type {?} */
|
|
2257
2273
|
MultiTabComponent.prototype.noGenerateTabUrls;
|
|
2274
|
+
/** @type {?} */
|
|
2275
|
+
MultiTabComponent.prototype.onRefreshTab;
|
|
2258
2276
|
/**
|
|
2259
2277
|
* @type {?}
|
|
2260
2278
|
* @private
|