super-page-runtime 2.3.47-sit1 → 2.3.47

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 (79) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
  2. package/dist/es/components/runtime/utils/events/event-util.js +121 -121
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
  5. package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
  6. package/dist/es/components/runtime/utils/page-init-util.js +47 -45
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  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 +104 -99
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  24. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  25. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  26. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  31. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +42 -42
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +94 -93
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +26 -26
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +8 -6
  48. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  49. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
  52. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
  53. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +124 -124
  56. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
  58. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  61. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
  65. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -34
  68. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +19 -18
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +27 -27
  72. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  73. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  74. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -16
  75. package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
  76. package/dist/es/i18n/langs/cn.js +1 -1
  77. package/dist/es/i18n/langs/en.js +1 -1
  78. package/dist/es/style.css +85 -85
  79. package/package.json +2 -2
@@ -74,9 +74,9 @@ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
74
74
  l2.value === e3 && (t2 = t2 + l2.label + ",");
75
75
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
76
76
  }
77
- } }), (e3, t2) => {
78
- const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
79
- return s(), r(n2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => W.value = e4) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e3.pageContext, e3.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
77
+ } }), (t2, l2) => {
78
+ const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
79
+ return s(), r(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
80
80
  };
81
81
  } });
82
82
  export {
@@ -2,7 +2,7 @@ import t from "./richtext-runtime.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const r = e(t, [["__scopeId", "data-v-69991d69"]]);
5
+ const r = e(t, [["__scopeId", "data-v-89783313"]]);
6
6
  export {
7
7
  r as default
8
8
  };
@@ -1,76 +1,76 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as r, resolveComponent as i, createElementBlock as a, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as f, normalizeStyle as p, normalizeClass as m, unref as g, createSlots as v, withCtx as h, createElementVNode as b, toDisplayString as y } from "vue";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as k, formatVariableValue as q, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as S, handleFormEvent as A } from "../../../../utils/events/event-util.js";
5
- import E from "agilebuilder-ui/src/utils/request";
6
- import { $t as T } from "../../../../utils/i18n-util.js";
7
- import { getBaseUrl as L, addRequiredClassUtil as H } from "../../../../utils/common-util.js";
8
- import M from "quill";
1
+ import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as i, onBeforeUnmount as a, resolveComponent as l, createElementBlock as o, openBlock as u, Fragment as s, createVNode as c, createBlock as g, createCommentVNode as d, normalizeStyle as p, normalizeClass as m, unref as f, createSlots as h, withCtx as v, createElementVNode as x, toDisplayString as b } from "vue";
2
+ import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
+ import { getSizeConfig as T, formatVariableValue as M, getVariableValue as R, setVariableValue as k } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as C, handleFormEvent as P } from "../../../../utils/events/event-util.js";
5
+ import w from "agilebuilder-ui/src/utils/request";
6
+ import { $t as q } from "../../../../utils/i18n-util.js";
7
+ import { getBaseUrl as S, addRequiredClassUtil as A } from "../../../../utils/common-util.js";
8
+ import E from "quill";
9
9
  import "quill/dist/quill.snow.css";
