super-page-designer 2.2.22 → 2.2.25

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.
Files changed (48) hide show
  1. package/dist/es/components/design/utils/page-explore-util.js +10 -10
  2. package/dist/es/components/design/utils/page-permission-util.js +35 -33
  3. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
  4. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
  5. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
  6. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
  7. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
  9. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
  10. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
  11. package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
  12. package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
  13. package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
  14. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
  15. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
  17. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
  18. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
  21. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
  22. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
  26. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
  27. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
  28. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
  29. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
  30. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
  31. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
  32. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
  33. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
  34. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
  35. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
  36. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
  37. package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
  38. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
  39. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
  40. package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
  41. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
  42. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +21 -21
  43. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
  44. package/dist/es/components/design/views/design/view/view-design-display.vue.js +91 -88
  45. package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
  46. package/dist/es/stores/event-undo-redo-store.js +5 -2
  47. package/dist/es/style.css +13 -13
  48. package/package.json +4 -4
@@ -2,12 +2,12 @@ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
3
  import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
- import { findDesignItemByUuid as _, getUuidv4 as S, deepCopy as V } from "../../../utils/common-util.js";
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";
7
- import { undoRedo as U } from "../../../../../stores/event-undo-redo-store.js";
8
- import F from "../../../utils/eventBus.js";
9
- const z = { style: { margin: "10px" } }, $ = { class: "amb-design-tool", style: { "user-select": "none" } }, j = { class: "amb-design-tool-item" }, N = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } }, w = { class: "amb-design-tool-item", style: { "padding-right": "10px" } }, T = { 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 = U(), O = k(), P = t(null), Z = t();
7
+ import { undoRedo as T } from "../../../../../stores/event-undo-redo-store.js";
8
+ import U from "../../../utils/eventBus.js";
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
11
  let I = t();
12
12
  const q = E;
13
13
  let R = A.customEvent;
@@ -26,7 +26,7 @@ const z = { style: { margin: "10px" } }, $ = { class: "amb-design-tool", style:
26
26
  }
27
27
  function X() {
28
28
  const e3 = { name: "customFunc", isStandard: false, jsContent: "" };
29
- e3.uuid = S(), Y(e3);
29
+ e3.uuid = _(), Y(e3);
30
30
  }
31
31
  function Y(e3) {
32
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;
@@ -72,7 +72,7 @@ const z = { style: { margin: "10px" } }, $ = { 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 = _(e3, a2.componentUuid);
75
+ const t3 = S(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);
@@ -109,19 +109,19 @@ const z = { style: { margin: "10px" } }, $ = { class: "amb-design-tool", style:
109
109
  e3.eventName = null, e3.isStandard = false, e3.jsContent = "", e3.remark = "", e3.standardValues = [];
110
110
  }
111
111
  function le(e3, t2) {
112
- const n2 = O.pageContext, a2 = _(n2, e3.componentUuid);
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
- Z.value = window.innerHeight, I.value = { overflow: "auto", height: Z.value + "px" }, F.$on("clearEvent", (e3) => {
119
+ Z.value = window.innerHeight, I.value = { overflow: "auto", height: Z.value + "px" }, U.$on("clearEvent", (e3) => {
120
120
  if (ne(e3), D.value) {
121
121
  const t2 = D.value;
122
122
  "customFunc" == e3.name ? e3.uuid == t2.uuid && X() : e3.componentUuid == t2.componentUuid && e3.name == t2.name && X();
123
123
  }
124
- }), F.$on("editEvent", (e3) => {
124
+ }), U.$on("editEvent", (e3) => {
125
125
  let t2 = false;
126
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"]);
@@ -133,28 +133,28 @@ const z = { style: { margin: "10px" } }, $ = { class: "amb-design-tool", style:
133
133
  }) : Y(e3);
134
134
  });
135
135
  }), a(() => {
136
- F.$off("clearEvent"), F.$off("editEvent");
136
+ U.$off("clearEvent"), U.$off("editEvent"), ue && clearTimeout(ue), oe && clearTimeout(oe), L.clearSnapshotTimeout();
137
137
  }), X();
138
- let ue = false;
139
- function oe() {
140
- ue = true, L.undo(D), G.value = L.getTotalLen(), K.value = L.getCurrentIndex(), P.value && P.value.updateJsContent && P.value.updateJsContent(D.value), setTimeout(() => {
141
- ue = false;
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 se() {
145
- ue = true, L.record(D), G.value = L.getTotalLen(), K.value = L.getCurrentIndex(), P.value && P.value.updateJsContent && P.value.updateJsContent(D.value), setTimeout(() => {
146
- ue = false;
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
149
  return l(() => D, (e3) => {
150
- ue || L.addSnapshot(D, function() {
150
+ se || L.addSnapshot(D, function() {
151
151
  G.value = L.getTotalLen(), K.value = L.getCurrentIndex();
152
152
  });
153
153
  }, { deep: true }), B2({ resize: function() {
154
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"), _2 = u("el-input"), S2 = u("el-form-item"), V2 = u("el-checkbox"), k2 = u("el-checkbox-group"), U2 = u("el-option"), F2 = 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", z, [i("div", $, [i("div", j, [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", N, null, 512), [[d, K.value < 1]]), c(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: oe }, 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: se }, 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", w, [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(S2, { 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(_2, { 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(F2, { key: e4.label, label: e4.label }, { default: m(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(U2, { 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(S2, { label: "描述" }, { default: m(() => [r(_2, { modelValue: D.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => D.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), c(i("div", T, [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"])]);
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 {
@@ -1,108 +1,112 @@
1
- import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as d, withCtx as u, createVNode as n, createCommentVNode as i, unref as m, createElementBlock as r, toDisplayString as s, Fragment as f, renderList as p, createElementVNode as c, createTextVNode as b, withDirectives as v, vShow as w } from "vue";
2
- import { Top as y, Bottom as h, Plus as g, Delete as N } from "@element-plus/icons";
3
- import { ElMessageBox as V } from "element-plus";
4
- import k from "../../../assemblys/common/common-variable-bind.vue.js";
5
- import { getUuidv4 as T } from "../../../../utils/common-util.js";
6
- import { getFormComponentOptions as _ } from "../../../../utils/assemblys-config.js";
7
- import { useDraggable as x } from "vue-draggable-plus";
8
- const I = { key: 0 }, C = { key: 0 }, U = { key: 0 }, z = { style: { display: "flex" } }, B = { key: 0 }, E = { style: { display: "flex" } }, F = { key: 0 }, L = { key: 0 }, q = ["title"], O = { key: 0 }, j = { key: 0 }, A = e({ __name: "quick-add-fields", props: { model: { type: Object, required: true } }, setup(e2, { expose: A2 }) {
9
- const M = e2, S = l(null), D = l(null);
1
+ import { defineComponent as e, ref as l, onMounted as a, onUnmounted as o, resolveComponent as t, createBlock as d, openBlock as u, withCtx as n, createVNode as i, createCommentVNode as m, unref as r, createElementBlock as s, toDisplayString as f, Fragment as p, renderList as c, createElementVNode as b, createTextVNode as v, withDirectives as w, vShow as y } from "vue";
2
+ import { Top as h, Bottom as g, Plus as N, Delete as V } from "@element-plus/icons";
3
+ import { ElMessageBox as k } from "element-plus";
4
+ import T from "../../../assemblys/common/common-variable-bind.vue.js";
5
+ import { getUuidv4 as _ } from "../../../../utils/common-util.js";
6
+ import { getFormComponentOptions as x } from "../../../../utils/assemblys-config.js";
7
+ import { useDraggable as I } from "vue-draggable-plus";
8
+ const C = { key: 0 }, U = { key: 0 }, z = { key: 0 }, B = { style: { display: "flex" } }, E = { key: 0 }, F = { style: { display: "flex" } }, L = { key: 0 }, q = { key: 0 }, O = ["title"], j = { key: 0 }, A = { key: 0 }, M = e({ __name: "quick-add-fields", props: { model: { type: Object, required: true } }, setup(e2, { expose: M2 }) {
9
+ const S = e2, D = l(null), R = l(null);
10
10
  l([]);
11
- const R = l(null);
11
+ const G = l(null);
12
12
  a(() => {
13
- if (R.value.$el) {
14
- let e3 = R.value.$el.getElementsByClassName("el-table__body");
15
- e3 && e3.length > 0 && (e3 = e3[0].getElementsByTagName("tbody"), e3 && e3.length > 0 && x(e3[0], M.model.fieldInfos, { group: "el-table__row", handle: "amb-field-move", animation: 300, forceFallback: true, sort: true, onAdd(e4) {
13
+ if (G.value.$el) {
14
+ let e3 = G.value.$el.getElementsByClassName("el-table__body");
15
+ e3 && e3.length > 0 && (e3 = e3[0].getElementsByTagName("tbody"), e3 && e3.length > 0 && I(e3[0], S.model.fieldInfos, { group: "el-table__row", handle: "amb-field-move", animation: 300, forceFallback: true, sort: true, onAdd(e4) {
16
16
  } }));
17
17
  }
18
18
  });
19
- const G = l([{ value: "left", label: "靠左" }, { value: "center", label: "居中" }, { value: "right", label: "靠右" }]), $ = l([{ value: "readonly", label: "只读" }, { value: "disabled", label: "禁用" }]), P = l([]);
20
- for (let e3 = 2; e3 <= 24; e3 += 2) P.value.push({ value: e3, label: e3 });
21
- const H = [{ value: "required", label: "必填" }, { value: "string", label: "文本" }, { value: "integer", label: "整形" }, { value: "number", label: "数字" }, { value: "boolean", label: "布尔" }, { value: "float", label: "小数" }, { value: "date", label: "日期" }, { value: "email", label: "邮箱" }, { value: "url", label: "网址" }], J = [{ value: "no", label: "不查询" }, { value: "normal", label: "普通查询" }, { value: "advanced", label: "高级查询" }], K = _(), Q = l(null);
22
- function W(e3) {
23
- }
19
+ const $ = l([{ value: "left", label: "靠左" }, { value: "center", label: "居中" }, { value: "right", label: "靠右" }]), P = l([{ value: "readonly", label: "只读" }, { value: "disabled", label: "禁用" }]), H = l([]);
20
+ for (let e3 = 2; e3 <= 24; e3 += 2) H.value.push({ value: e3, label: e3 });
21
+ const J = [{ value: "required", label: "必填" }, { value: "string", label: "文本" }, { value: "integer", label: "整形" }, { value: "number", label: "数字" }, { value: "boolean", label: "布尔" }, { value: "float", label: "小数" }, { value: "date", label: "日期" }, { value: "email", label: "邮箱" }, { value: "url", label: "网址" }], K = [{ value: "no", label: "不查询" }, { value: "normal", label: "普通查询" }, { value: "advanced", label: "高级查询" }], Q = x(), W = l(null);
24
22
  function X(e3) {
25
23
  }
26
24
  function Y(e3) {
27
- Q.value = e3.uuid;
28
25
  }
29
- function Z() {
30
- if (!M.model.fieldInfos || 0 == M.model.fieldInfos.length) return;
31
- const e3 = S.value ? "确定全部设置为可编辑吗?" : "确定要全部取消可编辑吗?";
32
- V.confirm(e3, "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e4 }) => {
33
- for (let e5 of M.model.fieldInfos) S.value ? e5.componentName || (e5.componentName = "input-text") : e5.componentName = null;
34
- });
26
+ function Z(e3) {
27
+ W.value = e3.uuid;
35
28
  }
36
29
  function ee() {
37
- if (!M.model.fieldInfos || 0 == M.model.fieldInfos.length) return;
38
- const e3 = D.value ? "确定全部设置为可导出吗?" : "确定要全部取消可导出吗?";
39
- V.confirm(e3, "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e4 }) => {
40
- for (let e5 of M.model.fieldInfos) D.value ? e5.exportable || (e5.exportable = true) : e5.exportable = false;
30
+ if (!S.model.fieldInfos || 0 == S.model.fieldInfos.length) return;
31
+ const e3 = D.value ? "确定全部设置为可编辑吗?" : "确定要全部取消可编辑吗?";
32
+ k.confirm(e3, "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e4 }) => {
33
+ for (let e5 of S.model.fieldInfos) D.value ? e5.componentName || (e5.componentName = "input-text") : e5.componentName = null;
41
34
  });
42
35
  }
43
36
  function le() {
44
- V.confirm("确定要全部清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e3 }) => {
45
- M.model.fieldInfos = [], ae(null);
37
+ if (!S.model.fieldInfos || 0 == S.model.fieldInfos.length) return;
38
+ const e3 = R.value ? "确定全部设置为可导出吗?" : "确定要全部取消可导出吗?";
39
+ k.confirm(e3, "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e4 }) => {
40
+ for (let e5 of S.model.fieldInfos) R.value ? e5.exportable || (e5.exportable = true) : e5.exportable = false;
41
+ });
42
+ }
43
+ function ae() {
44
+ k.confirm("确定要全部清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e3 }) => {
45
+ S.model.fieldInfos = [], te(null);
46
46
  });
47
47
  }
48
- function ae(e3) {
49
- const l2 = { uuid: T() };
50
- "list" == M.model.pageType && (l2.isTable = true);
51
- const a2 = oe(e3);
52
- a2 > -1 ? M.model.fieldInfos.splice(a2 + 1, 0, l2) : M.model.fieldInfos.push(l2), setTimeout(() => {
53
- Q.value = l2.uuid;
48
+ let oe;
49
+ function te(e3) {
50
+ oe && clearTimeout(oe);
51
+ const l2 = { uuid: _() };
52
+ "list" == S.model.pageType && (l2.isTable = true);
53
+ const a2 = de(e3);
54
+ a2 > -1 ? S.model.fieldInfos.splice(a2 + 1, 0, l2) : S.model.fieldInfos.push(l2), oe = setTimeout(() => {
55
+ W.value = l2.uuid;
54
56
  }, 20);
55
57
  }
56
- function oe(e3) {
58
+ function de(e3) {
57
59
  let l2 = -1;
58
60
  if (!e3) return l2;
59
- const a2 = M.model.fieldInfos.length;
60
- for (let o2 = 0; o2 < a2; o2++) if (M.model.fieldInfos[o2].uuid == e3.uuid) {
61
+ const a2 = S.model.fieldInfos.length;
62
+ for (let o2 = 0; o2 < a2; o2++) if (S.model.fieldInfos[o2].uuid == e3.uuid) {
61
63
  l2 = o2;
62
64
  break;
63
65
  }
64
66
  return l2;
65
67
  }
66
- return 0 == M.model.fieldInfos.length && ae(null), A2({ updateInitFields: function() {
68
+ return o(() => {
69
+ oe && clearTimeout(oe);
70
+ }), 0 == S.model.fieldInfos.length && te(null), M2({ updateInitFields: function() {
67
71
  const e3 = {};
68
- if (M.model.modelFields) for (let l3 of M.model.modelFields) e3[l3.dbColumnName] = l3;
72
+ if (S.model.modelFields) for (let l3 of S.model.modelFields) e3[l3.dbColumnName] = l3;
69
73
  const l2 = {};
70
- for (let a2 of M.model.fieldInfos) a2.fieldName && (e3[a2.fieldName] ? l2[a2.fieldName] = true : a2.fieldName = null);
71
- if (M.model.modelFields) {
74
+ for (let a2 of S.model.fieldInfos) a2.fieldName && (e3[a2.fieldName] ? l2[a2.fieldName] = true : a2.fieldName = null);
75
+ if (S.model.modelFields) {
72
76
  let e4 = false;
73
- for (let a2 of M.model.modelFields) if ("ID" != a2.dbColumnName && !a2.edit && !l2[a2.dbColumnName]) {
74
- const l3 = { uuid: T(), fieldName: a2.dbColumnName, title: a2.alias, width: 8, dataType: a2.dataType };
75
- "form" == M.model.pageType && ("DATE" == a2.dataType || "TIME" == a2.dataType ? l3.componentName = "datePicker" : "INTEGER" == a2.dataType || "LONG" == a2.dataType || "FLOAT" == a2.dataType || "DOUBLE" == a2.dataType ? l3.componentName = "inputNumber" : "BOOLEAN" == a2.dataType ? l3.componentName = "switch" : "CLOB" == a2.dataType || "BLOB" == a2.dataType ? l3.componentName = "textarea" : "ENUM" == a2.dataType ? l3.componentName = "select" : l3.componentName = "input-text", a2.alias && (a2.alias.includes("备注") || a2.alias.includes("说明")) && (l3.componentName = "textarea", l3.width = 24)), M.model.fieldInfos.push(l3), e4 = true;
77
+ for (let a2 of S.model.modelFields) if ("ID" != a2.dbColumnName && !a2.edit && !l2[a2.dbColumnName]) {
78
+ const l3 = { uuid: _(), fieldName: a2.dbColumnName, title: a2.alias, width: 8, dataType: a2.dataType };
79
+ "form" == S.model.pageType && ("DATE" == a2.dataType || "TIME" == a2.dataType ? l3.componentName = "datePicker" : "INTEGER" == a2.dataType || "LONG" == a2.dataType || "FLOAT" == a2.dataType || "DOUBLE" == a2.dataType ? l3.componentName = "inputNumber" : "BOOLEAN" == a2.dataType ? l3.componentName = "switch" : "CLOB" == a2.dataType || "BLOB" == a2.dataType ? l3.componentName = "textarea" : "ENUM" == a2.dataType ? l3.componentName = "select" : l3.componentName = "input-text", a2.alias && (a2.alias.includes("备注") || a2.alias.includes("说明")) && (l3.componentName = "textarea", l3.width = 24)), S.model.fieldInfos.push(l3), e4 = true;
76
80
  }
77
81
  if (e4) {
78
- const e5 = M.model.fieldInfos[0];
79
- e5.fieldName || e5.title || e5.componentName || M.model.fieldInfos.splice(0, 1), Q.value = M.model.fieldInfos[0].uuid;
82
+ const e5 = S.model.fieldInfos[0];
83
+ e5.fieldName || e5.title || e5.componentName || S.model.fieldInfos.splice(0, 1), W.value = S.model.fieldInfos[0].uuid;
80
84
  }
81
85
  }
82
86
  } }), (l2, a2) => {
83
- const V2 = o("el-icon"), T2 = o("el-table-column"), _2 = o("el-option"), x2 = o("el-select"), A3 = o("el-input"), te = o("el-checkbox"), de = o("el-switch"), ue = o("el-table");
84
- return d(), t(ue, { size: "small", border: "", "highlight-current-row": "", data: e2.model.fieldInfos, onRowClick: Y, onCellMouseEnter: W, onCellMouseLeave: X, style: { width: "100%" }, ref_key: "thisRef", ref: R }, { default: u(() => [n(T2, { width: "36" }, { default: u((e3) => [n(V2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
85
- let l4 = oe(e4);
87
+ const o2 = t("el-icon"), k2 = t("el-table-column"), _2 = t("el-option"), x2 = t("el-select"), I2 = t("el-input"), M3 = t("el-checkbox"), oe2 = t("el-switch"), ue = t("el-table");
88
+ return u(), d(ue, { size: "small", border: "", "highlight-current-row": "", data: e2.model.fieldInfos, onRowClick: Z, onCellMouseEnter: X, onCellMouseLeave: Y, style: { width: "100%" }, ref_key: "thisRef", ref: G }, { default: n(() => [i(k2, { width: "36" }, { default: n((e3) => [i(o2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
89
+ let l4 = de(e4);
86
90
  if (l4 < 1) return;
87
- const a3 = M.model.fieldInfos;
91
+ const a3 = S.model.fieldInfos;
88
92
  [a3[l4 - 1], a3[l4]] = [a3[l4], a3[l4 - 1]];
89
- }(e3.row) }, { default: u(() => [n(m(y))]), _: 2 }, 1032, ["onClick"]), n(V2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
90
- let l4 = oe(e4);
91
- const a3 = M.model.fieldInfos;
93
+ }(e3.row) }, { default: n(() => [i(r(h))]), _: 2 }, 1032, ["onClick"]), i(o2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
94
+ let l4 = de(e4);
95
+ const a3 = S.model.fieldInfos;
92
96
  -1 != l4 && a3.length != l4 + 1 && ([a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]]);
93
- }(e3.row) }, { default: u(() => [n(m(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), n(T2, { width: "40", align: "center" }, { header: u((e3) => [n(V2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: le }, { default: u(() => [n(m(N))]), _: 1 })]), default: u((e3) => [n(V2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => ae(e3.row) }, { default: u(() => [n(m(g))]), _: 2 }, 1032, ["onClick"]), n(V2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
94
- const l4 = oe(e4);
95
- l4 > -1 && (M.model.fieldInfos.splice(l4, 1), 0 == M.model.fieldInfos.length && ae(null));
96
- }(e3.row) }, { default: u(() => [n(m(N))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), n(T2, { prop: "fieldName", label: "字段", width: "140" }, { default: u((l3) => [l3.row.uuid != Q.value ? (d(), r("label", I, s(l3.row.fieldName), 1)) : (d(), t(x2, { key: 1, size: "small", modelValue: l3.row.fieldName, "onUpdate:modelValue": (e3) => l3.row.fieldName = e3, clearable: "", filterable: "", placeholder: "请选择", onChange: (e3) => function(e4) {
97
+ }(e3.row) }, { default: n(() => [i(r(g))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(k2, { width: "40", align: "center" }, { header: n((e3) => [i(o2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: ae }, { default: n(() => [i(r(V))]), _: 1 })]), default: n((e3) => [i(o2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => te(e3.row) }, { default: n(() => [i(r(N))]), _: 2 }, 1032, ["onClick"]), i(o2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
98
+ const l4 = de(e4);
99
+ l4 > -1 && (S.model.fieldInfos.splice(l4, 1), 0 == S.model.fieldInfos.length && te(null));
100
+ }(e3.row) }, { default: n(() => [i(r(V))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(k2, { prop: "fieldName", label: "字段", width: "140" }, { default: n((l3) => [l3.row.uuid != W.value ? (u(), s("label", C, f(l3.row.fieldName), 1)) : (u(), d(x2, { key: 1, size: "small", modelValue: l3.row.fieldName, "onUpdate:modelValue": (e3) => l3.row.fieldName = e3, clearable: "", filterable: "", placeholder: "请选择", onChange: (e3) => function(e4) {
97
101
  if (!e4.title && e4.fieldName) {
98
- const l4 = M.model.modelFields.filter((l5) => l5.dbColumnName == e4.fieldName);
102
+ const l4 = S.model.modelFields.filter((l5) => l5.dbColumnName == e4.fieldName);
99
103
  l4.length > 0 && (e4.title = l4[0].alias);
100
104
  }
101
- }(l3.row) }, { default: u(() => [(d(true), r(f, null, p(e2.model.modelFields, (e3) => (d(), t(_2, { label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))]), _: 1 }), n(T2, { prop: "title", label: "标题", width: "140" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", C, s(e3.row.title), 1)) : (d(), t(A3, { key: 1, size: "small", modelValue: e3.row.title, "onUpdate:modelValue": (l3) => e3.row.title = l3, clearable: "", placeholder: "请输入" }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), n(T2, { prop: "querySettingName", label: "查询设置", width: "140" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", U, s(e3.row.querySettingName), 1)) : (d(), t(x2, { key: 1, size: "small", modelValue: e3.row.querySettingName, "onUpdate:modelValue": (l3) => e3.row.querySettingName = l3, clearable: "", filterable: "", placeholder: "请选择" }, { default: u(() => [(d(), r(f, null, p(J, (e4) => n(_2, { label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), n(T2, { prop: "exportable", label: "导出", width: "120" }, { header: u(() => [c("div", z, [a2[2] || (a2[2] = b(" 导出 ")), v(n(te, { modelValue: D.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => D.value = e3), value: "1", label: "全部可导出", size: "small", style: { "margin-left": "6px" }, onChange: ee }, null, 8, ["modelValue"]), [[w, "list" == e2.model.pageType]])])]), default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", B, s(e3.row.exportable), 1)) : (d(), t(de, { key: 1, modelValue: e3.row.exportable, "onUpdate:modelValue": (l3) => e3.row.exportable = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), n(T2, { prop: "componentName", width: "120" }, { header: u(() => [c("div", E, [a2[3] || (a2[3] = b(" 组件 ")), v(n(te, { modelValue: S.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => S.value = e3), value: "1", label: "全部可编辑", size: "small", style: { "margin-left": "6px" }, onChange: Z }, null, 8, ["modelValue"]), [[w, "list" == e2.model.pageType]])])]), default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", F, s(e3.row.componentName), 1)) : (d(), t(x2, { key: 1, size: "small", modelValue: e3.row.componentName, "onUpdate:modelValue": (l3) => e3.row.componentName = l3, clearable: "", filterable: "", placeholder: "请选择" }, { default: u(() => [(d(true), r(f, null, p(m(K), (e4) => (d(), t(_2, { label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), n(T2, { prop: "state", label: "状态", width: "70" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", L, s(e3.row.state), 1)) : (d(), t(x2, { key: 1, size: "small", disabled: !e3.row.componentName, modelValue: e3.row.state, "onUpdate:modelValue": (l3) => e3.row.state = l3, clearable: "", filterable: "", placeholder: "默认" }, { default: u(() => [(d(true), r(f, null, p($.value, (e4) => (d(), t(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), n(T2, { prop: "valid", label: "校验", width: "120" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", { key: 0, title: e3.row.valid }, s(e3.row.valid), 9, q)) : (d(), t(x2, { key: 1, disabled: !e3.row.componentName, size: "small", modelValue: e3.row.valid, "onUpdate:modelValue": (l3) => e3.row.valid = l3, clearable: "", placeholder: "无校验", multiple: "", "collapse-tags": "", "collapse-tags-tooltip": "" }, { default: u(() => [(d(), r(f, null, p(H, (e4, l3) => n(_2, { label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), "form" == e2.model.pageType ? (d(), t(T2, { key: 0, prop: "width", label: "宽度(栏数)", width: "75" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", O, s(e3.row.width), 1)) : (d(), t(x2, { key: 1, size: "small", modelValue: e3.row.width, "onUpdate:modelValue": (l3) => e3.row.width = l3, clearable: "", placeholder: "请选择" }, { default: u(() => [(d(true), r(f, null, p(P.value, (e4) => (d(), t(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 })) : i("", true), "list" == e2.model.pageType ? (d(), t(T2, { key: 1, prop: "align", label: "左右对齐", width: "70" }, { default: u((e3) => [e3.row.uuid != Q.value ? (d(), r("label", j, s(e3.row.align), 1)) : (d(), t(x2, { key: 1, size: "small", modelValue: e3.row.align, "onUpdate:modelValue": (l3) => e3.row.align = l3, clearable: "", placeholder: "请选择" }, { default: u(() => [(d(true), r(f, null, p(G.value, (e4) => (d(), t(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 })) : i("", true), n(T2, { prop: "value", label: "默认值", width: "120" }, { default: u((e3) => [n(k, { showLabel: e3.row.uuid != Q.value || !e3.row.componentName, modelValue: e3.row.value, paramTypes: ["request", "context", "page", "fixed"], "onUpdate:modelValue": (l3) => function(e4, l4) {
105
+ }(l3.row) }, { default: n(() => [(u(true), s(p, null, c(e2.model.modelFields, (e3) => (u(), d(_2, { label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))]), _: 1 }), i(k2, { prop: "title", label: "标题", width: "140" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", U, f(e3.row.title), 1)) : (u(), d(I2, { key: 1, size: "small", modelValue: e3.row.title, "onUpdate:modelValue": (l3) => e3.row.title = l3, clearable: "", placeholder: "请输入" }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), i(k2, { prop: "querySettingName", label: "查询设置", width: "140" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", z, f(e3.row.querySettingName), 1)) : (u(), d(x2, { key: 1, size: "small", modelValue: e3.row.querySettingName, "onUpdate:modelValue": (l3) => e3.row.querySettingName = l3, clearable: "", filterable: "", placeholder: "请选择" }, { default: n(() => [(u(), s(p, null, c(K, (e4) => i(_2, { label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), i(k2, { prop: "exportable", label: "导出", width: "120" }, { header: n(() => [b("div", B, [a2[2] || (a2[2] = v(" 导出 ")), w(i(M3, { modelValue: R.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => R.value = e3), value: "1", label: "全部可导出", size: "small", style: { "margin-left": "6px" }, onChange: le }, null, 8, ["modelValue"]), [[y, "list" == e2.model.pageType]])])]), default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", E, f(e3.row.exportable), 1)) : (u(), d(oe2, { key: 1, modelValue: e3.row.exportable, "onUpdate:modelValue": (l3) => e3.row.exportable = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), i(k2, { prop: "componentName", width: "120" }, { header: n(() => [b("div", F, [a2[3] || (a2[3] = v(" 组件 ")), w(i(M3, { modelValue: D.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => D.value = e3), value: "1", label: "全部可编辑", size: "small", style: { "margin-left": "6px" }, onChange: ee }, null, 8, ["modelValue"]), [[y, "list" == e2.model.pageType]])])]), default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", L, f(e3.row.componentName), 1)) : (u(), d(x2, { key: 1, size: "small", modelValue: e3.row.componentName, "onUpdate:modelValue": (l3) => e3.row.componentName = l3, clearable: "", filterable: "", placeholder: "请选择" }, { default: n(() => [(u(true), s(p, null, c(r(Q), (e4) => (u(), d(_2, { label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), i(k2, { prop: "state", label: "状态", width: "70" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", q, f(e3.row.state), 1)) : (u(), d(x2, { key: 1, size: "small", disabled: !e3.row.componentName, modelValue: e3.row.state, "onUpdate:modelValue": (l3) => e3.row.state = l3, clearable: "", filterable: "", placeholder: "默认" }, { default: n(() => [(u(true), s(p, null, c(P.value, (e4) => (u(), d(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), i(k2, { prop: "valid", label: "校验", width: "120" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", { key: 0, title: e3.row.valid }, f(e3.row.valid), 9, O)) : (u(), d(x2, { key: 1, disabled: !e3.row.componentName, size: "small", modelValue: e3.row.valid, "onUpdate:modelValue": (l3) => e3.row.valid = l3, clearable: "", placeholder: "无校验", multiple: "", "collapse-tags": "", "collapse-tags-tooltip": "" }, { default: n(() => [(u(), s(p, null, c(J, (e4, l3) => i(_2, { label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["disabled", "modelValue", "onUpdate:modelValue"]))]), _: 1 }), "form" == e2.model.pageType ? (u(), d(k2, { key: 0, prop: "width", label: "宽度(栏数)", width: "75" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", j, f(e3.row.width), 1)) : (u(), d(x2, { key: 1, size: "small", modelValue: e3.row.width, "onUpdate:modelValue": (l3) => e3.row.width = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [(u(true), s(p, null, c(H.value, (e4) => (u(), d(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 })) : m("", true), "list" == e2.model.pageType ? (u(), d(k2, { key: 1, prop: "align", label: "左右对齐", width: "70" }, { default: n((e3) => [e3.row.uuid != W.value ? (u(), s("label", A, f(e3.row.align), 1)) : (u(), d(x2, { key: 1, size: "small", modelValue: e3.row.align, "onUpdate:modelValue": (l3) => e3.row.align = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [(u(true), s(p, null, c($.value, (e4) => (u(), d(_2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]))]), _: 1 })) : m("", true), i(k2, { prop: "value", label: "默认值", width: "120" }, { default: n((e3) => [i(T, { showLabel: e3.row.uuid != W.value || !e3.row.componentName, modelValue: e3.row.value, paramTypes: ["request", "context", "page", "fixed"], "onUpdate:modelValue": (l3) => function(e4, l4) {
102
106
  l4.value = e4;
103
107
  }(l3, e3.row) }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]);
104
108
  };
105
109
  } });
106
110
  export {
107
- A as default
111
+ M as default
108
112
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as o, resolveComponent as s, createElementBlock as r, openBlock as u, Fragment as a, createElementVNode as c, createBlock as g, createCommentVNode as m, createVNode as p, normalizeStyle as f, withDirectives as d, normalizeClass as v, withCtx as b, unref as y, vShow as h, renderList as j } from "vue";
2
- import { Monitor as C, Cellphone as S, Iphone as k, Plus as O, Check as _, View as A } from "@element-plus/icons";
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 T, findDesignItemByUuid as W } from "../../../utils/common-util.js";
6
- import { addComponentRef as N } from "../../../utils/page-helper-util.js";
7
- import { caculatePageStyle as E } from "../../../utils/container-design-util.js";
8
- import U from "./view-design-preview.vue.js";
9
- import { ElMessage as J } from "element-plus";
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";
@@ -21,123 +21,126 @@ 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 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 R from "agilebuilder-ui/src/utils/request";
28
- import { copyHandleEvents as B, deleteDesignItem as K } from "../../../utils/page-design-util.js";
29
- import { setHomeChartRuntimesFromConfigure as q } from "../../../utils/home-chart-util.js";
30
- import { getFormPropTitleMap as V } from "../../../utils/form-design-util.js";
31
- const F = { class: "amb-design-content-center-header" }, H = { class: "amb-design-tool" }, L = { class: "amb-design-tool-item" }, I = { class: "amb-design-tool-item", style: { "padding-right": "20px" } }, $ = e({ __name: "view-design-display", props: { configure: {}, selectWidget: {}, selAsselbyType: {} }, emits: ["onSelectWidget", "onCustomAttrWidget", "changeSelectEvent", "addEvent", "changeSelectStandardEvent", "revocation", "regain"], setup(e2, { expose: $2, emit: G }) {
32
- const Q = e2, X = i(null), Y = i(null), Z = G;
33
- null == Q.configure.props && (Q.configure.props = {}), null == Q.configure.style && (Q.configure.style = {}), null != Q.configure.items && null != Q.configure.items || (Q.configure.items = []);
34
- const ee = Q.configure.items, ie = i(null), ne = n({ index: 0 }), te = i({}), le = i(""), oe = i(null);
35
- re();
36
- const se = t(function() {
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" == Q.configure.dimensions ? e3 = 768 : "phone" == Q.configure.dimensions && (e3 = 414);
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 te.value) i2[e4] = te.value[e4];
41
- return oe.value && (i2["min-height"] = oe.value + "px"), i2;
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 re() {
44
- E(Q.configure, te, le), Q.configure.runtime || (Q.configure.runtime = {}), Q.configure.runtime.class = le.value, Q.configure.runtime.style = te.value;
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(Q.configure.props, () => {
47
- re();
48
- }), l(Q.configure.style, () => {
49
- re();
46
+ l(X.configure.props, () => {
47
+ ue();
48
+ }), l(X.configure.style, () => {
49
+ ue();
50
50
  });
51
- const ue = i(), ae = t(() => ({ height: ue.value + "px" })), ce = i(null);
52
- function ge(e3) {
53
- Z("onSelectWidget", -1);
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
- Z("onCustomAttrWidget", e3, i2);
56
+ ee("onSelectWidget", e3, i2);
60
57
  }
61
- function fe(e3) {
62
- const i2 = ee.indexOf(e3), t2 = n(x(e3));
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
- K(ee, e3, e3.items && e3.items.length > 0, true);
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 (ce.value) {
70
- const e3 = ce.value.getBoundingClientRect();
71
- e3.y && (ue.value = window.innerHeight - e3.y), N(Q.configure, -1, ce);
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 (ve.value) {
74
- const e3 = ve.value.getBoundingClientRect();
75
- e3.y && (oe.value = window.innerHeight - e3.y - 20);
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 ve = i(null);
79
- function be() {
80
- Q.configure.i18nKeys && Q.configure.i18nKeys.length > 0 && (Q.configure.i18nKeys = Array.from(new Set(Q.configure.i18nKeys)));
81
- const e3 = JSON.parse(JSON.stringify(Q.configure));
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 = V(e4), Q.configure.formPropTiltleMap = e4.formPropTiltleMap) : (delete e4.formPropLabelMap, delete Q.configure.formPropLabelMap);
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 = W(e4, i2);
86
- return !!n2 && (M(n2, e4), true);
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 = W(e4, i2);
90
- return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)), q(n2, e4), true);
89
+ let n2 = N(e4, i2);
90
+ return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)), V(n2, e4), true);
91
91
  }));
92
- }(e3), R.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/save", { id: Q.configure.id, designJson: JSON.stringify(e3) }).then((e4) => {
93
- J({ message: "保存成功", type: "success" });
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
- J({ message: "保存失败", type: "error" });
95
+ P({ message: "保存失败", type: "error" });
96
96
  });
97
97
  }
98
- D(ve, ee, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
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 ye = i(false);
101
- const he = i(null), je = i({}), Ce = i({}), Se = i(false);
102
- function ke() {
103
- Se.value = false, setTimeout(() => {
104
- Se.value = true;
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 Oe(e3) {
108
- if (Q.configure.customEvents) {
109
- let i2 = Q.configure.customEvents.filter((i3) => i3.eventName === e3);
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 $2({ onSelectEvent: function(e3) {
114
- Se.value = !(!e3 || "selected" !== e3);
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
- je.value = e3;
117
- const n2 = Oe(e3.eventName);
118
- n2 && (Ce.value = n2), he.value = i2 || "event", ke();
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
- he.value = null, je.value = e3;
122
- const i2 = Oe(e3.eventName);
123
- Ce.value = i2 || null, ke();
124
- } else Se.value = false;
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 = s("el-icon"), t2 = s("el-divider"), l2 = s("Setting");
127
- return u(), r(a, null, [c("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ce, style: f(ae.value) }, [c("div", F, [c("div", H, [c("div", L, [d(c("label", { class: v(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [p(n2, { size: 23 }, { default: b(() => [p(y(C))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(c("label", { class: v(["amb-page-type", { selected: "ipad" == e3.configure.dimensions }]), onClick: i2[1] || (i2[1] = (i3) => e3.configure.dimensions = "ipad") }, [p(n2, { size: 23 }, { default: b(() => [p(y(S))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(c("label", { class: v(["amb-page-type", { selected: "phone" == e3.configure.dimensions }]), onClick: i2[2] || (i2[2] = (i3) => e3.configure.dimensions = "phone") }, [p(n2, { size: 23 }, { default: b(() => [p(y(k))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(p(t2, { direction: "vertical" }, null, 512), [[h, "assembly" === e3.selAsselbyType]])]), c("div", I, [c("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
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 = Y.value) == null ? void 0 : _a.show();
130
- }) }, [p(n2, { size: 18 }, { default: b(() => [p(l2)]), _: 1 }), i2[9] || (i2[9] = c("label", null, "国际化配置", -1))]), c("label", { class: "amb-page-type", onClick: i2[4] || (i2[4] = (e4) => {
131
- X.value && X.value.openDialog();
132
- }) }, [p(n2, { size: 18 }, { default: b(() => [p(y(O))]), _: 1 }), i2[10] || (i2[10] = c("label", null, "快捷添加", -1))]), p(t2, { direction: "vertical" }), c("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => be()) }, [p(n2, { size: 18 }, { default: b(() => [p(y(_))]), _: 1 }), i2[11] || (i2[11] = c("label", null, "保存", -1))]), p(t2, { direction: "vertical" }), c("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
133
- const e5 = JSON.parse(JSON.stringify(Q.configure));
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 = W(e5, i3);
136
- n3 && M(n3, e5);
137
- }), ie.value = e5, ye.value = true;
138
- }()) }, [p(n2, { size: 18 }, { default: b(() => [p(y(A))]), _: 1 }), i2[12] || (i2[12] = c("label", null, "预览", -1))])])])]), d(c("div", { class: v(["amb-design-board", le.value]), ref_key: "pageDesignBoardMain", ref: ve, style: f(se.value), onClick: ge }, [(u(true), r(a, null, j(y(ee), (i3, n3) => (u(), g(w, { key: i3.uuid, indexObj: ne, configure: i3, pageDesign: e3.configure, selectWidget: e3.selectWidget, onOnSelectWidget: me, onOnCustomAttrWidget: pe, onOnCopy: fe, onOnDelete: de }, null, 8, ["indexObj", "configure", "pageDesign", "selectWidget"]))), 128))], 6), [[h, "assembly" === e3.selAsselbyType]])], 4), ye.value ? (u(), g(U, { key: 0, pageDesign: ie.value, modelValue: ye.value, "onUpdate:modelValue": i2[7] || (i2[7] = (e4) => ye.value = e4), onClose: i2[8] || (i2[8] = (e4) => ye.value = false) }, null, 8, ["pageDesign", "modelValue"])) : m("", true), p(P, { ref_key: "quickAddDialogRef", ref: X, pageDesign: e3.configure }, null, 8, ["pageDesign"]), p(z, { ref_key: "i18nSettingRef", ref: Y, pageDesign: e3.configure }, null, 8, ["pageDesign"])], 64);
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
- $ as default
145
+ G as default
143
146
  };