@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.21
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/dist/index-3cxXHoLs.js +4 -0
- package/dist/{index-B_Fo_3Rt.js → index-CiEIUSX9.js} +1 -1
- package/dist/{index-BvI3oZGL.js → index-HW5stxcy.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-BlkeQIMu.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -3
- package/es/common/control-navigation/control-navigation.css +1 -0
- package/es/common/control-navigation/control-navigation.d.ts +32 -0
- package/es/common/control-navigation/control-navigation.mjs +116 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
- package/es/common/control-navigation/provider/index.d.ts +10 -0
- package/es/common/control-navigation/provider/index.mjs +17 -0
- package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
- package/es/common/custom-theme/custom-theme-model.mjs +5 -13
- package/es/common/gantt-setting/gantt-setting.css +1 -0
- package/es/common/gantt-setting/gantt-setting.d.ts +53 -0
- package/es/common/gantt-setting/gantt-setting.mjs +217 -0
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +2 -1
- package/es/common/grid-setting/grid-setting.mjs +20 -4
- package/es/common/index.mjs +6 -0
- package/es/common/nav-split/nav-split.css +1 -0
- package/es/common/nav-split/nav-split.d.ts +57 -0
- package/es/common/nav-split/nav-split.mjs +209 -0
- package/es/common/pql-editor/utils/index.mjs +30 -40
- package/es/common/split/split.css +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +3 -0
- package/es/control/app-menu/app-menu.mjs +54 -16
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +11 -3
- package/es/control/app-menu/index.d.ts +3 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +12 -1
- package/es/control/calendar/calendar.mjs +42 -10
- package/es/control/calendar/index.d.ts +12 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +2 -1
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -0
- package/es/control/data-view/data-view.mjs +21 -3
- package/es/control/data-view/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +9 -1
- package/es/control/drtab/drtab.controller.mjs +26 -2
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +3 -1
- package/es/control/drtab/drtab.mjs +68 -9
- package/es/control/drtab/index.d.ts +3 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +2 -4
- package/es/control/gantt/gantt.mjs +82 -25
- package/es/control/gantt/index.d.ts +2 -4
- package/es/control/grid/grid/grid-control.util.mjs +2 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +75 -71
- package/es/control/list/index.d.ts +1 -0
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -0
- package/es/control/list/list.mjs +23 -5
- package/es/control/map/map.d.ts +9 -0
- package/es/control/map/map.mjs +4 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/el-tree-util.d.ts +39 -1
- package/es/control/tree/el-tree-util.mjs +70 -2
- package/es/control/tree/index.d.ts +16 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +16 -14
- package/es/control/tree/tree.mjs +60 -31
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/locale/en/index.d.ts +17 -0
- package/es/locale/en/index.mjs +18 -1
- package/es/locale/zh-CN/index.d.ts +17 -0
- package/es/locale/zh-CN/index.mjs +18 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index.mjs +2 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
- package/es/panel-component/panel-app-title/index.mjs +4 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/notification-util/notification-util.d.ts +10 -1
- package/es/util/notification-util/notification-util.mjs +36 -0
- package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
- package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
- package/es/util/pagination/use-pagination.mjs +5 -4
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +20 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
- package/lib/common/control-navigation/control-navigation.cjs +118 -0
- package/lib/common/control-navigation/control-navigation.css +1 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
- package/lib/common/control-navigation/provider/index.cjs +19 -0
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
- package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
- package/lib/common/gantt-setting/gantt-setting.cjs +219 -0
- package/lib/common/gantt-setting/gantt-setting.css +1 -0
- package/lib/common/grid-setting/grid-setting.cjs +20 -4
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/common/index.cjs +6 -0
- package/lib/common/nav-split/nav-split.cjs +211 -0
- package/lib/common/nav-split/nav-split.css +1 -0
- package/lib/common/pql-editor/utils/index.cjs +30 -40
- package/lib/common/split/split.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +52 -14
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +10 -2
- package/lib/control/calendar/calendar.cjs +42 -10
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +2 -1
- package/lib/control/data-view/data-view.cjs +21 -3
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +67 -8
- package/lib/control/drtab/drtab.controller.cjs +26 -2
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +80 -23
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +2 -2
- package/lib/control/grid/grid/grid.cjs +75 -71
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/list/list.cjs +23 -5
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +4 -0
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/el-tree-util.cjs +70 -0
- package/lib/control/tree/tree.cjs +58 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/locale/en/index.cjs +18 -1
- package/lib/locale/zh-CN/index.cjs +18 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/index.cjs +1 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
- package/lib/panel-component/panel-app-title/index.cjs +4 -0
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/notification-util/notification-util.cjs +36 -0
- package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/lib/util/pagination/use-pagination.cjs +5 -4
- package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
- package/package.json +10 -10
- package/dist/index-VQ3FT6ih.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -382,7 +382,8 @@ var index = {
|
|
|
382
382
|
gantt: {
|
|
383
383
|
complete: "\u5B8C\u6210\u91CF",
|
|
384
384
|
total: "\u603B\u91CF",
|
|
385
|
-
deadline: "\u622A\u6B62\u65F6\u95F4"
|
|
385
|
+
deadline: "\u622A\u6B62\u65F6\u95F4",
|
|
386
|
+
hideControl: "\u5217\u9009\u62E9"
|
|
386
387
|
},
|
|
387
388
|
kanban: {
|
|
388
389
|
selectAll: "\u5168\u9009",
|
|
@@ -499,6 +500,12 @@ var index = {
|
|
|
499
500
|
gridSetting: {
|
|
500
501
|
hideControl: "\u5217\u9009\u62E9"
|
|
501
502
|
},
|
|
503
|
+
ganttSetting: {
|
|
504
|
+
resultDefault: "\u6062\u590D\u9ED8\u8BA4\u503C",
|
|
505
|
+
headerCaption: "\u8868\u5934\u663E\u793A\u5C5E\u6027",
|
|
506
|
+
optionalAttribute: "\u53EF\u9009\u62E9\u5C5E\u6027",
|
|
507
|
+
selectedAttribute: "\u5DF2\u9009\u62E9\u5C5E\u6027"
|
|
508
|
+
},
|
|
502
509
|
actionToolbar: {
|
|
503
510
|
more: "\u66F4\u591A"
|
|
504
511
|
},
|
|
@@ -525,6 +532,10 @@ var index = {
|
|
|
525
532
|
noDelimiter: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u8868\u8FBE\u5F0F\u7F3A\u5931\u5206\u5272\u7B26\u3002",
|
|
526
533
|
errorCombination: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u9519\u8BEF\u7684\u62EC\u53F7\u7EC4\u5408\u3002",
|
|
527
534
|
errorDelimiter: "\u9519\u8BEF\u7684\u8868\u8FBE\u5F0F\u3002\u9519\u8BEF\u7684\u5206\u5272\u7B26\u3002"
|
|
535
|
+
},
|
|
536
|
+
controlNavigation: {
|
|
537
|
+
showNav: "\u663E\u793A\u5BFC\u822A",
|
|
538
|
+
hiddenNav: "\u9690\u85CF\u5BFC\u822A"
|
|
528
539
|
}
|
|
529
540
|
},
|
|
530
541
|
// 编辑器
|
|
@@ -668,6 +679,12 @@ var index = {
|
|
|
668
679
|
menu: "\u81EA\u5B9A\u4E49\u83DC\u5355"
|
|
669
680
|
}
|
|
670
681
|
},
|
|
682
|
+
util: {
|
|
683
|
+
uploadManager: {
|
|
684
|
+
failed: "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25",
|
|
685
|
+
title: "\u8FDB\u7A0B\u7BA1\u7406\u5668"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
671
688
|
// runTime
|
|
672
689
|
...runtime.zhCn,
|
|
673
690
|
// vue3Util
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-
|
|
1
|
+
.ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:12px;font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin-right:var(--ibiz-spacing-base)}.ibiz-user-info.is-collapse .el-dropdown{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:32px;max-height:32px;margin:0}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;font-size:var(--ibiz-user-info-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px;margin-top:4px;font-size:var(--ibiz-font-size-small);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-index-actions{width:100%;height:
|
|
1
|
+
.ibiz-index-actions{--ibiz-index-actions-height:58px;--ibiz-index-actions-collapse-item-height:48px;width:100%;height:var(--ibiz-index-actions-height)}.ibiz-index-actions>.ibiz-row{height:100%;overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child{overflow:visible}.ibiz-index-actions>.ibiz-row>.ibiz-col:first-child>.ibiz-panel-container>.ibiz-row{overflow:visible}.ibiz-index-actions.is-hidden{display:none}.ibiz-index-actions.is-collapse{position:relative;height:auto;padding:0}.ibiz-index-actions.is-collapse>.ibiz-row{flex-wrap:wrap}.ibiz-index-actions.is-collapse>.ibiz-row>.ibiz-col{height:var(--ibiz-index-actions-collapse-item-height)!important}.ibiz-index-actions .el-button{font-size:var(--ibiz-font-size-header-2)}.ibiz-index-actions .el-button:hover{background-color:transparent}
|
|
@@ -39,6 +39,7 @@ var splitContainer_controller = require('./split-container/split-container.contr
|
|
|
39
39
|
"use strict";
|
|
40
40
|
const IBizPanelComponents = {
|
|
41
41
|
install: (v) => {
|
|
42
|
+
v.use(vue3Util.IBizPanelCtrlViewPageCaption);
|
|
42
43
|
v.use(vue3Util.IBizPanelContainer);
|
|
43
44
|
v.use(vue3Util.IBizPanelCtrlPos);
|
|
44
45
|
v.use(vue3Util.IBizScrollContainer);
|
|
@@ -78,25 +78,6 @@ class NavBreadcrumbController extends runtime.PanelItemController {
|
|
|
78
78
|
this.separator = this.rawItemParams.separator || "/";
|
|
79
79
|
this.showHome = this.rawItemParams.showhome === "true";
|
|
80
80
|
this.service = new navBreadcrumb_service.NavBreadcrumbService(this.navMode, this.panel.context);
|
|
81
|
-
if (["router", "store"].includes(this.navMode)) {
|
|
82
|
-
ibiz.util.viewStack.evt.on("change", (event) => {
|
|
83
|
-
const { type, view } = event;
|
|
84
|
-
if (!["add", "active"].includes(type)) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const chacheItem = this.service.getItem({
|
|
88
|
-
viewName: view.model.codeName
|
|
89
|
-
});
|
|
90
|
-
if (chacheItem) {
|
|
91
|
-
const viewInfo = navBreadcrumb_util.getViewInfoByViewStack(view.model.codeName);
|
|
92
|
-
if (viewInfo) {
|
|
93
|
-
Object.assign(chacheItem, ramda.reject(ramda.isNil, viewInfo));
|
|
94
|
-
}
|
|
95
|
-
this.service.update(chacheItem);
|
|
96
|
-
this.resetBreadcrumbs();
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
81
|
}
|
|
101
82
|
/**
|
|
102
83
|
* @description 初始化
|
|
@@ -117,7 +98,11 @@ class NavBreadcrumbController extends runtime.PanelItemController {
|
|
|
117
98
|
* @memberof NavBreadcrumbController
|
|
118
99
|
*/
|
|
119
100
|
onRouteChange(router) {
|
|
120
|
-
if (
|
|
101
|
+
if (this.navMode === "router") {
|
|
102
|
+
this.setBreadcrumbByRouter(router);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (this.navMode === "store") {
|
|
121
106
|
const { currentRoute } = router;
|
|
122
107
|
const fullPath = currentRoute.value.fullPath;
|
|
123
108
|
const viewName = navBreadcrumb_util.getCurViewName(router);
|
|
@@ -130,16 +115,8 @@ class NavBreadcrumbController extends runtime.PanelItemController {
|
|
|
130
115
|
this.resetBreadcrumbs();
|
|
131
116
|
return;
|
|
132
117
|
}
|
|
133
|
-
|
|
118
|
+
this.service.removeAfter(fullPath);
|
|
134
119
|
this.resetBreadcrumbs();
|
|
135
|
-
removeItems.forEach((item) => {
|
|
136
|
-
var _a;
|
|
137
|
-
if (item.fullPath) {
|
|
138
|
-
(_a = this.navPos) == null ? void 0 : _a.closeViewByKeys([item.fullPath]);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
} else if (this.navMode === "router") {
|
|
142
|
-
this.setBreadcrumbByRouter(router);
|
|
143
120
|
}
|
|
144
121
|
}
|
|
145
122
|
}
|
|
@@ -161,7 +138,7 @@ class NavBreadcrumbController extends runtime.PanelItemController {
|
|
|
161
138
|
if (this.navMode === "menu") {
|
|
162
139
|
return;
|
|
163
140
|
}
|
|
164
|
-
this.service.
|
|
141
|
+
this.service.updateOrAdd({ fullPath, ...info });
|
|
165
142
|
this.resetBreadcrumbs();
|
|
166
143
|
}
|
|
167
144
|
/**
|
|
@@ -72,7 +72,7 @@ class NavBreadcrumbService {
|
|
|
72
72
|
* @param {BreadcrumbMsg} item
|
|
73
73
|
* @memberof NavBreadcrumbService
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
updateOrAdd(item) {
|
|
76
76
|
if (!this.chache.length && this.navMode === "store") {
|
|
77
77
|
const result = localStorage.getItem("breadcrumb");
|
|
78
78
|
if (result) {
|
|
@@ -211,10 +211,15 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
211
211
|
});
|
|
212
212
|
});
|
|
213
213
|
view.evt.on("onActivated", () => {
|
|
214
|
-
|
|
214
|
+
const data = view.state.srfactiveviewdata;
|
|
215
|
+
const info = {
|
|
215
216
|
viewName: view.model.codeName,
|
|
216
217
|
caption: view.model.caption
|
|
217
|
-
}
|
|
218
|
+
};
|
|
219
|
+
if (data && data.srfkey) {
|
|
220
|
+
Object.assign(info, { dataInfo: data.srfmajortext || "" });
|
|
221
|
+
}
|
|
222
|
+
this.navBreadcrumb.updateViewInfo(key, info);
|
|
218
223
|
});
|
|
219
224
|
}
|
|
220
225
|
}
|
|
@@ -15,6 +15,10 @@ const IBizPanelAppTitle = vue3Util.withInstall(panelAppTitle.PanelAppTitle, func
|
|
|
15
15
|
"RAWITEM_APP_APPTITLE",
|
|
16
16
|
() => new panelAppTitle_provider.PanelAppTitleProvider()
|
|
17
17
|
);
|
|
18
|
+
runtime.registerPanelItemProvider(
|
|
19
|
+
"CTRLPOS_APP_APPTITLE",
|
|
20
|
+
() => new panelAppTitle_provider.PanelAppTitleProvider()
|
|
21
|
+
);
|
|
18
22
|
});
|
|
19
23
|
|
|
20
24
|
exports.PanelAppTitleController = panelAppTitle_controller.PanelAppTitleController;
|
|
@@ -75,135 +75,139 @@ const PanelAppTitle = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
75
|
subCaption2
|
|
76
76
|
} = this.c.state;
|
|
77
77
|
let iconVNode = null;
|
|
78
|
+
let content = null;
|
|
78
79
|
const captionNode = vue.createVNode("span", {
|
|
79
80
|
"class": this.ns.e("title")
|
|
80
81
|
}, [caption]);
|
|
81
|
-
if (this.
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
if (this.c.panel.view.model.viewType !== "APPINDEXVIEW") {
|
|
83
|
+
content = captionNode;
|
|
84
|
+
} else {
|
|
85
|
+
if (this.menuAlign === "LEFT") {
|
|
86
|
+
if (this.isCollapse) {
|
|
87
|
+
if (icon) {
|
|
88
|
+
let tempIcon = null;
|
|
89
|
+
if (isSvg) {
|
|
90
|
+
tempIcon = vue.createVNode("ion-icon", {
|
|
91
|
+
"class": this.ns.e("logo"),
|
|
92
|
+
"icon": icon
|
|
93
|
+
}, null);
|
|
94
|
+
} else {
|
|
95
|
+
tempIcon = vue.createVNode("span", {
|
|
96
|
+
"class": this.ns.e("logo")
|
|
97
|
+
}, [vue.createVNode("img", {
|
|
98
|
+
"src": icon
|
|
99
|
+
}, null)]);
|
|
100
|
+
}
|
|
101
|
+
iconVNode = vue.createVNode("div", {
|
|
102
|
+
"class": this.ns.e("collpase-icon")
|
|
103
|
+
}, [tempIcon]);
|
|
104
|
+
} else {
|
|
105
|
+
iconVNode = vue.createVNode("div", {
|
|
106
|
+
"class": this.ns.e("collapse-title")
|
|
107
|
+
}, [vue.createVNode("div", {
|
|
108
|
+
"class": this.ns.e("caption2")
|
|
109
|
+
}, [caption2]), vue.createVNode("div", {
|
|
110
|
+
"class": this.ns.e("subCaption2")
|
|
111
|
+
}, [subCaption2])]);
|
|
112
|
+
}
|
|
113
|
+
} else if (this.c.rawItemParams.showexpandicon === "true" && icon) {
|
|
84
114
|
let tempIcon = null;
|
|
85
115
|
if (isSvg) {
|
|
86
116
|
tempIcon = vue.createVNode("ion-icon", {
|
|
87
|
-
"class": this.ns.
|
|
117
|
+
"class": this.ns.em("logo", "expand"),
|
|
88
118
|
"icon": icon
|
|
89
119
|
}, null);
|
|
90
120
|
} else {
|
|
91
121
|
tempIcon = vue.createVNode("span", {
|
|
92
|
-
"class": this.ns.
|
|
122
|
+
"class": this.ns.em("logo", "expand")
|
|
93
123
|
}, [vue.createVNode("img", {
|
|
94
124
|
"src": icon
|
|
95
125
|
}, null)]);
|
|
96
126
|
}
|
|
97
|
-
iconVNode = vue.createVNode("
|
|
98
|
-
"class": this.ns.e("
|
|
99
|
-
}, [tempIcon
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"width": "166px",
|
|
127
|
-
"height": "90px",
|
|
128
|
-
"viewBox": "0 0 166 90",
|
|
129
|
-
"version": "1.1"
|
|
130
|
-
}, [vue.createVNode("g", {
|
|
131
|
-
"id": "app-caption-panel",
|
|
132
|
-
"stroke": "none",
|
|
133
|
-
"stroke-width": "1",
|
|
134
|
-
"fill-rule": "evenodd"
|
|
135
|
-
}, [vue.createVNode("text", {
|
|
136
|
-
"id": "app-caption",
|
|
137
|
-
"font-family": "Poppins-Bold, Poppins",
|
|
138
|
-
"font-size": "22",
|
|
139
|
-
"font-weight": "bold"
|
|
140
|
-
}, [vue.createVNode("tspan", {
|
|
141
|
-
"x": "8",
|
|
142
|
-
"y": "39"
|
|
143
|
-
}, [caption])]), vue.createVNode("text", {
|
|
144
|
-
"id": "app-subcaption",
|
|
145
|
-
"font-family": "PingFangSC-Semibold, PingFang SC",
|
|
146
|
-
"font-size": "14",
|
|
147
|
-
"font-weight": "bold"
|
|
148
|
-
}, [vue.createVNode("tspan", {
|
|
149
|
-
"x": "8",
|
|
150
|
-
"y": "66"
|
|
151
|
-
}, [subCaption])])])])]);
|
|
152
|
-
} else {
|
|
153
|
-
iconVNode = vue.createVNode("span", {
|
|
154
|
-
"class": this.ns.e("logo")
|
|
155
|
-
}, [vue.createVNode("svg", {
|
|
156
|
-
"width": "256px",
|
|
157
|
-
"height": "90px",
|
|
158
|
-
"viewBox": "0 0 256 90",
|
|
159
|
-
"version": "1.1"
|
|
160
|
-
}, [vue.createVNode("g", {
|
|
161
|
-
"id": "app-caption-panel",
|
|
162
|
-
"stroke": "none",
|
|
163
|
-
"stroke-width": "1",
|
|
164
|
-
"fill-rule": "evenodd"
|
|
165
|
-
}, [vue.createVNode("text", {
|
|
166
|
-
"id": "app-caption",
|
|
167
|
-
"font-family": "Poppins-Bold, Poppins",
|
|
168
|
-
"font-size": "22",
|
|
169
|
-
"font-weight": "bold"
|
|
170
|
-
}, [vue.createVNode("tspan", {
|
|
171
|
-
"x": "20.961",
|
|
172
|
-
"y": "39"
|
|
173
|
-
}, [caption])]), vue.createVNode("text", {
|
|
174
|
-
"id": "app-subcaption",
|
|
175
|
-
"font-family": "PingFangSC-Semibold, PingFang SC",
|
|
176
|
-
"font-size": "18",
|
|
177
|
-
"font-weight": "bold"
|
|
178
|
-
}, [vue.createVNode("tspan", {
|
|
179
|
-
"x": "96",
|
|
180
|
-
"y": "73"
|
|
181
|
-
}, [subCaption])])])])]);
|
|
182
|
-
}
|
|
183
|
-
} else if (this.menuAlign === "TOP") {
|
|
184
|
-
if (icon) {
|
|
185
|
-
if (isSvg) {
|
|
186
|
-
iconVNode = vue.createVNode("ion-icon", {
|
|
187
|
-
"class": this.ns.e("logo"),
|
|
188
|
-
"icon": icon
|
|
189
|
-
}, null);
|
|
127
|
+
iconVNode = vue.createVNode("span", {
|
|
128
|
+
"class": this.ns.e("logo")
|
|
129
|
+
}, [tempIcon, vue.createVNode("svg", {
|
|
130
|
+
"width": "166px",
|
|
131
|
+
"height": "80px",
|
|
132
|
+
"viewBox": "0 0 166 90",
|
|
133
|
+
"version": "1.1"
|
|
134
|
+
}, [vue.createVNode("g", {
|
|
135
|
+
"id": "app-caption-panel",
|
|
136
|
+
"stroke": "none",
|
|
137
|
+
"stroke-width": "1",
|
|
138
|
+
"fill-rule": "evenodd"
|
|
139
|
+
}, [vue.createVNode("text", {
|
|
140
|
+
"id": "app-caption",
|
|
141
|
+
"font-family": "Poppins-Bold, Poppins",
|
|
142
|
+
"font-size": "22",
|
|
143
|
+
"font-weight": "bold"
|
|
144
|
+
}, [vue.createVNode("tspan", {
|
|
145
|
+
"x": "8",
|
|
146
|
+
"y": "39"
|
|
147
|
+
}, [caption])]), vue.createVNode("text", {
|
|
148
|
+
"id": "app-subcaption",
|
|
149
|
+
"font-family": "PingFangSC-Semibold, PingFang SC",
|
|
150
|
+
"font-size": "14",
|
|
151
|
+
"font-weight": "bold"
|
|
152
|
+
}, [vue.createVNode("tspan", {
|
|
153
|
+
"x": "8",
|
|
154
|
+
"y": "66"
|
|
155
|
+
}, [subCaption])])])])]);
|
|
190
156
|
} else {
|
|
191
157
|
iconVNode = vue.createVNode("span", {
|
|
192
158
|
"class": this.ns.e("logo")
|
|
193
|
-
}, [vue.createVNode("
|
|
194
|
-
"
|
|
195
|
-
|
|
159
|
+
}, [vue.createVNode("svg", {
|
|
160
|
+
"width": "256px",
|
|
161
|
+
"height": "80px",
|
|
162
|
+
"viewBox": "0 0 256 80",
|
|
163
|
+
"version": "1.1"
|
|
164
|
+
}, [vue.createVNode("g", {
|
|
165
|
+
"id": "app-caption-panel",
|
|
166
|
+
"stroke": "none",
|
|
167
|
+
"stroke-width": "1",
|
|
168
|
+
"fill-rule": "evenodd"
|
|
169
|
+
}, [vue.createVNode("text", {
|
|
170
|
+
"id": "app-caption",
|
|
171
|
+
"font-family": "Poppins-Bold, Poppins",
|
|
172
|
+
"font-size": "22",
|
|
173
|
+
"font-weight": "bold"
|
|
174
|
+
}, [vue.createVNode("tspan", {
|
|
175
|
+
"x": "20.961",
|
|
176
|
+
"y": "40"
|
|
177
|
+
}, [caption])]), vue.createVNode("text", {
|
|
178
|
+
"id": "app-subcaption",
|
|
179
|
+
"font-family": "PingFangSC-Semibold, PingFang SC",
|
|
180
|
+
"font-size": "18",
|
|
181
|
+
"font-weight": "bold"
|
|
182
|
+
}, [vue.createVNode("tspan", {
|
|
183
|
+
"x": "96",
|
|
184
|
+
"y": "69"
|
|
185
|
+
}, [subCaption])])])])]);
|
|
186
|
+
}
|
|
187
|
+
} else if (this.menuAlign === "TOP") {
|
|
188
|
+
if (icon) {
|
|
189
|
+
if (isSvg) {
|
|
190
|
+
iconVNode = vue.createVNode("ion-icon", {
|
|
191
|
+
"class": this.ns.e("logo"),
|
|
192
|
+
"icon": icon
|
|
193
|
+
}, null);
|
|
194
|
+
} else {
|
|
195
|
+
iconVNode = vue.createVNode("span", {
|
|
196
|
+
"class": this.ns.e("logo")
|
|
197
|
+
}, [vue.createVNode("img", {
|
|
198
|
+
"src": icon
|
|
199
|
+
}, null)]);
|
|
200
|
+
}
|
|
196
201
|
}
|
|
197
202
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
content = [iconVNode, captionNode];
|
|
203
|
+
if (this.menuAlign === "LEFT") {
|
|
204
|
+
content = iconVNode;
|
|
205
|
+
} else {
|
|
206
|
+
content = [iconVNode, captionNode];
|
|
207
|
+
}
|
|
204
208
|
}
|
|
205
209
|
return vue.createVNode("div", {
|
|
206
|
-
"class": [this.ns.b(), this.ns.is("only-img", this.showImgOnly), this.ns.is("collapse", this.isCollapse), ...this.controller.containerClass],
|
|
210
|
+
"class": [this.ns.b(), this.ns.is("only-img", this.showImgOnly), this.ns.is("collapse", this.isCollapse), this.ns.is("only-title", this.c.panel.view.model.viewType !== "APPINDEXVIEW"), ...this.controller.containerClass],
|
|
207
211
|
"onClick": this.handleClick
|
|
208
212
|
}, [content]);
|
|
209
213
|
}
|
|
@@ -40,6 +40,14 @@ class PanelAppTitleController extends runtime.PanelItemController {
|
|
|
40
40
|
async onInit() {
|
|
41
41
|
await super.onInit();
|
|
42
42
|
this.handleRawItemParams();
|
|
43
|
+
if (this.panel.view.model.viewType !== "APPINDEXVIEW") {
|
|
44
|
+
const viewModel = this.panel.view.model;
|
|
45
|
+
const app = ibiz.hub.getApp(viewModel.appId);
|
|
46
|
+
if (app) {
|
|
47
|
+
this.state.caption = app.model.caption || "";
|
|
48
|
+
}
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
43
51
|
const indexViewModel = this.panel.view.model;
|
|
44
52
|
if (indexViewModel.title) {
|
|
45
53
|
document.title = indexViewModel.title;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-app-title{--ibiz-panel-app-title-color:var(--ibiz-color-text-0);--ibiz-panel-app-title-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-app-title-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-app-title-padding:0 var(--ibiz-spacing-base-tight);--ibiz-panel-app-title-collapse-padding:0 var(--ibiz-spacing-tight);display:flex;align-items:center;justify-content:center;height:100%;padding:var(--ibiz-panel-app-title-padding);cursor:pointer}.ibiz-panel-app-title__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-app-title-font-size);font-weight:700;color:var(--ibiz-panel-app-title-color)}.ibiz-panel-app-title__logo{display:flex;align-items:center;justify-content:center;height:100%;padding:0 var(--ibiz-spacing-tight);font-size:calc(var(--ibiz-font-size-header-1) + 8px)}.ibiz-panel-app-title__logo img{display:inline-block;width:auto;height:100%}.ibiz-panel-app-title__logo svg{fill:var(--ibiz-panel-app-title-color)}.ibiz-panel-app-title__logo--expand{width:66px;height:66px}.ibiz-panel-app-title__logo--expand+svg{width:calc(100% - 66px)}.ibiz-panel-app-title.is-only-img .ibiz-panel-app-title__logo{padding:0}.ibiz-panel-app-title.is-collapse{max-width:100%;padding:var(--ibiz-panel-app-title-collapse-padding)}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__collapse-title{width:100%}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__collpase-icon img{width:100%;height:100%}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__caption2{overflow:hidden;font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-panel-app-title-font-weight);text-align:center;white-space:nowrap}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__subCaption2{overflow:hidden;font-size:var(--ibiz-font-size-header-5);text-align:center;white-space:nowrap}
|
|
1
|
+
.ibiz-panel-app-title{--ibiz-panel-app-title-color:var(--ibiz-color-text-0);--ibiz-panel-app-title-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-app-title-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-app-title-padding:0 var(--ibiz-spacing-base-tight);--ibiz-panel-app-title-collapse-padding:0 var(--ibiz-spacing-tight);--ibiz-panel-app-title-not-index-height:60px;display:flex;align-items:center;justify-content:center;height:100%;padding:var(--ibiz-panel-app-title-padding);cursor:pointer}.ibiz-panel-app-title__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-app-title-font-size);font-weight:700;color:var(--ibiz-panel-app-title-color)}.ibiz-panel-app-title__logo{display:flex;align-items:center;justify-content:center;height:100%;padding:0 var(--ibiz-spacing-tight);font-size:calc(var(--ibiz-font-size-header-1) + 8px)}.ibiz-panel-app-title__logo img{display:inline-block;width:auto;height:100%}.ibiz-panel-app-title__logo svg{fill:var(--ibiz-panel-app-title-color)}.ibiz-panel-app-title__logo--expand{width:66px;height:66px}.ibiz-panel-app-title__logo--expand+svg{width:calc(100% - 66px)}.ibiz-panel-app-title.is-only-img .ibiz-panel-app-title__logo{padding:0}.ibiz-panel-app-title.is-collapse{max-width:100%;padding:var(--ibiz-panel-app-title-collapse-padding)}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__collapse-title{width:100%}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__collpase-icon img{width:100%;height:100%}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__caption2{overflow:hidden;font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-panel-app-title-font-weight);text-align:center;white-space:nowrap}.ibiz-panel-app-title.is-collapse .ibiz-panel-app-title__subCaption2{overflow:hidden;font-size:var(--ibiz-font-size-header-5);text-align:center;white-space:nowrap}.ibiz-panel-app-title.is-only-title{height:var(--ibiz-panel-app-title-not-index-height)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-panel-index-view-search{--ibiz-panel-index-view-search-text-color:var(--ibiz-color-text-0);--ibiz-panel-index-view-search-placeholder-text-color:var(--ibiz-color-text-
|
|
1
|
+
.ibiz-panel-index-view-search{--ibiz-panel-index-view-search-text-color:var(--ibiz-color-text-0);--ibiz-panel-index-view-search-placeholder-text-color:var(--ibiz-color-text-menu);--ibiz-panel-index-view-search-bg-color:var(--ibiz-color-bg-5);--ibiz-panel-index-view-search-btn-width:var(--ibiz-height-control-large);--ibiz-panel-index-view-search-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);width:100%;height:100%;padding:var(--ibiz-panel-index-view-search-padding)}.ibiz-panel-index-view-search .el-input__wrapper{background-color:var(--ibiz-panel-index-view-search-bg-color);box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.ibiz-panel-index-view-search .el-input__wrapper .el-input__prefix{color:var(--ibiz-panel-index-view-search-text-color)}.ibiz-panel-index-view-search .el-input__wrapper .el-input__inner{color:var(--ibiz-panel-index-view-search-text-color)}.ibiz-panel-index-view-search .el-input__wrapper .el-input__inner::-moz-placeholder{color:var(--ibiz-panel-index-view-search-placeholder-text-color)}.ibiz-panel-index-view-search .el-input__wrapper .el-input__inner::placeholder{color:var(--ibiz-panel-index-view-search-placeholder-text-color)}.ibiz-panel-index-view-search.is-collapse{padding:0}.ibiz-panel-index-view-search-btn{padding:0 var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-header-4)}.ibiz-panel-index-view-search-btn .el-button{width:var(--ibiz-panel-index-view-search-btn-width);padding:var(--ibiz-spacing-base-tight)}.ibiz-panel-index-view-search-btn:hover{background-color:transparent}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
3
5
|
var ElementPlus = require('element-plus');
|
|
4
6
|
var wangEditorUtil = require('../wang-editor-util/wang-editor-util.cjs');
|
|
7
|
+
var uploadManager = require('./upload-manager/upload-manager.cjs');
|
|
5
8
|
|
|
6
9
|
"use strict";
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
@@ -26,6 +29,14 @@ class NotificationUtil {
|
|
|
26
29
|
* @Date: 2023-11-17 15:32:23
|
|
27
30
|
*/
|
|
28
31
|
__publicField(this, "intervalId", null);
|
|
32
|
+
/**
|
|
33
|
+
* 上传管理器
|
|
34
|
+
*
|
|
35
|
+
* @private
|
|
36
|
+
* @type {(NotificationHandle | undefined)}
|
|
37
|
+
* @memberof NotificationUtil
|
|
38
|
+
*/
|
|
39
|
+
__publicField(this, "uploadManagerHandle");
|
|
29
40
|
}
|
|
30
41
|
/**
|
|
31
42
|
* 执行下一步
|
|
@@ -97,6 +108,31 @@ class NotificationUtil {
|
|
|
97
108
|
this.callStack.push(() => this.handleNotice(params, "error"));
|
|
98
109
|
this.setTimer();
|
|
99
110
|
}
|
|
111
|
+
uploadManager(params) {
|
|
112
|
+
var _a;
|
|
113
|
+
(_a = this.uploadManagerHandle) == null ? void 0 : _a.close();
|
|
114
|
+
this.uploadManagerHandle = void 0;
|
|
115
|
+
return new Promise((resolve) => {
|
|
116
|
+
const ns = vue3Util.useNamespace("upload-manager-notic");
|
|
117
|
+
this.uploadManagerHandle = ElementPlus.ElNotification({
|
|
118
|
+
duration: 0,
|
|
119
|
+
showClose: false,
|
|
120
|
+
customClass: ns.b(),
|
|
121
|
+
position: "bottom-right",
|
|
122
|
+
message: vue.h(uploadManager.IBizUploadManager, {
|
|
123
|
+
params,
|
|
124
|
+
onUploadComplete: (data) => {
|
|
125
|
+
resolve(data);
|
|
126
|
+
},
|
|
127
|
+
onClose: () => {
|
|
128
|
+
var _a2;
|
|
129
|
+
(_a2 = this.uploadManagerHandle) == null ? void 0 : _a2.close();
|
|
130
|
+
this.uploadManagerHandle = void 0;
|
|
131
|
+
}
|
|
132
|
+
})
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
}
|
|
100
136
|
}
|
|
101
137
|
|
|
102
138
|
exports.NotificationUtil = NotificationUtil;
|