10
- import { ElMessage as N } from "element-plus";
11
- const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext-statusbar" }, F = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, W = ["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"], D = M.import("attributors/style/size");
13
- D.whitelist = B, M.register(D, true);
14
- const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], $ = M.import("attributors/style/font");
15
- $.whitelist = U, M.register($, true);
16
- const P = e2, O = t(""), G = P.pageContext.entity ? P.pageContext.entity : {}, I = x(P.pageContext, P.configure), K = P.configure.runtime ? P.configure.runtime : {}, Y = K.style, J = K.class, Q = K.headerStyle, X = K.titleExceedStyle, Z = t(K.props ? K.props : {});
17
- let ee = k(P.pageContext, P.configure);
18
- ee && ee.fixHeight && (Y.height || (Y.height = ee.fixHeight + "px"));
19
- let te = Z.value.value;
20
- const le = q(P.pageContext, te), ne = t(null);
21
- let oe = null;
22
- const re = t(false), ie = t(0), ae = t(false), ue = t(false), se = t("");
23
- let ce = null, de = Z.value.state;
24
- function fe(e3) {
10
+ import { ElMessage as L } from "element-plus";
11
+ const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { class: "richtext-statusbar" }, I = { class: "word-count" }, _ = { key: 0, class: "upload-loading" }, U = ["innerHTML"], D = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
12
+ const W = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], j = E.import("attributors/style/size");
13
+ j.whitelist = W, E.register(j, true);
14
+ const z = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], V = E.import("attributors/style/font");
15
+ V.whitelist = z, E.register(V, true);
16
+ const $ = e2, O = t(""), G = $.pageContext.entity ? $.pageContext.entity : {}, K = y($.pageContext, $.configure), Y = $.configure.runtime ? $.configure.runtime : {}, J = Y.style, Q = Y.class, X = Y.headerStyle, Z = Y.titleExceedStyle, ee = t(Y.props ? Y.props : {});
17
+ let te = T($.pageContext, $.configure);
18
+ te && te.fixHeight && (J.height || (J.height = te.fixHeight + "px"));
19
+ let re = ee.value.value;
20
+ const ne = M($.pageContext, re), ie = t(null);
21
+ let ae = null;
22
+ const le = t(false), oe = t(0), ue = t(false), se = t(false), ce = t("");
23
+ let ge = null, de = ee.value.state;
24
+ function pe(e3) {
25
25
  return "readonly" == e3 || "disabled" == e3;
26
26
  }
27
- const pe = fe(de), me = 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 ? "" : Z.value.placeholder, readOnly: pe });
28
- function ge() {
29
- if (!(oe == null ? void 0 : oe.container)) return;
30
- const e3 = oe.container.parentNode;
27
+ const me = pe(de), 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: W }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: z }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: me ? "" : ee.value.placeholder, readOnly: me });
28
+ function he() {
29
+ if (!(ae == null ? void 0 : ae.container)) return;
30
+ const e3 = ae.container.parentNode;
31
31
  if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), l2 = oe.container.getBoundingClientRect();
33
- let n2 = t2.height - (l2.top - t2.top);
34
- n2 -= 24, oe.container.style.height = Math.max(n2, 100) + "px";
32
+ const t2 = e3.getBoundingClientRect(), r2 = ae.container.getBoundingClientRect();
33
+ let n2 = t2.height - (r2.top - t2.top);
34
+ n2 -= 24, ae.container.style.height = Math.max(n2, 100) + "px";
35
35
  }
