super-page-runtime 2.3.16 → 2.3.17-sit1

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 (67) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +66 -61
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  4. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +129 -100
  7. package/dist/es/components/runtime/utils/page-store.js +10 -10
  8. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  12. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  30. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  33. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +9 -9
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +33 -19
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  49. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  50. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +27 -18
  51. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -1
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +155 -89
  53. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +25 -25
  54. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  56. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  57. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  62. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  63. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  64. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  65. package/dist/es/components/runtime/views/super-page.vue2.js +73 -74
  66. package/dist/es/style.css +336 -78
  67. package/package.json +2 -2
@@ -1,124 +1,190 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as g, normalizeStyle as p, normalizeClass as m, unref as f, withCtx as h, createElementVNode as v, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as b, formatVariableValue as C, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
- import q from "quill";
1
+ import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
5
+ import S from "agilebuilder-ui/src/utils/request";
6
+ import { $t as E } from "../../../../utils/i18n-util.js";
7
+ import { getBaseUrl as A, addRequiredClassUtil as L } from "../../../../utils/common-util.js";
8
+ import H from "quill";
5
9
  import "quill/dist/quill.snow.css";
6
- import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
7
- import A from "agilebuilder-ui/src/utils/request";
8
- import { $t as L } from "../../../../utils/i18n-util.js";
9
- import { getBaseUrl as R, addRequiredClassUtil as S } from "../../../../utils/common-util.js";
10
- const j = { style: { width: "100%", height: "100%" } }, H = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
11
- const B = e2, N = t(null), _ = B.pageContext.entity ? B.pageContext.entity : {}, M = x(B.pageContext, B.configure), U = B.configure.runtime ? B.configure.runtime : {}, W = U.style, $ = U.class, z = U.headerStyle, D = U.titleExceedStyle, F = t(U.props ? U.props : {});
12
- let P = b(B.pageContext, B.configure);
13
- P && P.fixHeight && (W.height || (W.height = P.fixHeight + "px"));
14
- let I = F.value.value;
15
- const O = C(B.pageContext, I), G = t(null);
16
- let J = null;
17
- t(null);
18
- let K = F.value.state;
19
- function Q(e3) {
10
+ import { ElMessage as N } from "element-plus";
11
+ const M = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext-statusbar" }, j = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, $ = ["innerHTML"], z = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
+ const B = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], F = H.import("attributors/style/size");
13
+ F.whitelist = B, H.register(F, true);
14
+ const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], D = H.import("attributors/style/font");
15
+ D.whitelist = U, H.register(D, true);
16
+ const W = e2, P = t(""), G = W.pageContext.entity ? W.pageContext.entity : {}, I = y(W.pageContext, W.configure), K = W.configure.runtime ? W.configure.runtime : {}, O = K.style, Y = K.class, J = K.headerStyle, Q = K.titleExceedStyle, X = t(K.props ? K.props : {});
17
+ let Z = x(W.pageContext, W.configure);
18
+ Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
19
+ let ee = X.value.value;
20
+ const te = k(W.pageContext, ee), le = t(null);
21
+ let ne = null;
22
+ const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
23
+ let se = null, ce = X.value.state;
24
+ function de(e3) {
20
25
  return "readonly" == e3 || "disabled" == e3;
21
26
  }
