raise-common-lib 0.0.44 → 0.0.45
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 +27 -9
- 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 +12 -10
- package/esm2015/lib/service/common-function.service.js +14 -1
- package/esm5/lib/layout/multi-tab/index.component.js +12 -11
- package/esm5/lib/service/common-function.service.js +18 -1
- package/fesm2015/raise-common-lib.js +23 -8
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +27 -9
- 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
|
@@ -1675,6 +1675,8 @@
|
|
|
1675
1675
|
function CommonFunctionService() {
|
|
1676
1676
|
this.closeTabSubject = new rxjs.Subject();
|
|
1677
1677
|
this.closeTab$ = this.closeTabSubject.asObservable();
|
|
1678
|
+
this.pub = new rxjs.Subject();
|
|
1679
|
+
this.pub$ = this.pub.asObservable();
|
|
1678
1680
|
}
|
|
1679
1681
|
/**
|
|
1680
1682
|
* @return {?}
|
|
@@ -1766,6 +1768,17 @@
|
|
|
1766
1768
|
function (tabIndex) {
|
|
1767
1769
|
return this.closeTabSubject.next(tabIndex);
|
|
1768
1770
|
};
|
|
1771
|
+
/**
|
|
1772
|
+
* @param {?} event
|
|
1773
|
+
* @return {?}
|
|
1774
|
+
*/
|
|
1775
|
+
CommonFunctionService.prototype.publish = /**
|
|
1776
|
+
* @param {?} event
|
|
1777
|
+
* @return {?}
|
|
1778
|
+
*/
|
|
1779
|
+
function (event) {
|
|
1780
|
+
this.pub.next(event);
|
|
1781
|
+
};
|
|
1769
1782
|
CommonFunctionService.decorators = [
|
|
1770
1783
|
{ type: core.Injectable, args: [{
|
|
1771
1784
|
providedIn: "root",
|
|
@@ -1784,6 +1797,10 @@
|
|
|
1784
1797
|
CommonFunctionService.prototype.closeTabSubject;
|
|
1785
1798
|
/** @type {?} */
|
|
1786
1799
|
CommonFunctionService.prototype.closeTab$;
|
|
1800
|
+
/** @type {?} */
|
|
1801
|
+
CommonFunctionService.prototype.pub;
|
|
1802
|
+
/** @type {?} */
|
|
1803
|
+
CommonFunctionService.prototype.pub$;
|
|
1787
1804
|
}
|
|
1788
1805
|
|
|
1789
1806
|
/**
|
|
@@ -2080,6 +2097,7 @@
|
|
|
2080
2097
|
//只能单个缓存的url
|
|
2081
2098
|
this.noGenerateTabUrls = []; //不生成tab的url
|
|
2082
2099
|
//不生成tab的url
|
|
2100
|
+
this.onRefreshTab = new core.EventEmitter();
|
|
2083
2101
|
this.subscriptions = [];
|
|
2084
2102
|
this.TAB_WIDTH = 164;
|
|
2085
2103
|
this.GAP_NORMAL = 54;
|
|
@@ -2396,17 +2414,14 @@
|
|
|
2396
2414
|
* @return {?}
|
|
2397
2415
|
*/
|
|
2398
2416
|
function () {
|
|
2399
|
-
|
|
2400
|
-
this.
|
|
2401
|
-
this.drawer.deleteCache(this.tabList[this.selectedTab].url);
|
|
2417
|
+
// this.keepAlive.clearCache(this.tabList[this.selectedTab].url);
|
|
2418
|
+
// this.drawer.deleteCache(this.tabList[this.selectedTab].url);
|
|
2402
2419
|
/** @type {?} */
|
|
2403
2420
|
var currentUrl = this.router.url;
|
|
2404
|
-
this.
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
_this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
|
|
2409
|
-
}));
|
|
2421
|
+
this.onRefreshTab.emit(currentUrl);
|
|
2422
|
+
// this.router.navigateByUrl("/", { skipLocationChange: true }).then(() => {
|
|
2423
|
+
// this.router.navigateByUrl(currentUrl); // 重新导航到当前 URL
|
|
2424
|
+
// });
|
|
2410
2425
|
};
|
|
2411
2426
|
/**
|
|
2412
2427
|
* @param {?} url
|
|
@@ -2439,6 +2454,7 @@
|
|
|
2439
2454
|
MultiTabComponent.propDecorators = {
|
|
2440
2455
|
singleReuseUrls: [{ type: core.Input }],
|
|
2441
2456
|
noGenerateTabUrls: [{ type: core.Input }],
|
|
2457
|
+
onRefreshTab: [{ type: core.Output }],
|
|
2442
2458
|
onResize: [{ type: core.HostListener, args: ["window:resize", ["$event"],] }]
|
|
2443
2459
|
};
|
|
2444
2460
|
return MultiTabComponent;
|
|
@@ -2450,6 +2466,8 @@
|
|
|
2450
2466
|
MultiTabComponent.prototype.singleReuseUrls;
|
|
2451
2467
|
/** @type {?} */
|
|
2452
2468
|
MultiTabComponent.prototype.noGenerateTabUrls;
|
|
2469
|
+
/** @type {?} */
|
|
2470
|
+
MultiTabComponent.prototype.onRefreshTab;
|
|
2453
2471
|
/**
|
|
2454
2472
|
* @type {?}
|
|
2455
2473
|
* @private
|