super-page-designer 2.2.51-sit3 → 2.2.54
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/common-util.js +3 -0
- package/dist/es/components/design/utils/form-design-util.js +5 -5
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-table-util.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +6 -6
- 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 +55 -55
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +31 -15
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +37 -0
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue3.js +1 -1
- 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-content.vue.js +2 -2
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +13 -20
- package/dist/es/components/design/views/design/view/attr-container.vue.js +22 -29
- 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 +8 -8
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +5 -154
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +148 -2
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +5 -20
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +20 -2
- package/dist/es/style.css +885 -822
- package/package.json +4 -4
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const v = { class: "dialog-footer" }, c = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: c2 }) {
|
|
4
|
+
const f = e2, g = l(f.modelValue), V = c2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function S() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function w(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function y() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => f.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), c3 = t("el-input"), f2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(c3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: y }, { suffix: i(() => [n(a2, { onClick: y }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", v, [n(_2, { onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: S }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: w }, { default: i(() => [n(f2, { type: "selection", width: "55" }), n(f2, { prop: "date", label: "Date", width: "180" }), n(f2, { prop: "name", label: "Name", width: "180" }), n(f2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
c as default
|
|
4
28
|
};
|
|
@@ -130,7 +130,7 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
|
|
|
130
130
|
}
|
|
131
131
|
return (e3, l2) => {
|
|
132
132
|
const o2 = a("el-col"), g2 = a("el-row"), w2 = a("workflow-editor");
|
|
133
|
-
return t(), s("div", P, [i("div", T, [u(g2, null, { default: r(() => [u(o2, { span: 23
|
|
133
|
+
return t(), s("div", P, [i("div", T, [u(g2, null, { default: r(() => [u(o2, { span: 23 }, { default: r(() => [F.value && F.value.code ? (t(), v(W, { key: 0, pageDesign: F.value, onChangePage: pe, onInitLoaded: ce }, null, 8, ["pageDesign"])) : n("", true)]), _: 1 })]), _: 1 })]), i("div", $, [i("div", N, [i("label", { class: p({ selected: "page" === q.value }), onClick: l2[0] || (l2[0] = (e4) => q.value = "page") }, "页面设计", 2), i("label", { class: p({ selected: "front" === q.value }), onClick: l2[1] || (l2[1] = (e4) => ee()) }, "页面逻辑", 2), i("label", { class: p({ selected: "workflow" === q.value }), onClick: l2[2] || (l2[2] = (e4) => ve()) }, "工作流设计", 2), i("label", { class: p({ selected: "service" === q.value }), onClick: l2[3] || (l2[3] = (e4) => q.value = "service") }, "服务编排", 2)])]), F.value ? (t(), s("div", R, [c((t(), v(m, { ref_key: "ViewDesignRef", ref: G, key: X.value, configure: F.value, system: Z.value, onRegain: ie, onRevocation: te }, null, 8, ["configure", "system"])), [[f, "page" === q.value]]), K.value ? c((t(), v(w2, { key: 0, id: L.value, code: F.value.workflowCode, version: F.value.workflowVersion, "system-code": F.value.systemCode, "system-publish-version": F.value.systemVersion, "page-code": F.value.code, onBack: e3.goBack, onChangeDefVersion: ne }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[f, "workflow" === q.value]]) : n("", true), "service" === q.value ? (t(), v(d(S), { key: 1, pageContext: F.value }, null, 8, ["pageContext"])) : n("", true), c(u(x, { ref_key: "pageEventContainerRef", ref: O, configure: F.value }, null, 8, ["configure"]), [[f, "front" === q.value]])])) : n("", true)]);
|
|
134
134
|
};
|
|
135
135
|
} });
|
|
136
136
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const a = { "amb-page-container": "_amb-page-
|
|
1
|
+
const a = { "amb-page-container": "_amb-page-container_1k9lg_1", "amb-page-container-header": "_amb-page-container-header_1k9lg_6", "amb-page-container-main": "_amb-page-container-main_1k9lg_9" };
|
|
2
2
|
export {
|
|
3
3
|
a as default
|
|
4
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
5
|
import { findDesignItemByUuid as S, getUuidv4 as _, deepCopy as V } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore as k } from "../../../../../stores/page-store.js";
|
|
@@ -72,7 +72,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
72
72
|
}
|
|
73
73
|
if (a2) {
|
|
74
74
|
if (Object.assign(a2, n2), e3.customEvents[l2] = a2, "customFunc" !== a2.name && a2.componentUuid) {
|
|
75
|
-
const t3 = S(e3, a2.componentUuid);
|
|
75
|
+
const t3 = S({ items: [e3] }, a2.componentUuid);
|
|
76
76
|
if (t3 && t3.events) {
|
|
77
77
|
const e4 = t3.events.findIndex((e5) => e5.name == a2.name && e5.componentUuid == a2.componentUuid);
|
|
78
78
|
e4 > -1 && (t3.events[e4] = a2);
|
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, createElementBlock as s, openBlock as t, createElementVNode as a, normalizeClass as n, withDirectives as u, createVNode as i, vShow as o } from "vue";
|
|
2
|
+
import m from "./assemblys-container-list.vue.js";
|
|
3
|
+
import c from "./assemblys-container-explore.vue.js";
|
|
4
|
+
import v from "./assemblys-container-template.vue.js";
|
|
5
5
|
import "@element-plus/icons-vue";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import "../../../utils/assemblys-config.js";
|
|
8
8
|
import "uuid";
|
|
9
9
|
import "../../../utils/eventBus.js";
|
|
10
10
|
import "../../../../../stores/page-store.js";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const r = { class: "amb-design-assembly-content" }, d = { class: "amb-assembly-header" }, p = { class: "amb-assembly-header-type" }, b = { class: "amb-design-assembly-list" }, g = e({ __name: "assemblys-container", props: { designItems: Array, selectWidget: Object, configure: Object }, emits: ["onSelectWidget", "addEvent", "changeEvent", "onSelectEvent"], setup(e2, { expose: g2, emit: y }) {
|
|
12
|
+
const f = y;
|
|
13
13
|
e2.configure;
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
"assembly" == e3 ? (
|
|
14
|
+
const j = l("selected"), W = l(""), x = l(""), E = l("");
|
|
15
|
+
function I(e3) {
|
|
16
|
+
"assembly" == e3 ? (j.value = "selected", W.value = "", x.value = "", E.value = "") : "pageEvent" == e3 ? (W.value = "", j.value = "", x.value = "", E.value = "selected") : "explorer" == e3 ? (W.value = "selected", j.value = "", x.value = "", E.value = "") : (W.value = "", j.value = "", x.value = "selected", E.value = "");
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function O(e3, l2) {
|
|
21
|
-
W("onSelectWidget", e3, l2);
|
|
18
|
+
function S(e3, l2) {
|
|
19
|
+
f("onSelectWidget", e3, l2);
|
|
22
20
|
}
|
|
23
|
-
return t(() => {
|
|
24
|
-
if (I.value) {
|
|
25
|
-
const e3 = I.value.getBoundingClientRect();
|
|
26
|
-
e3.y && (S.value = window.innerHeight - e3.y);
|
|
27
|
-
}
|
|
28
|
-
}), f2({ selAsselbyType: "assembly" }), (l2, s2) => (n(), a("div", { class: "amb-design-assembly-content", ref_key: "ambDesignAssemblyContent", ref: I, style: i(A.value) }, [u("div", b, [u("div", g, [u("label", { class: o(h.value), onClick: s2[0] || (s2[0] = (e3) => E("assembly")) }, "组件", 2), u("label", { class: o(x.value), onClick: s2[1] || (s2[1] = (e3) => E("explorer")) }, "大纲", 2), u("label", { class: o(C.value), onClick: s2[2] || (s2[2] = (e3) => E("template")) }, "模板库", 2)])]), u("div", y, [c(m(r, null, null, 512), [[v, h.value]]), c(m(d, { onOnSelectWidget: O, designItems: e2.designItems, selectWidget: e2.selectWidget }, null, 8, ["designItems", "selectWidget"]), [[v, x.value]]), c(m(p, null, null, 512), [[v, C.value]])])], 4));
|
|
21
|
+
return l(null), l(null), g2({ selAsselbyType: "assembly" }), (l2, g3) => (t(), s("div", r, [a("div", d, [a("div", p, [a("label", { class: n(j.value), onClick: g3[0] || (g3[0] = (e3) => I("assembly")) }, "组件", 2), a("label", { class: n(W.value), onClick: g3[1] || (g3[1] = (e3) => I("explorer")) }, "大纲", 2), a("label", { class: n(x.value), onClick: g3[2] || (g3[2] = (e3) => I("template")) }, "模板库", 2)])]), a("div", b, [u(i(m, null, null, 512), [[o, j.value]]), u(i(c, { onOnSelectWidget: S, designItems: e2.designItems, selectWidget: e2.selectWidget }, null, 8, ["designItems", "selectWidget"]), [[o, W.value]]), u(i(v, null, null, 512), [[o, x.value]])])]));
|
|
29
22
|
} });
|
|
30
23
|
export {
|
|
31
|
-
|
|
24
|
+
g as default
|
|
32
25
|
};
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getAttrComponentByName as
|
|
5
|
-
import { deepCopy as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
if (d.value) {
|
|
12
|
-
const e3 = d.value.getBoundingClientRect();
|
|
13
|
-
e3.y && (j.value = window.innerHeight - e3.y);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
const A = {};
|
|
17
|
-
function C(e3) {
|
|
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) {
|
|
18
11
|
if (e3 && e3.name && "page" !== e3.name) {
|
|
19
12
|
!function(e4) {
|
|
20
13
|
if (!e4 || !e4.name || !e4.events) return;
|
|
21
|
-
const n3 =
|
|
14
|
+
const n3 = r(e4.name);
|
|
22
15
|
if (!n3) return;
|
|
23
16
|
const t2 = {};
|
|
24
17
|
for (let n4 of e4.events) t2[n4.name] = n4;
|
|
25
|
-
for (let
|
|
26
|
-
if (t2[
|
|
27
|
-
const n4 =
|
|
18
|
+
for (let s2 of n3) {
|
|
19
|
+
if (t2[s2.name]) continue;
|
|
20
|
+
const n4 = i(s2);
|
|
28
21
|
e4.events.push(n4);
|
|
29
22
|
}
|
|
30
|
-
}(e3),
|
|
31
|
-
let n2 =
|
|
32
|
-
null == n2 && (n2 =
|
|
33
|
-
} 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;
|
|
34
27
|
}
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
} }), (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"]))]));
|
|
38
31
|
} });
|
|
39
32
|
export {
|
|
40
|
-
|
|
33
|
+
p as default
|
|
41
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./page-switch.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-2076fde4"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as a, onMounted as l, resolveComponent as n, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as a, onMounted as l, resolveComponent as n, createElementBlock as o, openBlock as i, createVNode as s, withCtx as p, createElementVNode as d, createBlock as u, unref as r, toDisplayString as c, createTextVNode as g } from "vue";
|
|
2
2
|
import { Menu as m, Tickets as f, Folder as y, Operation as v, ArrowUp as h, ArrowDown as x } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox as w } from "element-plus";
|
|
4
4
|
import b from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import _ from "agilebuilder-ui/src/utils/i18n-util";
|
|
6
|
-
const k = { style: { display: "flex", width: "60px", height: "60px", "margin-left": "
|
|
6
|
+
const k = { style: { display: "flex", "min-width": "60px", height: "60px", "margin-left": "15px", "align-items": "center", cursor: "pointer" } }, C = { style: { "overflow-y": "auto" } }, I = { style: { "vertical-align": "middle" } }, T = { key: 3, style: { "margin-left": "5px" } }, N = { key: 4, style: { "margin-left": "5px" } }, P = e({ __name: "page-switch", props: { pageDesign: { type: Object, default: () => ({}) } }, emits: ["change-page", "init-loaded"], setup(e2, { emit: P2 }) {
|
|
7
7
|
const A = e2, D = P2, S = t(false), z = t(""), L = t(), $ = t(), B = t({ value: "id", label: "name", leaf: "leaf", emitPath: false, lazy: true, lazyLoad: async function(e3, t2) {
|
|
8
8
|
-1 === V.value && await b.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/systems/getByCode/" + A.pageDesign.systemCode).then((e4) => {
|
|
9
9
|
if (e4) {
|
|
@@ -25,14 +25,14 @@ const k = { style: { display: "flex", width: "60px", height: "60px", "margin-lef
|
|
|
25
25
|
b.get(a2).then((e4) => {
|
|
26
26
|
t2(e4);
|
|
27
27
|
});
|
|
28
|
-
}, expandTrigger: "hover" }), V = t(-1),
|
|
29
|
-
function
|
|
28
|
+
}, expandTrigger: "hover" }), V = t(-1), F = t("");
|
|
29
|
+
function R() {
|
|
30
30
|
S.value = true;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function U() {
|
|
33
33
|
S.value = false;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function j(e3) {
|
|
36
36
|
const t2 = e3.data.id.split("_")[2];
|
|
37
37
|
return e3.label + " (" + t2 + ")";
|
|
38
38
|
}
|
|
@@ -47,10 +47,10 @@ const k = { style: { display: "flex", width: "60px", height: "60px", "margin-lef
|
|
|
47
47
|
});
|
|
48
48
|
} else L.value.clearCheckedNodes();
|
|
49
49
|
}
|
|
50
|
-
return a(() => options.value.filter((e3) => !
|
|
50
|
+
return a(() => options.value.filter((e3) => !F.value || e3.name.toLowerCase().includes(F.value.toLowerCase()))), l(() => {
|
|
51
51
|
}), (t2, a2) => {
|
|
52
52
|
const l2 = n("el-icon"), w2 = n("el-button"), b2 = n("el-cascader-panel"), _2 = n("el-popover");
|
|
53
|
-
return
|
|
53
|
+
return i(), o("div", k, [s(_2, { onShow: R, onHide: U, ref_key: "popoverRef", ref: $, width: "auto", "popper-style": "box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;" }, { reference: p(() => [s(w2, { icon: r(v), style: { "font-size": "14px", "font-weight": "600" } }, { default: p(() => [g(c(e2.pageDesign.label + "(" + e2.pageDesign.version + ")") + " ", 1), S.value ? (i(), u(l2, { key: 0, class: "el-icon--right" }, { default: p(() => [s(r(h))]), _: 1 })) : (i(), u(l2, { key: 1, class: "el-icon--right" }, { default: p(() => [s(r(x))]), _: 1 }))]), _: 1 }, 8, ["icon"])]), default: p(() => [d("div", C, [s(b2, { ref_key: "cascaderRef", ref: L, style: { width: "fit-content", "margin-top": "6px" }, props: B.value, modelValue: z.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => z.value = e3), onChange: q }, { default: p(({ node: e3, data: t3 }) => [d("div", I, ["menu" === t3.menuType ? (i(), u(l2, { key: 0 }, { default: p(() => [s(r(m))]), _: 1 })) : "page" === t3.menuType ? (i(), u(l2, { key: 1 }, { default: p(() => [s(r(f))]), _: 1 })) : (i(), u(l2, { key: 2 }, { default: p(() => [s(r(y))]), _: 1 })), "page" === t3.menuType ? (i(), o("span", T, c(j(e3)), 1)) : (i(), o("span", N, c(e3.label), 1))])]), _: 1 }, 8, ["props", "modelValue"])])]), _: 1 }, 512)]);
|
|
54
54
|
};
|
|
55
55
|
} });
|
|
56
56
|
export {
|
|
@@ -1,156 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
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 R } from "../../../utils/container-design-util.js";
|
|
8
|
-
import U from "./view-design-preview.vue.js";
|
|
9
|
-
import { ElMessage as J } from "element-plus";
|
|
10
|
-
import "@vueuse/core";
|
|
11
|
-
import "@element-plus/icons-vue";
|
|
12
|
-
import "codemirror";
|
|
13
|
-
import "@codemirror/lang-javascript";
|
|
14
|
-
import "@codemirror/state";
|
|
15
|
-
import "@codemirror/autocomplete";
|
|
16
|
-
import "@codemirror/language";
|
|
17
|
-
import "@codemirror/search";
|
|
18
|
-
import "js-beautify";
|
|
19
|
-
/* empty css */
|
|
20
|
-
import "../../../utils/assemblys-config.js";
|
|
21
|
-
import "../../../../../stores/page-store.js";
|
|
22
|
-
import "../../../../../stores/event-undo-redo-store.js";
|
|
23
|
-
import "../../../utils/eventBus.js";
|
|
24
|
-
import P from "./components/quick-add-dialog.vue.js";
|
|
25
|
-
import z from "./components/i18n-setting.vue.js";
|
|
26
|
-
import { setTableRuntimesFromConfigure as M } 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
|
-
let e3 = null;
|
|
38
|
-
"ipad" == X.configure.dimensions ? e3 = 768 : "phone" == X.configure.dimensions && (e3 = 414);
|
|
39
|
-
const i2 = { width: e3 ? e3 + "px" : "" };
|
|
40
|
-
for (let e4 in le.value) i2[e4] = le.value[e4];
|
|
41
|
-
return se.value && (i2["min-height"] = se.value + "px"), i2;
|
|
42
|
-
});
|
|
43
|
-
function ue() {
|
|
44
|
-
R(X.configure, le, oe), X.configure.runtime || (X.configure.runtime = {}), X.configure.runtime.class = oe.value, X.configure.runtime.style = le.value;
|
|
45
|
-
}
|
|
46
|
-
l(X.configure.props, () => {
|
|
47
|
-
ue();
|
|
48
|
-
}), l(X.configure.style, () => {
|
|
49
|
-
ue();
|
|
50
|
-
});
|
|
51
|
-
const ae = i(), ce = t(() => ({ height: ae.value + "px" })), ge = i(null);
|
|
52
|
-
function me(e3) {
|
|
53
|
-
ee("onSelectWidget", -1);
|
|
54
|
-
}
|
|
55
|
-
function pe(e3, i2) {
|
|
56
|
-
ee("onSelectWidget", e3, i2);
|
|
57
|
-
}
|
|
58
|
-
function fe(e3, i2) {
|
|
59
|
-
ee("onCustomAttrWidget", e3, i2);
|
|
60
|
-
}
|
|
61
|
-
function de(e3) {
|
|
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
|
-
}
|
|
68
|
-
o(() => {
|
|
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
|
-
}
|
|
73
|
-
if (be.value) {
|
|
74
|
-
const e3 = be.value.getBoundingClientRect();
|
|
75
|
-
e3.y && (se.value = window.innerHeight - e3.y - 20);
|
|
76
|
-
}
|
|
77
|
-
});
|
|
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
|
-
e3.tableRuntimes = {}, e3.currentTableConfig = {}, function(e4) {
|
|
83
|
-
"form" === e4.pageType && e4.items ? (e4.formPropTiltleMap = F(e4), X.configure.formPropTiltleMap = e4.formPropTiltleMap) : (delete e4.formPropLabelMap, delete X.configure.formPropLabelMap);
|
|
84
|
-
if (e4.tableUuids) {
|
|
85
|
-
const i2 = {};
|
|
86
|
-
e4.tableUuids = e4.tableUuids.filter((n2) => {
|
|
87
|
-
const t2 = N(e4, n2);
|
|
88
|
-
if (t2) {
|
|
89
|
-
if (M(t2, e4), e4.tableRuntimes && e4.tableRuntimes[n2]) {
|
|
90
|
-
const l2 = e4.tableRuntimes[n2];
|
|
91
|
-
l2.code && (t2.code ? i2[l2.code] = t2.code : i2[l2.code] = l2.code);
|
|
92
|
-
}
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
return false;
|
|
96
|
-
}), e4.listCodesMap = i2;
|
|
97
|
-
}
|
|
98
|
-
e4.homepageChartUuids && (e4.homepageChartUuids = e4.homepageChartUuids.filter((i2) => {
|
|
99
|
-
let n2 = N(e4, i2);
|
|
100
|
-
return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)), V(n2, e4), true);
|
|
101
|
-
}));
|
|
102
|
-
}(e3), B.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/save", { id: X.configure.id, designJson: JSON.stringify(e3) }).then((e4) => {
|
|
103
|
-
J({ message: "保存成功", type: "success" });
|
|
104
|
-
}).catch((e4) => {
|
|
105
|
-
J({ message: "保存失败", type: "error" });
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
D(be, ie, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
|
|
109
|
-
} });
|
|
110
|
-
const he = i(false);
|
|
111
|
-
const Ce = i(null), je = i({}), Se = i({}), ke = i(false);
|
|
112
|
-
let Oe;
|
|
113
|
-
function _e() {
|
|
114
|
-
Oe && clearTimeout(Oe), ke.value = false, Oe = setTimeout(() => {
|
|
115
|
-
ke.value = true;
|
|
116
|
-
}, 1);
|
|
117
|
-
}
|
|
118
|
-
function Ae(e3) {
|
|
119
|
-
if (X.configure.customEvents) {
|
|
120
|
-
let i2 = X.configure.customEvents.filter((i3) => i3.eventName === e3);
|
|
121
|
-
if (i2 && i2.length > 0) return i2[0];
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return s(() => {
|
|
125
|
-
Oe && clearTimeout(Oe);
|
|
126
|
-
}), G2({ onSelectEvent: function(e3) {
|
|
127
|
-
ke.value = !(!e3 || "selected" !== e3);
|
|
128
|
-
}, addEvent: function(e3, i2) {
|
|
129
|
-
je.value = e3;
|
|
130
|
-
const n2 = Ae(e3.eventName);
|
|
131
|
-
n2 && (Se.value = n2), Ce.value = i2 || "event", _e();
|
|
132
|
-
}, changeEvent: function(e3) {
|
|
133
|
-
if (e3) {
|
|
134
|
-
Ce.value = null, je.value = e3;
|
|
135
|
-
const i2 = Ae(e3.eventName);
|
|
136
|
-
Se.value = i2 || null, _e();
|
|
137
|
-
} else ke.value = false;
|
|
138
|
-
} }), (e3, i2) => {
|
|
139
|
-
const n2 = r("el-icon"), t2 = r("el-divider"), l2 = r("Setting");
|
|
140
|
-
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), [[C, "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), [[C, "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), [[C, "assembly" === e3.selAsselbyType]]), v(f(t2, { direction: "vertical" }, null, 512), [[C, "assembly" === e3.selAsselbyType]])]), g("div", $, [g("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
|
|
141
|
-
var _a;
|
|
142
|
-
(_a = Z.value) == null ? void 0 : _a.show();
|
|
143
|
-
}) }, [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) => {
|
|
144
|
-
Y.value && Y.value.openDialog();
|
|
145
|
-
}) }, [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() {
|
|
146
|
-
const e5 = JSON.parse(JSON.stringify(X.configure));
|
|
147
|
-
e5.tableRuntimes = {}, e5.tableUuids && e5.tableUuids.forEach((i3) => {
|
|
148
|
-
const n3 = N(e5, i3);
|
|
149
|
-
n3 && M(n3, e5);
|
|
150
|
-
}), ne.value = e5, he.value = true;
|
|
151
|
-
}()) }, [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, j(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), [[C, "assembly" === e3.selAsselbyType]])], 4), he.value ? (a(), m(U, { 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(P, { ref_key: "quickAddDialogRef", ref: Y, pageDesign: e3.configure }, null, 8, ["pageDesign"]), f(z, { ref_key: "i18nSettingRef", ref: Z, pageDesign: e3.configure }, null, 8, ["pageDesign"])], 64);
|
|
152
|
-
};
|
|
153
|
-
} });
|
|
1
|
+
import e from "./view-design-display.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import i from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = i(e, [["__scopeId", "data-v-d39ebdb2"]]);
|
|
154
5
|
export {
|
|
155
|
-
|
|
6
|
+
p as default
|
|
156
7
|
};
|
|
@@ -1,4 +1,150 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { defineComponent as e, ref as i, reactive as t, computed as n, watch as l, onMounted as o, onUnmounted as s, resolveComponent as r, createElementBlock as a, openBlock as u, Fragment as c, createElementVNode as m, createBlock as g, createCommentVNode as p, createVNode as f, withDirectives as d, normalizeClass as v, withCtx as b, unref as y, vShow as h, normalizeStyle as j, renderList as C } from "vue";
|
|
2
|
+
import { Monitor as S, Cellphone as k, Iphone as _, Plus as O, Check as A, View as T } from "@element-plus/icons";
|
|
3
|
+
import { useDraggable as D } from "vue-draggable-plus";
|
|
4
|
+
import x from "../../assemblys/object-design.vue.js";
|
|
5
|
+
import { deepCopy as W, getUuidv4 as N, findDesignItemByUuid as E } from "../../../utils/common-util.js";
|
|
6
|
+
import { addComponentRef as U } from "../../../utils/page-helper-util.js";
|
|
7
|
+
import { caculatePageStyle as w } from "../../../utils/container-design-util.js";
|
|
8
|
+
import J from "./view-design-preview.vue.js";
|
|
9
|
+
import { ElMessage as P } from "element-plus";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
import "@element-plus/icons-vue";
|
|
12
|
+
import "codemirror";
|
|
13
|
+
import "@codemirror/lang-javascript";
|
|
14
|
+
import "@codemirror/state";
|
|
15
|
+
import "@codemirror/autocomplete";
|
|
16
|
+
import "@codemirror/language";
|
|
17
|
+
import "@codemirror/search";
|
|
18
|
+
import "js-beautify";
|
|
19
|
+
/* empty css */
|
|
20
|
+
import "../../../utils/assemblys-config.js";
|
|
21
|
+
import "../../../../../stores/page-store.js";
|
|
22
|
+
import "../../../../../stores/event-undo-redo-store.js";
|
|
23
|
+
import "../../../utils/eventBus.js";
|
|
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 K from "agilebuilder-ui/src/utils/request";
|
|
28
|
+
import { copyHandleEvents as q, deleteDesignItem as V } from "../../../utils/page-design-util.js";
|
|
29
|
+
import { setHomeChartRuntimesFromConfigure as B } from "../../../utils/home-chart-util.js";
|
|
30
|
+
import { getFormPropTitleMap as F } from "../../../utils/form-design-util.js";
|
|
31
|
+
import "super-page-runtime";
|
|
32
|
+
const L = { class: "amb-design-content-center-header" }, I = { class: "amb-design-tool" }, $ = { class: "amb-design-tool-item" }, G = { class: "amb-design-tool-item", style: { "padding-right": "20px" } }, H = e({ __name: "view-design-display", props: { configure: {}, selectWidget: {}, selAsselbyType: {} }, emits: ["onSelectWidget", "onCustomAttrWidget", "changeSelectEvent", "addEvent", "changeSelectStandardEvent", "revocation", "regain"], setup(e2, { expose: H2, emit: Q }) {
|
|
33
|
+
const X = e2, Y = i(null), Z = i(null), ee = Q;
|
|
34
|
+
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 = []);
|
|
35
|
+
const ie = X.configure.items, te = i(null), ne = t({ index: 0 }), le = i({}), oe = i(""), se = i(null);
|
|
36
|
+
ae();
|
|
37
|
+
const re = n(function() {
|
|
38
|
+
let e3 = null;
|
|
39
|
+
"ipad" == X.configure.dimensions ? e3 = 768 : "phone" == X.configure.dimensions && (e3 = 414);
|
|
40
|
+
const i2 = { width: e3 ? e3 + "px" : "" };
|
|
41
|
+
for (let e4 in le.value) i2[e4] = le.value[e4];
|
|
42
|
+
return se.value && (i2["min-height"] = se.value + "px"), i2;
|
|
43
|
+
});
|
|
44
|
+
function ae() {
|
|
45
|
+
w(X.configure, le, oe), X.configure.runtime || (X.configure.runtime = {}), X.configure.runtime.class = oe.value, X.configure.runtime.style = le.value;
|
|
46
|
+
}
|
|
47
|
+
l(X.configure.props, () => {
|
|
48
|
+
ae();
|
|
49
|
+
}), l(X.configure.style, () => {
|
|
50
|
+
ae();
|
|
51
|
+
});
|
|
52
|
+
const ue = i(null);
|
|
53
|
+
function ce(e3) {
|
|
54
|
+
ee("onSelectWidget", -1);
|
|
55
|
+
}
|
|
56
|
+
function me(e3, i2) {
|
|
57
|
+
ee("onSelectWidget", e3, i2);
|
|
58
|
+
}
|
|
59
|
+
function ge(e3, i2) {
|
|
60
|
+
ee("onCustomAttrWidget", e3, i2);
|
|
61
|
+
}
|
|
62
|
+
function pe(e3) {
|
|
63
|
+
const i2 = ie.indexOf(e3), n2 = t(W(e3));
|
|
64
|
+
n2.uuid = N(), q(n2), ie.splice(i2, 0, n2);
|
|
65
|
+
}
|
|
66
|
+
function fe(e3) {
|
|
67
|
+
V(ie, e3, e3.items && e3.items.length > 0, true);
|
|
68
|
+
}
|
|
69
|
+
o(() => {
|
|
70
|
+
ue.value && U(X.configure, -1, ue);
|
|
71
|
+
});
|
|
72
|
+
const de = i(null);
|
|
73
|
+
function ve() {
|
|
74
|
+
X.configure.i18nKeys && X.configure.i18nKeys.length > 0 && (X.configure.i18nKeys = Array.from(new Set(X.configure.i18nKeys)));
|
|
75
|
+
const e3 = JSON.parse(JSON.stringify(X.configure));
|
|
76
|
+
e3.tableRuntimes = {}, e3.currentTableConfig = {}, function(e4) {
|
|
77
|
+
"form" === e4.pageType && e4.items ? (e4.formPropTiltleMap = F(e4), X.configure.formPropTiltleMap = e4.formPropTiltleMap) : (delete e4.formPropLabelMap, delete X.configure.formPropLabelMap);
|
|
78
|
+
if (e4.tableUuids) {
|
|
79
|
+
const i2 = {};
|
|
80
|
+
e4.tableUuids = e4.tableUuids.filter((t2) => {
|
|
81
|
+
const n2 = E(e4, t2);
|
|
82
|
+
if (n2) {
|
|
83
|
+
if (R(n2, e4), e4.tableRuntimes && e4.tableRuntimes[t2]) {
|
|
84
|
+
const l2 = e4.tableRuntimes[t2];
|
|
85
|
+
l2.code && (n2.code ? i2[l2.code] = n2.code : i2[l2.code] = l2.code);
|
|
86
|
+
}
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return false;
|
|
90
|
+
}), e4.listCodesMap = i2;
|
|
91
|
+
}
|
|
92
|
+
e4.homepageChartUuids && (e4.homepageChartUuids = e4.homepageChartUuids.filter((i2) => {
|
|
93
|
+
let t2 = E(e4, i2);
|
|
94
|
+
return !!t2 && (t2 = JSON.parse(JSON.stringify(t2)), B(t2, e4), true);
|
|
95
|
+
}));
|
|
96
|
+
}(e3), K.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/save", { id: X.configure.id, designJson: JSON.stringify(e3) }).then((e4) => {
|
|
97
|
+
P({ message: "保存成功", type: "success" });
|
|
98
|
+
}).catch((e4) => {
|
|
99
|
+
P({ message: "保存失败", type: "error" });
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
D(de, ie, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
|
|
103
|
+
} });
|
|
104
|
+
const be = i(false);
|
|
105
|
+
const ye = i(null), he = i({}), je = i({}), Ce = i(false);
|
|
106
|
+
let Se;
|
|
107
|
+
function ke() {
|
|
108
|
+
Se && clearTimeout(Se), Ce.value = false, Se = setTimeout(() => {
|
|
109
|
+
Ce.value = true;
|
|
110
|
+
}, 1);
|
|
111
|
+
}
|
|
112
|
+
function _e(e3) {
|
|
113
|
+
if (X.configure.customEvents) {
|
|
114
|
+
let i2 = X.configure.customEvents.filter((i3) => i3.eventName === e3);
|
|
115
|
+
if (i2 && i2.length > 0) return i2[0];
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return s(() => {
|
|
119
|
+
Se && clearTimeout(Se);
|
|
120
|
+
}), H2({ onSelectEvent: function(e3) {
|
|
121
|
+
Ce.value = !(!e3 || "selected" !== e3);
|
|
122
|
+
}, addEvent: function(e3, i2) {
|
|
123
|
+
he.value = e3;
|
|
124
|
+
const t2 = _e(e3.eventName);
|
|
125
|
+
t2 && (je.value = t2), ye.value = i2 || "event", ke();
|
|
126
|
+
}, changeEvent: function(e3) {
|
|
127
|
+
if (e3) {
|
|
128
|
+
ye.value = null, he.value = e3;
|
|
129
|
+
const i2 = _e(e3.eventName);
|
|
130
|
+
je.value = i2 || null, ke();
|
|
131
|
+
} else Ce.value = false;
|
|
132
|
+
} }), (e3, i2) => {
|
|
133
|
+
const t2 = r("el-icon"), n2 = r("el-divider"), l2 = r("Setting"), o2 = r("el-scrollbar");
|
|
134
|
+
return u(), a(c, null, [m("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ue }, [m("div", L, [m("div", I, [m("div", $, [d(m("label", { class: v(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [f(t2, { size: 23 }, { default: b(() => [f(y(S))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(m("label", { class: v(["amb-page-type", { selected: "ipad" == e3.configure.dimensions }]), onClick: i2[1] || (i2[1] = (i3) => e3.configure.dimensions = "ipad") }, [f(t2, { size: 23 }, { default: b(() => [f(y(k))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(m("label", { class: v(["amb-page-type", { selected: "phone" == e3.configure.dimensions }]), onClick: i2[2] || (i2[2] = (i3) => e3.configure.dimensions = "phone") }, [f(t2, { size: 23 }, { default: b(() => [f(y(_))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(f(n2, { direction: "vertical" }, null, 512), [[h, "assembly" === e3.selAsselbyType]])]), m("div", G, [m("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
|
|
135
|
+
var _a;
|
|
136
|
+
(_a = Z.value) == null ? void 0 : _a.show();
|
|
137
|
+
}) }, [f(t2, { size: 18 }, { default: b(() => [f(l2)]), _: 1 }), i2[9] || (i2[9] = m("label", null, "国际化配置", -1))]), m("label", { class: "amb-page-type", onClick: i2[4] || (i2[4] = (e4) => {
|
|
138
|
+
Y.value && Y.value.openDialog();
|
|
139
|
+
}) }, [f(t2, { size: 18 }, { default: b(() => [f(y(O))]), _: 1 }), i2[10] || (i2[10] = m("label", null, "快捷添加", -1))]), f(n2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => ve()) }, [f(t2, { size: 18 }, { default: b(() => [f(y(A))]), _: 1 }), i2[11] || (i2[11] = m("label", null, "保存", -1))]), f(n2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
|
|
140
|
+
const e5 = JSON.parse(JSON.stringify(X.configure));
|
|
141
|
+
e5.tableRuntimes = {}, e5.tableUuids && e5.tableUuids.forEach((i3) => {
|
|
142
|
+
const t3 = E(e5, i3);
|
|
143
|
+
t3 && R(t3, e5);
|
|
144
|
+
}), te.value = e5, be.value = true;
|
|
145
|
+
}()) }, [f(t2, { size: 18 }, { default: b(() => [f(y(T))]), _: 1 }), i2[12] || (i2[12] = m("label", null, "预览", -1))])])])]), f(o2, { height: "100%" }, { default: b(() => [d(m("div", { class: v(["amb-design-board", oe.value]), ref_key: "pageDesignBoardMain", ref: de, style: j(re.value), onClick: ce }, [(u(true), a(c, null, C(y(ie), (i3, t3) => (u(), g(x, { key: i3.uuid, indexObj: ne, configure: i3, pageDesign: e3.configure, selectWidget: e3.selectWidget, onOnSelectWidget: me, onOnCustomAttrWidget: ge, onOnCopy: pe, onOnDelete: fe }, null, 8, ["indexObj", "configure", "pageDesign", "selectWidget"]))), 128))], 6), [[h, "assembly" === e3.selAsselbyType]])]), _: 1 })], 512), be.value ? (u(), g(J, { key: 0, pageDesign: te.value, modelValue: be.value, "onUpdate:modelValue": i2[7] || (i2[7] = (e4) => be.value = e4), onClose: i2[8] || (i2[8] = (e4) => be.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);
|
|
146
|
+
};
|
|
147
|
+
} });
|
|
2
148
|
export {
|
|
3
|
-
|
|
149
|
+
H as default
|
|
4
150
|
};
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const d = e2, m = s(() => "预览【" + d.pageDesign.label + "】"), c = u2, f = s(() => {
|
|
6
|
-
const e3 = d.pageDesign.dimensions, s2 = {};
|
|
7
|
-
let i2 = null;
|
|
8
|
-
if (g.IPAD === e3) i2 = 768;
|
|
9
|
-
else {
|
|
10
|
-
if (g.PHONE !== e3) return s2;
|
|
11
|
-
i2 = 414;
|
|
12
|
-
}
|
|
13
|
-
return s2.width = i2 + "px", s2.border = "1px solid #dcdfe6", s2["border-radius"] = "4px", s2;
|
|
14
|
-
});
|
|
15
|
-
return (e3, s2) => {
|
|
16
|
-
const g2 = i("el-dialog");
|
|
17
|
-
return t(), n(g2, { fullscreen: "", "close-on-press-escape": false, title: m.value, onClose: s2[0] || (s2[0] = (e4) => c("close")) }, { default: r(() => [o(l(a), { style: p([{ margin: "0 auto" }, f.value]), pageDesign: e3.pageDesign, publishVersion: e3.pageDesign.systemVersion, dimensions: e3.pageDesign.dimensions, isTest: true }, null, 8, ["style", "pageDesign", "publishVersion", "dimensions"])]), _: 1 }, 8, ["title"]);
|
|
18
|
-
};
|
|
19
|
-
} });
|
|
1
|
+
import e from "./view-design-preview.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import i from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = i(e, [["__scopeId", "data-v-3e4e707a"]]);
|
|
20
5
|
export {
|
|
21
|
-
|
|
6
|
+
r as default
|
|
22
7
|
};
|