super-page-designer 2.2.20 → 2.2.24
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/page-explore-util.js +10 -10
- package/dist/es/components/design/utils/page-permission-util.js +35 -33
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
- 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 +111 -107
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
- package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
- package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
- package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
- package/dist/es/stores/event-undo-redo-store.js +5 -2
- package/dist/es/style.css +13 -13
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as o,
|
|
2
|
-
import { Monitor as
|
|
1
|
+
import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as o, onUnmounted as s, resolveComponent as r, createElementBlock as u, openBlock as a, Fragment as c, createElementVNode as g, createBlock as m, createCommentVNode as p, createVNode as f, normalizeStyle as d, withDirectives as v, normalizeClass as b, withCtx as y, unref as h, vShow as j, renderList as C } from "vue";
|
|
2
|
+
import { Monitor as S, Cellphone as k, Iphone as O, Plus as _, Check as A, View as T } from "@element-plus/icons";
|
|
3
3
|
import { useDraggable as D } from "vue-draggable-plus";
|
|
4
4
|
import w from "../../assemblys/object-design.vue.js";
|
|
5
|
-
import { deepCopy as x, getUuidv4 as
|
|
6
|
-
import { addComponentRef as
|
|
7
|
-
import { caculatePageStyle as
|
|
8
|
-
import
|
|
9
|
-
import { ElMessage as
|
|
5
|
+
import { deepCopy as x, getUuidv4 as W, findDesignItemByUuid as N } from "../../../utils/common-util.js";
|
|
6
|
+
import { addComponentRef as E } from "../../../utils/page-helper-util.js";
|
|
7
|
+
import { caculatePageStyle as U } from "../../../utils/container-design-util.js";
|
|
8
|
+
import J from "./view-design-preview.vue.js";
|
|
9
|
+
import { ElMessage as P } from "element-plus";
|
|
10
10
|
import "@vueuse/core";
|
|
11
11
|
import "@element-plus/icons-vue";
|
|
12
12
|
import "codemirror";
|
|
@@ -16,128 +16,131 @@ import "@codemirror/autocomplete";
|
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
18
|
import "js-beautify";
|
|
19
|
-
/* empty css
|
|
19
|
+
/* empty css */
|
|
20
20
|
import "../../../utils/assemblys-config.js";
|
|
21
21
|
import "../../../../../stores/page-store.js";
|
|
22
22
|
import "../../../../../stores/event-undo-redo-store.js";
|
|
23
23
|
import "../../../utils/eventBus.js";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { setTableRuntimesFromConfigure as
|
|
27
|
-
import
|
|
28
|
-
import { copyHandleEvents as
|
|
29
|
-
import { setHomeChartRuntimesFromConfigure as
|
|
30
|
-
import { getFormPropTitleMap as
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
null ==
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const
|
|
24
|
+
import z from "./components/quick-add-dialog.vue.js";
|
|
25
|
+
import M from "./components/i18n-setting.vue.js";
|
|
26
|
+
import { setTableRuntimesFromConfigure as R } from "../../../utils/page-table-util.js";
|
|
27
|
+
import B from "agilebuilder-ui/src/utils/request";
|
|
28
|
+
import { copyHandleEvents as K, deleteDesignItem as q } from "../../../utils/page-design-util.js";
|
|
29
|
+
import { setHomeChartRuntimesFromConfigure as V } from "../../../utils/home-chart-util.js";
|
|
30
|
+
import { getFormPropTitleMap as F } from "../../../utils/form-design-util.js";
|
|
31
|
+
const H = { class: "amb-design-content-center-header" }, L = { class: "amb-design-tool" }, I = { class: "amb-design-tool-item" }, $ = { class: "amb-design-tool-item", style: { "padding-right": "20px" } }, G = e({ __name: "view-design-display", props: { configure: {}, selectWidget: {}, selAsselbyType: {} }, emits: ["onSelectWidget", "onCustomAttrWidget", "changeSelectEvent", "addEvent", "changeSelectStandardEvent", "revocation", "regain"], setup(e2, { expose: G2, emit: Q }) {
|
|
32
|
+
const X = e2, Y = i(null), Z = i(null), ee = Q;
|
|
33
|
+
null == X.configure.props && (X.configure.props = {}), null == X.configure.style && (X.configure.style = {}), null != X.configure.items && null != X.configure.items || (X.configure.items = []);
|
|
34
|
+
const ie = X.configure.items, ne = i(null), te = n({ index: 0 }), le = i({}), oe = i(""), se = i(null);
|
|
35
|
+
ue();
|
|
36
|
+
const re = t(function() {
|
|
37
37
|
let e3 = null;
|
|
38
|
-
"ipad" ==
|
|
38
|
+
"ipad" == X.configure.dimensions ? e3 = 768 : "phone" == X.configure.dimensions && (e3 = 414);
|
|
39
39
|
const i2 = { width: e3 ? e3 + "px" : "" };
|
|
40
|
-
for (let e4 in
|
|
41
|
-
return
|
|
40
|
+
for (let e4 in le.value) i2[e4] = le.value[e4];
|
|
41
|
+
return se.value && (i2["min-height"] = se.value + "px"), i2;
|
|
42
42
|
});
|
|
43
|
-
function
|
|
44
|
-
|
|
43
|
+
function ue() {
|
|
44
|
+
U(X.configure, le, oe), X.configure.runtime || (X.configure.runtime = {}), X.configure.runtime.class = oe.value, X.configure.runtime.style = le.value;
|
|
45
45
|
}
|
|
46
|
-
l(
|
|
47
|
-
|
|
48
|
-
}), l(
|
|
49
|
-
|
|
46
|
+
l(X.configure.props, () => {
|
|
47
|
+
ue();
|
|
48
|
+
}), l(X.configure.style, () => {
|
|
49
|
+
ue();
|
|
50
50
|
});
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
function me(e3, i2) {
|
|
56
|
-
Z("onSelectWidget", e3, i2);
|
|
51
|
+
const ae = i(), ce = t(() => ({ height: ae.value + "px" })), ge = i(null);
|
|
52
|
+
function me(e3) {
|
|
53
|
+
ee("onSelectWidget", -1);
|
|
57
54
|
}
|
|
58
55
|
function pe(e3, i2) {
|
|
59
|
-
|
|
56
|
+
ee("onSelectWidget", e3, i2);
|
|
60
57
|
}
|
|
61
|
-
function fe(e3) {
|
|
62
|
-
|
|
63
|
-
t2.uuid = T(), B(t2), ee.splice(i2, 0, t2);
|
|
58
|
+
function fe(e3, i2) {
|
|
59
|
+
ee("onCustomAttrWidget", e3, i2);
|
|
64
60
|
}
|
|
65
61
|
function de(e3) {
|
|
66
|
-
|
|
62
|
+
const i2 = ie.indexOf(e3), t2 = n(x(e3));
|
|
63
|
+
t2.uuid = W(), K(t2), ie.splice(i2, 0, t2);
|
|
64
|
+
}
|
|
65
|
+
function ve(e3) {
|
|
66
|
+
q(ie, e3, e3.items && e3.items.length > 0, true);
|
|
67
67
|
}
|
|
68
68
|
o(() => {
|
|
69
|
-
if (
|
|
70
|
-
const e3 =
|
|
71
|
-
e3.y && (
|
|
69
|
+
if (ge.value) {
|
|
70
|
+
const e3 = ge.value.getBoundingClientRect();
|
|
71
|
+
e3.y && (ae.value = window.innerHeight - e3.y), E(X.configure, -1, ge);
|
|
72
72
|
}
|
|
73
|
-
if (
|
|
74
|
-
const e3 =
|
|
75
|
-
e3.y && (
|
|
73
|
+
if (be.value) {
|
|
74
|
+
const e3 = be.value.getBoundingClientRect();
|
|
75
|
+
e3.y && (se.value = window.innerHeight - e3.y - 20);
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
const e3 = JSON.parse(JSON.stringify(
|
|
78
|
+
const be = i(null);
|
|
79
|
+
function ye() {
|
|
80
|
+
X.configure.i18nKeys && X.configure.i18nKeys.length > 0 && (X.configure.i18nKeys = Array.from(new Set(X.configure.i18nKeys)));
|
|
81
|
+
const e3 = JSON.parse(JSON.stringify(X.configure));
|
|
82
82
|
e3.tableRuntimes = {}, e3.currentTableConfig = {}, function(e4) {
|
|
83
|
-
"form" === e4.pageType && e4.items ? (e4.formPropTiltleMap =
|
|
83
|
+
"form" === e4.pageType && e4.items ? (e4.formPropTiltleMap = F(e4), X.configure.formPropTiltleMap = e4.formPropTiltleMap) : (delete e4.formPropLabelMap, delete X.configure.formPropLabelMap);
|
|
84
84
|
e4.tableUuids && (e4.tableUuids = e4.tableUuids.filter((i2) => {
|
|
85
|
-
const n2 =
|
|
86
|
-
return !!n2 && (
|
|
85
|
+
const n2 = N(e4, i2);
|
|
86
|
+
return !!n2 && (R(n2, e4), true);
|
|
87
87
|
}));
|
|
88
88
|
e4.homepageChartUuids && (e4.homepageChartUuids = e4.homepageChartUuids.filter((i2) => {
|
|
89
|
-
let n2 =
|
|
90
|
-
return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)),
|
|
89
|
+
let n2 = N(e4, i2);
|
|
90
|
+
return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)), V(n2, e4), true);
|
|
91
91
|
}));
|
|
92
|
-
}(e3),
|
|
93
|
-
|
|
92
|
+
}(e3), B.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/save", { id: X.configure.id, designJson: JSON.stringify(e3) }).then((e4) => {
|
|
93
|
+
P({ message: "保存成功", type: "success" });
|
|
94
94
|
}).catch((e4) => {
|
|
95
|
-
|
|
95
|
+
P({ message: "保存失败", type: "error" });
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
D(
|
|
98
|
+
D(be, ie, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
|
|
99
99
|
} });
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
const he = i(false);
|
|
101
|
+
const je = i(null), Ce = i({}), Se = i({}), ke = i(false);
|
|
102
|
+
let Oe;
|
|
103
|
+
function _e() {
|
|
104
|
+
Oe && clearTimeout(Oe), ke.value = false, Oe = setTimeout(() => {
|
|
105
|
+
ke.value = true;
|
|
105
106
|
}, 1);
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
109
|
-
let i2 =
|
|
108
|
+
function Ae(e3) {
|
|
109
|
+
if (X.configure.customEvents) {
|
|
110
|
+
let i2 = X.configure.customEvents.filter((i3) => i3.eventName === e3);
|
|
110
111
|
if (i2 && i2.length > 0) return i2[0];
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
|
-
return
|
|
114
|
-
|
|
114
|
+
return s(() => {
|
|
115
|
+
Oe && clearTimeout(Oe);
|
|
116
|
+
}), G2({ onSelectEvent: function(e3) {
|
|
117
|
+
ke.value = !(!e3 || "selected" !== e3);
|
|
115
118
|
}, addEvent: function(e3, i2) {
|
|
116
|
-
|
|
117
|
-
const n2 =
|
|
118
|
-
n2 && (
|
|
119
|
+
Ce.value = e3;
|
|
120
|
+
const n2 = Ae(e3.eventName);
|
|
121
|
+
n2 && (Se.value = n2), je.value = i2 || "event", _e();
|
|
119
122
|
}, changeEvent: function(e3) {
|
|
120
123
|
if (e3) {
|
|
121
|
-
|
|
122
|
-
const i2 =
|
|
123
|
-
|
|
124
|
-
} else
|
|
124
|
+
je.value = null, Ce.value = e3;
|
|
125
|
+
const i2 = Ae(e3.eventName);
|
|
126
|
+
Se.value = i2 || null, _e();
|
|
127
|
+
} else ke.value = false;
|
|
125
128
|
} }), (e3, i2) => {
|
|
126
|
-
const n2 =
|
|
127
|
-
return
|
|
129
|
+
const n2 = r("el-icon"), t2 = r("el-divider"), l2 = r("Setting");
|
|
130
|
+
return a(), u(c, null, [g("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ge, style: d(ce.value) }, [g("div", H, [g("div", L, [g("div", I, [v(g("label", { class: b(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [f(n2, { size: 23 }, { default: y(() => [f(h(S))]), _: 1 })], 2), [[j, "assembly" === e3.selAsselbyType]]), v(g("label", { class: b(["amb-page-type", { selected: "ipad" == e3.configure.dimensions }]), onClick: i2[1] || (i2[1] = (i3) => e3.configure.dimensions = "ipad") }, [f(n2, { size: 23 }, { default: y(() => [f(h(k))]), _: 1 })], 2), [[j, "assembly" === e3.selAsselbyType]]), v(g("label", { class: b(["amb-page-type", { selected: "phone" == e3.configure.dimensions }]), onClick: i2[2] || (i2[2] = (i3) => e3.configure.dimensions = "phone") }, [f(n2, { size: 23 }, { default: y(() => [f(h(O))]), _: 1 })], 2), [[j, "assembly" === e3.selAsselbyType]]), v(f(t2, { direction: "vertical" }, null, 512), [[j, "assembly" === e3.selAsselbyType]])]), g("div", $, [g("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
|
|
128
131
|
var _a;
|
|
129
|
-
(_a =
|
|
130
|
-
}) }, [
|
|
131
|
-
|
|
132
|
-
}) }, [
|
|
133
|
-
const e5 = JSON.parse(JSON.stringify(
|
|
132
|
+
(_a = Z.value) == null ? void 0 : _a.show();
|
|
133
|
+
}) }, [f(n2, { size: 18 }, { default: y(() => [f(l2)]), _: 1 }), i2[9] || (i2[9] = g("label", null, "国际化配置", -1))]), g("label", { class: "amb-page-type", onClick: i2[4] || (i2[4] = (e4) => {
|
|
134
|
+
Y.value && Y.value.openDialog();
|
|
135
|
+
}) }, [f(n2, { size: 18 }, { default: y(() => [f(h(_))]), _: 1 }), i2[10] || (i2[10] = g("label", null, "快捷添加", -1))]), f(t2, { direction: "vertical" }), g("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => ye()) }, [f(n2, { size: 18 }, { default: y(() => [f(h(A))]), _: 1 }), i2[11] || (i2[11] = g("label", null, "保存", -1))]), f(t2, { direction: "vertical" }), g("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
|
|
136
|
+
const e5 = JSON.parse(JSON.stringify(X.configure));
|
|
134
137
|
e5.tableRuntimes = {}, e5.tableUuids && e5.tableUuids.forEach((i3) => {
|
|
135
|
-
const n3 =
|
|
136
|
-
n3 &&
|
|
137
|
-
}),
|
|
138
|
-
}()) }, [
|
|
138
|
+
const n3 = N(e5, i3);
|
|
139
|
+
n3 && R(n3, e5);
|
|
140
|
+
}), ne.value = e5, he.value = true;
|
|
141
|
+
}()) }, [f(n2, { size: 18 }, { default: y(() => [f(h(T))]), _: 1 }), i2[12] || (i2[12] = g("label", null, "预览", -1))])])])]), v(g("div", { class: b(["amb-design-board", oe.value]), ref_key: "pageDesignBoardMain", ref: be, style: d(re.value), onClick: me }, [(a(true), u(c, null, C(h(ie), (i3, n3) => (a(), m(w, { key: i3.uuid, indexObj: te, configure: i3, pageDesign: e3.configure, selectWidget: e3.selectWidget, onOnSelectWidget: pe, onOnCustomAttrWidget: fe, onOnCopy: de, onOnDelete: ve }, null, 8, ["indexObj", "configure", "pageDesign", "selectWidget"]))), 128))], 6), [[j, "assembly" === e3.selAsselbyType]])], 4), he.value ? (a(), m(J, { key: 0, pageDesign: ne.value, modelValue: he.value, "onUpdate:modelValue": i2[7] || (i2[7] = (e4) => he.value = e4), onClose: i2[8] || (i2[8] = (e4) => he.value = false) }, null, 8, ["pageDesign", "modelValue"])) : p("", true), f(z, { ref_key: "quickAddDialogRef", ref: Y, pageDesign: e3.configure }, null, 8, ["pageDesign"]), f(M, { ref_key: "i18nSettingRef", ref: Z, pageDesign: e3.configure }, null, 8, ["pageDesign"])], 64);
|
|
139
142
|
};
|
|
140
143
|
} });
|
|
141
144
|
export {
|
|
142
|
-
|
|
145
|
+
G as default
|
|
143
146
|
};
|
|
@@ -5,6 +5,7 @@ export declare const undoRedo: import('pinia').StoreDefinition<"event-snapshot",
|
|
|
5
5
|
clearSnapshot: () => void;
|
|
6
6
|
getCurrentIndex: () => number;
|
|
7
7
|
getTotalLen: () => number;
|
|
8
|
+
clearSnapshotTimeout: () => void;
|
|
8
9
|
}, never>, Pick<{
|
|
9
10
|
addSnapshot: (configure: any, callback: any) => void;
|
|
10
11
|
undo: (configure: any) => void;
|
|
@@ -12,6 +13,7 @@ export declare const undoRedo: import('pinia').StoreDefinition<"event-snapshot",
|
|
|
12
13
|
clearSnapshot: () => void;
|
|
13
14
|
getCurrentIndex: () => number;
|
|
14
15
|
getTotalLen: () => number;
|
|
16
|
+
clearSnapshotTimeout: () => void;
|
|
15
17
|
}, never>, Pick<{
|
|
16
18
|
addSnapshot: (configure: any, callback: any) => void;
|
|
17
19
|
undo: (configure: any) => void;
|
|
@@ -19,4 +21,5 @@ export declare const undoRedo: import('pinia').StoreDefinition<"event-snapshot",
|
|
|
19
21
|
clearSnapshot: () => void;
|
|
20
22
|
getCurrentIndex: () => number;
|
|
21
23
|
getTotalLen: () => number;
|
|
22
|
-
|
|
24
|
+
clearSnapshotTimeout: () => void;
|
|
25
|
+
}, "addSnapshot" | "undo" | "record" | "clearSnapshot" | "getCurrentIndex" | "getTotalLen" | "clearSnapshotTimeout">>;
|
|
@@ -3,8 +3,11 @@ import { defineStore as u } from "pinia";
|
|
|
3
3
|
const l = u("event-snapshot", () => {
|
|
4
4
|
const u2 = e([]), l2 = e(30), a = e(-1), n = e(true);
|
|
5
5
|
let t = null;
|
|
6
|
+
function v() {
|
|
7
|
+
t && clearTimeout(t);
|
|
8
|
+
}
|
|
6
9
|
return { addSnapshot: function(e2, n2) {
|
|
7
|
-
|
|
10
|
+
v(), t = setTimeout(function() {
|
|
8
11
|
u2.value.push(JSON.stringify(e2.value)), a.value++, u2.value.length > l2.value && (u2.value.splice(0, 1), a.value--), n2 && n2();
|
|
9
12
|
}, 400);
|
|
10
13
|
}, undo: function(e2) {
|
|
@@ -24,7 +27,7 @@ const l = u("event-snapshot", () => {
|
|
|
24
27
|
return a.value;
|
|
25
28
|
}, getTotalLen: function() {
|
|
26
29
|
return u2.value ? u2.value.length : 0;
|
|
27
|
-
} };
|
|
30
|
+
}, clearSnapshotTimeout: v };
|
|
28
31
|
});
|
|
29
32
|
export {
|
|
30
33
|
l as undoRedo
|
package/dist/es/style.css
CHANGED
|
@@ -658,20 +658,20 @@ fieldset.amb-design-item-selected {
|
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
|
|
661
|
-
.editorTool[data-v-
|
|
661
|
+
.editorTool[data-v-8dba0ddd] {
|
|
662
662
|
margin-left: auto;
|
|
663
663
|
}
|
|
664
|
-
.editorOption[data-v-
|
|
664
|
+
.editorOption[data-v-8dba0ddd] {
|
|
665
665
|
margin-right: 10px;
|
|
666
666
|
cursor: pointer;
|
|
667
667
|
}
|
|
668
|
-
.pppp[data-v-
|
|
668
|
+
.pppp[data-v-8dba0ddd] {
|
|
669
669
|
display: flex; /* 使用Flex布局 */
|
|
670
670
|
justify-content: flex-start;
|
|
671
671
|
align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
-
[data-v-
|
|
674
|
+
[data-v-f1126e5e] .el-cascader-menu {
|
|
675
675
|
min-width: 120px !important;
|
|
676
676
|
}
|
|
677
677
|
|
|
@@ -9494,10 +9494,10 @@ li[data-v-5581ec9f] {
|
|
|
9494
9494
|
border: 1px solid rgba(88, 147, 239);
|
|
9495
9495
|
}
|
|
9496
9496
|
|
|
9497
|
-
li[data-v-
|
|
9497
|
+
li[data-v-90da2dec] {
|
|
9498
9498
|
color: #333;
|
|
9499
9499
|
}
|
|
9500
|
-
.context-menu[data-v-
|
|
9500
|
+
.context-menu[data-v-90da2dec] {
|
|
9501
9501
|
position: fixed;
|
|
9502
9502
|
background: #fff;
|
|
9503
9503
|
z-index: 999;
|
|
@@ -9505,7 +9505,7 @@ li[data-v-7d71eec4] {
|
|
|
9505
9505
|
margin: 0;
|
|
9506
9506
|
margin-top: 30px;
|
|
9507
9507
|
}
|
|
9508
|
-
.context-menu li[data-v-
|
|
9508
|
+
.context-menu li[data-v-90da2dec] {
|
|
9509
9509
|
min-width: 75px;
|
|
9510
9510
|
height: 28px;
|
|
9511
9511
|
line-height: 28px;
|
|
@@ -9518,16 +9518,16 @@ li[data-v-7d71eec4] {
|
|
|
9518
9518
|
/* background: #5893ef;*/
|
|
9519
9519
|
/* color: #fff;*/
|
|
9520
9520
|
/*}*/
|
|
9521
|
-
.context-menuLi[data-v-
|
|
9521
|
+
.context-menuLi[data-v-90da2dec]:hover {
|
|
9522
9522
|
background: #5893ef;
|
|
9523
9523
|
color: #fff;
|
|
9524
9524
|
}
|
|
9525
|
-
.context-menu[data-v-
|
|
9525
|
+
.context-menu[data-v-90da2dec] {
|
|
9526
9526
|
border: 1px solid #eee;
|
|
9527
9527
|
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
9528
9528
|
border-radius: 5px;
|
|
9529
9529
|
}
|
|
9530
|
-
li[data-v-
|
|
9530
|
+
li[data-v-90da2dec] {
|
|
9531
9531
|
list-style-type: none;
|
|
9532
9532
|
}
|
|
9533
9533
|
|
|
@@ -16359,13 +16359,13 @@ fieldset.amb-design-item-selected {
|
|
|
16359
16359
|
font-weight: bold;
|
|
16360
16360
|
}
|
|
16361
16361
|
|
|
16362
|
-
.el-switch + .el-button[data-v-
|
|
16362
|
+
.el-switch + .el-button[data-v-513f0eca] {
|
|
16363
16363
|
margin-left: 20px;
|
|
16364
16364
|
}
|
|
16365
|
-
.el-alert + .el-table[data-v-
|
|
16365
|
+
.el-alert + .el-table[data-v-513f0eca] {
|
|
16366
16366
|
margin-top: 10px;
|
|
16367
16367
|
}
|
|
16368
|
-
.table-input-width[data-v-
|
|
16368
|
+
.table-input-width[data-v-513f0eca] {
|
|
16369
16369
|
width: 80%;
|
|
16370
16370
|
}
|
|
16371
16371
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.24",
|
|
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.10",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.2.14",
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
44
|
+
"super-page-runtime": "2.2.23",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue-echarts": "^6.6.9",
|
|
53
53
|
"vue-router": "^4.3.0",
|
|
54
54
|
"vuex": "^4.1.0",
|
|
55
|
-
"workflow-editor": "0.0.
|
|
55
|
+
"workflow-editor": "0.0.51-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|