@ibiz-template/vue3-components 0.7.41-alpha.113 → 0.7.41-alpha.115
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-BLBroBhu.js → index-B3O6yu1f.js} +1 -1
- package/dist/index-B4MZRULw.js +339 -0
- package/dist/{index-C-9vEACb.js → index-qO4rCmKY.js} +1 -1
- package/dist/{index.es-BU8Fy5we.js → index.es-D9o2oz4Y.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-9zdglekK.js → wang-editor-4yBz8Mkf.js} +1 -1
- package/dist/{xlsx-util-DrUAhpzt.js → xlsx-util-3sCwAhs0.js} +1 -1
- package/es/common/button-list/button-list.mjs +6 -1
- package/es/common/data-import/data-import.mjs +14 -8
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +2 -2
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -2
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +2 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +73 -13
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +28 -18
- package/es/control/exp-bar/render-util.mjs +2 -2
- package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/tree.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +1 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +2 -1
- package/es/locale/en/index.mjs +1 -0
- package/es/locale/zh-CN/index.mjs +1 -0
- package/es/panel-component/global-search/global-search.mjs +2 -1
- package/es/panel-component/nav-tabs/nav-tabs.mjs +12 -3
- package/es/panel-component/short-cut/short-cut.mjs +2 -1
- package/es/panel-component/user-message/user-message.mjs +1 -0
- package/es/util/ai-chat-util/ai-chat-util.mjs +18 -2
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/lib/common/button-list/button-list.cjs +6 -1
- package/lib/common/data-import/data-import.cjs +14 -8
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +2 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -2
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +2 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +73 -13
- package/lib/control/drtab/flow-drtab.cjs +28 -18
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/exp-bar/render-util.cjs +2 -2
- package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/tree.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -0
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +2 -1
- package/lib/locale/en/index.cjs +1 -0
- package/lib/locale/zh-CN/index.cjs +1 -0
- package/lib/panel-component/global-search/global-search.cjs +2 -1
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +12 -3
- package/lib/panel-component/short-cut/short-cut.cjs +2 -1
- package/lib/panel-component/user-message/user-message.cjs +1 -0
- package/lib/util/ai-chat-util/ai-chat-util.cjs +18 -2
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/package.json +6 -6
- package/src/common/button-list/button-list.tsx +4 -1
- package/src/common/data-import/data-import.tsx +20 -9
- package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +2 -2
- package/src/control/calendar/components/custom-calendar/custom-calendar.tsx +1 -1
- package/src/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.tsx +2 -0
- package/src/control/drtab/drtab.controller.ts +86 -20
- package/src/control/drtab/drtab.tsx +1 -1
- package/src/control/drtab/flow-drtab.scss +21 -0
- package/src/control/drtab/flow-drtab.tsx +40 -16
- package/src/control/exp-bar/render-util.tsx +3 -3
- package/src/control/medit-view-panel/medit-view-panel.tsx +1 -1
- package/src/control/toolbar/toolbar.tsx +1 -0
- package/src/control/tree/tree.tsx +1 -1
- package/src/control/tree-grid-ex/tree-grid-ex.tsx +1 -0
- package/src/editor/date-picker/ibiz-date-picker/ibiz-date-picker.tsx +1 -0
- package/src/locale/en/index.ts +1 -0
- package/src/locale/zh-CN/index.ts +1 -0
- package/src/panel-component/global-search/global-search.tsx +1 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +9 -0
- package/src/panel-component/short-cut/short-cut.tsx +1 -0
- package/src/panel-component/user-message/user-message.tsx +1 -0
- package/src/util/ai-chat-util/ai-chat-util.ts +20 -2
- package/dist/index-CkG9L_La.js +0 -339
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.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.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -103,7 +103,10 @@ class AIChatUtil {
|
|
|
103
103
|
params,
|
|
104
104
|
data
|
|
105
105
|
) : void 0;
|
|
106
|
-
chatOptions.autoQuestion =
|
|
106
|
+
chatOptions.autoQuestion = ibiz.config.common.aiAutoQuestion;
|
|
107
|
+
if (editorParams.autoquestion) {
|
|
108
|
+
chatOptions.autoQuestion = editorParams.autoquestion !== "false";
|
|
109
|
+
}
|
|
107
110
|
chatOptions.autoFill = editorParams.autofill === "true";
|
|
108
111
|
chatOptions.appendCurResource = editorParams.srfaiappendresource ? StringUtil.fill(editorParams.srfaiappendresource, context, params, data) : void 0;
|
|
109
112
|
if (editorParams.srfmode) {
|
|
@@ -507,6 +510,11 @@ class AIChatUtil {
|
|
|
507
510
|
);
|
|
508
511
|
}
|
|
509
512
|
};
|
|
513
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
514
|
+
if (editorParams.srfuploadmaxsize) {
|
|
515
|
+
uploadMaxSize = Number(editorParams.srfuploadmaxsize);
|
|
516
|
+
}
|
|
517
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
510
518
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
511
519
|
var _a2, _b, _c;
|
|
512
520
|
const { id: id2, isPluginApp } = source;
|
|
@@ -662,10 +670,12 @@ class AIChatUtil {
|
|
|
662
670
|
);
|
|
663
671
|
delete params.srfaiappendcurcontent;
|
|
664
672
|
}
|
|
673
|
+
let autoQuestion = ibiz.config.common.aiAutoQuestion;
|
|
665
674
|
if (params.hasOwnProperty("autoquestion")) {
|
|
666
|
-
|
|
675
|
+
autoQuestion = params.autoquestion !== "false";
|
|
667
676
|
delete params.autoquestion;
|
|
668
677
|
}
|
|
678
|
+
chatOptions.autoQuestion = autoQuestion;
|
|
669
679
|
if (params.hasOwnProperty("srfaiappendresource")) {
|
|
670
680
|
chatOptions.appendCurResource = StringUtil.fill(
|
|
671
681
|
params.srfaiappendresource,
|
|
@@ -1084,6 +1094,12 @@ class AIChatUtil {
|
|
|
1084
1094
|
);
|
|
1085
1095
|
}
|
|
1086
1096
|
};
|
|
1097
|
+
let uploadMaxSize = ibiz.config.common.aiUploadMaxSize;
|
|
1098
|
+
if (params.hasOwnProperty("srfuploadmaxsize")) {
|
|
1099
|
+
uploadMaxSize = Number(params.srfuploadmaxsize);
|
|
1100
|
+
delete params.srfuploadmaxsize;
|
|
1101
|
+
}
|
|
1102
|
+
chatOptions.uploader.maxSize = uploadMaxSize;
|
|
1087
1103
|
chatOptions.extendToolbarClick = async (event, source, context2, params2, data2) => {
|
|
1088
1104
|
var _a2, _b, _c;
|
|
1089
1105
|
const { id: id2, isPluginApp } = source;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -171,7 +171,12 @@ const IBizButtonList = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
171
|
}
|
|
172
172
|
}]
|
|
173
173
|
},
|
|
174
|
-
"popper-style":
|
|
174
|
+
"popper-style": {
|
|
175
|
+
zIndex: zIndex.zIndex,
|
|
176
|
+
...props.semantic.semanticStyle("popup", {
|
|
177
|
+
model: detail
|
|
178
|
+
})
|
|
179
|
+
}
|
|
175
180
|
}, {
|
|
176
181
|
reference: () => {
|
|
177
182
|
var _a2, _b;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
require('./data-import.css');
|
|
6
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('./data-import.css');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
9
|
function _isSlot(s) {
|
|
@@ -34,6 +34,7 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(props) {
|
|
37
|
+
var _a;
|
|
37
38
|
const ns = vue3Util.useNamespace("data-import");
|
|
38
39
|
const message = vue.ref({
|
|
39
40
|
state: "ready",
|
|
@@ -41,14 +42,18 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
42
|
});
|
|
42
43
|
const errorMessage = vue.ref("");
|
|
43
44
|
const isLoading = vue.ref(false);
|
|
45
|
+
const importTemplName = ibiz.config.common.importTemplNameMode === "custom" ? "".concat((_a = props.dataImport) == null ? void 0 : _a.name).concat(ibiz.i18n.t("component.dataImport.template")) : "".concat(props.appDataEntity.logicName).concat(ibiz.i18n.t("component.dataImport.templateFile"));
|
|
44
46
|
const onCancelButtonClick = () => {
|
|
45
47
|
props.dismiss();
|
|
46
48
|
};
|
|
47
49
|
const onLinkClick = async () => {
|
|
48
|
-
runtime.downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params);
|
|
50
|
+
runtime.downloadImportTemplate(props.appDataEntity, props.dataImport, props.context, props.params, ibiz.config.common.importTemplNameMode === "custom" ? importTemplName : void 0);
|
|
49
51
|
};
|
|
50
52
|
const selectFile = async () => {
|
|
51
53
|
isLoading.value = true;
|
|
54
|
+
errorMessage.value = "";
|
|
55
|
+
message.value.message = "";
|
|
56
|
+
message.value.state = "ready";
|
|
52
57
|
const result = await runtime.selectAndImport({
|
|
53
58
|
appDataEntity: props.appDataEntity,
|
|
54
59
|
dataImport: props.dataImport,
|
|
@@ -86,12 +91,13 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
91
|
};
|
|
87
92
|
return {
|
|
88
93
|
ns,
|
|
89
|
-
onLinkClick,
|
|
90
|
-
selectFile,
|
|
91
|
-
onCancelButtonClick,
|
|
92
|
-
isLoading,
|
|
93
94
|
message,
|
|
94
|
-
|
|
95
|
+
isLoading,
|
|
96
|
+
errorMessage,
|
|
97
|
+
importTemplName,
|
|
98
|
+
selectFile,
|
|
99
|
+
onLinkClick,
|
|
100
|
+
onCancelButtonClick
|
|
95
101
|
};
|
|
96
102
|
},
|
|
97
103
|
render() {
|
|
@@ -126,7 +132,7 @@ const DataImport = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
132
|
}, [vue.createVNode("ion-icon", {
|
|
127
133
|
"class": this.ns.e("link-icon"),
|
|
128
134
|
"name": "link"
|
|
129
|
-
}, null), this.
|
|
135
|
+
}, null), this.importTemplName])]), vue.createVNode("div", {
|
|
130
136
|
"class": this.ns.e("button-bar")
|
|
131
137
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
132
138
|
"onClick": this.onCancelButtonClick
|
|
@@ -124,11 +124,11 @@ const CalendarUser2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
124
124
|
"class": [this.ns.e("title"), this.ns.em("header", "left"), this.semanticClass("title")],
|
|
125
125
|
"style": this.semanticStyle("title")
|
|
126
126
|
}, [this.title]), vue.createVNode("div", {
|
|
127
|
-
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.
|
|
127
|
+
"class": [this.ns.e("legend"), this.ns.em("header", "legend"), this.semanticClass("legend")],
|
|
128
128
|
"style": this.semanticStyle("legend")
|
|
129
129
|
}, [this.legends.length > 1 && this.legends.map((legend) => {
|
|
130
130
|
return vue.createVNode("div", {
|
|
131
|
-
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.
|
|
131
|
+
"class": [this.ns.e("legend-item"), this.ns.em("legend", "item"), this.semanticClass("legend.item")],
|
|
132
132
|
"style": this.semanticStyle("legend.item"),
|
|
133
133
|
"onClick": () => this.$emit("legendClick", legend)
|
|
134
134
|
}, [vue.createVNode("div", {
|
|
@@ -109,8 +109,7 @@ const CustomCalendar = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
109
|
const renderDay = () => {
|
|
110
110
|
var _a;
|
|
111
111
|
return vue.createVNode("div", {
|
|
112
|
-
"class": ns.e("calendar-day")
|
|
113
|
-
"style": props.semanticStyle("day")
|
|
112
|
+
"class": ns.e("calendar-day")
|
|
114
113
|
}, [(slots == null ? void 0 : slots.header) ? vue.createVNode("div", {
|
|
115
114
|
"class": [ns.e("header"), ns.em("calendar-day", "header"), props.semanticClass("header")],
|
|
116
115
|
"style": props.semanticStyle("header")
|
|
@@ -173,6 +173,7 @@ const AppMenuPortletControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
173
173
|
let _slot;
|
|
174
174
|
content = vue.createVNode(vue.resolveComponent("el-collapse"), {
|
|
175
175
|
"class": [this.ns.e("content"), this.semanticClass("content")],
|
|
176
|
+
"style": this.semanticStyle("content"),
|
|
176
177
|
"modelValue": this.defaultOpens,
|
|
177
178
|
"onUpdate:modelValue": ($event) => this.defaultOpens = $event
|
|
178
179
|
}, _isSlot(_slot = model.appMenuItems.map((item) => {
|
|
@@ -186,6 +187,7 @@ const AppMenuPortletControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
186
187
|
}
|
|
187
188
|
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
188
189
|
"class": [this.ns.b(), this.semanticClass("root")],
|
|
190
|
+
"style": this.semanticStyle("root"),
|
|
189
191
|
"controller": this.c
|
|
190
192
|
}, _isSlot(content) ? content : {
|
|
191
193
|
default: () => [content]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.119_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -261,7 +261,7 @@ const DRTabControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
261
261
|
"style": this.semanticStyle("root"),
|
|
262
262
|
"semanticClass": this.semanticClass,
|
|
263
263
|
"semanticStyle": this.semanticStyle,
|
|
264
|
-
"
|
|
264
|
+
"pagesState": this.visibleItems,
|
|
265
265
|
"drtabpages": this.modelData.dedrtabPages,
|
|
266
266
|
"context": this.c.context,
|
|
267
267
|
"params": this.c.params,
|
|
@@ -34,6 +34,12 @@ class DRTabController extends runtime.ControlController {
|
|
|
34
34
|
* @memberof DRTabController
|
|
35
35
|
*/
|
|
36
36
|
__publicField(this, "srfCacheKeyTempl", "");
|
|
37
|
+
/**
|
|
38
|
+
* @description 显示位置
|
|
39
|
+
* @type {(string | undefined)}
|
|
40
|
+
* @memberof DRTabController
|
|
41
|
+
*/
|
|
42
|
+
__publicField(this, "tabPosition");
|
|
37
43
|
/**
|
|
38
44
|
* Router 对象
|
|
39
45
|
*
|
|
@@ -85,6 +91,15 @@ class DRTabController extends runtime.ControlController {
|
|
|
85
91
|
const userId = this.context.srfuserid;
|
|
86
92
|
return "".concat(userId, "_").concat(this.view.model.codeName, "_").concat(this.model.codeName);
|
|
87
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* @description 是否启用折叠
|
|
96
|
+
* @readonly
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof DRTabController
|
|
99
|
+
*/
|
|
100
|
+
get enableCollapse() {
|
|
101
|
+
return this.controlParams.enablecollapse === "true";
|
|
102
|
+
}
|
|
88
103
|
/**
|
|
89
104
|
* 是否启用锚点栏
|
|
90
105
|
*
|
|
@@ -148,6 +163,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
148
163
|
super.initState();
|
|
149
164
|
this.state.drTabPages = [];
|
|
150
165
|
this.state.showMore = false;
|
|
166
|
+
this.state.expandedKeys = [];
|
|
167
|
+
this.state.expViewParams = {};
|
|
151
168
|
this.state.hideEditItem = !!this.model.hideEditItem;
|
|
152
169
|
}
|
|
153
170
|
/**
|
|
@@ -157,6 +174,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
157
174
|
* @memberof DRTabController
|
|
158
175
|
*/
|
|
159
176
|
async onCreated() {
|
|
177
|
+
var _a;
|
|
178
|
+
this.tabPosition = (_a = this.view.model.tabLayout) == null ? void 0 : _a.toLowerCase();
|
|
160
179
|
await super.onCreated();
|
|
161
180
|
await this.initCounter();
|
|
162
181
|
this.srfCacheKeyTempl = this.controlParams.srfcachekeytempl || "";
|
|
@@ -362,7 +381,7 @@ class DRTabController extends runtime.ControlController {
|
|
|
362
381
|
testScriptCode,
|
|
363
382
|
counterMode
|
|
364
383
|
} = item;
|
|
365
|
-
|
|
384
|
+
const drTabPage = {
|
|
366
385
|
tag: item.id,
|
|
367
386
|
caption: item.caption,
|
|
368
387
|
sysImage: item.sysImage,
|
|
@@ -374,7 +393,15 @@ class DRTabController extends runtime.ControlController {
|
|
|
374
393
|
testAppDELogicId,
|
|
375
394
|
testScriptCode,
|
|
376
395
|
counterMode
|
|
377
|
-
}
|
|
396
|
+
};
|
|
397
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
398
|
+
const { context, params } = this.prepareParams(item);
|
|
399
|
+
Object.assign(drTabPage, {
|
|
400
|
+
context,
|
|
401
|
+
params
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
drTabPages.push(drTabPage);
|
|
378
405
|
});
|
|
379
406
|
this.state.drTabPages = drTabPages;
|
|
380
407
|
this.state.defaultName = drTabPages[0].tag;
|
|
@@ -387,6 +414,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
387
414
|
this.state.activeName = activeName;
|
|
388
415
|
}
|
|
389
416
|
}
|
|
417
|
+
if (this.enableCollapse)
|
|
418
|
+
this.state.expandedKeys = this.state.drTabPages.map((tab) => tab.tag);
|
|
390
419
|
const isRoutePushed = !!this.routeDepth && runtime.hasSubRoute(this.routeDepth);
|
|
391
420
|
this.handleTabChange(isRoutePushed);
|
|
392
421
|
}
|
|
@@ -451,12 +480,12 @@ class DRTabController extends runtime.ControlController {
|
|
|
451
480
|
/**
|
|
452
481
|
* 准备参数
|
|
453
482
|
*
|
|
454
|
-
* @param {IDEDRCtrlItem}
|
|
483
|
+
* @param {IDEDRCtrlItem} drTabPage 关系分页
|
|
455
484
|
* @return {*}
|
|
456
485
|
* @memberof DRTabController
|
|
457
486
|
*/
|
|
458
|
-
prepareParams(
|
|
459
|
-
const { navigateContexts, navigateParams } =
|
|
487
|
+
prepareParams(drTabPage) {
|
|
488
|
+
const { navigateContexts, navigateParams } = drTabPage;
|
|
460
489
|
const model = {
|
|
461
490
|
navContexts: navigateContexts,
|
|
462
491
|
navParams: navigateParams
|
|
@@ -468,9 +497,13 @@ class DRTabController extends runtime.ControlController {
|
|
|
468
497
|
};
|
|
469
498
|
const { resultContext, resultParams } = runtime.calcNavParams(model, originParams);
|
|
470
499
|
const context = Object.assign(this.context.clone(), resultContext, {
|
|
471
|
-
currentSrfNav:
|
|
500
|
+
currentSrfNav: drTabPage.id
|
|
472
501
|
});
|
|
473
|
-
const params = {
|
|
502
|
+
const params = {
|
|
503
|
+
...this.params,
|
|
504
|
+
...resultParams,
|
|
505
|
+
...this.state.expViewParams
|
|
506
|
+
};
|
|
474
507
|
return { context, params };
|
|
475
508
|
}
|
|
476
509
|
/**
|
|
@@ -478,20 +511,20 @@ class DRTabController extends runtime.ControlController {
|
|
|
478
511
|
*
|
|
479
512
|
* @author lxm
|
|
480
513
|
* @date 2023-12-21 05:40:07
|
|
481
|
-
* @param {IDEDRCtrlItem}
|
|
514
|
+
* @param {IDEDRCtrlItem} drTabPage
|
|
482
515
|
* @param {boolean} [isRoutePushed=false]
|
|
483
516
|
* @return {*} {Promise<void>}
|
|
484
517
|
*/
|
|
485
|
-
async openNavPosView(
|
|
518
|
+
async openNavPosView(drTabPage, isRoutePushed = false, navViewKey) {
|
|
486
519
|
var _a;
|
|
487
|
-
const { context, params } = this.prepareParams(
|
|
488
|
-
if (!
|
|
520
|
+
const { context, params } = this.prepareParams(drTabPage);
|
|
521
|
+
if (!drTabPage.appViewId)
|
|
489
522
|
return;
|
|
490
523
|
(_a = this.navPos) == null ? void 0 : _a.openView({
|
|
491
|
-
key: navViewKey ||
|
|
524
|
+
key: navViewKey || drTabPage.id,
|
|
492
525
|
context,
|
|
493
526
|
params,
|
|
494
|
-
viewId:
|
|
527
|
+
viewId: drTabPage.appViewId,
|
|
495
528
|
isRoutePushed
|
|
496
529
|
});
|
|
497
530
|
}
|
|
@@ -526,6 +559,20 @@ class DRTabController extends runtime.ControlController {
|
|
|
526
559
|
*/
|
|
527
560
|
async refresh() {
|
|
528
561
|
var _a;
|
|
562
|
+
if (this.tabPosition === "flow_noheader" || this.tabPosition === "flow") {
|
|
563
|
+
this.state.drTabPages.forEach((tabPageState) => {
|
|
564
|
+
var _a2;
|
|
565
|
+
const dedrtabPage = (_a2 = this.model.dedrtabPages) == null ? void 0 : _a2.find(
|
|
566
|
+
(item) => item.id === tabPageState.tag
|
|
567
|
+
);
|
|
568
|
+
if (dedrtabPage) {
|
|
569
|
+
const { context, params } = this.prepareParams(dedrtabPage);
|
|
570
|
+
tabPageState.context = context;
|
|
571
|
+
tabPageState.params = params;
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
529
576
|
const { activeName } = this.state;
|
|
530
577
|
const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
|
|
531
578
|
(item) => item.id === activeName
|
|
@@ -581,6 +628,19 @@ class DRTabController extends runtime.ControlController {
|
|
|
581
628
|
page.caption = ibiz.i18n.t(page.capLanguageRes.lanResTag, page.caption);
|
|
582
629
|
});
|
|
583
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
* @description 折叠改变
|
|
633
|
+
* @param {string} id
|
|
634
|
+
* @memberof DRTabController
|
|
635
|
+
*/
|
|
636
|
+
onCollapseChange(id) {
|
|
637
|
+
const index = this.state.expandedKeys.findIndex((key) => key === id);
|
|
638
|
+
if (index > -1) {
|
|
639
|
+
this.state.expandedKeys.splice(index, 1);
|
|
640
|
+
} else {
|
|
641
|
+
this.state.expandedKeys.push(id);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
584
644
|
}
|
|
585
645
|
|
|
586
646
|
exports.DRTabController = DRTabController;
|
|
@@ -10,7 +10,7 @@ require('./flow-drtab.css');
|
|
|
10
10
|
const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
11
11
|
name: "FlowDrtab",
|
|
12
12
|
props: {
|
|
13
|
-
|
|
13
|
+
pagesState: {
|
|
14
14
|
type: Array,
|
|
15
15
|
default: () => []
|
|
16
16
|
},
|
|
@@ -73,7 +73,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
73
73
|
navbarpos.value = c.navbarpos;
|
|
74
74
|
navBarWidth.value = c.navbarwidth;
|
|
75
75
|
const allVisibleViews = vue.computed(() => {
|
|
76
|
-
return props.
|
|
76
|
+
return props.pagesState.filter((item) => {
|
|
77
77
|
const target = props.drtabpages.find((page) => {
|
|
78
78
|
return page.id === item.tag;
|
|
79
79
|
});
|
|
@@ -81,8 +81,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
}).length;
|
|
82
82
|
});
|
|
83
83
|
const allNavTags = vue.computed(() => {
|
|
84
|
-
if (props.
|
|
85
|
-
return props.
|
|
84
|
+
if (props.pagesState) {
|
|
85
|
+
return props.pagesState.map((item) => {
|
|
86
86
|
const target = props.drtabpages.find((page) => {
|
|
87
87
|
return page.id === item.tag;
|
|
88
88
|
});
|
|
@@ -174,7 +174,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
174
|
});
|
|
175
175
|
completedViews.value += 1;
|
|
176
176
|
if (completedViews.value === allVisibleViews.value && !navtag.value) {
|
|
177
|
-
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.
|
|
177
|
+
navtag.value = "".concat(target == null ? void 0 : target.appViewId, "_").concat(props.pagesState[0].tag);
|
|
178
178
|
}
|
|
179
179
|
const el = document.getElementById("".concat(target == null ? void 0 : target.appViewId, "_").concat(item.tag));
|
|
180
180
|
if (el) {
|
|
@@ -265,7 +265,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
265
265
|
"ref": (el) => {
|
|
266
266
|
navbarRef.value = el;
|
|
267
267
|
}
|
|
268
|
-
}, [props.
|
|
268
|
+
}, [props.pagesState.map((item) => {
|
|
269
269
|
const target = props.drtabpages.find((page) => {
|
|
270
270
|
return page.id === item.tag;
|
|
271
271
|
});
|
|
@@ -291,40 +291,50 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
291
291
|
scrollTop.value = el.scrollTop;
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
+
const onCollapseChange = (item) => {
|
|
295
|
+
if (!c.enableCollapse)
|
|
296
|
+
return;
|
|
297
|
+
c.onCollapseChange(item.tag);
|
|
298
|
+
};
|
|
294
299
|
return {
|
|
295
300
|
c,
|
|
296
301
|
ns,
|
|
297
302
|
uuid,
|
|
298
303
|
navbarpos,
|
|
299
|
-
navBarWidth,
|
|
300
304
|
calcStyle,
|
|
305
|
+
navBarWidth,
|
|
301
306
|
handleScroll,
|
|
302
307
|
onViewMounted,
|
|
303
|
-
renderAnchorBar
|
|
308
|
+
renderAnchorBar,
|
|
309
|
+
onCollapseChange
|
|
304
310
|
};
|
|
305
311
|
},
|
|
306
312
|
render() {
|
|
307
313
|
var _a, _b;
|
|
308
|
-
const tabs = this.
|
|
314
|
+
const tabs = this.pagesState.map((item) => {
|
|
309
315
|
const counterNum = item.counterId ? this.counterData[item.counterId] : void 0;
|
|
310
316
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
311
317
|
const target = this.drtabpages.find((page) => {
|
|
312
318
|
return page.id === item.tag;
|
|
313
319
|
});
|
|
314
|
-
if (!target || item.hidden)
|
|
320
|
+
if (!target || item.hidden)
|
|
315
321
|
return null;
|
|
316
|
-
}
|
|
317
322
|
return vue.createVNode("div", {
|
|
318
323
|
"id": "".concat(target.appViewId, "_").concat(item.tag),
|
|
319
324
|
"style": this.semanticStyle("item", {
|
|
320
325
|
item
|
|
321
326
|
}),
|
|
322
|
-
"class": [this.ns.e("
|
|
327
|
+
"class": [this.ns.e("item"), this.ns.e("tab-item"), this.semanticClass("item", {
|
|
323
328
|
item
|
|
324
|
-
})]
|
|
329
|
+
}), this.ns.is("enable-collapse", this.c.enableCollapse), this.ns.is("collapse", this.c.enableCollapse && !this.c.state.expandedKeys.includes(item.tag))]
|
|
325
330
|
}, [this.showHeader && vue.createVNode("div", {
|
|
326
|
-
"class": this.ns.em("tab-item", "label")
|
|
327
|
-
|
|
331
|
+
"class": this.ns.em("tab-item", "label"),
|
|
332
|
+
"onClick": () => this.onCollapseChange(item)
|
|
333
|
+
}, [this.c.enableCollapse && vue.createVNode("div", {
|
|
334
|
+
"class": [this.ns.e("icon"), this.ns.em("icon", "collapse")]
|
|
335
|
+
}, [vue.createVNode("ion-icon", {
|
|
336
|
+
"name": "chevron-down-outline"
|
|
337
|
+
}, null)]), item.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
328
338
|
"class": [this.ns.be("label", "icon"), this.ns.em("item", "icon"), this.semanticClass("item.icon", {
|
|
329
339
|
item
|
|
330
340
|
})],
|
|
@@ -351,7 +361,7 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
351
361
|
"value": counterNum,
|
|
352
362
|
"counterMode": item.counterMode
|
|
353
363
|
}, null)]), vue.createVNode("div", {
|
|
354
|
-
"class": [this.ns.em("
|
|
364
|
+
"class": [this.ns.em("item", "content"), this.ns.em("tab-item", "tab-view"), this.semanticClass("item.content", {
|
|
355
365
|
item
|
|
356
366
|
})],
|
|
357
367
|
"style": {
|
|
@@ -361,8 +371,8 @@ const FlowDrtab = /* @__PURE__ */ vue.defineComponent({
|
|
|
361
371
|
})
|
|
362
372
|
}
|
|
363
373
|
}, [vue.h(viewShell, {
|
|
364
|
-
context: this.context,
|
|
365
|
-
params: this.params,
|
|
374
|
+
context: item.context || this.context,
|
|
375
|
+
params: item.params || this.params,
|
|
366
376
|
viewId: target.appViewId,
|
|
367
377
|
onMounted: () => this.onViewMounted(item)
|
|
368
378
|
})])]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-flow-drtab{--ibiz-control-drtab-flow-bg-color:var(--ibiz-color-bg-0);--ibiz-control-drtab-flow-item-gap:var(--ibiz-spacing-extra-tight);--ibiz-control-drtab-flow-item-padding:var(--ibiz-spacing-base);--ibiz-control-drtab-flow-item-bg-color:var(--ibiz-color-bg-1);--ibiz-control-drtab-flow-item-border-color:var(--ibiz-color-fill-1);--ibiz-control-drtab-flow-item-font-size:var(--ibiz-font-size-header-5);--ibiz-control-drtab-flow-item-border-radius:var(--ibiz-border-radius-medium);--ibiz-control-drtab-flow-anchor-gap:var(--ibiz-spacing-base);--ibiz-control-drtab-flow-anchor-font-size:var(--ibiz-font-size-regular);--ibiz-control-drtab-flow-anchor-bg-color:var(--ibiz-color-bg-1);--ibiz-control-drtab-flow-anchor-border-radius:var(--ibiz-border-radius-medium);--ibiz-control-drtab-flow-item-counter-font-size:var(--ibiz-font-size-regular);--ibiz-control-drtab-flow-item-counter-text-align:center;--ibiz-control-drtab-flow-anchor-item-padding:0 var(--ibiz-spacing-base);--ibiz-control-drtab-flow-anchor-item-hover-color:var(--ibiz-color-primary);--ibiz-control-drtab-flow-anchor-item-active-color:var(--ibiz-color-primary);width:100%;height:100%;overflow:hidden;background-color:var(--ibiz-control-drtab-flow-bg-color)}.ibiz-flow-drtab__container{height:100%;overflow:auto}.ibiz-flow-drtab__tab-item{background-color:var(--ibiz-control-drtab-flow-item-bg-color);border-radius:var(--ibiz-control-drtab-flow-item-border-radius)}.ibiz-flow-drtab__tab-item--label{display:flex;gap:var(--ibiz-control-drtab-flow-item-gap);align-items:center;padding:var(--ibiz-control-drtab-flow-item-padding);font-size:var(--ibiz-control-drtab-flow-item-font-size);border-bottom:1px solid var(--ibiz-control-drtab-flow-item-border-color)}.ibiz-flow-drtab__tab-item--tab-view{padding:var(--ibiz-spacing-tight) 0}.ibiz-flow-drtab__tab-item+.ibiz-flow-drtab__tab-item{margin-top:var(--ibiz-spacing-base)}.ibiz-flow-drtab__counter{font-size:var(--ibiz-control-drtab-flow-item-counter-font-size);text-align:var(--ibiz-control-drtab-flow-item-counter-text-align)}.ibiz-flow-drtab .ibiz-flow-drtab{background-color:inherit}.ibiz-flow-drtab.is-enable-anchor{display:flex;gap:var(--ibiz-spacing-base)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__container{flex:1}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar{display:flex;min-width:200px;padding:var(--ibiz-control-drtab-flow-anchor-gap) 0;font-size:var(--ibiz-control-drtab-flow-anchor-font-size);background-color:var(--ibiz-control-drtab-flow-anchor-bg-color);border-radius:var(--ibiz-control-drtab-flow-anchor-border-radius)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-topleft{align-items:start}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-bottomleft{align-items:end}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-topright{flex-direction:row-reverse;align-items:start}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-bottomright{flex-direction:row-reverse;align-items:end}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-middleleft{align-items:center}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-middleright{flex-direction:row-reverse;align-items:center}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-items{width:100%;max-height:100%;overflow:auto}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item{width:100%;height:32px;padding:var(--ibiz-control-drtab-flow-anchor-item-padding);overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item:hover{color:var(--ibiz-control-drtab-flow-anchor-item-hover-color)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item.is-active{position:relative;color:var(--ibiz-control-drtab-flow-anchor-item-active-color)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item.is-active::before{position:absolute;top:0;left:0;width:4px;height:100%;content:"";background-color:var(--ibiz-control-drtab-flow-anchor-item-active-color);border-radius:2px}.ibiz-flow-drtab.is-enable-anchor.is-left{flex-direction:row;overflow:auto}.ibiz-flow-drtab.is-enable-anchor.is-left>.ibiz-flow-drtab__container{--navbarwidth:200px;flex:1 0;width:calc(100% - var(--navbarwidth) - 2 * var(--ibiz-spacing-base));overflow:unset}.ibiz-flow-drtab.is-enable-anchor.is-left .ibiz-flow-drtab__anchor-bar{position:sticky;top:0}.ibiz-flow-drtab.is-enable-anchor.is-left .ibiz-flow-drtab__anchor-items::-webkit-scrollbar{display:none}.ibiz-flow-drtab.is-enable-anchor.is-right{flex-direction:row-reverse;overflow:auto}.ibiz-flow-drtab.is-enable-anchor.is-right>.ibiz-flow-drtab__container{--navbarwidth:200px;flex:1 0;width:calc(100% - var(--navbarwidth) - 2 * var(--ibiz-spacing-base));overflow:unset}.ibiz-flow-drtab.is-enable-anchor.is-right .ibiz-flow-drtab__anchor-bar{position:sticky;top:0}.ibiz-flow-drtab.is-enable-anchor.is-right .ibiz-flow-drtab__anchor-items::-webkit-scrollbar{display:none}
|
|
1
|
+
.ibiz-flow-drtab{--ibiz-control-drtab-flow-bg-color:var(--ibiz-color-bg-0);--ibiz-control-drtab-flow-item-gap:var(--ibiz-spacing-extra-tight);--ibiz-control-drtab-flow-item-padding:var(--ibiz-spacing-base);--ibiz-control-drtab-flow-item-bg-color:var(--ibiz-color-bg-1);--ibiz-control-drtab-flow-item-border-color:var(--ibiz-color-fill-1);--ibiz-control-drtab-flow-item-font-size:var(--ibiz-font-size-header-5);--ibiz-control-drtab-flow-item-border-radius:var(--ibiz-border-radius-medium);--ibiz-control-drtab-flow-anchor-gap:var(--ibiz-spacing-base);--ibiz-control-drtab-flow-anchor-font-size:var(--ibiz-font-size-regular);--ibiz-control-drtab-flow-anchor-bg-color:var(--ibiz-color-bg-1);--ibiz-control-drtab-flow-anchor-border-radius:var(--ibiz-border-radius-medium);--ibiz-control-drtab-flow-item-counter-font-size:var(--ibiz-font-size-regular);--ibiz-control-drtab-flow-item-counter-text-align:center;--ibiz-control-drtab-flow-anchor-item-padding:0 var(--ibiz-spacing-base);--ibiz-control-drtab-flow-anchor-item-hover-color:var(--ibiz-color-primary);--ibiz-control-drtab-flow-anchor-item-active-color:var(--ibiz-color-primary);width:100%;height:100%;overflow:hidden;background-color:var(--ibiz-control-drtab-flow-bg-color)}.ibiz-flow-drtab__icon{display:flex;align-items:center;justify-content:center}.ibiz-flow-drtab__container{height:100%;overflow:auto}.ibiz-flow-drtab__tab-item{background-color:var(--ibiz-control-drtab-flow-item-bg-color);border-radius:var(--ibiz-control-drtab-flow-item-border-radius)}.ibiz-flow-drtab__tab-item.is-enable-collapse .ibiz-flow-drtab__tab-item--label{cursor:pointer}.ibiz-flow-drtab__tab-item.is-collapse .ibiz-flow-drtab__icon--collapse{transform:rotate(-90deg)}.ibiz-flow-drtab__tab-item.is-collapse .ibiz-flow-drtab__tab-item--tab-view{display:none}.ibiz-flow-drtab__tab-item--label{display:flex;gap:var(--ibiz-control-drtab-flow-item-gap);align-items:center;padding:var(--ibiz-control-drtab-flow-item-padding);font-size:var(--ibiz-control-drtab-flow-item-font-size);border-bottom:1px solid var(--ibiz-control-drtab-flow-item-border-color)}.ibiz-flow-drtab__tab-item--tab-view{padding:var(--ibiz-spacing-tight) 0}.ibiz-flow-drtab__tab-item+.ibiz-flow-drtab__tab-item{margin-top:var(--ibiz-spacing-base)}.ibiz-flow-drtab__counter{font-size:var(--ibiz-control-drtab-flow-item-counter-font-size);text-align:var(--ibiz-control-drtab-flow-item-counter-text-align)}.ibiz-flow-drtab .ibiz-flow-drtab{background-color:inherit}.ibiz-flow-drtab.is-enable-anchor{display:flex;gap:var(--ibiz-spacing-base)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__container{flex:1}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar{display:flex;min-width:200px;padding:var(--ibiz-control-drtab-flow-anchor-gap) 0;font-size:var(--ibiz-control-drtab-flow-anchor-font-size);background-color:var(--ibiz-control-drtab-flow-anchor-bg-color);border-radius:var(--ibiz-control-drtab-flow-anchor-border-radius)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-topleft{align-items:start}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-bottomleft{align-items:end}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-topright{flex-direction:row-reverse;align-items:start}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-bottomright{flex-direction:row-reverse;align-items:end}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-middleleft{align-items:center}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-bar.is-middleright{flex-direction:row-reverse;align-items:center}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-items{width:100%;max-height:100%;overflow:auto}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item{width:100%;height:32px;padding:var(--ibiz-control-drtab-flow-anchor-item-padding);overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item:hover{color:var(--ibiz-control-drtab-flow-anchor-item-hover-color)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item.is-active{position:relative;color:var(--ibiz-control-drtab-flow-anchor-item-active-color)}.ibiz-flow-drtab.is-enable-anchor .ibiz-flow-drtab__anchor-item.is-active::before{position:absolute;top:0;left:0;width:4px;height:100%;content:"";background-color:var(--ibiz-control-drtab-flow-anchor-item-active-color);border-radius:2px}.ibiz-flow-drtab.is-enable-anchor.is-left{flex-direction:row;overflow:auto}.ibiz-flow-drtab.is-enable-anchor.is-left>.ibiz-flow-drtab__container{--navbarwidth:200px;flex:1 0;width:calc(100% - var(--navbarwidth) - 2 * var(--ibiz-spacing-base));overflow:unset}.ibiz-flow-drtab.is-enable-anchor.is-left .ibiz-flow-drtab__anchor-bar{position:sticky;top:0}.ibiz-flow-drtab.is-enable-anchor.is-left .ibiz-flow-drtab__anchor-items::-webkit-scrollbar{display:none}.ibiz-flow-drtab.is-enable-anchor.is-right{flex-direction:row-reverse;overflow:auto}.ibiz-flow-drtab.is-enable-anchor.is-right>.ibiz-flow-drtab__container{--navbarwidth:200px;flex:1 0;width:calc(100% - var(--navbarwidth) - 2 * var(--ibiz-spacing-base));overflow:unset}.ibiz-flow-drtab.is-enable-anchor.is-right .ibiz-flow-drtab__anchor-bar{position:sticky;top:0}.ibiz-flow-drtab.is-enable-anchor.is-right .ibiz-flow-drtab__anchor-items::-webkit-scrollbar{display:none}
|
|
@@ -34,11 +34,11 @@ function useExpBarRender(c, ns) {
|
|
|
34
34
|
"style": semanticStyle("title"),
|
|
35
35
|
"class": [ns.b("caption"), expBarNs.b("caption"), semanticClass("title")]
|
|
36
36
|
}, [model.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
37
|
+
"class": [expBarNs.be("caption", "icon"), semanticClass("title.icon")],
|
|
37
38
|
"style": semanticStyle("title.icon"),
|
|
38
|
-
"class": [expBarNs.be("caption", "icon"), semanticStyle("title.icon")],
|
|
39
39
|
"icon": model.sysImage
|
|
40
40
|
}, null), title && vue.createVNode("span", {
|
|
41
|
-
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"),
|
|
41
|
+
"class": [ns.be("caption", "text"), expBarNs.be("caption", "text"), semanticClass("title.text")],
|
|
42
42
|
"style": semanticStyle("title.text")
|
|
43
43
|
}, [title])]);
|
|
44
44
|
};
|
|
@@ -144,7 +144,7 @@ const MEditViewPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
144
|
"class": [this.ns.be("tab-label", "remove"), this.semanticClass("tab.remove", {
|
|
145
145
|
item
|
|
146
146
|
})],
|
|
147
|
-
"style": this.
|
|
147
|
+
"style": this.semanticStyle("tab.remove", {
|
|
148
148
|
item
|
|
149
149
|
}),
|
|
150
150
|
"name": "close-outline",
|
|
@@ -306,6 +306,9 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
306
306
|
"popper-class": [ns2.b("popper"), ns2.b("dropdown-popper"), ns2.bm("dropdown-popper", toolbarStyle), ns2.em("dropdown-popper", groupButtonStyle.toLowerCase()), ns2.bm("dropdown-popper", calcCssName(item)), semanticClass("popup", {
|
|
307
307
|
item
|
|
308
308
|
})],
|
|
309
|
+
"popper-style": semanticStyle("popup", {
|
|
310
|
+
item
|
|
311
|
+
}),
|
|
309
312
|
"placement": "right-start",
|
|
310
313
|
"teleported": false,
|
|
311
314
|
"popper-options": {
|
|
@@ -966,7 +966,7 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
966
966
|
"ref": "treeviewRef",
|
|
967
967
|
"controller": this.c,
|
|
968
968
|
"class": this.semanticClass("root"),
|
|
969
|
-
"style": this.
|
|
969
|
+
"style": this.semanticStyle("root"),
|
|
970
970
|
"element-loading-text": this.c.state.loadingText
|
|
971
971
|
}, _isSlot(slots) ? slots : {
|
|
972
972
|
default: () => [slots]
|
|
@@ -299,6 +299,7 @@ const TreeGridExControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
299
299
|
"ref": "tableRef",
|
|
300
300
|
"key": this.tableRefreshKey,
|
|
301
301
|
"class": [this.ns.e("table"), this.semanticClass("content")],
|
|
302
|
+
"style": this.semanticStyle("content"),
|
|
302
303
|
"border": true,
|
|
303
304
|
"row-key": "id",
|
|
304
305
|
"data": this.elTableData,
|
|
@@ -191,7 +191,8 @@ const IBizDatePicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
191
191
|
}, this.$attrs), null);
|
|
192
192
|
const readonlyContent = this.formatValue;
|
|
193
193
|
const formDefaultContent = vue.createVNode("div", {
|
|
194
|
-
"class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")]
|
|
194
|
+
"class": [this.ns.e("content"), this.ns.b("form-default-content"), this.semanticClass("editor.content")],
|
|
195
|
+
"style": this.semanticStyle("editor.content")
|
|
195
196
|
}, [this.formatValue ? this.formatValue : vue.createVNode(vue.resolveComponent("iBizEditorEmptyText"), {
|
|
196
197
|
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
197
198
|
"placeHolder": this.c.placeHolder
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -548,6 +548,7 @@ var index = {
|
|
|
548
548
|
importResults: "Import Results",
|
|
549
549
|
downloadTemplate: "Download the import template and fill in as required:",
|
|
550
550
|
templateFile: "Data import template file",
|
|
551
|
+
template: "Template",
|
|
551
552
|
continue: "Continue importing"
|
|
552
553
|
},
|
|
553
554
|
dataImport2: {
|
|
@@ -544,6 +544,7 @@ var index = {
|
|
|
544
544
|
importResults: "\u5BFC\u5165\u7ED3\u679C",
|
|
545
545
|
downloadTemplate: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248\uFF0C\u5E76\u6309\u8981\u6C42\u586B\u5199\uFF1A",
|
|
546
546
|
templateFile: "\u6570\u636E\u5BFC\u5165\u6A21\u677F\u6587\u4EF6",
|
|
547
|
+
template: "\u6A21\u677F",
|
|
547
548
|
continue: "\u7EE7\u7EED\u5BFC\u5165"
|
|
548
549
|
},
|
|
549
550
|
dataImport2: {
|
|
@@ -235,7 +235,8 @@ const GlobalSearch = /* @__PURE__ */ vue.defineComponent({
|
|
|
235
235
|
"width": "auto",
|
|
236
236
|
"visible": this.visible,
|
|
237
237
|
"placement": "bottom-start",
|
|
238
|
-
"popper-class": [this.ns.e("popper"), this.semanticClass("popup")]
|
|
238
|
+
"popper-class": [this.ns.e("popper"), this.semanticClass("popup")],
|
|
239
|
+
"popper-style": this.semanticStyle("popup")
|
|
239
240
|
}, {
|
|
240
241
|
reference: () => {
|
|
241
242
|
return vue.createVNode(vue.resolveComponent("el-input"), {
|