22
- const V = Q(K), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["small", false, "large", "huge"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : F.value.placeholder, readOnly: V });
23
- l(F.value, () => {
24
- const e3 = F.value.state;
25
- if (null != e3 && e3 !== K) {
26
- K = e3;
27
- const t2 = Q(K);
28
- J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : F.value.placeholder);
27
+ const pe = de(ce), fe = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: B }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: U }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: pe ? "" : X.value.placeholder, readOnly: pe });
28
+ function me() {
29
+ if (!(ne == null ? void 0 : ne.container)) return;
30
+ const e3 = ne.container.parentNode;
31
+ if (!e3) return;
32
+ const t2 = e3.getBoundingClientRect(), l2 = ne.container.getBoundingClientRect();
33
+ let n2 = t2.height - (l2.top - t2.top);
34
+ ne.container.style.height = Math.max(n2, 100) + "px";
35
+ }
36
+ l(X.value, () => {
37
+ const e3 = X.value.state;
38
+ if (null != e3 && e3 !== ce) {
39
+ ce = e3;
40
+ const t2 = de(ce);
41
+ ne && (ne.enable(!t2), ne.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
29
42
  }
30
43
  });
31
- const Y = t([]), Z = t(false), ee = t(null), te = t(null), le = t(null);
32
- let ne;
33
- function ie(e3) {
44
+ const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
45
+ let xe = null;
46
+ function ke(e3) {
34
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
35
48
  return t2 ? t2[1] : "";
36
49
  }
37
- function oe(e3) {
50
+ const we = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
51
+ function Ce() {
52
+ oe.value = !oe.value, o(() => {
53
+ me();
54
+ });
55
+ }
56
+ function qe() {
57
+ ne && (ue.value = ne.root.innerHTML, re.value = true);
58
+ }
59
+ function Te() {
60
+ if (!ne) return void (ie.value = 0);
61
+ const e3 = ne.getText().trim();
62
+ ie.value = e3.length;
63
+ }
64
+ function Se() {
65
+ N.error({ message: "图片上传失败,请重试", duration: 3e3 });
66
+ }
67
+ function Ee(e3) {
68
+ "Escape" === e3.key && oe.value && (oe.value = false);
69
+ }
70
+ function Ae(e3) {
38
71
  var _a;
39
- null !== e3.relatedTarget && ((_a = G.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || E(J.root.innerHTML, B.pageContext, B.configure, "change", { entity: _ });
72
+ ne && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || T(ne.root.innerHTML, W.pageContext, W.configure, "change", { entity: G }));
40
73
  }
41
- function ae(e3) {
74
+ function Le(e3) {
42
75
  if ("img" === e3.target.localName) {
43
- Y.value = [];
76
+ ve.value = [];
44
77
  let t2 = e3.target.src;
45
- Y.value.push(t2), Z.value = true;
78
+ ve.value.push(t2), ge.value = true;
46
79
  }
47
80
  }
48
- function re(e3) {
81
+ function He(e3) {
49
82
  const t2 = new FormData();
50
83
  t2.append("file", e3);
51
- const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
52
- return A.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
84
+ const l2 = W.pageContext.backendUrl, n2 = A(l2, W.pageContext.isTest);
85
+ return S.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
53
86
  }
54
- function ue(e3, t2) {
55
- let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], i2 = atob(l2[1]), o2 = i2.length, a2 = new Uint8Array(o2);
56
- for (; o2--; ) a2[o2] = i2.charCodeAt(o2);
57
- return new File([a2], t2, { type: n2 });
87
+ function Ne(e3, t2) {
88
+ const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", i2 = atob(l2[1]);
89
+ let a2 = i2.length;
90
+ const r2 = new Uint8Array(a2);
91
+ for (; a2--; ) r2[a2] = i2.charCodeAt(a2);
92
+ return new File([r2], t2, { type: o2 });
58
93
  }
59
94
  return n(() => {
60
95
  var _a;
61
- J = new q(G.value, X.value), J.root.style.fontSize = "16px";
62
- let e3 = O;
96
+ if (!le.value) return;
97
+ ne = new H(le.value, fe.value), ne.root.style.fontSize = "16px", function() {
98
+ var _a2, _b;
99
+ const e4 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
100
+ if (!e4) return;
101
+ e4.querySelectorAll("button").forEach((e5) => {
102
+ const t3 = e5.className.match(/ql-([\w-]+)/);
103
+ if (t3) {
104
+ const l2 = t3[1], n2 = `${l2}[value="${e5.value}"]`;
105
+ we[n2] ? e5.setAttribute("data-tooltip", we[n2]) : we[l2] && e5.setAttribute("data-tooltip", we[l2]);
106
+ }
107
+ }), e4.querySelectorAll(".ql-picker").forEach((e5) => {
108
+ const t3 = e5.className.match(/ql-(\w+)/);
109
+ if (t3) {
110
+ const l2 = t3[1];
111
+ if (we[l2]) {
112
+ const t4 = e5.querySelector(".ql-picker-label");
113
+ t4 && t4.setAttribute("data-tooltip", we[l2]);
114
+ }
115
+ }
116
+ });
117
+ }(), function() {
118
+ var _a2, _b;
119
+ const e4 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
120
+ e4 && e4.addEventListener("mousedown", (e5) => {
121
+ e5.preventDefault();
122
+ });
123
+ }();
124
+ let e3 = te;
63
125
  e3 = e3.replace(/<img data-uuid="(.*?)"/g, (e4, t3) => {
64
- const l2 = ie(t3), n2 = B.pageContext.backendUrl;
65
- return `<img src="${R(n2, B.pageContext.isTest)}/common/fs-upload/download?serverPath=${l2}&isShowWatermark=false" data-uuid="${l2}"`;
66
- });
67
- const t2 = J.clipboard.convertHTML(e3);
68
- J.setContents(t2.ops), i(() => {
69
- J.root.querySelectorAll("img").forEach((e4) => {
126
+ const l2 = ke(t3), n2 = W.pageContext.backendUrl;
127
+ return `<img src="${A(n2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${l2}&isShowWatermark=false" data-uuid="${l2}"`;
128
+ }), e3 = e3.replace(/\t/g, "    "), e3 = e3.replace(/ {2}/g, "  ");
129
+ const t2 = ne.clipboard.convertHTML(e3);
130
+ ne.setContents(t2.ops), o(() => {
131
+ if (!ne) return;
132
+ ne.root.querySelectorAll("img").forEach((e4) => {
70
133
  if (!e4.getAttribute("data-uuid")) {
71
- const t3 = ie(e4.src);
134
+ const t3 = ke(e4.src);
72
135
  e4.setAttribute("data-uuid", t3);
73
136
  }
74
137
  });
75
- }), (_a = G.value) == null ? void 0 : _a.addEventListener("focusout", oe), J.on("text-change", async function(e4, t3, l2) {
76
- const n2 = J.root.getElementsByTagName("img");
77
- for (let e5 of n2) if (!e5.getAttribute("data-uuid")) {
78
- const t4 = ie(e5.src);
138
+ }), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Ae), ne.on("text-change", async function(e4) {
139
+ if (!ne) return;
140
+ const t3 = ne.root.getElementsByTagName("img");
141
+ for (const e5 of t3) if (!e5.getAttribute("data-uuid")) {
142
+ const t4 = ke(e5.src);
79
143
  e5.setAttribute("data-uuid", t4);
80
144
  }
81
- if (e4.ops && e4.ops.length > 0) for (let t4 = 0; t4 < e4.ops.length; t4++) {
82
- const l3 = e4.ops[t4];
83
- if (l3.insert && l3.insert.image) {
84
- const e5 = l3.insert.image;
85
- if (!e5.startsWith("data:image")) return;
86
- const t5 = ue(e5, "image.png");
87
- await re(t5).then((t6) => {
88
- if (!J) return;
89
- const l4 = J.root.getElementsByTagName("img");
90
- if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
91
- const i3 = l4[n3];
92
- i3.src === e5 && (i3.width = 300, i3.src = t6.url, i3.setAttribute("data-uuid", t6.uuid));
93
- }
94
- }).catch((e6) => {
95
- console.error(e6, "上传图片失败");
96
- });
145
+ if (e4.ops && e4.ops.length > 0) for (const t4 of e4.ops) {
146
+ const e5 = t4.insert;
147
+ if (e5 == null ? void 0 : e5.image) {
148
+ const t5 = e5.image;
149
+ if (!t5.startsWith("data:image")) continue;
150
+ try {
151
+ ae.value = true;
152
+ const e6 = Ne(t5, "image.png"), l2 = await He(e6);
153
+ if (!ne) return;
154
+ const n2 = ne.root.getElementsByTagName("img");
155
+ for (const e7 of n2) e7.src === t5 && (e7.width = 300, e7.src = l2.url, e7.setAttribute("data-uuid", l2.uuid));
156
+ } catch (e6) {
157
+ Se();
158
+ } finally {
159
+ ae.value = false;
160
+ }
97
161
  }
98
162
  }
99
- const i2 = J.root.innerHTML;
100
- w(_, M, i2), null != i2 && "" !== i2 && (N.value = "");
101
- }), ne = J.container, ne.addEventListener("click", ae), function() {
102
- if (J && J.container) {
103
- const e4 = J.container.parentNode.getBoundingClientRect(), t3 = J.container.getBoundingClientRect();
104
- let l2 = e4.height - (t3.top - e4.top);
105
- l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
106
- }
107
- }(), i(() => {
108
- const e4 = k(_, M);
109
- T(e4, B.pageContext, B.configure, { formItemRef: ee.value, componentRef: te.value, titleRef: le.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
163
+ !function() {
164
+ se && clearTimeout(se);
165
+ se = setTimeout(() => {
166
+ if (!ne) return;
167
+ const e5 = ne.root.innerHTML;
168
+ C(G, I, e5), e5 && (P.value = "");
169
+ }, 300);
170
+ }(), Te();
171
+ }), Te(), xe = ne.container, xe.addEventListener("click", Le), me(), o(() => {
172
+ const e4 = w(G, I);
173
+ q(e4, W.pageContext, W.configure, { formItemRef: he.value, componentRef: be.value, titleRef: ye.value, value: e4, entity: W.pageContext.entity.data, pageData: W.pageContext.entity.page });
110
174
  });
111
- }), o(() => {
112
- G.value && G.value.removeEventListener("focusout", oe), ne && ne.removeEventListener("click", ae);
113
- }), H2({ addRequiredClass: function() {
114
- N.value = S();
175
+ }), n(() => {
176
+ document.addEventListener("keydown", Ee);
177
+ }), i(() => {
178
+ document.removeEventListener("keydown", Ee), se && clearTimeout(se), le.value && le.value.removeEventListener("focusout", Ae), xe && xe.removeEventListener("click", Le);
179
+ }), z2({ addRequiredClass: function() {
180
+ P.value = L();
115
181
  } }), (e3, t2) => {
116
- const l2 = a("el-form-item"), n2 = a("el-image-viewer");
117
- return u(), r(s, null, [c(l2, { required: F.value.required, class: m(f($) + (N.value ? " " + N.value : "")), "label-width": F.value.labelWidth, style: p(f(W)) }, { label: h(() => [F.value.tittleShow ? (u(), r("div", { key: 0, style: p({ ...f(z), ...f(D) }) }, y(f(L)(F.value.title)), 5)) : g("", true)]), default: h(() => [v("div", j, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), d(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
118
- Z.value = false;
119
- }), "url-list": Y.value }, null, 8, ["url-list"])) : g("", true)], 64);
182
+ const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
183
+ return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: le, style: { width: "100%" } }, null, 512), h("div", M, [h("button", { class: "toolbar-btn", onClick: qe, title: "预览" }, [c(n2, null, { default: g(() => [c(l2)]), _: 1 })]), h("button", { class: "toolbar-btn", onClick: Ce, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(n2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
184
+ ge.value = false;
185
+ }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
120
186
  };
121
187
  } });
122
188
  export {
123
- H as default
189
+ z as default
124
190
  };
@@ -3,11 +3,11 @@ import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasour
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as A, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
5
5
  import V from "../common/title-suffix-element.vue.js";
6
- import { $t as M } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
8
- import { CopyDocument as z } from "@element-plus/icons-vue";
9
- import E from "clipboard";
10
- import { ElMessage as I } from "element-plus";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
8
+ import { CopyDocument as q } from "@element-plus/icons-vue";
9
+ import z from "clipboard";
10
+ import { ElMessage as E } from "element-plus";
11
11
  import { useI18n as P } from "vue-i18n";
12
12
  const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
@@ -83,26 +83,26 @@ const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }
83
83
  fe && clearTimeout(fe);
84
84
  });
85
85
  const ge = t(null), me = t(null), de = t(null);
86
+ function he() {
87
+ const e3 = ee();
88
+ if (null != e3 && "" !== e3 && e3.length > 0) {
89
+ let t2 = "";
90
+ return "string" == typeof e3 ? le.value.length > 0 ? le.value.forEach((l2) => {
91
+ l2.value === e3 && (t2 = l2.label);
92
+ }) : t2 = e3 : le.value.length > 0 ? (le.value.forEach((l2) => {
93
+ e3.forEach((e4) => {
94
+ l2.value === e4 && (t2 = t2 + l2.label + ",");
95
+ });
96
+ }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
97
+ }
98
+ }
86
99
  return u(() => {
87
- const e3 = new E("#" + Z, { text: function() {
88
- return function() {
89
- const e4 = ee();
90
- if (null != e4 && "" !== e4 && e4.length > 0) {
91
- let t2 = "";
92
- return "string" == typeof e4 ? le.value.length > 0 ? le.value.forEach((l2) => {
93
- l2.value === e4 && (t2 = l2.label);
94
- }) : t2 = e4 : le.value.length > 0 ? (le.value.forEach((l2) => {
95
- e4.forEach((e5) => {
96
- l2.value === e5 && (t2 = t2 + l2.label + ",");
97
- });
98
- }), t2 = t2.slice(0, t2.length - 1)) : t2 = e4.join(","), t2;
99
- }
100
- }();
100
+ const e3 = new z("#" + Z, { text: function() {
101
+ return he();
101
102
  } });
102
103
  e3.on("success", () => {
103
- I({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
104
+ E({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
104
105
  }), e3.on("error", (e4) => {
105
- console.error("复制失败", e4);
106
106
  }), n(() => {
107
107
  const e4 = te.value;
108
108
  R(e4, U.pageContext, U.configure, { formItemRef: ge.value, componentRef: me.value, titleRef: de.value, value: e4, entity: U.pageContext.entity.data, pageData: U.pageContext.entity.page });
@@ -110,10 +110,10 @@ const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }
110
110
  }), B2({ updateOptions: function(e3) {
111
111
  le.value = e3 || [];
112
112
  }, addRequiredClass: function() {
113
- $.value = q();
114
- } }), (t2, l2) => {
115
- const o2 = r("el-icon"), a2 = r("el-option"), u2 = r("el-select"), n2 = r("el-popover"), _2 = r("el-form-item");
116
- return s(), i(_2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e2.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(M)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(n2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(u2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => te.value = e3) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(a2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e2.pageContext, e2.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(o2, { id: Z }, { default: v(() => [g(f(z))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
113
+ $.value = M();
114
+ }, getSelectItemsTitle: he }), (e3, t2) => {
115
+ const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
116
+ return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(I)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(A)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
117
117
  };
118
118
  } });
119
119
  export {
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
9
9
  const e3 = y(v.configure.props.base.title);
10
10
  b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
11
11
  });
12
- }), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
12
+ }), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
13
13
  } });
14
14
  export {
15
15
  d as default
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
26
26
  });
27
27
  }), w2({ addRequiredClass: function() {
28
28
  _.value = b();
29
- } }), (t2, l2) => {
30
- const a2 = i("el-switch"), u2 = i("el-form-item");
31
- return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
29
+ } }), (e3, t2) => {
30
+ const l2 = i("el-switch"), a2 = i("el-form-item");
31
+ return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
32
32
  };
33
33
  } });
34
34
  export {
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
24
24
  const e3 = E.value;
25
25
  h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
26
26
  });
27
- }), (t2, l2) => {
28
- const a2 = o("el-tag"), i2 = o("el-form-item");
29
- return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
27
+ }), (e3, t2) => {
28
+ const l2 = o("el-tag"), a2 = o("el-form-item");
29
+ return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
30
30
  if (I.value.closable) {
31
- let e5 = C(D, A);
32
- null == e5 && (e5 = []);
33
- const l3 = Array.isArray(e5);
34
- l3 || (e5 = (e5 + "").split(","));
35
- const a3 = e5.indexOf(t4.value);
36
- a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
31
+ let e6 = C(D, A);
32
+ null == e6 && (e6 = []);
33
+ const l3 = Array.isArray(e6);
34
+ l3 || (e6 = (e6 + "").split(","));
35
+ const a4 = e6.indexOf(t3.value);
36
+ a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
37
37
  }
38
- k(e4, j2.pageContext, j2.configure, "remove");
39
- }(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
38
+ k(e5, j2.pageContext, j2.configure, "remove");
39
+ }(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
40
40
  };
