raise-common-lib 0.0.129 → 0.0.131
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 +68 -25
- 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 +64 -23
- package/esm2015/lib/layout/toolbar/index.component.js +2 -2
- package/esm5/lib/layout/multi-tab/index.component.js +68 -25
- package/esm5/lib/layout/toolbar/index.component.js +2 -2
- package/fesm2015/raise-common-lib.js +64 -23
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +68 -25
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/multi-tab/index.component.d.ts +2 -2
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
- package/src/assets/style/reset/grid.scss +111 -110
|
@@ -3017,16 +3017,6 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3017
3017
|
*/
|
|
3018
3018
|
function () {
|
|
3019
3019
|
var _this = this;
|
|
3020
|
-
this.subscriptions.push(this.cf.closeTab$.subscribe((/**
|
|
3021
|
-
* @param {?} idx
|
|
3022
|
-
* @return {?}
|
|
3023
|
-
*/
|
|
3024
|
-
function (idx) {
|
|
3025
|
-
if (idx === undefined) {
|
|
3026
|
-
idx = _this.selectedTab;
|
|
3027
|
-
}
|
|
3028
|
-
_this.closeTab(idx);
|
|
3029
|
-
})));
|
|
3030
3020
|
this.initTab();
|
|
3031
3021
|
// 解决刷新页面后,选中的 tab 丢失问题
|
|
3032
3022
|
/** @type {?} */
|
|
@@ -3035,7 +3025,8 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3035
3025
|
* @return {?}
|
|
3036
3026
|
*/
|
|
3037
3027
|
function (ele) {
|
|
3038
|
-
return _this.urlWithoutQuery(ele.url) ===
|
|
3028
|
+
return _this.urlWithoutQuery(ele.url) ===
|
|
3029
|
+
_this.urlWithoutQuery(_this.router.url);
|
|
3039
3030
|
}));
|
|
3040
3031
|
if (isExistIdx !== -1) {
|
|
3041
3032
|
this.selectedTab = isExistIdx;
|
|
@@ -3053,6 +3044,18 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3053
3044
|
/** @type {?} */
|
|
3054
3045
|
var navigation = _this.router.getCurrentNavigation();
|
|
3055
3046
|
if (navigation) {
|
|
3047
|
+
/** @type {?} */
|
|
3048
|
+
var tooltipElements = document.querySelectorAll(".e-popup-open");
|
|
3049
|
+
// 删除tooltips
|
|
3050
|
+
tooltipElements.forEach((/**
|
|
3051
|
+
* @param {?} element
|
|
3052
|
+
* @return {?}
|
|
3053
|
+
*/
|
|
3054
|
+
function (element) {
|
|
3055
|
+
/** @type {?} */
|
|
3056
|
+
var htmlElement = (/** @type {?} */ (element));
|
|
3057
|
+
htmlElement.style.display = "none";
|
|
3058
|
+
}));
|
|
3056
3059
|
/** @type {?} */
|
|
3057
3060
|
var state = navigation.extras.state;
|
|
3058
3061
|
// 获取传递的 state
|
|
@@ -3066,12 +3069,15 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3066
3069
|
/** @type {?} */
|
|
3067
3070
|
var title = (state && state.title) ||
|
|
3068
3071
|
navigationInfo.title ||
|
|
3069
|
-
navigationInfo.subTitle
|
|
3072
|
+
navigationInfo.subTitle ||
|
|
3073
|
+
navigationInfo.name;
|
|
3074
|
+
/** @type {?} */
|
|
3075
|
+
var noReused = (state && state.noReused) || false;
|
|
3070
3076
|
if (currentRoute && !skipLocationChange) {
|
|
3071
3077
|
if (_this.noGenerateTabUrls.includes(_this.urlWithoutQuery(_this.router.url))) {
|
|
3072
3078
|
return; // 排除不生成tab的url
|
|
3073
3079
|
}
|
|
3074
|
-
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title);
|
|
3080
|
+
_this.setTab(_this.router.url, currentRoute.snapshot.routeConfig.path, title, noReused);
|
|
3075
3081
|
}
|
|
3076
3082
|
}
|
|
3077
3083
|
})));
|
|
@@ -3199,13 +3205,15 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3199
3205
|
};
|
|
3200
3206
|
/**
|
|
3201
3207
|
* @param {?} idx
|
|
3208
|
+
* @param {?=} isExternal
|
|
3202
3209
|
* @return {?}
|
|
3203
3210
|
*/
|
|
3204
3211
|
MultiTabComponent.prototype.closeTab = /**
|
|
3205
3212
|
* @param {?} idx
|
|
3213
|
+
* @param {?=} isExternal
|
|
3206
3214
|
* @return {?}
|
|
3207
3215
|
*/
|
|
3208
|
-
function (idx) {
|
|
3216
|
+
function (idx, isExternal) {
|
|
3209
3217
|
/** @type {?} */
|
|
3210
3218
|
var tab = this.tabList[idx];
|
|
3211
3219
|
this.tabList = this.tabList.filter((/**
|
|
@@ -3214,11 +3222,14 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3214
3222
|
*/
|
|
3215
3223
|
function (ele) { return ele.url !== tab.url; }));
|
|
3216
3224
|
this.clearCache(this.urlWithoutQuery(tab.url));
|
|
3217
|
-
if (this.selectedTab === idx) {
|
|
3225
|
+
if (!isExternal && this.selectedTab === idx) {
|
|
3218
3226
|
/** @type {?} */
|
|
3219
3227
|
var targetIdx = Math.max(0, idx - 1);
|
|
3220
3228
|
this.changeTab(this.tabList[targetIdx], targetIdx);
|
|
3221
3229
|
}
|
|
3230
|
+
if (idx < this.selectedTab) {
|
|
3231
|
+
this.selectedTab = this.selectedTab - 1; // 如果关闭的tab在当前选中的tab之前,选中tab索引减1
|
|
3232
|
+
}
|
|
3222
3233
|
this.setEllipsisTitle();
|
|
3223
3234
|
sessionStorage.setItem("TabCache", JSON.stringify(this.tabList));
|
|
3224
3235
|
this.ref.markForCheck();
|
|
@@ -3235,6 +3246,15 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3235
3246
|
*/
|
|
3236
3247
|
function (tab, idx) {
|
|
3237
3248
|
this.router.navigateByUrl(tab.url);
|
|
3249
|
+
if (tab.navigationInfo) {
|
|
3250
|
+
sessionStorage.setItem("navigationInfo", JSON.stringify(tab.navigationInfo));
|
|
3251
|
+
}
|
|
3252
|
+
if (tab.fromUrl) {
|
|
3253
|
+
sessionStorage.setItem("fromUrl", tab.fromUrl);
|
|
3254
|
+
}
|
|
3255
|
+
if (tab.permissions) {
|
|
3256
|
+
sessionStorage.setItem("permissions", JSON.stringify(tab.permissions));
|
|
3257
|
+
}
|
|
3238
3258
|
this.selectedTab = idx;
|
|
3239
3259
|
this.ref.markForCheck();
|
|
3240
3260
|
};
|
|
@@ -3250,12 +3270,24 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3250
3270
|
*/
|
|
3251
3271
|
function (url, title) {
|
|
3252
3272
|
if (this.tabList.length >= this.maxTabs) {
|
|
3253
|
-
this.closeTab(
|
|
3273
|
+
this.closeTab(1); // 删除第二个,第一个固定
|
|
3254
3274
|
}
|
|
3275
|
+
/** @type {?} */
|
|
3276
|
+
var localPermissions = sessionStorage.getItem("permissions") ||
|
|
3277
|
+
localStorage.getItem("permissions");
|
|
3278
|
+
/** @type {?} */
|
|
3279
|
+
var navigationInfo = JSON.parse(sessionStorage.getItem("navigationInfo"));
|
|
3280
|
+
/** @type {?} */
|
|
3281
|
+
var fromUrl = sessionStorage.getItem("fromUrl");
|
|
3282
|
+
/** @type {?} */
|
|
3283
|
+
var permissions = JSON.parse(localPermissions);
|
|
3255
3284
|
this.tabList.push({
|
|
3256
3285
|
url: url,
|
|
3257
3286
|
title: title || "default",
|
|
3258
3287
|
displayTitle: title,
|
|
3288
|
+
navigationInfo: navigationInfo,
|
|
3289
|
+
permissions: permissions,
|
|
3290
|
+
fromUrl: fromUrl,
|
|
3259
3291
|
});
|
|
3260
3292
|
this.selectedTab = this.tabList.length - 1;
|
|
3261
3293
|
this.setEllipsisTitle();
|
|
@@ -3264,17 +3296,19 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3264
3296
|
};
|
|
3265
3297
|
/**
|
|
3266
3298
|
* @param {?} url
|
|
3267
|
-
* @param {
|
|
3268
|
-
* @param {
|
|
3299
|
+
* @param {?} pureUrl
|
|
3300
|
+
* @param {?} title
|
|
3301
|
+
* @param {?} noReused
|
|
3269
3302
|
* @return {?}
|
|
3270
3303
|
*/
|
|
3271
3304
|
MultiTabComponent.prototype.setTab = /**
|
|
3272
3305
|
* @param {?} url
|
|
3273
|
-
* @param {
|
|
3274
|
-
* @param {
|
|
3306
|
+
* @param {?} pureUrl
|
|
3307
|
+
* @param {?} title
|
|
3308
|
+
* @param {?} noReused
|
|
3275
3309
|
* @return {?}
|
|
3276
3310
|
*/
|
|
3277
|
-
function (url, pureUrl, title) {
|
|
3311
|
+
function (url, pureUrl, title, noReused) {
|
|
3278
3312
|
var _this = this;
|
|
3279
3313
|
/** @type {?} */
|
|
3280
3314
|
var isExistIdx = this.tabList.findIndex((/**
|
|
@@ -3301,7 +3335,16 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3301
3335
|
this.addTab(url, title);
|
|
3302
3336
|
}
|
|
3303
3337
|
else {
|
|
3304
|
-
|
|
3338
|
+
/** @type {?} */
|
|
3339
|
+
var targetTabUrl = this.tabList[isExistIdx].url;
|
|
3340
|
+
if (targetTabUrl !== url || noReused) {
|
|
3341
|
+
// 当缓存一致时候,但是url不一致,重新按照新的url生成tab
|
|
3342
|
+
this.closeTab(isExistIdx, true);
|
|
3343
|
+
this.addTab(url, title);
|
|
3344
|
+
}
|
|
3345
|
+
else {
|
|
3346
|
+
this.changeTab(this.tabList[isExistIdx], isExistIdx);
|
|
3347
|
+
}
|
|
3305
3348
|
this.ref.markForCheck();
|
|
3306
3349
|
}
|
|
3307
3350
|
};
|
|
@@ -3364,8 +3407,8 @@ var MultiTabComponent = /** @class */ (function () {
|
|
|
3364
3407
|
MultiTabComponent.decorators = [
|
|
3365
3408
|
{ type: Component, args: [{
|
|
3366
3409
|
selector: "rs-multi-tab",
|
|
3367
|
-
template: "<div class=\"rs-multi-tab\" [ngClass]=\"{ 'b-line': tabList.length > 0 }\">\r\n
|
|
3368
|
-
styles: [".rs-multi-tab{width:100%;display:flex;justify-content:space-between;margin:0 auto;max-width:1886px}.rs-multi-tab.b-line{border-bottom:1px solid #e5eaef}.rs-multi-tab ul{display:flex;margin:0 8px;padding:0;overflow:hidden;height:100%}.rs-multi-tab ul li{max-width:164px;padding:0 12px;display:flex;align-items:center;flex:auto;border:1px solid #e5eaef;border-bottom:none;color:#5f6f81;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;height:28px;background:#f8fafb;vertical-align:top;position:relative;cursor:default}.rs-multi-tab ul li .tabTitle{display:inline-block;white-space:nowrap;font-size:11px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px;transition:width .3s}.rs-multi-tab ul li img{border-radius:4px;padding:4px;margin-left:6px;margin-top:1px;vertical-align:top;cursor:pointer}.rs-multi-tab ul li img:hover{background:#dce8f6}.rs-multi-tab ul li:not(:last-child){border-right:none}.rs-multi-tab ul li:first-of-type{border-top-left-radius:8px}.rs-multi-tab ul li:last-child{border-top-right-radius:8px}.rs-multi-tab ul .isSelect{color:#1f3f5c;background:#fff}.rs-multi-tab ul .notSelect img{display:none}.rs-multi-tab ul .notSelect .img-block{display:inline-block;width:22px}.rs-multi-tab ul .notSelect:hover{color:#1f3f5c;background-color:rgba(31,123,255,.04)}.rs-multi-tab ul .notSelect:hover .img-block{display:none}.rs-multi-tab ul .notSelect:hover img{display:inline-block}.rs-multi-tab .refresh-tab{cursor:pointer;text-align:right;color:#6c7c90;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;padding-right:12px}.rs-multi-tab .refresh-tab img{vertical-align:middle;margin-right:4px}.refresh-tab-loading{-webkit-animation:1s linear infinite spin;animation:1s linear infinite spin}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.tooltip-content{padding:4px;color:#f8fafb;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:14px}@media (max-width:1400px){.refresh-tab{padding-right:0!important}.refresh-tab span{display:none!important}}@media (max-width:1100px){.rs-multi-tab ul li img{position:absolute;right:3px;background-color:#fff}.notSelect:hover img{position:absolute;right:3px;background-color:#eff5fb}.img-block{display:none!important}}@media (max-width:600px){.rs-multi-tab ul li{padding:0 8px}.rs-multi-tab ul .notSelect .img-block{width:0!important}}"]
|
|
3410
|
+
template: "<div class=\"rs-multi-tab\" [ngClass]=\"{ 'b-line': tabList.length > 0 }\">\r\n\t<ul>\r\n\t\t<ng-container *ngFor=\"let tab of tabList; let i = index\">\r\n\t\t\t<li\r\n\t\t\t\t[ngClass]=\"selectedTab === i ? 'isSelect' : 'notSelect'\"\r\n\t\t\t\t(click)=\"changeTab(tab, i)\"\r\n\t\t\t>\r\n\t\t\t\t<ejs-tooltip\r\n\t\t\t\t\tid=\"notSelectTooltip\"\r\n\t\t\t\t\t[showTipPointer]=\"false\"\r\n\t\t\t\t\t[openDelay]=\"500\"\r\n\t\t\t\t\t*ngIf=\"tab.displayTitle !== tab.title; else originText\"\r\n\t\t\t\t\tstyle=\"height: 27px\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<ng-template #content>\r\n\t\t\t\t\t\t<div class=\"tooltip-content\">\r\n\t\t\t\t\t\t\t{{ tab.title }}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t<span class=\"tabTitle\">{{ tab.displayTitle }}</span>\r\n\t\t\t\t</ejs-tooltip>\r\n\t\t\t\t<ng-template #originText>\r\n\t\t\t\t\t<span class=\"tabTitle\">\r\n\t\t\t\t\t\t{{ tab.displayTitle }}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</ng-template>\r\n\t\t\t\t<span\r\n\t\t\t\t\tclass=\"img-block\"\r\n\t\t\t\t\t*ngIf=\"selectedTab !== i && i !== 0\"\r\n\t\t\t\t></span>\r\n\t\t\t\t<img\r\n\t\t\t\t\t*ngIf=\"i !== 0\"\r\n\t\t\t\t\tsrc=\"../../../assets/img/close-url.svg\"\r\n\t\t\t\t\t(click)=\"closeTab(i)\"\r\n\t\t\t\t/>\r\n\t\t\t</li>\r\n\t\t</ng-container>\r\n\t</ul>\r\n\t<div class=\"refresh-tab\" (click)=\"refreshTab()\" *ngIf=\"tabList.length > 0\">\r\n\t\t<ejs-tooltip\r\n\t\t\tid=\"notSelectTooltip\"\r\n\t\t\tcssClass=\"notSelectTooltip\"\r\n\t\t\t[showTipPointer]=\"false\"\r\n\t\t\t[openDelay]=\"500\"\r\n\t\t\tstyle=\"height: 27px\"\r\n\t\t>\r\n\t\t\t<ng-template #content>\r\n\t\t\t\t<div class=\"tooltip-content\">Refresh Current Tab</div>\r\n\t\t\t</ng-template>\r\n\t\t\t<img\r\n\t\t\t\tid=\"loadingIcon\"\r\n\t\t\t\talt\r\n\t\t\t\tclass=\"refresh-btn\"\r\n\t\t\t\tsrc=\"../../../assets/img/desktop-refresh-btn.svg\"\r\n\t\t\t/>\r\n\t\t</ejs-tooltip>\r\n\t</div>\r\n</div>\r\n",
|
|
3411
|
+
styles: [".rs-multi-tab{width:100%;display:flex;justify-content:space-between;margin:0 auto;max-width:1886px}.rs-multi-tab.b-line{border-bottom:1px solid #e5eaef}.rs-multi-tab ul{display:flex;margin:0 8px;padding:0;overflow:hidden;height:100%}.rs-multi-tab ul li{max-width:164px;padding:0 12px;display:flex;align-items:center;flex:auto;border:1px solid #e5eaef;border-bottom:none;color:#5f6f81;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;height:28px;background:#f8fafb;vertical-align:top;position:relative;cursor:default}.rs-multi-tab ul li .tabTitle{display:inline-block;white-space:nowrap;font-size:11px;font-family:Arial;font-style:normal;font-weight:400;line-height:16px;transition:width .3s}.rs-multi-tab ul li img{border-radius:4px;padding:4px;margin-left:6px;margin-top:1px;vertical-align:top;cursor:pointer}.rs-multi-tab ul li img:hover{background:#dce8f6}.rs-multi-tab ul li:not(:last-child){border-right:none}.rs-multi-tab ul li:first-of-type{border-top-left-radius:8px}.rs-multi-tab ul li:last-child{border-top-right-radius:8px}.rs-multi-tab ul .isSelect{color:#1f3f5c;background:#fff}.rs-multi-tab ul .notSelect img{display:none}.rs-multi-tab ul .notSelect .img-block{display:inline-block;width:22px}.rs-multi-tab ul .notSelect:hover{color:#1f3f5c;background-color:rgba(31,123,255,.04)}.rs-multi-tab ul .notSelect:hover .img-block{display:none}.rs-multi-tab ul .notSelect:hover img{display:inline-block}.rs-multi-tab .refresh-tab{cursor:pointer;text-align:right;color:#6c7c90;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:28px;padding-right:12px}.rs-multi-tab .refresh-tab img{vertical-align:middle;margin-right:4px}.refresh-tab-loading{-webkit-animation:1s linear infinite spin;animation:1s linear infinite spin}.notSelectTooltip{transform:translateX(-12px)}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.tooltip-content{padding:4px;color:#f8fafb;font-family:Arial;font-size:11px;font-style:normal;font-weight:400;line-height:14px}@media (max-width:1400px){.refresh-tab{padding-right:0!important}.refresh-tab span{display:none!important}}@media (max-width:1100px){.rs-multi-tab ul li img{position:absolute;right:3px;background-color:#fff}.notSelect:hover img{position:absolute;right:3px;background-color:#eff5fb}.img-block{display:none!important}.isSelect:not(:first-child){padding-right:20px!important}}@media (max-width:600px){.rs-multi-tab ul li{padding:0 8px}.rs-multi-tab ul .notSelect .img-block{width:0!important}}"]
|
|
3369
3412
|
}] }
|
|
3370
3413
|
];
|
|
3371
3414
|
/** @nocollapse */
|
|
@@ -3922,7 +3965,7 @@ var RSToolbarComponent = /** @class */ (function () {
|
|
|
3922
3965
|
RSToolbarComponent.decorators = [
|
|
3923
3966
|
{ type: Component, args: [{
|
|
3924
3967
|
selector: "rs-toolbar",
|
|
3925
|
-
template: "<div #toolbarContainer class=\"rs-toolbar-container\">\r\n <!-- \u53EF\u89C1\u6309\u94AE -->\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"temp-hidden\" #toolbarItem>\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action && button.action()\"\r\n [children]=\"button.children || []\"\r\n [disabledOptions]=\"disabledOptions\"\r\n >\r\n </rs-toolbar-item>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- \u4E0B\u62C9\u83DC\u5355\uFF08\u5982\u679C\u6709\u9690\u85CF\u6309\u94AE\uFF09 -->\r\n <button\r\n *ngIf=\"hiddenButtons.length > 0\"\r\n mat-button\r\n [matMenuTriggerFor]=\"menu\"\r\n #menuTrigger=\"matMenuTrigger\"\r\n class=\"action-toggle\"\r\n >\r\n <mat-icon svgIcon=\"more\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of hiddenButtons\">\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n (click)=\"button.action && button.action()\"\r\n [disabled]=\"disabledOptions[button.key] || false\"\r\n [children]=\"button.children || []\"\r\n >\r\n </rs-toolbar-item>\r\n </ng-container>\r\n </mat-menu>\r\n</div>\r\n",
|
|
3968
|
+
template: "<div #toolbarContainer class=\"rs-toolbar-container\">\r\n <!-- \u53EF\u89C1\u6309\u94AE -->\r\n <ng-container *ngFor=\"let button of buttons\">\r\n <div class=\"temp-hidden\" #toolbarItem>\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n [disabled]=\"(button.key && disabledOptions[button.key]) || false\"\r\n (click)=\"button.action && button.action()\"\r\n [children]=\"button.children || []\"\r\n [disabledOptions]=\"disabledOptions\"\r\n >\r\n </rs-toolbar-item>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- \u4E0B\u62C9\u83DC\u5355\uFF08\u5982\u679C\u6709\u9690\u85CF\u6309\u94AE\uFF09 -->\r\n <button\r\n *ngIf=\"hiddenButtons.length > 0\"\r\n mat-button\r\n [matMenuTriggerFor]=\"menu\"\r\n #menuTrigger=\"matMenuTrigger\"\r\n class=\"action-toggle\"\r\n >\r\n <mat-icon svgIcon=\"more\"></mat-icon>\r\n </button>\r\n\r\n <mat-menu #menu=\"matMenu\">\r\n <ng-container *ngFor=\"let button of hiddenButtons\">\r\n <rs-toolbar-item\r\n [image]=\"button.image\"\r\n [text]=\"button.text\"\r\n (click)=\"button.action && button.action()\"\r\n [disabled]=\"disabledOptions[button.key] || false\"\r\n [children]=\"button.children || []\"\r\n [disabledOptions]=\"disabledOptions\"\r\n >\r\n </rs-toolbar-item>\r\n </ng-container>\r\n </mat-menu>\r\n</div>\r\n",
|
|
3926
3969
|
styles: [":host{display:block;width:100%}.rs-toolbar-container{width:100%;display:flex;align-items:center}.rs-toolbar-container .temp-hidden{visibility:hidden;position:absolute}.rs-toolbar-container .action-toggle{width:24px;height:24px;min-width:24px;max-width:24px;padding:0;border-radius:4px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;background:0 0}.rs-toolbar-container .action-toggle:hover{background:rgba(214,227,245,.2)}.rs-toolbar-container .action-toggle .mat-button-wrapper{max-height:24px;height:24px}.rs-toolbar-container .action-toggle ::ng-deep .mat-icon{width:16px;height:16px;display:flex;flex-flow:row nowrap;justify-content:center;align-items:center}"]
|
|
3927
3970
|
}] }
|
|
3928
3971
|
];
|