36
- l(Z.value, () => {
37
- const e3 = Z.value.state;
36
+ r(ee.value, () => {
37
+ const e3 = ee.value.state;
38
38
  if (null != e3 && e3 !== de) {
39
39
  de = e3;
40
- const t2 = fe(de);
41
- oe && (oe.enable(!t2), oe.root.dataset.placeholder = t2 ? "" : Z.value.placeholder);
40
+ const t2 = pe(de);
41
+ ae && (ae.enable(!t2), ae.root.dataset.placeholder = t2 ? "" : ee.value.placeholder);
42
42
  }
43
43
  });
44
- const ve = t([]), he = t(false), be = t(null), ye = t(null), xe = t(null);
45
- let ke = null;
46
- function qe(e3) {
44
+ const ve = t([]), xe = t(false), be = t(null), ye = t(null), Te = t(null);
45
+ let Me = null;
46
+ function Re(e3) {
47
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
48
48
  return t2 ? t2[1] : "";
49
49
  }
50
- function we(e3) {
51
- if (!oe) return;
50
+ function ke(e3) {
51
+ if (!ae) return;
52
52
  const t2 = function(e4) {
53
53
  if (!e4) return e4;
54
- const t3 = new DOMParser().parseFromString(e4, "text/html"), l3 = P.pageContext.backendUrl, n2 = L(l3, P.pageContext.isTest);
54
+ const t3 = new DOMParser().parseFromString(e4, "text/html"), r3 = $.pageContext.backendUrl, n2 = S(r3, $.pageContext.isTest);
55
55
  t3.querySelectorAll("th").forEach((e5) => {
56
- const l4 = t3.createElement("td");
57
- for (const t4 of Array.from(e5.attributes)) l4.setAttribute(t4.name, t4.value);
58
- l4.style.fontWeight = "bold", l4.innerHTML = e5.innerHTML, e5.replaceWith(l4);
56
+ const r4 = t3.createElement("td");
57
+ for (const t4 of Array.from(e5.attributes)) r4.setAttribute(t4.name, t4.value);
58
+ r4.style.fontWeight = "bold", r4.innerHTML = e5.innerHTML, e5.replaceWith(r4);
59
59
  }), t3.querySelectorAll("img[data-uuid]").forEach((e5) => {
60
- const t4 = e5, l4 = t4.getAttribute("data-uuid");
61
- l4 && t4.setAttribute("src", `${n2}/common/fs-upload/download?serverPath=${l4}&isShowWatermark=false`);
60
+ const t4 = e5, r4 = t4.getAttribute("data-uuid");
61
+ r4 && t4.setAttribute("src", `${n2}/common/fs-upload/download?serverPath=${r4}&isShowWatermark=false`);
62
62
  });
63
- let o2 = t3.body.innerHTML;
64
- return o2 = o2.replace(/\t/g, "    "), o2 = o2.replace(/ {2}/g, "  "), o2;
65
- }(e3), l2 = oe.clipboard.convertHTML(t2);
66
- oe.setContents(l2.ops), o(() => {
67
- if (!oe) return;
68
- oe.root.querySelectorAll("img").forEach((e4) => {
63
+ let i2 = t3.body.innerHTML;
64
+ return i2 = i2.replace(/\t/g, "    "), i2 = i2.replace(/ {2}/g, "  "), i2;
65
+ }(e3), r2 = ae.clipboard.convertHTML(t2);
66
+ ae.setContents(r2.ops), i(() => {
67
+ if (!ae) return;
68
+ ae.root.querySelectorAll("img").forEach((e4) => {
69
69
  if (!e4.getAttribute("data-uuid")) {
70
- const t3 = qe(e4.src);
70
+ const t3 = Re(e4.src);
71
71
  t3 && e4.setAttribute("data-uuid", t3);
72
72
  }
73
- }), oe && oe.root.querySelectorAll("table").forEach((e4) => {
73
+ }), ae && ae.root.querySelectorAll("table").forEach((e4) => {
74
74
  const t3 = e4.querySelector("tr");
75
75
  t3 && t3.querySelectorAll("td").forEach((e5) => {
76
76
  e5.querySelector("strong, b") && (e5.style.backgroundColor = "#f5f7fa");
@@ -78,92 +78,92 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
78
78
  });
79
79
  });
80
80
  }
81
- const Ce = { 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: "图片" };
82
- function Se() {
83
- re.value = !re.value, o(() => {
84
- !re.value && (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ge();
81
+ const Ce = { bold: q("superPageRuntimeMessage.richTextBold"), italic: q("superPageRuntimeMessage.richTextItalic"), underline: q("superPageRuntimeMessage.richTextUnderline"), strike: q("superPageRuntimeMessage.richTextStrike"), blockquote: q("superPageRuntimeMessage.richTextBlockquote"), "code-block": q("superPageRuntimeMessage.richTextCodeBlock"), 'list[value="ordered"]': q("superPageRuntimeMessage.richTextOrderedList"), 'list[value="bullet"]': q("superPageRuntimeMessage.richTextBulletList"), 'script[value="sub"]': q("superPageRuntimeMessage.richTextSubscript"), 'script[value="super"]': q("superPageRuntimeMessage.richTextSuperscript"), 'indent[value="-1"]': q("superPageRuntimeMessage.richTextIndentDecrease"), 'indent[value="+1"]': q("superPageRuntimeMessage.richTextIndentIncrease"), 'direction[value="rtl"]': q("superPageRuntimeMessage.richTextTextDirection"), size: q("superPageRuntimeMessage.richTextFontSize"), header: q("superPageRuntimeMessage.richTextHeader"), color: q("superPageRuntimeMessage.richTextFontColor"), background: q("superPageRuntimeMessage.richTextBackgroundColor"), font: q("superPageRuntimeMessage.richTextFontFamily"), align: q("superPageRuntimeMessage.richTextAlign"), clean: q("superPageRuntimeMessage.richTextClean"), link: q("superPageRuntimeMessage.richTextLink"), image: q("superPageRuntimeMessage.richTextImage") };
82
+ function Pe() {
83
+ le.value = !le.value, i(() => {
84
+ !le.value && (ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
85
85
  });
86
86
  }
87
- function Ae() {
88
- oe && (se.value = oe.root.innerHTML, ue.value = true);
87
+ function we() {
88
+ ae && (ce.value = ae.root.innerHTML, se.value = true);
89
89
  }
90
- function Ee() {
91
- if (!oe) return void (ie.value = 0);
92
- const e3 = oe.getText().trim();
93
- ie.value = e3.length;
90
+ function qe() {
91
+ if (!ae) return void (oe.value = 0);
92
+ const e3 = ae.getText().trim();
93
+ oe.value = e3.length;
94
94
  }
95
- function Te() {
96
- if (!oe) return "";
97
- const e3 = oe.root.cloneNode(true);
95
+ function Se() {
96
+ if (!ae) return "";
97
+ const e3 = ae.root.cloneNode(true);
98
98
  return e3.querySelectorAll("img[data-uuid]").forEach((e4) => {
99
99
  e4.getAttribute("data-uuid") && e4.removeAttribute("src");
100
100
  }), e3.innerHTML;
101
101
  }
102
- function Le() {
103
- N.error({ message: "图片上传失败,请重试", duration: 3e3 });
102
+ function Ae() {
103
+ L.error({ message: q("superPageRuntimeMessage.richTextImageUploadFailed"), duration: 3e3 });
104
104
  }
105
- function He(e3) {
106
- "Escape" === e3.key && re.value && (re.value = false, o(() => {
107
- (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ge();
105
+ function Ee(e3) {
106
+ "Escape" === e3.key && le.value && (le.value = false, i(() => {
107
+ (ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
108
108
  }));
109
109
  }
110
- function Me(e3) {
110
+ function Le(e3) {
111
111
  var _a;
112
- oe && (null !== e3.relatedTarget && ((_a = ne.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || A(Te(), P.pageContext, P.configure, "change", { entity: G }));
112
+ ae && (null !== e3.relatedTarget && ((_a = ie.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || P(Se(), $.pageContext, $.configure, "change", { entity: G }));
113
113
  }
114
- function Ne(e3) {
114
+ function He(e3) {
115
115
  if ("img" === e3.target.localName) {
116
116
  ve.value = [];
117
117
  let t2 = e3.target.src;
118
- ve.value.push(t2), he.value = true;
118
+ ve.value.push(t2), xe.value = true;
119
119
  }
120
120
  }
121
- function Re(e3) {
121
+ function Fe(e3) {
122
122
  const t2 = new FormData();
123
123
  t2.append("file", e3);
124
- const l2 = P.pageContext.backendUrl, n2 = L(l2, P.pageContext.isTest);
125
- return E.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
124
+ const r2 = $.pageContext.backendUrl, n2 = S(r2, $.pageContext.isTest);
125
+ return w.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
126
126
  }
127
- function _e(e3, t2) {
128
- const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", r2 = atob(l2[1]);
129
- let i2 = r2.length;
130
- const a2 = new Uint8Array(i2);
131
- for (; i2--; ) a2[i2] = r2.charCodeAt(i2);
132
- return new File([a2], t2, { type: o2 });
127
+ function Ne(e3, t2) {
128
+ const r2 = e3.split(","), n2 = r2[0].match(/:(.*?);/), i2 = n2 ? n2[1] : "image/png", a2 = atob(r2[1]);
129
+ let l2 = a2.length;
130
+ const o2 = new Uint8Array(l2);
131
+ for (; l2--; ) o2[l2] = a2.charCodeAt(l2);
132
+ return new File([o2], t2, { type: i2 });
133
133
  }
134
134
  return n(() => {
135
135
  var _a;
136
- ne.value && (oe = new M(ne.value, me.value), oe.root.style.fontSize = "16px", function() {
136
+ ie.value && (ae = new E(ie.value, fe.value), ae.root.style.fontSize = "16px", function() {
137
137
  var _a2, _b;
138
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
138
+ const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
139
139
  if (!e3) return;
140
140
  e3.querySelectorAll("button").forEach((e4) => {
141
141
  const t2 = e4.className.match(/ql-([\w-]+)/);
142
142
  if (t2) {
143
- const l2 = t2[1], n2 = `${l2}[value="${e4.value}"]`;
144
- Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[l2] && e4.setAttribute("data-tooltip", Ce[l2]);
143
+ const r2 = t2[1], n2 = `${r2}[value="${e4.value}"]`;
144
+ Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[r2] && e4.setAttribute("data-tooltip", Ce[r2]);
145
145
  }
146
146
  }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
147
147
  const t2 = e4.className.match(/ql-(\w+)/);
148
148
  if (t2) {
149
- const l2 = t2[1];
150
- if (Ce[l2]) {
149
+ const r2 = t2[1];
150
+ if (Ce[r2]) {
151
151
  const t3 = e4.querySelector(".ql-picker-label");
152
- t3 && t3.setAttribute("data-tooltip", Ce[l2]);
152
+ t3 && t3.setAttribute("data-tooltip", Ce[r2]);
153
153
  }
154
154
  }
155
155
  });
156
156
  }(), function() {
157
157
  var _a2, _b;
158
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
158
+ const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
159
159
  e3 && e3.addEventListener("mousedown", (e4) => {
160
160
  e4.preventDefault();
161
161
  });
162
- }(), we(le), (_a = ne.value) == null ? void 0 : _a.addEventListener("focusout", Me), oe.on("text-change", async function(e3) {
163
- if (!oe) return;
164
- const t2 = oe.root.getElementsByTagName("img");
162
+ }(), ke(ne), (_a = ie.value) == null ? void 0 : _a.addEventListener("focusout", Le), ae.on("text-change", async function(e3) {
163
+ if (!ae) return;
164
+ const t2 = ae.root.getElementsByTagName("img");
165
165
  for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
166
- const t3 = qe(e4.src);
166
+ const t3 = Re(e4.src);
167
167
  e4.setAttribute("data-uuid", t3);
168
168
  }
169
169
  if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
@@ -172,47 +172,47 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
172
172
  const t4 = e4.image;
173
173
  if (!t4.startsWith("data:image")) continue;
174
174
  try {
175
- ae.value = true;
176
- const e5 = _e(t4, "image.png"), l2 = await Re(e5);
177
- if (!oe) return;
178
- const n2 = oe.root.getElementsByTagName("img");
179
- for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
175
+ ue.value = true;
176
+ const e5 = Ne(t4, "image.png"), r2 = await Fe(e5);
177
+ if (!ae) return;
178
+ const n2 = ae.root.getElementsByTagName("img");
179
+ for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = r2.url, e6.setAttribute("data-uuid", r2.uuid));
180
180
  } catch (e5) {
181
- Le();
181
+ console.error("上传图片失败", e5), Ae();
182
182
  } finally {
183
- ae.value = false;
183
+ ue.value = false;
184
184
  }
185
185
  }
186
186
  }
187
187
  !function() {
188
- ce && clearTimeout(ce);
189
- ce = setTimeout(() => {
190
- if (!oe) return;
191
- const e4 = Te();
192
- C(G, I, e4), e4 && (O.value = "");
188
+ ge && clearTimeout(ge);
189
+ ge = setTimeout(() => {
190
+ if (!ae) return;
191
+ const e4 = Se();
192
+ k(G, K, e4), e4 && (O.value = "");
193
193
  }, 300);
194
- }(), Ee();
195
- }), Ee(), ke = oe.container, ke.addEventListener("click", Ne), ge(), o(() => {
196
- const e3 = w(G, I);
197
- S(e3, P.pageContext, P.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: xe.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
194
+ }(), qe();
195
+ }), qe(), Me = ae.container, Me.addEventListener("click", He), he(), i(() => {
196
+ const e3 = R(G, K);
197
+ C(e3, $.pageContext, $.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: Te.value, value: e3, entity: $.pageContext.entity.data, pageData: $.pageContext.entity.page });
198
198
  }));
199
199
  }), n(() => {
200
- document.addEventListener("keydown", He);
201
- }), r(() => {
202
- document.removeEventListener("keydown", He), ce && clearTimeout(ce), ne.value && ne.value.removeEventListener("focusout", Me), ke && ke.removeEventListener("click", Ne);
203
- }), z2({ addRequiredClass: function() {
204
- O.value = H();
200
+ document.addEventListener("keydown", Ee);
201
+ }), a(() => {
202
+ document.removeEventListener("keydown", Ee), ge && clearTimeout(ge), ie.value && ie.value.removeEventListener("focusout", Le), Me && Me.removeEventListener("click", He);
203
+ }), D2({ addRequiredClass: function() {
204
+ O.value = A();
205
205
  }, setContent: function(e3) {
206
- we(e3), Ee();
206
+ ke(e3), qe();
207
207
  }, getContent: function() {
208
- return oe ? oe.root.innerHTML : "";
208
+ return ae ? ae.root.innerHTML : "";
209
209
  } }), (e3, t2) => {
210
- const l2 = i("View"), n2 = i("el-icon"), o2 = i("FullScreen"), r2 = i("Close"), x2 = i("el-form-item"), k2 = i("el-image-viewer"), q2 = i("el-dialog");
211
- return u(), a(s, null, [c(x2, { required: Z.value.required, class: m(g(J) + (O.value ? " " + O.value : "")), "label-width": Z.value.labelWidth, style: p(g(Y)) }, v({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": re.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Ae, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: re.value ? "退出全屏" : "全屏编辑" }, [re.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(r2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", F, "字数:" + y(ie.value), 1)]), ae.value ? (u(), a("div", V, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : f("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: p({ ...g(Q), ...g(X) }), class: "amb-form-item-label" }, y(g(T)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
212
- he.value = false;
213
- }), "url-list": ve.value }, null, 8, ["url-list"])) : f("", true), c(q2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, W)]), _: 1 }, 8, ["modelValue"])], 64);
210
+ const r2 = l("View"), n2 = l("el-icon"), i2 = l("FullScreen"), a2 = l("Close"), y2 = l("el-form-item"), T2 = l("el-image-viewer"), M2 = l("el-dialog");
211
+ return u(), o(s, null, [c(y2, { required: ee.value.required, class: m(f(Q) + (O.value ? " " + O.value : "")), "label-width": ee.value.labelWidth, style: p(f(J)) }, h({ default: v(() => [x("div", { class: m(["richtext-wrapper", { "is-fullscreen": le.value }]) }, [x("div", { ref_key: "quillEditorRef", ref: ie, style: { width: "100%" } }, null, 512), x("div", H, [x("button", { type: "button", class: "toolbar-btn", onClick: we, title: f(q)("superPageRuntimeMessage.richTextPreview") }, [c(n2, null, { default: v(() => [c(r2)]), _: 1 })], 8, F), x("button", { type: "button", class: "toolbar-btn", onClick: Pe, title: le.value ? f(q)("superPageRuntimeMessage.richTextExitFullScreen") : f(q)("superPageRuntimeMessage.richTextFullScreenEdit") }, [le.value ? (u(), g(n2, { key: 1 }, { default: v(() => [c(a2)]), _: 1 })) : (u(), g(n2, { key: 0 }, { default: v(() => [c(i2)]), _: 1 }))], 8, N)]), x("div", B, [x("span", I, b(f(q)("superPageRuntimeMessage.richTextWordCount")) + ":" + b(oe.value), 1)]), ue.value ? (u(), o("div", _, [t2[2] || (t2[2] = x("div", { class: "loading-spinner" }, null, -1)), x("span", null, b(f(q)("superPageRuntimeMessage.richTextImageUploading")), 1)])) : d("", true)], 2)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: v(() => [x("div", { style: p({ ...f(X), ...f(Z) }), class: "amb-form-item-label" }, b(f(q)(ee.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), xe.value ? (u(), g(T2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
212
+ xe.value = false;
213
+ }), "url-list": ve.value }, null, 8, ["url-list"])) : d("", true), c(M2, { modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => se.value = e4), title: f(q)("superPageRuntimeMessage.richTextContentPreview"), width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: v(() => [x("div", { class: "richtext-preview-content ql-editor", innerHTML: ce.value }, null, 8, U)]), _: 1 }, 8, ["modelValue", "title"])], 64);
214
214
  };
215
215
  } });
216
216
  export {
217
- z as default
217
+ D as default
218
218
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./select-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(e, [["__scopeId", "data-v-ccac4657"]]);
4
+ const r = t(e, [["__scopeId", "data-v-dbb21bd8"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as u, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
1
+ import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
2
2
  import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, putToOptionSourceMap as j, autoSetAfterSelect as R, getVariableValue as P } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
@@ -13,7 +13,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
13
13
  const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
14
14
  let ee = V(Q.pageContext, Q.configure);
15
15
  const le = Q.configure.runtime ? Q.configure.runtime : {}, te = le.style, oe = le.class, ae = le.headerStyle, ie = le.titleExceedStyle, ne = l(le.props ? le.props : {});
16
- let ue = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), re = [];
16
+ let re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
17
17
  const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
18
  function pe() {
19
19
  let e3 = P(Z, ee);
@@ -21,7 +21,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
21
21
  }
22
22
  const ce = t({ get: () => pe(), set(e3) {
23
23
  const l2 = pe();
24
- re = Array.isArray(l2) ? [...l2] : l2;
24
+ ue = Array.isArray(l2) ? [...l2] : l2;
25
25
  let t2 = e3;
26
26
  if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
27
27
  const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
@@ -57,7 +57,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
57
57
  t2 && t2.length > 0 && (l2 = t2[0]);
58
58
  let o2 = {};
59
59
  l2 && (o2.extendParams = l2);
60
- o2.options = fe.value, o2.oldValue = re, M(e3, Q.pageContext, Q.configure, "change", o2);
60
+ o2.options = fe.value, o2.oldValue = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
61
61
  };
62
62
  const be = ne.value.monitorFields, xe = [];
63
63
  if (be) {
@@ -118,6 +118,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
118
118
  e3.on("success", () => {
119
119
  W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
120
120
  }), e3.on("error", (e4) => {
121
+ console.error("复制失败", e4);
121
122
  }), n(() => {
122
123
  const e4 = ce.value;
123
124
  D(e4, Q.pageContext, Q.configure, { formItemRef: ke.value, componentRef: Ae.value, titleRef: Te.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
@@ -144,10 +145,10 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
144
145
  X.value = z();
145
146
  }, getSelectItemsTitle: je, getOptions: function() {
146
147
  return fe.value;
147
- } }), (e3, l2) => {
148
- const t2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), i2 = u("el-popover"), n2 = u("el-form-item");
149
- return s(), r(n2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, v({ default: g(() => [m(i2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", G, [m(a2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: ne.value.placeholder, "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
150
- }, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => ce.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), r(o2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), r(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ue) }), onClick: (t3) => f(M)(l3.value, e3.pageContext, e3.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ue) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: g(() => [d("span", F, [m(t2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), r(I, { key: 0, pageContext: e3.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
148
+ } }), (l2, t2) => {
149
+ const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
150
+ return s(), u(k2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, v({ default: g(() => [m(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", G, [m(i2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: f(q)(ne.value.placeholder), "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: t2[0] || (t2[0] = y(h(() => {
151
+ }, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ce.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(re) }), onClick: (t3) => f(M)(l3.value, e2.pageContext, e2.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(re) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: g(() => [d("span", F, [m(o2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), u(I, { key: 0, pageContext: e2.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
151
152
  };
152
153
  } });
153
154
  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({}), (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));
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));
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 = C();
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)) }, s({ default: f(() => [m(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"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
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)) }, s({ default: f(() => [m(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"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["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
- }), (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) {
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) {
30
30
  if (I.value.closable) {
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);
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);
37
37
  }
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"]);
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"]);
40
40
  };
41
41
  } });
42
42
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./textarea-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(e, [["__scopeId", "data-v-1e8a62fc"]]);
4
+ const r = t(e, [["__scopeId", "data-v-dcb86aec"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -18,9 +18,9 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
18
18
  });
19
19
  }), q2({ addRequiredClass: function() {
20
20
  z.value = _();
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: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
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: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: m(j)(E.value.placeholder), modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["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 (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);
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);
79
79
  };
80
80
  } });
81
81
  export {