41
41
  } });
42
42
  export {
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
18
18
  });
19
19
  }), _2({ addRequiredClass: function() {
20
20
  I.value = j();
21
- } }), (t2, l2) => {
22
- const a2 = n("el-input"), o2 = n("el-form-item");
23
- return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
21
+ } }), (e3, t2) => {
22
+ const l2 = n("el-input"), a2 = n("el-form-item");
23
+ return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e3.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
73
73
  const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
74
74
  "top" == i2 || "bottom" == i2 || n2.position;
75
75
  };
76
- return (o2, t2) => {
77
- const n2 = i("permission");
78
- return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
76
+ return (e3, o2) => {
77
+ const t2 = i("permission");
78
+ return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
79
79
  };
80
80
  } });
81
81
  export {
@@ -122,7 +122,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
122
122
  const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
123
123
  "top" == i2 || "bottom" == i2 || n2.position;
124
124
  };
125
- return (o2, t2) => p(J) && p(S)(e2.configure) ? r((a(), l(g(z.value), { key: 0, ref: X, style: f(I.value), class: c(K.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, p(W)]]) : u("", true);
125
+ return (e3, o2) => p(J) && p(S)(e3.configure) ? r((a(), l(g(z.value), { key: 0, ref: X, style: f(I.value), class: c(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, p(W)]]) : u("", true);
126
126
  } });
127
127
  export {
128
128
  k as default
@@ -32,7 +32,7 @@ const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" },
32
32
  T.value && T.value.$el.click();
33
33
  } }), (e3, l2) => {
34
34
  const a2 = n("el-button"), o2 = n("el-icon"), y2 = n("el-input"), C2 = n("el-form-item"), w3 = n("el-form"), V2 = n("el-dialog");
35
- return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
35
+ return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
36
36
  };
