super-page-designer 2.2.77-sit9 → 2.2.82
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 +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +34 -38
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +19 -20
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +8 -9
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +36 -39
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +23 -24
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -64
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- 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.vue3.js +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +63 -67
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +38 -43
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +26 -26
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- 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 +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +14 -17
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +80 -83
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +9 -29
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +25 -33
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +30 -33
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +0 -4
- package/dist/es/components/design/views/assemblys/object-design.vue.js +138 -5
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +34 -25
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +18 -22
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +65 -65
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +9 -10
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +9 -10
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +26 -27
- package/dist/es/index.js +1 -1
- package/dist/es/style.css +11223 -12881
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +0 -140
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +0 -24
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import
|
|
3
|
-
import { caculateDetailComponentStyle as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...j.value ?? {} };
|
|
11
|
-
});
|
|
12
|
-
function x(e3, o2) {
|
|
13
|
-
v("onSelectWidget", e3, o2);
|
|
1
|
+
import { defineComponent as e, ref as i, watch as s, createElementBlock as o, openBlock as t, normalizeClass as n, normalizeStyle as r, Fragment as c, renderList as g, withDirectives as u, createBlock as l, vShow as p } from "vue";
|
|
2
|
+
import a from "../../object-design.vue.js";
|
|
3
|
+
import { caculateDetailComponentStyle as f } from "../../../../utils/form-design-util.js";
|
|
4
|
+
const d = e({ __name: "workflowbutton-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget"], setup(e2, { emit: d2 }) {
|
|
5
|
+
const m = e2;
|
|
6
|
+
m.configure.items || (m.configure.items = []);
|
|
7
|
+
const b = d2, j = i({}), v = i("");
|
|
8
|
+
function x(e3, i2) {
|
|
9
|
+
b("onSelectWidget", e3, i2);
|
|
14
10
|
}
|
|
15
|
-
return s(
|
|
16
|
-
|
|
17
|
-
}, { immediate: true }), s(
|
|
11
|
+
return i({}), s(m.configure.style, () => {
|
|
12
|
+
f(m.configure, j, v), j.value["background-color"] = "#f5f6f8", m.configure.runtime.style = j.value, m.configure.runtime.class = v.value;
|
|
13
|
+
}, { immediate: true }), s(m.configure.props, () => {
|
|
18
14
|
!function() {
|
|
19
|
-
let e3 =
|
|
20
|
-
|
|
15
|
+
let e3 = m.configure.props ? m.configure.props : {}, i2 = e3.base ? e3.base : {};
|
|
16
|
+
m.configure.items.forEach((e4) => {
|
|
21
17
|
e4.props || (e4.props = {}), e4.props.base || (e4.props.base = {});
|
|
22
|
-
const
|
|
23
|
-
Object.assign(
|
|
18
|
+
const s2 = e4.props.base;
|
|
19
|
+
Object.assign(s2, i2);
|
|
24
20
|
});
|
|
25
21
|
}();
|
|
26
|
-
}, { immediate: true }), (e3,
|
|
22
|
+
}, { immediate: true }), (e3, i2) => (t(), o("div", { style: r([j.value, { display: "flex", "padding-right": "20px" }]), class: n([v.value, "el-button-group"]) }, [(t(true), o(c, null, g(e3.configure.items, (i3, s2) => u((t(), l(a, { key: i3, pageDesign: e3.pageDesign, configure: i3, showSelectedClass: false, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: x }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"])), [[p, i3.check]])), 128))], 6));
|
|
27
23
|
} });
|
|
28
24
|
export {
|
|
29
|
-
|
|
25
|
+
d as default
|
|
30
26
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s,
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s, normalizeStyle as u, createElementVNode as r, createVNode as m, withCtx as p, unref as d, isRef as c, toDisplayString as v, withDirectives as f, withModifiers as g, createTextVNode as h, vShow as b } from "vue";
|
|
2
2
|
import { Search as w } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox as x } from "element-plus";
|
|
4
|
-
import { getDesignConfByName as
|
|
5
|
-
import
|
|
4
|
+
import { getDesignConfByName as y } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import C from "../view/assemblys-container-explore.vue.js";
|
|
6
6
|
import { deepCopy as _ } from "../../../utils/common-util.js";
|
|
7
7
|
import k from "../../../utils/eventBus.js";
|
|
8
8
|
import { usePageContextStore as E } from "../../../../../stores/page-store.js";
|
|
9
|
-
const V = {
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
9
|
+
const V = { style: { "padding-top": "10px" } }, j = ["title"], $ = ["title"], L = { key: 0 }, T = { key: 1 }, U = ["title"], z = ["title"], S = ["title"], B = e({ __name: "page-event-container", props: { configure: {}, configureObj: {}, editEvent: {} }, emits: ["add-event", "change-event"], setup(e2, { expose: B2, emit: I }) {
|
|
10
|
+
const N = E(), P = l(null), W = l(), D = l(false);
|
|
11
|
+
let F = l(["searchCollapse", "addCollapse", "unUseEventCollapse"]), H = l(null), O = l("");
|
|
12
|
+
const R = t(() => {
|
|
13
13
|
let e3 = "";
|
|
14
|
-
const l2 =
|
|
14
|
+
const l2 = H.value;
|
|
15
15
|
if ("page" === (l2 && "page" != l2.name ? l2.name : "page")) e3 = "页面";
|
|
16
16
|
else if (e3 = l2 && l2.label ? l2.label : "", l2 && l2.props && l2.props.base) {
|
|
17
17
|
const t2 = l2.props.base.title;
|
|
@@ -19,22 +19,22 @@ const V = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, j =
|
|
|
19
19
|
}
|
|
20
20
|
return e3;
|
|
21
21
|
});
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
let e3 =
|
|
22
|
+
let M = t(() => P.value && P.value.customEvents ? P.value.customEvents.filter((e3) => "customFunc" == e3.name) : []);
|
|
23
|
+
const q = t(() => {
|
|
24
|
+
let e3 = H.value ? H.value.name : null;
|
|
25
25
|
e3 = e3 || "page";
|
|
26
|
-
const l2 =
|
|
26
|
+
const l2 = H.value ? H.value.uuid : null;
|
|
27
27
|
let t2 = [];
|
|
28
28
|
const a2 = [];
|
|
29
|
-
if (
|
|
29
|
+
if (P.value && P.value.customEvents) for (let n3 of P.value.customEvents) "customFunc" != n3.name && ("page" !== e3 && n3.uuid !== l2 || (t2.push(n3), a2.includes(n3.name) || a2.push(n3.name)));
|
|
30
30
|
let n2 = null;
|
|
31
|
-
if (n2 = "page" == e3 ?
|
|
31
|
+
if (n2 = "page" == e3 ? P.value ? P.value.events : null : H.value ? H.value.events : null, n2) {
|
|
32
32
|
for (let l4 of n2) {
|
|
33
|
-
l4.componentUuid || (l4.componentUuid =
|
|
33
|
+
l4.componentUuid || (l4.componentUuid = H.value && H.value.uuid ? H.value.uuid : "page"), l4.componentLabel || (l4.componentLabel = "page" == e3 ? "页面" : H.value ? H.value.label : "");
|
|
34
34
|
let n3 = "";
|
|
35
|
-
|
|
35
|
+
H.value && H.value.props && H.value.props.base && (n3 = H.value.props.base.title), l4.title = n3, a2.includes(l4.name) || (t2.push(l4), a2.push(l4.name));
|
|
36
36
|
}
|
|
37
|
-
let l3 =
|
|
37
|
+
let l3 = y(e3);
|
|
38
38
|
const o2 = [];
|
|
39
39
|
if (l3 && l3.events && l3.events.length > 0) {
|
|
40
40
|
for (let e4 of l3.events) if (o2.push(e4.name), !a2.includes(e4.name)) {
|
|
@@ -49,46 +49,46 @@ const V = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, j =
|
|
|
49
49
|
}
|
|
50
50
|
} else t2 = [];
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (O.value) {
|
|
53
53
|
const e4 = [];
|
|
54
|
-
for (let l3 of t2) (l3.name && l3.name.includes(
|
|
54
|
+
for (let l3 of t2) (l3.name && l3.name.includes(O.value) || l3.label && l3.label.includes(O.value)) && e4.push(l3);
|
|
55
55
|
return e4;
|
|
56
56
|
}
|
|
57
57
|
return t2;
|
|
58
|
-
}),
|
|
59
|
-
function J(e3) {
|
|
60
|
-
W.value = e3, G.value = e3 && e3.items ? e3.items : [], Z(null, null);
|
|
61
|
-
}
|
|
58
|
+
}), A = l([]), G = l(), J = t(() => ({ height: G.value + "px" }));
|
|
62
59
|
function K(e3) {
|
|
60
|
+
P.value = e3, A.value = e3 && e3.items ? e3.items : [], ee(null, null);
|
|
61
|
+
}
|
|
62
|
+
function Q(e3) {
|
|
63
63
|
x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
64
64
|
k.$emit("clearEvent", e3);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function X(e3) {
|
|
68
68
|
k.$emit("editEvent", e3);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Y(e3) {
|
|
71
71
|
k.$emit("editEvent", e3);
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
let Z;
|
|
74
|
+
function ee(e3, l2) {
|
|
75
|
+
H.value = l2, D.value = false;
|
|
76
76
|
}
|
|
77
77
|
return a(() => {
|
|
78
|
-
|
|
78
|
+
K(N.pageContext), G.value = window.innerHeight, W.value = window.innerHeight - 220;
|
|
79
79
|
}), k.$on("changePageDesign", () => {
|
|
80
|
-
|
|
80
|
+
K(N.pageContext);
|
|
81
81
|
}), k.$on("editComponentEvent", (e3) => {
|
|
82
|
-
|
|
82
|
+
Z && clearTimeout(Z), H.value = e3.configureObj, Z = setTimeout(function() {
|
|
83
83
|
k.$emit("editEvent", e3.event);
|
|
84
84
|
}, 100);
|
|
85
85
|
}), n(() => {
|
|
86
|
-
|
|
87
|
-
}),
|
|
88
|
-
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), x2 = o("el-table-column"),
|
|
89
|
-
return s(), i("div",
|
|
86
|
+
Z && clearTimeout(Z), k.$off("changePageDesign"), k.$off("editComponentEvent");
|
|
87
|
+
}), B2({}), (e3, l2) => {
|
|
88
|
+
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), x2 = o("el-table-column"), y2 = o("el-table"), _2 = o("el-collapse-item"), k2 = o("el-collapse");
|
|
89
|
+
return s(), i("div", { class: "amb-design-assembly-content", ref: "ambPageEventList", style: u(J.value) }, [r("div", null, [r("div", V, [m(n2, { placement: "right", width: 300, visible: D.value, trigger: "manual" }, { reference: p(() => [m(a2, { size: "small", modelValue: R.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => R.value = e4), placeholder: "请选择组件", readonly: "", clearable: "", onClick: l2[2] || (l2[2] = (e4) => D.value = !D.value) }, { append: p(() => [m(t2, { type: "info", icon: d(w), circle: "", text: "", onClick: l2[0] || (l2[0] = (e4) => D.value = !D.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"])]), default: p(() => [m(C, { onSelectComponent: ee, treeMarginTop: "", headerSearchClass: "custom", designItems: A.value, selectWidget: e3.selectWidget }, null, 8, ["designItems", "selectWidget"])]), _: 1 }, 8, ["visible"])])]), r("div", null, [m(k2, { modelValue: d(F), "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => c(F) ? F.value = e4 : F = e4), style: { "margin-top": "10px" } }, { default: p(() => [m(_2, { class: "amb-assembly-collapse-header", name: "searchCollapse", title: "事件列表" }, { default: p(() => [r("div", { style: u("max-height:" + W.value + "px") }, [m(a2, { modelValue: d(O), "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => c(O) ? O.value = e4 : O = e4), placeholder: "名称/别名...", clearable: "", class: "input-with-select", style: { "margin-top": "10px", "margin-bottom": "10px" }, "suffix-icon": d(w) }, null, 8, ["modelValue", "suffix-icon"]), m(y2, { size: "small", data: q.value, style: { width: "100%" }, "max-height": W.value, "highlight-current-row": "", onRowClick: Y }, { default: p(() => [m(x2, { label: "名称", width: "90" }, { default: p((e4) => [r("span", { title: e4.row.name }, v(e4.row.name), 9, j)]), _: 1 }), m(x2, { label: "别名", width: "60" }, { default: p((e4) => [r("span", { title: e4.row.label }, v(e4.row.label), 9, $)]), _: 1 }), m(x2, { label: "组件", width: "120", align: "left" }, { default: p((e4) => [e4.row.title || e4.row.componentLabel ? (s(), i("span", L, v(e4.row.title ? e4.row.title + "(" + e4.row.componentLabel + ")" : e4.row.componentLabel), 1)) : (s(), i("span", T, v(d(H) ? d(H).label : "页面"), 1))]), _: 1 }), m(x2, { label: "备注" }, { default: p((e4) => [r("span", { title: e4.row.remark }, v(e4.row.remark), 9, U)]), _: 1 }), m(x2, { fixed: "right", label: "", width: "40", align: "center" }, { default: p((e4) => [f(m(t2, { disabled: false === e4.row.isEdit, link: "", type: "danger", size: "small", onClick: g((l3) => Q(e4.row), ["stop"]) }, { default: p(() => l2[5] || (l2[5] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"]), [[b, e4.row.isStandard && e4.row.eventName || !e4.row.isStandard && e4.row.jsContent]])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])], 4)]), _: 1 }), m(_2, { class: "amb-assembly-collapse-header", name: "addCollapse", title: "自定义方法" }, { default: p(() => [m(y2, { size: "small", data: d(M), "highlight-current-row": "", style: { width: "100%" }, "max-height": W.value, onRowClick: X }, { default: p(() => [m(x2, { prop: "label", label: "方法名", width: "90" }, { default: p((e4) => [r("span", { title: e4.row.eventName }, v(e4.row.eventName), 9, z)]), _: 1 }), m(x2, { prop: "label", label: "描述" }, { default: p((e4) => [r("span", { title: e4.row.remark }, v(e4.row.remark), 9, S)]), _: 1 }), m(x2, { fixed: "right", label: "", width: "50", align: "center" }, { default: p((e4) => [m(t2, { disabled: e4.row.disable, link: "", type: "primary", size: "small", onClick: g((l3) => Q(e4.row), ["stop"]) }, { default: p(() => l2[6] || (l2[6] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])], 4);
|
|
90
90
|
};
|
|
91
91
|
} });
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
B as default
|
|
94
94
|
};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as c, withCtx as m, vShow as d, unref as v, createTextVNode as f, toDisplayString as p, Fragment as g, renderList as b, createBlock as y } from "vue";
|
|
2
2
|
import { ElMessageBox as x, ElMessage as h } from "element-plus";
|
|
3
|
-
import C from "./config.
|
|
3
|
+
import C from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
|
|
5
|
-
import { findDesignItemByUuid as S, getUuidv4 as
|
|
6
|
-
import { usePageContextStore as
|
|
5
|
+
import { findDesignItemByUuid as S, getUuidv4 as _, deepCopy as V } from "../../../utils/common-util.js";
|
|
6
|
+
import { usePageContextStore as k } from "../../../../../stores/page-store.js";
|
|
7
7
|
import { undoRedo as T } from "../../../../../stores/event-undo-redo-store.js";
|
|
8
8
|
import U from "../../../utils/eventBus.js";
|
|
9
|
-
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none"
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
function
|
|
9
|
+
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } }, N = { class: "amb-design-tool-item", style: { "padding-right": "10px" } }, w = { class: "codemirror", style: { "margin-left": "20px", "margin-top": "-10px" } }, B = e({ __name: "page-event-content", props: { eventForm: {}, configure: {}, customEvent: {}, handleType: {} }, emits: ["changeSelectEvent", "addEvent", "changeSelectStandardEvent"], setup(e2, { expose: B2, emit: J }) {
|
|
10
|
+
const A = e2, L = T(), O = k(), P = t(null), Z = t();
|
|
11
|
+
let I = t();
|
|
12
|
+
const q = E;
|
|
13
|
+
let R = A.customEvent;
|
|
14
|
+
const H = t({ jsContent: "" }), D = t({ jsContent: "" }), G = t(0), K = t(-1), M = t();
|
|
15
|
+
function Q() {
|
|
16
16
|
let e3 = false;
|
|
17
|
-
|
|
17
|
+
D.value && D.value.standardValues && D.value.standardValues.includes("true") && (e3 = true), D.value && (D.value.isStandard = e3);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const e3 =
|
|
19
|
+
function W() {
|
|
20
|
+
const e3 = H.value ? JSON.stringify(H.value) : null, t2 = D.value ? JSON.stringify(D.value) : null;
|
|
21
21
|
e3 && e3 !== t2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
22
|
-
false !==
|
|
22
|
+
false !== ee() && X();
|
|
23
23
|
}).catch((e4) => {
|
|
24
|
-
|
|
25
|
-
}) :
|
|
24
|
+
X();
|
|
25
|
+
}) : X();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function X() {
|
|
28
28
|
const e3 = { name: "customFunc", isStandard: false, jsContent: "" };
|
|
29
|
-
e3.uuid =
|
|
29
|
+
e3.uuid = _(), Y(e3);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e3 = e3 || {},
|
|
31
|
+
function Y(e3) {
|
|
32
|
+
e3 = e3 || {}, H.value = e3, D.value = V(e3), P.value && P.value.updateJsContent && P.value.updateJsContent(D.value), L.clearSnapshot(), L.addSnapshot(D), G.value = 1, K.value = 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!
|
|
36
|
-
const e3 =
|
|
34
|
+
function ee() {
|
|
35
|
+
if (!D.value) return x.confirm("编辑对象不存在,不需要保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
36
|
+
const e3 = O.pageContext;
|
|
37
37
|
if (!e3) return x.confirm("页面设计对象不存在,不可保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
38
38
|
const t2 = function() {
|
|
39
|
-
const e4 =
|
|
39
|
+
const e4 = D.value;
|
|
40
40
|
if (!e4.isStandard && !e4.jsContent) return h({ message: "方法内容不能为空!", type: "error" }), false;
|
|
41
41
|
if ("customFunc" == e4.name) {
|
|
42
42
|
if (e4.eventName && (e4.eventName = e4.eventName.trim()), !e4.funcParam) return h({ message: "自定义方法参数名不能为空!", type: "error" }), false;
|
|
@@ -48,7 +48,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
48
48
|
if (n3) {
|
|
49
49
|
if (!/^([a-zA-Z_$][a-zA-Z0-9_$]*(?:,[a-zA-Z_$][a-zA-Z0-9_$]*)*)$/.test(n3)) return h({ message: "方法参数只能以字母、下划线或$开头,只能包含数字、字母或$!", type: "error" }), false;
|
|
50
50
|
}
|
|
51
|
-
const a3 =
|
|
51
|
+
const a3 = O.pageContext;
|
|
52
52
|
if (a3 && a3.customEvents) {
|
|
53
53
|
for (let n4 of a3.customEvents) if ("customFunc" == n4.name && n4.eventName == t3 && n4.uuid != e4.uuid) return h({ message: "存在相同的方法名!", type: "error" }), false;
|
|
54
54
|
}
|
|
@@ -56,7 +56,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
56
56
|
}();
|
|
57
57
|
if (false === t2) return false;
|
|
58
58
|
e3.customEvents || (e3.customEvents = []);
|
|
59
|
-
const n2 =
|
|
59
|
+
const n2 = D.value;
|
|
60
60
|
let a2 = null, l2 = -1;
|
|
61
61
|
for (let t3 = 0; t3 < e3.customEvents.length; t3++) {
|
|
62
62
|
const u2 = e3.customEvents[t3];
|
|
@@ -78,20 +78,20 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
78
78
|
e4 > -1 && (t3.events[e4] = a2);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
} else Object.assign(
|
|
82
|
-
|
|
81
|
+
} else Object.assign(H.value, n2), e3.customEvents.push(H.value);
|
|
82
|
+
H.value = n2, D.value = V(n2), h({ message: "暂存成功!", type: "success" });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function te() {
|
|
85
85
|
x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
86
86
|
!function() {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
D.value && ne(D.value);
|
|
88
|
+
X();
|
|
89
89
|
}();
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
const t2 = e3, n2 =
|
|
94
|
-
if (e3.isStandard)
|
|
92
|
+
function ne(e3) {
|
|
93
|
+
const t2 = e3, n2 = O.pageContext;
|
|
94
|
+
if (e3.isStandard) ae(e3), le(t2, e3);
|
|
95
95
|
else if (n2 && n2.customEvents) for (let e4 = 0; e4 < n2.customEvents.length; e4++) {
|
|
96
96
|
let a2 = n2.customEvents[e4];
|
|
97
97
|
if ("customFunc" == t2.name) {
|
|
@@ -100,63 +100,63 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
} else if (a2.name == t2.name && t2.componentUuid == a2.componentUuid) {
|
|
103
|
-
|
|
103
|
+
ae(a2), n2.customEvents.splice(e4, 1), le(t2, a2);
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ae(e3) {
|
|
109
109
|
e3.eventName = null, e3.isStandard = false, e3.jsContent = "", e3.remark = "", e3.standardValues = [];
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const n2 =
|
|
111
|
+
function le(e3, t2) {
|
|
112
|
+
const n2 = O.pageContext, a2 = S(n2, e3.componentUuid);
|
|
113
113
|
if (a2 && a2.events) {
|
|
114
114
|
const n3 = a2.events.findIndex((t3) => t3.name == e3.name && t3.componentUuid == e3.componentUuid);
|
|
115
115
|
n3 > -1 && (a2.events[n3] = t2);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
n(() => {
|
|
119
|
-
|
|
120
|
-
if (
|
|
121
|
-
const t2 =
|
|
122
|
-
"customFunc" == e3.name ? e3.uuid == t2.uuid &&
|
|
119
|
+
Z.value = window.innerHeight, I.value = { overflow: "auto", height: Z.value + "px" }, U.$on("clearEvent", (e3) => {
|
|
120
|
+
if (ne(e3), D.value) {
|
|
121
|
+
const t2 = D.value;
|
|
122
|
+
"customFunc" == e3.name ? e3.uuid == t2.uuid && X() : e3.componentUuid == t2.componentUuid && e3.name == t2.name && X();
|
|
123
123
|
}
|
|
124
124
|
}), U.$on("editEvent", (e3) => {
|
|
125
125
|
let t2 = false;
|
|
126
|
-
if (
|
|
126
|
+
if (D.value && ("customFunc" == e3.name ? D.value.uuid == e3.uuid && (t2 = true) : D.value.componentUuid == e3.componentUuid && e3.name == D.value.name && (t2 = true)), t2) return;
|
|
127
127
|
null == e3.jsContent && (e3.jsContent = ""), null == e3.isStandard && (e3.isStandard = false, e3.standardValues = []), e3.isStandard && !e3.standardValues && (e3.standardValues = ["true"]);
|
|
128
|
-
const n2 =
|
|
128
|
+
const n2 = H.value ? JSON.stringify(H.value) : null, a2 = D.value ? JSON.stringify(D.value) : null;
|
|
129
129
|
n2 && n2 !== a2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
130
|
-
false !==
|
|
130
|
+
false !== ee() && Y(e3);
|
|
131
131
|
}).catch((t3) => {
|
|
132
|
-
|
|
133
|
-
}) :
|
|
132
|
+
Y(e3);
|
|
133
|
+
}) : Y(e3);
|
|
134
134
|
});
|
|
135
135
|
}), a(() => {
|
|
136
|
-
U.$off("clearEvent"), U.$off("editEvent"),
|
|
137
|
-
}),
|
|
138
|
-
let oe, se
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
U.$off("clearEvent"), U.$off("editEvent"), ue && clearTimeout(ue), oe && clearTimeout(oe), L.clearSnapshotTimeout();
|
|
137
|
+
}), X();
|
|
138
|
+
let ue, oe, se = false;
|
|
139
|
+
function ie() {
|
|
140
|
+
ue && clearTimeout(ue), se = true, L.undo(D), G.value = L.getTotalLen(), K.value = L.getCurrentIndex(), P.value && P.value.updateJsContent && P.value.updateJsContent(D.value), ue = setTimeout(() => {
|
|
141
|
+
se = false;
|
|
142
142
|
}, 100);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
function re() {
|
|
145
|
+
oe && clearTimeout(oe), se = true, L.record(D), G.value = L.getTotalLen(), K.value = L.getCurrentIndex(), P.value && P.value.updateJsContent && P.value.updateJsContent(D.value), oe = setTimeout(() => {
|
|
146
|
+
se = false;
|
|
147
147
|
}, 100);
|
|
148
148
|
}
|
|
149
|
-
return l(() =>
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
return l(() => D, (e3) => {
|
|
150
|
+
se || L.addSnapshot(D, function() {
|
|
151
|
+
G.value = L.getTotalLen(), K.value = L.getCurrentIndex();
|
|
152
152
|
});
|
|
153
|
-
}, { deep: true }),
|
|
154
|
-
|
|
153
|
+
}, { deep: true }), B2({ resize: function() {
|
|
154
|
+
P.value && P.value.resize && P.value.resize();
|
|
155
155
|
} }), (e3, t2) => {
|
|
156
|
-
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"),
|
|
157
|
-
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick:
|
|
156
|
+
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"), _2 = u("el-form-item"), V2 = u("el-checkbox"), k2 = u("el-checkbox-group"), T2 = u("el-option"), U2 = u("el-option-group"), B3 = u("el-select"), J2 = u("el-col"), A2 = u("el-row"), L2 = u("el-form");
|
|
157
|
+
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick: W }, [r(a2, { size: 18 }, { default: m(() => [r(n2)]), _: 1 }), t2[5] || (t2[5] = i("label", null, "添加自定义方法", -1))]), r(l2, { direction: "vertical" }), c(i("label", j, null, 512), [[d, K.value < 1]]), c(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: ie }, t2[6] || (t2[6] = [i("span", { class: "iconfont icon-chexiaozuo", style: { "font-size": "20px" }, title: "撤销" }, null, -1)]), 512), [[d, K.value > 0]]), c(i("label", { class: "amb-page-type", onClick: re }, t2[7] || (t2[7] = [i("span", { class: "iconfont icon-chexiaoyou", style: { "font-size": "20px" }, title: "恢复" }, null, -1)]), 512), [[d, K.value > -1 && K.value + 1 < G.value]])]), c(i("div", N, [i("label", { class: "amb-page-type", onClick: t2[0] || (t2[0] = (e4) => ee()) }, [r(a2, { size: 18 }, { default: m(() => [r(x2)]), _: 1 }), t2[8] || (t2[8] = i("label", null, "确定", -1))]), r(l2, { direction: "vertical" }), i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: te }, [r(a2, { size: 18 }, { default: m(() => [r(h2)]), _: 1 }), t2[9] || (t2[9] = i("label", null, "清除", -1))])], 512), [[d, D.value.name]])]), r(L2, { class: "amb-design-board", style: { "padding-top": "10px" }, ref_key: "formRef", ref: M, size: "small", model: v(R), "inline-message": "", "label-width": "80px" }, { default: m(() => [r(A2, null, { default: m(() => [r(_2, { label: "名称", style: { "min-width": "280px" }, required: "customFunc" == D.value.name }, { default: m(() => [c(r(E2, { type: "primary" }, { default: m(() => [f(p(D.value.title ? D.value.title + (D.value.componentLabel ? "(" + D.value.componentLabel + ")" : "") : D.value.componentLabel) + "." + p(D.value.name), 1)]), _: 1 }, 512), [[d, D.value.name && "customFunc" != D.value.name]]), c(r(S2, { modelValue: D.value.eventName, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => D.value.eventName = e4), title: "自定义方法名" }, null, 8, ["modelValue"]), [[d, "customFunc" == D.value.name]])]), _: 1 }, 8, ["required"]), c(r(k2, { modelValue: D.value.standardValues, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => D.value.standardValues = e4), onChange: Q }, { default: m(() => [r(V2, { value: "true", label: "标准功能" })]), _: 1 }, 8, ["modelValue"]), [[d, "customFunc" != D.value.name]]), c(r(B3, { disabled: !D.value.isStandard, modelValue: D.value.eventName, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => D.value.eventName = e4), placeholder: "请选择", filterable: "", style: { width: "240px", "margin-left": "10px" } }, { default: m(() => [(s(true), o(g, null, b(v(q), (e4) => (s(), y(U2, { key: e4.label, label: e4.label }, { default: m(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(T2, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["label"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue"]), [[d, "customFunc" != D.value.name]]), r(J2, { span: 10 }, { default: m(() => [r(_2, { label: "描述" }, { default: m(() => [r(S2, { modelValue: D.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => D.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), c(i("div", w, [r(C, { eventForm: D.value, ref_key: "editorRef", ref: P }, null, 8, ["eventForm"])], 512), [[d, "customFunc" == D.value.name || "customFunc" != D.value.name && !D.value.isStandard]])]), _: 1 }, 8, ["model"])]);
|
|
158
158
|
};
|
|
159
159
|
} });
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
B as default
|
|
162
162
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as a, openBlock as r, withCtx as o, createVNode as i } from "vue";
|
|
2
|
+
import u from "./page-event-container.vue.js";
|
|
3
3
|
import l from "./page-event-content.vue.js";
|
|
4
|
-
|
|
5
|
-
const f =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
s.value && s.value.resize && s.value.resize();
|
|
4
|
+
const c = e({ __name: "page-event-view", setup(e2, { expose: c2 }) {
|
|
5
|
+
const f = n(null);
|
|
6
|
+
return c2({ resize: function() {
|
|
7
|
+
f.value && f.value.resize && f.value.resize();
|
|
9
8
|
} }), (e3, n2) => {
|
|
10
|
-
const
|
|
11
|
-
return r(),
|
|
9
|
+
const c3 = t("el-aside"), s = t("el-main"), m = t("el-container");
|
|
10
|
+
return r(), a(m, { class: "amb-container" }, { default: o(() => [i(c3, { class: "amb-container-left" }, { default: o(() => [i(u, { ref: "pageEventContainerRef", configure: e3.configure }, null, 8, ["configure"])]), _: 1 }), i(s, { class: "amb-container-main" }, { default: o(() => [i(l, { configure: {}, eventForm: {}, ref_key: "contentRef", ref: f }, null, 512)]), _: 1 })]), _: 1 });
|
|
12
11
|
};
|
|
13
12
|
} });
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
c as default
|
|
16
15
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getAttrComponentByName as m, getComponentEventOptions as
|
|
5
|
-
import { deepCopy as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
function
|
|
1
|
+
import { defineComponent as e, ref as n, createElementBlock as t, openBlock as s, createBlock as a, resolveDynamicComponent as o } from "vue";
|
|
2
|
+
import u from "../../assemblys/page/page-attr.vue.js";
|
|
3
|
+
import l from "../../assemblys/error-attr.vue.js";
|
|
4
|
+
import { getAttrComponentByName as m, getComponentEventOptions as r } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import { deepCopy as i } from "../../../utils/common-util.js";
|
|
6
|
+
const f = { style: { height: "100%" } }, p = e({ __name: "attr-container", props: { pageInfo: Object, system: Object }, setup(e2, { expose: p2 }) {
|
|
7
|
+
const c = e2, v = n({}), g = n({});
|
|
8
|
+
v.value = c.pageInfo, g.value = u;
|
|
9
|
+
const y = n({ index: 1 }), b = {};
|
|
10
|
+
function j(e3) {
|
|
11
11
|
if (e3 && e3.name && "page" !== e3.name) {
|
|
12
12
|
!function(e4) {
|
|
13
13
|
if (!e4 || !e4.name || !e4.events) return;
|
|
14
|
-
const n3 =
|
|
14
|
+
const n3 = r(e4.name);
|
|
15
15
|
if (!n3) return;
|
|
16
|
-
const
|
|
17
|
-
for (let n4 of e4.events)
|
|
18
|
-
for (let
|
|
19
|
-
if (s2
|
|
20
|
-
const n4 =
|
|
16
|
+
const t2 = {};
|
|
17
|
+
for (let n4 of e4.events) t2[n4.name] = n4;
|
|
18
|
+
for (let s2 of n3) {
|
|
19
|
+
if (t2[s2.name]) continue;
|
|
20
|
+
const n4 = i(s2);
|
|
21
21
|
e4.events.push(n4);
|
|
22
22
|
}
|
|
23
|
-
}(e3),
|
|
24
|
-
let n2 =
|
|
25
|
-
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 =
|
|
26
|
-
} else
|
|
23
|
+
}(e3), v.value = e3;
|
|
24
|
+
let n2 = b[e3.name];
|
|
25
|
+
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 = l), b[e3.name] = n2, g.value = n2;
|
|
26
|
+
} else v.value = c.pageInfo, g.value = u;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
} }), (n2,
|
|
28
|
+
return p2({ changeAssembly: j, changeAssemblyByComponent: function(e3, n2) {
|
|
29
|
+
v.value = e3, g.value = n2;
|
|
30
|
+
} }), (n2, u2) => (s(), t("div", f, [(s(), a(o(g.value), { key: "attr_" + v.value.uuid, indexObj: y.value, pageDesign: e2.pageInfo, system: e2.system, configure: v.value, onChangeAssembly: j }, null, 40, ["indexObj", "pageDesign", "system", "configure"]))]));
|
|
31
31
|
} });
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
p as default
|
|
34
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as o, nextTick as l, resolveComponent as a, resolveDirective as n, createElementBlock as i, openBlock as s, Fragment as r, createElementVNode as p, createVNode as c, withDirectives as u, createBlock as d, unref as m, withCtx as g, createTextVNode as f } from "vue";
|
|
2
|
-
import { Plus as
|
|
2
|
+
import { Plus as b, Delete as y, Refresh as v } from "@element-plus/icons";
|
|
3
3
|
import w from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { ElMessageBox as h, ElMessage as C, ElLoading as k } from "element-plus";
|
|
5
5
|
const S = { style: { padding: "0 0 10px 0" } }, T = e({ __name: "i18n-setting-enabled", props: { systemCode: { type: String, default: "" } }, emits: ["close"], setup(e2, { expose: T2, emit: A }) {
|
|
@@ -52,7 +52,7 @@ const S = { style: { padding: "0 0 10px 0" } }, T = e({ __name: "i18n-setting-en
|
|
|
52
52
|
}), o(() => {
|
|
53
53
|
}), T2({}), (e3, t2) => {
|
|
54
54
|
const o2 = a("el-button"), l2 = a("super-grid"), w2 = n("loading");
|
|
55
|
-
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: N.value, icon: m(
|
|
55
|
+
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: N.value, icon: m(b), type: "primary", onClick: j }, { default: g(() => t2[0] || (t2[0] = [f(" 新建 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { disabled: N.value, icon: m(y), type: "danger", onClick: q }, { default: g(() => t2[1] || (t2[1] = [f(" 删除 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { align: "left", class: "button--default", icon: m(v), onClick: H }, { default: g(() => t2[2] || (t2[2] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[w2, N.value]])]), c(l2, { style: { width: "100%" }, ref_key: "grid", ref: x, url: m(_) + "/bs/language-package/list", options: D, code: "BS_LANGUAGE_PACKAGE", onSelect: B, onSelectAll: B }, null, 8, ["url"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./i18n-setting-page.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const p = t(e, [["__scopeId", "data-v-8e6fbc57"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|