super-page-designer 2.2.2 → 2.2.5
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/es/components/design/utils/assemblys-config.js +1 -1
- package/dist/es/components/design/utils/chart-design-util.d.ts +30 -0
- package/dist/es/components/design/utils/chart-design-util.js +81 -66
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +33 -24
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +1 -3
- package/dist/es/components/design/views/assemblys/object-design.vue.js +49 -43
- package/dist/es/components/design/views/design/page-design.vue.js +41 -37
- package/dist/es/style.css +83 -83
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, openBlock as g, createElementBlock as u, normalizeStyle as p, normalizeClass as
|
|
1
|
+
import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, openBlock as g, createElementBlock as u, normalizeStyle as p, normalizeClass as a, createBlock as c, resolveDynamicComponent as l, withModifiers as f, withDirectives as d, createElementVNode as m, createVNode as D, withCtx as v, unref as b, vShow as h } from "vue";
|
|
2
2
|
import { CopyDocument as x, Delete as y } from "@element-plus/icons";
|
|
3
3
|
import j from "./error-design.vue.js";
|
|
4
4
|
import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
|
|
@@ -6,31 +6,32 @@ import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
|
|
|
6
6
|
import { PageDimensions as O } from "../../utils/interfaces/page-design-types.js";
|
|
7
7
|
import { batchUpdatePermissions as k, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
8
|
import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as w } from "../../utils/form-design-util.js";
|
|
9
|
-
import { usePageContextStore as
|
|
10
|
-
import { getListCode as
|
|
11
|
-
import { getFormPropName as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import { usePageContextStore as U } from "../../../../stores/page-store.js";
|
|
10
|
+
import { getListCode as _ } from "super-page-runtime";
|
|
11
|
+
import { getFormPropName as B } from "../../utils/page-helper-util.js";
|
|
12
|
+
import { updateServiceInputs as I } from "../../utils/chart-design-util.js";
|
|
13
|
+
const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
const q = U(), z = e2;
|
|
15
16
|
if ("table" === z.configure.name && z.pageDesign.tableRuntimes && z.pageDesign.tableRuntimes[z.configure.uuid]) {
|
|
16
17
|
const e3 = z.pageDesign.tableRuntimes[z.configure.uuid].configure, i2 = JSON.parse(e3);
|
|
17
18
|
Object.assign(z.configure, i2), delete z.pageDesign.tableRuntimes[z.configure.uuid];
|
|
18
19
|
}
|
|
19
20
|
z.indexObj && z.indexObj.index++, null == z.configure.props && (z.configure.props = {}), null == z.configure.style && (z.configure.style = {});
|
|
20
|
-
const H = q.getModelField(
|
|
21
|
+
const H = q.getModelField(B((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
|
|
21
22
|
function A(e3) {
|
|
22
23
|
z.pageDesign.listCodesMap || (z.pageDesign.listCodesMap = {});
|
|
23
|
-
const i2 =
|
|
24
|
+
const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
24
25
|
i2 && (z.pageDesign.listCodesMap[i2] = e3 || i2);
|
|
25
26
|
}
|
|
26
27
|
z.pageDesign && z.configure && "table" == z.configure.name && (z.configure.uuid && (z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []), setTimeout(() => {
|
|
27
|
-
var _a2, _b2,
|
|
28
|
-
((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((
|
|
28
|
+
var _a2, _b2, _c2, _d2;
|
|
29
|
+
((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
|
|
29
30
|
}, 500), i(() => {
|
|
30
|
-
var _a2, _b2,
|
|
31
|
+
var _a2, _b2, _c2, _d2;
|
|
31
32
|
const e3 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
|
|
32
|
-
null != e3 && e3 > -1 && ((
|
|
33
|
-
const i2 =
|
|
33
|
+
null != e3 && e3 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(e3, 1));
|
|
34
|
+
const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
34
35
|
z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[i2] && delete z.pageDesign.listCodesMap[i2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid];
|
|
35
36
|
})), n(() => z.configure.code, (e3) => {
|
|
36
37
|
A(e3);
|
|
@@ -47,13 +48,15 @@ const U = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
|
|
|
47
48
|
e3.forEach((e4) => {
|
|
48
49
|
e4.name && e4.value && (i2[e4.name] = e4.value);
|
|
49
50
|
}), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
|
|
51
|
+
}, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
|
|
52
|
+
I(z.configure, e3);
|
|
50
53
|
}, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
|
|
51
|
-
let
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
null ==
|
|
56
|
-
|
|
54
|
+
let E = z.indexObj.index;
|
|
55
|
+
const N = R2, F = o({});
|
|
56
|
+
F.value = C(z.configure.name);
|
|
57
|
+
const J = o(true);
|
|
58
|
+
null == F.value && (F.value = j, J.value = false), n(() => z.configure.name, (e3) => {
|
|
59
|
+
F.value = C(e3);
|
|
57
60
|
}), z.configure.props && z.configure.props.verification && (z.configure.props.base && z.configure.props.base.title && n(() => z.configure.props.base.title, (e3) => {
|
|
58
61
|
P(z.configure, z.configure.props.verification, H);
|
|
59
62
|
}), z.configure.props.base && z.configure.props.base.prop && (n(() => z.configure.props.base.prop, (e3, i2) => {
|
|
@@ -71,55 +74,58 @@ const U = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
|
|
|
71
74
|
}), z.configure.props && z.configure.props.verification && z.configure.props.verification.required && (z.configure.props.verification.required = false);
|
|
72
75
|
}
|
|
73
76
|
});
|
|
74
|
-
const
|
|
75
|
-
function
|
|
76
|
-
W(z.configure,
|
|
77
|
+
const G = o(null), K = o({}), L = o(""), Q = o({});
|
|
78
|
+
function V() {
|
|
79
|
+
W(z.configure, K, L), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = L.value, z.configure.runtime.common.style = K.value;
|
|
77
80
|
}
|
|
78
81
|
if (z.configure.props && z.configure.props && (n(z.configure.props.size, (e3) => {
|
|
79
|
-
|
|
82
|
+
V();
|
|
80
83
|
}), n(z.configure.props.position, (e3) => {
|
|
81
|
-
|
|
84
|
+
V();
|
|
82
85
|
}, { immediate: true })), z.configure.style && z.configure.style && n(z.configure.style, () => {
|
|
83
|
-
|
|
86
|
+
V();
|
|
84
87
|
}), z.configure.props) {
|
|
85
88
|
z.configure.props.size || (z.configure.props.size = {});
|
|
86
89
|
const e3 = z.configure.props.size;
|
|
87
90
|
let i2 = e3[O.PC];
|
|
88
91
|
i2 || (i2 = {}, e3[O.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
|
|
89
92
|
}
|
|
90
|
-
const
|
|
91
|
-
const e3 =
|
|
92
|
-
if (
|
|
93
|
+
const X = r(() => {
|
|
94
|
+
const e3 = K.value;
|
|
95
|
+
if (Q.value = {}, !e3 || !z.pageDesign)
|
|
93
96
|
return {};
|
|
94
97
|
const i2 = {};
|
|
95
98
|
z.configure.design && z.configure.design.style && Object.assign(i2, z.configure.design.style);
|
|
96
99
|
const n2 = z.pageDesign.dimensions ? z.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
|
|
97
|
-
return o2 && (i2.width = o2.width, i2.height = o2.height,
|
|
100
|
+
return o2 && (i2.width = o2.width, i2.height = o2.height, Q.value = { height: o2.height }), L.value = e3[n2 + "_class"], i2;
|
|
98
101
|
});
|
|
99
102
|
n(z.selectWidget, (e3) => {
|
|
100
|
-
e3 && e3.value ==
|
|
103
|
+
e3 && e3.value == E ? Y.value = "amb-design-item-selected" : Y.value = "";
|
|
101
104
|
});
|
|
102
|
-
const
|
|
103
|
-
function
|
|
104
|
-
e3 && e3.preventDefault(),
|
|
105
|
-
}
|
|
106
|
-
function Z(e3, i2) {
|
|
107
|
-
E("onSelectWidget", e3, i2);
|
|
105
|
+
const Y = o("");
|
|
106
|
+
function Z(e3) {
|
|
107
|
+
e3 && e3.preventDefault(), N("onSelectWidget", E, z.configure);
|
|
108
108
|
}
|
|
109
109
|
function $(e3, i2) {
|
|
110
|
-
|
|
110
|
+
N("onSelectWidget", e3, i2);
|
|
111
111
|
}
|
|
112
|
-
function ee(e3) {
|
|
113
|
-
|
|
112
|
+
function ee(e3, i2) {
|
|
113
|
+
N("onCustomAttrWidget", e3, i2);
|
|
114
114
|
}
|
|
115
115
|
function ie(e3) {
|
|
116
|
-
e3.preventDefault(),
|
|
116
|
+
e3.preventDefault(), N("onCopy", z.configure);
|
|
117
|
+
}
|
|
118
|
+
function ne(e3) {
|
|
119
|
+
if (e3.preventDefault(), N("onDelete", z.configure), z.pageDesign.allChartUuids) {
|
|
120
|
+
const e4 = z.pageDesign.allChartUuids.findIndex((e5) => e5 === z.configure.uuid);
|
|
121
|
+
e4 >= 0 && z.pageDesign.allChartUuids.splice(e4, 1);
|
|
122
|
+
}
|
|
117
123
|
}
|
|
118
124
|
return s(() => {
|
|
119
|
-
z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit,
|
|
125
|
+
z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, N("onSelectWidget", E, z.configure));
|
|
120
126
|
}), (e3, i2) => {
|
|
121
127
|
const n2 = t("el-icon");
|
|
122
|
-
return g(), u("div", { style: p([{ position: "relative" },
|
|
128
|
+
return g(), u("div", { style: p([{ position: "relative" }, X.value]), class: a(L.value), ref_key: "thisRef", ref: G }, [(g(), c(l(F.value), { style: p([K.value, Q.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: f(Z, ["stop"]), onHandleSelect: Z, class: a([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), d(m("span", T, [d(D(n2, { onClick: f(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: f(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
|
|
123
129
|
};
|
|
124
130
|
} });
|
|
125
131
|
export {
|
|
@@ -14,17 +14,17 @@ import { undoRedo as J } from "../../../../stores/undo-redo-store.js";
|
|
|
14
14
|
import T from "./page-event/page-event-view.vue.js";
|
|
15
15
|
import _ from "../../utils/eventBus.js";
|
|
16
16
|
const B = { class: "amb-page-container" }, N = { class: "amb-page-container-header-page" }, P = { class: "amb-page-container-header" }, R = { class: "amb-page-container-header-type" }, E = { key: 0, class: "amb-page-container-main" }, F = e({ __name: "page-design", props: { pageId: { type: Number, default: null } }, setup(e2) {
|
|
17
|
-
const F2 = J(), G = e2, O = l(null), z = l(null), M = l(), $ = h(), q = l("page"), L = l(null), U = l(null), A = l(null), H = l(false), K = l(0);
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
function
|
|
17
|
+
const F2 = J(), G = e2, O = l(null), z = l(null), M = l(), $ = h(), q = l("page"), L = l(null), U = l(null), A = l(null), H = l(false), K = l(true), Q = l(0);
|
|
18
|
+
let X = l(null);
|
|
19
|
+
const Y = l(null);
|
|
20
|
+
function Z() {
|
|
21
21
|
q.value = "front", M.value && M.value.resize && M.value.resize();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ee(e3) {
|
|
24
24
|
const l2 = V();
|
|
25
25
|
return e3 ? Object.assign(l2, e3) : l2.systemCode || (l2.systemCode = "iqc", l2.systemVersion = 1), l2;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function le(e3) {
|
|
28
28
|
let l2;
|
|
29
29
|
g(e3);
|
|
30
30
|
const s2 = e3 == null ? void 0 : e3.tableUuids;
|
|
@@ -36,31 +36,31 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
|
|
|
36
36
|
e3.modelFields = l4, e3.modelFieldsMap = y(e3.modelFieldsMap, l4), $.setPageContext(e3);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
X.value = e3.systemVersion, $.setPageContext(e3), o(() => e3, (e4) => {
|
|
40
|
+
oe();
|
|
41
41
|
}, { deep: true }), o(e3.events, (l3) => {
|
|
42
42
|
if (e3.runtime || (e3.runtime = {}), e3.events) {
|
|
43
43
|
const l4 = e3.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
44
44
|
e3.runtime.events = l4;
|
|
45
45
|
}
|
|
46
46
|
}, { immediate: true }), o(() => e3.label, () => {
|
|
47
|
-
|
|
47
|
+
ne(e3);
|
|
48
48
|
}, { immediate: true }), o(() => e3.pageType, () => {
|
|
49
|
-
|
|
49
|
+
ne(e3);
|
|
50
50
|
}, { immediate: true }), e3.props && o(() => e3.props.activeWorkflow, () => {
|
|
51
|
-
|
|
51
|
+
ne(e3);
|
|
52
52
|
}, { immediate: true }), _.$emit("changePageDesign");
|
|
53
53
|
}
|
|
54
54
|
_.$on("editComponentEvent", () => {
|
|
55
|
-
|
|
55
|
+
Z();
|
|
56
56
|
}), G.pageId ? D(G.pageId).then((e3) => {
|
|
57
57
|
if (e3 && e3.designJson) {
|
|
58
|
-
const l2 = e3.designJson, o2 =
|
|
59
|
-
o2.id = G.pageId, O.value = o2,
|
|
58
|
+
const l2 = e3.designJson, o2 = ee(JSON.parse(l2));
|
|
59
|
+
o2.id = G.pageId, O.value = o2, le(O.value);
|
|
60
60
|
} else
|
|
61
|
-
O.value =
|
|
62
|
-
}) : (O.value =
|
|
63
|
-
let
|
|
61
|
+
O.value = ee(null), le(O.value);
|
|
62
|
+
}) : (O.value = ee(null), le(O.value));
|
|
63
|
+
let oe = /* @__PURE__ */ function(e3, l2) {
|
|
64
64
|
let o2 = null;
|
|
65
65
|
return function() {
|
|
66
66
|
let s2 = arguments;
|
|
@@ -73,17 +73,17 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
|
|
|
73
73
|
}(() => {
|
|
74
74
|
F2.addSnapshot(O.value);
|
|
75
75
|
}, 400);
|
|
76
|
-
function oe() {
|
|
77
|
-
K.value++, F2.undo(O.value);
|
|
78
|
-
}
|
|
79
76
|
function se() {
|
|
80
|
-
|
|
77
|
+
Q.value++, F2.undo(O.value);
|
|
81
78
|
}
|
|
82
|
-
function ae(
|
|
83
|
-
|
|
84
|
-
l2 && (O.value.props.workflowSource = "link", O.value.props.linkWorkflowVersion = l2, O.value.workflowVersion = l2, ne(e3));
|
|
79
|
+
function ae() {
|
|
80
|
+
Q.value++, F2.record(O.value);
|
|
85
81
|
}
|
|
86
82
|
function te(e3) {
|
|
83
|
+
const l2 = e3.definitionVersion;
|
|
84
|
+
l2 && (O.value.props.workflowSource = "link", O.value.props.linkWorkflowVersion = l2, O.value.workflowVersion = l2, ie(e3));
|
|
85
|
+
}
|
|
86
|
+
function ne(e3) {
|
|
87
87
|
b(e3, "page", e3.label, "-1");
|
|
88
88
|
const l2 = ["gets", "workflowGets", "listData", "listSubData"], o2 = [];
|
|
89
89
|
if (e3.pageType && "form" != e3.pageType)
|
|
@@ -95,33 +95,37 @@ const B = { class: "amb-page-container" }, N = { class: "amb-page-container-head
|
|
|
95
95
|
for (let s2 of l2)
|
|
96
96
|
o2.includes(s2) || C(e3, s2, "-1");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ie(e3) {
|
|
99
99
|
U.value = e3.code, A.value = e3.definitionVersion, L.value = e3.id;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ue() {
|
|
102
|
+
if (!K.value)
|
|
103
|
+
return;
|
|
102
104
|
let e3, l2;
|
|
103
|
-
O.value.props.activeWorkflow && O.value.props.workflowSource && "link" === O.value.props.workflowSource ? (l2 = O.value.props.linkWorkflowCode, e3 = O.value.props.linkWorkflowVersion) : O.value.props.activeWorkflow && O.value.props.workflowSource && "create" === O.value.props.workflowSource && (l2 = O.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !A.value || U.value !== l2 || A.value !== e3 ? (H.value = false, function(e4, l3) {
|
|
104
|
-
j(e4, l3,
|
|
105
|
-
|
|
105
|
+
O.value.props.activeWorkflow && O.value.props.workflowSource && "link" === O.value.props.workflowSource ? (l2 = O.value.props.linkWorkflowCode, e3 = O.value.props.linkWorkflowVersion) : O.value.props.activeWorkflow && O.value.props.workflowSource && "create" === O.value.props.workflowSource && (l2 = O.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !A.value || U.value !== l2 || A.value !== e3 ? (H.value = false, K.value = false, function(e4, l3) {
|
|
106
|
+
j(e4, l3, X.value).then((e5) => {
|
|
107
|
+
ie(e5), q.value = "workflow", H.value = true;
|
|
108
|
+
}).finally(() => {
|
|
109
|
+
K.value = true;
|
|
106
110
|
});
|
|
107
111
|
}(l2, e3)) : q.value = "workflow" : W({ type: "warning", showClose: true, message: "请在页面设计/属性/工作流中先绑定流程" });
|
|
108
112
|
}
|
|
109
|
-
function
|
|
113
|
+
function re(e3) {
|
|
110
114
|
const l2 = I.service({ lock: true, text: "切换中,请稍后..." });
|
|
111
115
|
D(e3).then((o2) => {
|
|
112
|
-
if (
|
|
113
|
-
const l3 = o2.designJson, s2 =
|
|
114
|
-
s2.id = e3, O.value = s2, O.value.items || (O.value.items = []), O.value.props || (O.value.props = {}),
|
|
116
|
+
if (Q.value++, l2.close(), o2 && o2.designJson) {
|
|
117
|
+
const l3 = o2.designJson, s2 = ee(JSON.parse(l3));
|
|
118
|
+
s2.id = e3, O.value = s2, O.value.items || (O.value.items = []), O.value.props || (O.value.props = {}), le(O.value);
|
|
115
119
|
} else
|
|
116
|
-
O.value =
|
|
120
|
+
O.value = ee(null), le(O.value);
|
|
117
121
|
});
|
|
118
122
|
}
|
|
119
|
-
function
|
|
120
|
-
e3 && e3.system && (
|
|
123
|
+
function ve(e3) {
|
|
124
|
+
e3 && e3.system && (Y.value = e3.system), Y.value && $.setEnableI18n(Y.value.enableI18n);
|
|
121
125
|
}
|
|
122
126
|
return (e3, l2) => {
|
|
123
127
|
const o2 = s("el-col"), g2 = s("el-row"), w2 = s("workflow-editor");
|
|
124
|
-
return a(), t("div", B, [n("div", N, [i(g2, null, { default: u(() => [i(o2, { span: 23, style: {} }, { default: u(() => [O.value && O.value.code ? (a(), r(x, { key: 0, pageDesign: O.value, onChangePage:
|
|
128
|
+
return a(), t("div", B, [n("div", N, [i(g2, null, { default: u(() => [i(o2, { span: 23, style: {} }, { default: u(() => [O.value && O.value.code ? (a(), r(x, { key: 0, pageDesign: O.value, onChangePage: re, onInitLoaded: ve }, null, 8, ["pageDesign"])) : v("", true)]), _: 1 })]), _: 1 })]), n("div", P, [n("div", R, [n("label", { class: p({ selected: "page" === q.value }), onClick: l2[0] || (l2[0] = (e4) => q.value = "page") }, "页面设计", 2), n("label", { class: p({ selected: "front" === q.value }), onClick: l2[1] || (l2[1] = (e4) => Z()) }, "页面逻辑", 2), n("label", { class: p({ selected: "workflow" === q.value }), onClick: l2[2] || (l2[2] = (e4) => ue()) }, "工作流设计", 2), n("label", { class: p({ selected: "service" === q.value }), onClick: l2[3] || (l2[3] = (e4) => q.value = "service") }, "服务编排", 2)])]), O.value ? (a(), t("div", E, [c((a(), r(m, { ref_key: "ViewDesignRef", ref: z, key: Q.value, configure: O.value, system: Y.value, onRegain: ae, onRevocation: se }, null, 8, ["configure", "system"])), [[f, "page" === q.value]]), H.value ? c((a(), r(w2, { key: 0, id: L.value, code: O.value.workflowCode, version: O.value.workflowVersion, "system-code": O.value.systemCode, "system-publish-version": O.value.systemVersion, "page-code": O.value.code, onBack: e3.goBack, onChangeDefVersion: te }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[f, "workflow" === q.value]]) : v("", true), "service" === q.value ? (a(), r(d(S), { key: 1, pageContext: O.value }, null, 8, ["pageContext"])) : v("", true), c(i(T, { ref_key: "pageEventContainerRef", ref: M, configure: O.value }, null, 8, ["configure"]), [[f, "front" === q.value]])])) : v("", true)]);
|
|
125
129
|
};
|
|
126
130
|
} });
|
|
127
131
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -1296,6 +1296,10 @@ fieldset.amb-design-item-selected {
|
|
|
1296
1296
|
padding: 10px;
|
|
1297
1297
|
font-weight: bold;
|
|
1298
1298
|
}
|
|
1299
|
+
|
|
1300
|
+
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
1301
|
+
cursor: default;
|
|
1302
|
+
}
|
|
1299
1303
|
.el-tree-node__content {
|
|
1300
1304
|
height: 34px !important;
|
|
1301
1305
|
}
|
|
@@ -1914,10 +1918,6 @@ fieldset.amb-design-item-selected {
|
|
|
1914
1918
|
padding: 10px;
|
|
1915
1919
|
font-weight: bold;
|
|
1916
1920
|
}
|
|
1917
|
-
|
|
1918
|
-
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
|
|
1919
|
-
cursor: default;
|
|
1920
|
-
}
|
|
1921
1921
|
.el-tree-node__content {
|
|
1922
1922
|
height: 34px !important;
|
|
1923
1923
|
}
|
|
@@ -9334,6 +9334,56 @@ fieldset.amb-design-item-selected {
|
|
|
9334
9334
|
padding: 10px;
|
|
9335
9335
|
font-weight: bold;
|
|
9336
9336
|
}
|
|
9337
|
+
|
|
9338
|
+
/*不显示列样式*/
|
|
9339
|
+
.hiddenBorder {
|
|
9340
|
+
border-right: solid 1px #ebebeb !important;
|
|
9341
|
+
border-left: solid 1px #ebebeb !important;
|
|
9342
|
+
background-color: #ebebeb !important;
|
|
9343
|
+
}
|
|
9344
|
+
/*选中列样式*/
|
|
9345
|
+
.addBorder {
|
|
9346
|
+
border-right: solid 1px #5893ef !important;
|
|
9347
|
+
border-left: solid 1px #5893ef !important;
|
|
9348
|
+
background-color: #5893ef !important;
|
|
9349
|
+
color: #ffffff;
|
|
9350
|
+
}
|
|
9351
|
+
.ghost {
|
|
9352
|
+
opacity: 0.5;
|
|
9353
|
+
background: #c8ebfb;
|
|
9354
|
+
}
|
|
9355
|
+
|
|
9356
|
+
li[data-v-5581ec9f] {
|
|
9357
|
+
color: #333;
|
|
9358
|
+
}
|
|
9359
|
+
.context-menu[data-v-5581ec9f] {
|
|
9360
|
+
position: fixed;
|
|
9361
|
+
background: #fff;
|
|
9362
|
+
z-index: 999;
|
|
9363
|
+
padding: 5px;
|
|
9364
|
+
margin: 0;
|
|
9365
|
+
margin-top: 30px;
|
|
9366
|
+
}
|
|
9367
|
+
.context-menu li[data-v-5581ec9f] {
|
|
9368
|
+
min-width: 75px;
|
|
9369
|
+
height: 28px;
|
|
9370
|
+
line-height: 28px;
|
|
9371
|
+
text-align: left;
|
|
9372
|
+
color: #1a1a1a;
|
|
9373
|
+
cursor: pointer;
|
|
9374
|
+
}
|
|
9375
|
+
.context-menu li[data-v-5581ec9f]:hover {
|
|
9376
|
+
background: #5893ef;
|
|
9377
|
+
color: #fff;
|
|
9378
|
+
}
|
|
9379
|
+
.context-menu[data-v-5581ec9f] {
|
|
9380
|
+
border: 1px solid #eee;
|
|
9381
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
9382
|
+
border-radius: 5px;
|
|
9383
|
+
}
|
|
9384
|
+
li[data-v-5581ec9f] {
|
|
9385
|
+
list-style-type: none;
|
|
9386
|
+
}
|
|
9337
9387
|
.el-tree-node__content {
|
|
9338
9388
|
height: 34px !important;
|
|
9339
9389
|
}
|
|
@@ -10570,56 +10620,6 @@ fieldset.amb-design-item-selected {
|
|
|
10570
10620
|
padding: 10px;
|
|
10571
10621
|
font-weight: bold;
|
|
10572
10622
|
}
|
|
10573
|
-
|
|
10574
|
-
/*不显示列样式*/
|
|
10575
|
-
.hiddenBorder {
|
|
10576
|
-
border-right: solid 1px #ebebeb !important;
|
|
10577
|
-
border-left: solid 1px #ebebeb !important;
|
|
10578
|
-
background-color: #ebebeb !important;
|
|
10579
|
-
}
|
|
10580
|
-
/*选中列样式*/
|
|
10581
|
-
.addBorder {
|
|
10582
|
-
border-right: solid 1px #5893ef !important;
|
|
10583
|
-
border-left: solid 1px #5893ef !important;
|
|
10584
|
-
background-color: #5893ef !important;
|
|
10585
|
-
color: #ffffff;
|
|
10586
|
-
}
|
|
10587
|
-
.ghost {
|
|
10588
|
-
opacity: 0.5;
|
|
10589
|
-
background: #c8ebfb;
|
|
10590
|
-
}
|
|
10591
|
-
|
|
10592
|
-
li[data-v-5581ec9f] {
|
|
10593
|
-
color: #333;
|
|
10594
|
-
}
|
|
10595
|
-
.context-menu[data-v-5581ec9f] {
|
|
10596
|
-
position: fixed;
|
|
10597
|
-
background: #fff;
|
|
10598
|
-
z-index: 999;
|
|
10599
|
-
padding: 5px;
|
|
10600
|
-
margin: 0;
|
|
10601
|
-
margin-top: 30px;
|
|
10602
|
-
}
|
|
10603
|
-
.context-menu li[data-v-5581ec9f] {
|
|
10604
|
-
min-width: 75px;
|
|
10605
|
-
height: 28px;
|
|
10606
|
-
line-height: 28px;
|
|
10607
|
-
text-align: left;
|
|
10608
|
-
color: #1a1a1a;
|
|
10609
|
-
cursor: pointer;
|
|
10610
|
-
}
|
|
10611
|
-
.context-menu li[data-v-5581ec9f]:hover {
|
|
10612
|
-
background: #5893ef;
|
|
10613
|
-
color: #fff;
|
|
10614
|
-
}
|
|
10615
|
-
.context-menu[data-v-5581ec9f] {
|
|
10616
|
-
border: 1px solid #eee;
|
|
10617
|
-
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
10618
|
-
border-radius: 5px;
|
|
10619
|
-
}
|
|
10620
|
-
li[data-v-5581ec9f] {
|
|
10621
|
-
list-style-type: none;
|
|
10622
|
-
}
|
|
10623
10623
|
.el-tree-node__content {
|
|
10624
10624
|
height: 34px !important;
|
|
10625
10625
|
}
|
|
@@ -16182,10 +16182,6 @@ fieldset.amb-design-item-selected {
|
|
|
16182
16182
|
padding: 10px;
|
|
16183
16183
|
font-weight: bold;
|
|
16184
16184
|
}
|
|
16185
|
-
|
|
16186
|
-
[data-v-bab42532] .el-form-item__label {
|
|
16187
|
-
padding: 0;
|
|
16188
|
-
}
|
|
16189
16185
|
.el-tree-node__content {
|
|
16190
16186
|
height: 34px !important;
|
|
16191
16187
|
}
|
|
@@ -17473,6 +17469,17 @@ li[data-v-a555cba7] {
|
|
|
17473
17469
|
list-style-type: none;
|
|
17474
17470
|
}
|
|
17475
17471
|
|
|
17472
|
+
[data-v-bab42532] .el-form-item__label {
|
|
17473
|
+
padding: 0;
|
|
17474
|
+
}
|
|
17475
|
+
|
|
17476
|
+
.event-item[data-v-c7ab7527] {
|
|
17477
|
+
font-size: 12px;
|
|
17478
|
+
border-bottom: 2px dashed #f5f6f8;
|
|
17479
|
+
padding-top: 5px;
|
|
17480
|
+
padding-bottom: 5px;
|
|
17481
|
+
}
|
|
17482
|
+
|
|
17476
17483
|
.amb-design-attr-header[data-v-226997f7] {
|
|
17477
17484
|
position: sticky;
|
|
17478
17485
|
position: -webkit-sticky;
|
|
@@ -17499,13 +17506,6 @@ li[data-v-a555cba7] {
|
|
|
17499
17506
|
color: #ffffff;
|
|
17500
17507
|
}
|
|
17501
17508
|
|
|
17502
|
-
.event-item[data-v-c7ab7527] {
|
|
17503
|
-
font-size: 12px;
|
|
17504
|
-
border-bottom: 2px dashed #f5f6f8;
|
|
17505
|
-
padding-top: 5px;
|
|
17506
|
-
padding-bottom: 5px;
|
|
17507
|
-
}
|
|
17508
|
-
|
|
17509
17509
|
.seleteSort[data-v-727aa6f0] {
|
|
17510
17510
|
border-radius: 5px;
|
|
17511
17511
|
border: 1px solid rgba(88, 147, 239);
|
|
@@ -17570,6 +17570,11 @@ li[data-v-a555cba7] {
|
|
|
17570
17570
|
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
17571
17571
|
}
|
|
17572
17572
|
|
|
17573
|
+
.seleteSort[data-v-3336d6c5] {
|
|
17574
|
+
border-radius: 5px;
|
|
17575
|
+
border: 1px solid rgba(88, 147, 239);
|
|
17576
|
+
}
|
|
17577
|
+
|
|
17573
17578
|
.seleteSort[data-v-1fd3d630] {
|
|
17574
17579
|
border-radius: 5px;
|
|
17575
17580
|
border: 1px solid rgba(88, 147, 239);
|
|
@@ -17578,15 +17583,10 @@ li[data-v-a555cba7] {
|
|
|
17578
17583
|
display: inline-block;
|
|
17579
17584
|
}
|
|
17580
17585
|
|
|
17581
|
-
|
|
17582
|
-
border-radius: 5px;
|
|
17583
|
-
border: 1px solid rgba(88, 147, 239);
|
|
17584
|
-
}
|
|
17585
|
-
|
|
17586
|
-
li[data-v-4fd4369c] {
|
|
17586
|
+
li[data-v-fc0fd0a6] {
|
|
17587
17587
|
color: #333;
|
|
17588
17588
|
}
|
|
17589
|
-
.context-menu[data-v-
|
|
17589
|
+
.context-menu[data-v-fc0fd0a6] {
|
|
17590
17590
|
position: fixed;
|
|
17591
17591
|
background: #fff;
|
|
17592
17592
|
z-index: 999;
|
|
@@ -17594,7 +17594,7 @@ li[data-v-4fd4369c] {
|
|
|
17594
17594
|
margin: 0;
|
|
17595
17595
|
margin-top: 30px;
|
|
17596
17596
|
}
|
|
17597
|
-
.context-menu li[data-v-
|
|
17597
|
+
.context-menu li[data-v-fc0fd0a6] {
|
|
17598
17598
|
min-width: 75px;
|
|
17599
17599
|
height: 28px;
|
|
17600
17600
|
line-height: 28px;
|
|
@@ -17607,16 +17607,16 @@ li[data-v-4fd4369c] {
|
|
|
17607
17607
|
/* background: #5893ef;*/
|
|
17608
17608
|
/* color: #fff;*/
|
|
17609
17609
|
/*}*/
|
|
17610
|
-
.context-menuLi[data-v-
|
|
17610
|
+
.context-menuLi[data-v-fc0fd0a6]:hover {
|
|
17611
17611
|
background: #5893ef;
|
|
17612
17612
|
color: #fff;
|
|
17613
17613
|
}
|
|
17614
|
-
.context-menu[data-v-
|
|
17614
|
+
.context-menu[data-v-fc0fd0a6] {
|
|
17615
17615
|
border: 1px solid #eee;
|
|
17616
17616
|
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
17617
17617
|
border-radius: 5px;
|
|
17618
17618
|
}
|
|
17619
|
-
li[data-v-
|
|
17619
|
+
li[data-v-fc0fd0a6] {
|
|
17620
17620
|
list-style-type: none;
|
|
17621
17621
|
}
|
|
17622
17622
|
|
|
@@ -17632,13 +17632,17 @@ li[data-v-4fd4369c] {
|
|
|
17632
17632
|
margin-left: 10px;
|
|
17633
17633
|
}
|
|
17634
17634
|
|
|
17635
|
+
.seleteSort[data-v-a62867e0] {
|
|
17636
|
+
border-radius: 5px;
|
|
17637
|
+
border: 1px solid rgba(88, 147, 239);
|
|
17638
|
+
}
|
|
17639
|
+
|
|
17635
17640
|
[data-v-8e6fbc57] .centered-input .el-input__inner {
|
|
17636
17641
|
text-align: center;
|
|
17637
17642
|
}
|
|
17638
17643
|
|
|
17639
|
-
.
|
|
17640
|
-
|
|
17641
|
-
border: 1px solid rgba(88, 147, 239);
|
|
17644
|
+
.input-with-select .el-input-group__append {
|
|
17645
|
+
background-color: var(--el-fill-color-blank);
|
|
17642
17646
|
}
|
|
17643
17647
|
|
|
17644
17648
|
.row-backgroud-header-tittle[data-v-b203475d]{
|
|
@@ -17649,7 +17653,3 @@ li[data-v-4fd4369c] {
|
|
|
17649
17653
|
.row-backgroud-header-tittle > div[data-v-b203475d]{
|
|
17650
17654
|
width: 100%
|
|
17651
17655
|
}
|
|
17652
|
-
|
|
17653
|
-
.input-with-select .el-input-group__append {
|
|
17654
|
-
background-color: var(--el-fill-color-blank);
|
|
17655
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.4",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.2.
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
43
|
+
"service-flow-designer": "2.2.4",
|
|
44
|
+
"super-page-runtime": "2.2.3",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|