37
37
  } });
38
38
  export {
@@ -17,7 +17,7 @@ const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
17
17
  }(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
18
18
  return c(t2, g, v, e4, x);
19
19
  })(e3) && C.value.push(e3);
20
- }), (t2, m2) => (o(), n("span", l, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
20
+ }), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
21
21
  } });
22
22
  export {
23
23
  p as default
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
7
7
  import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
8
8
  import { useI18n as C } from "vue-i18n";
9
9
  const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
10
- const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = t(null);
10
+ const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
11
11
  let x, A = t(null);
12
12
  return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
13
13
  var _a, _b;
14
14
  if (e3 && e3.designJson) {
15
- w.value = {};
15
+ H.value = {};
16
16
  const t2 = JSON.parse(e3.designJson);
17
17
  let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
18
18
  if (a2) {
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
20
20
  e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
21
21
  }
22
22
  const i2 = window.frameElement;
23
- w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
24
24
  const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
25
- if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
25
+ if (((_a = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
26
26
  const e4 = n2.entity.page;
27
27
  for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
28
28
  }
29
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
29
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(H.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
30
30
  !function(e4, t3) {
31
31
  if (!t3 || 0 == t3.length) return;
32
32
  e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
33
33
  }(A.value, [t2.initChartServiceConfigs]);
34
34
  }, 200);
35
- } else H.value = true, U.value = false;
35
+ } else w.value = true, U.value = false;
36
36
  }).finally(() => {
37
37
  U.value = false;
38
38
  }), a(() => {
39
39
  x && clearTimeout(x);
40
40
  }), (e3, t2) => {
41
41
  const a2 = i("loading");
42
- return n((o(), r("div", y, [!U.value && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
42
+ return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
43
43
  };
44
44
  } });
45
45
  export {
@@ -10,7 +10,6 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
10
10
  const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
11
  e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
12
12
  } catch (e4) {
13
- console.error(e4);
14
13
  }
15
14
  null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
16
15
  }
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-53387915"]]);
4
+ const r = p(e, [["__scopeId", "data-v-cdae0ad4"]]);
5
5
  export {
6
6
  r as default
7
7
  };