super-page-runtime 2.3.40-sit1 → 2.3.40

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 +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +104 -104
  6. package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
  7. package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
  8. package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
  9. package/dist/es/components/runtime/utils/page-init-util.js +28 -26
  10. package/dist/es/components/runtime/utils/page-store.js +9 -9
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  22. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
  27. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  28. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  29. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  30. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
  32. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  36. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  37. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  39. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  41. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  42. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  44. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -37
  45. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  47. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
  48. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
  51. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  52. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
  54. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
  55. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
  56. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
  57. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
  60. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  63. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
  66. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  68. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  72. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  73. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  74. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  75. package/dist/es/components/runtime/views/super-page.vue2.js +115 -114
  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 +87 -87
  79. package/package.json +2 -2
@@ -1,82 +1,84 @@
1
1
  import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
2
- import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, autoSetAfterSelect as R, queryOptionDatasources as j } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as I, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
5
- import { $t as V } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as w } from "../../../../utils/common-util.js";
7
- const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
8
- const O = e2, D = t(null), E = O.pageContext.entity ? O.pageContext.entity : {};
9
- let M = T(O.pageContext, O.configure);
10
- const P = l({ get() {
11
- let e3 = _(E, M);
2
+ import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
+ import { $t as w } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
7
+ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
+ const D = e2, E = t(null), M = D.pageContext.entity ? D.pageContext.entity : {};
9
+ let P = I(D.pageContext, D.configure);
10
+ const W = l({ get() {
11
+ let e3 = _(M, P);
12
12
  return null != e3 && (e3 += ""), e3;
13
13
  }, set(e3) {
14
- k(E, M, e3), null != e3 && (D.value = "");
15
- } }), W = O.configure.runtime ? O.configure.runtime : {}, F = W.style, U = W.class, $ = W.headerStyle, A = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = t(B.value.options ? B.value.options : []), H = S(O.pageContext, O.configure);
16
- H.length > 0 && (G.value = H);
17
- const J = O.configure.props && O.configure.props.dataOrigin ? O.configure.props.dataOrigin : {}, K = J.optionValueSetType;
18
- let L = [];
19
- if (("dynamicData" == K || "dataTable" == K || "service" == K) && J.autoSets) for (let e3 of J.autoSets) e3.source && L.push(e3);
20
- O.configure && O.configure.props && O.configure.props.base && O.configure.props.base.optionProp && L.push({ source: "label", target: O.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
21
- if (L.length > 0) {
14
+ k(M, P, e3), null != e3 && (E.value = "");
15
+ } }), F = D.configure.runtime ? D.configure.runtime : {}, U = F.style, $ = F.class, A = F.headerStyle, B = F.titleExceedStyle, G = t(F.props ? F.props : {}), H = t(G.value.options ? G.value.options : []), J = S(D.pageContext, D.configure);
16
+ J.length > 0 && (H.value = J);
17
+ const K = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, L = K.optionValueSetType;
18
+ let N = [];
19
+ if ("dynamicData" == L || "dataTable" == L || "service" == L) {
20
+ if (K.autoSets) for (let e3 of K.autoSets) e3.source && N.push(e3);
21
+ } else "static" == L && R(D.pageContext, D.configure.uuid, H.value);
22
+ D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && N.push({ source: "label", target: D.configure.props.base.optionProp }), G.value.changeMethod = function(e3) {
23
+ if (N.length > 0) {
22
24
  let t2 = null;
23
- G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => e3 === t3.value)), R(O.configure, O.pageContext, L, t2);
25
+ H.value && null != e3 && null != e3 && (t2 = H.value.filter((t3) => e3 === t3.value)), j(D.configure, D.pageContext, N, t2);
24
26
  }
25
- I(e3, O.pageContext, O.configure, "change");
27
+ q(e3, D.pageContext, D.configure, "change");
26
28
  };
27
- const N = B.value.monitorFields, Q = [];
28
- if (N) {
29
+ const Q = G.value.monitorFields, X = [];
30
+ if (Q) {
29
31
  const e3 = [];
30
- for (let t2 of N) if (t2.startsWith("${")) {
32
+ for (let t2 of Q) if (t2.startsWith("${")) {
31
33
  t2 = t2.substring(2, t2.length - 1);
32
34
  const l2 = t2.split(".");
33
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Q.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
35
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (X.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
34
36
  }
35
- for (let t2 of e3) o(E[t2], () => {
36
- te();
37
+ for (let t2 of e3) o(M[t2], () => {
38
+ le();
37
39
  });
38
40
  }
39
- function X() {
41
+ function Y() {
40
42
  let e3 = "";
41
- for (let t2 of Q) e3 += "_" + _(E, t2);
43
+ for (let t2 of X) e3 += "_" + _(M, t2);
42
44
  return e3;
43
45
  }
44
- let Y = X(), Z = false;
45
- const ee = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
46
- function te() {
47
- Z && clearTimeout(Z), Z = setTimeout(function() {
48
- const e3 = X();
49
- e3 != Y && (Y = e3, j(O.pageContext, ee, void 0).then((e4) => {
46
+ let Z = Y(), ee = false;
47
+ const te = G.value.optionconfigInfo ? G.value.optionconfigInfo : {};
48
+ function le() {
49
+ ee && clearTimeout(ee), ee = setTimeout(function() {
50
+ const e3 = Y();
51
+ e3 != Z && (Z = e3, T(D.pageContext, te, void 0).then((e4) => {
50
52
  }));
51
53
  }, 200);
52
54
  }
53
55
  n(() => {
54
- Z && clearTimeout(Z);
56
+ ee && clearTimeout(ee);
55
57
  });
56
- const le = t(null), oe = t(null), ne = t(null);
58
+ const oe = t(null), ne = t(null), ae = t(null);
57
59
  return a(() => {
58
60
  u(() => {
59
- const e3 = P.value;
60
- q(e3, O.pageContext, O.configure, { formItemRef: le.value, componentRef: oe.value, titleRef: ne.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
61
+ const e3 = W.value;
62
+ V(e3, D.pageContext, D.configure, { formItemRef: oe.value, componentRef: ne.value, titleRef: ae.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
61
63
  });
62
- }), z2({ updateOptions: function(e3) {
63
- G.value = e3 || [];
64
+ }), O2({ updateOptions: function(e3) {
65
+ H.value = e3 || [];
64
66
  }, addRequiredClass: function() {
65
- D.value = w();
67
+ E.value = z();
66
68
  }, getSelectItemsTitle: function() {
67
- let e3 = _(E, M);
69
+ let e3 = _(M, P);
68
70
  if (null == e3) return "";
69
71
  if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
72
  let t2 = "";
71
- return G.value.length > 0 ? (G.value.forEach((l2) => {
73
+ return H.value.length > 0 ? (H.value.forEach((l2) => {
72
74
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
75
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
76
  }
75
- } }), (e3, t2) => {
76
- const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
77
- return s(), r(n2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.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"]);
78
80
  };
79
81
  } });
80
82
  export {
81
- z as default
83
+ O as default
82
84
  };
@@ -159,7 +159,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
159
159
  const n2 = oe.root.getElementsByTagName("img");
160
160
  for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
161
161
  } catch (e5) {
162
- Ae();
162
+ console.error("上传图片失败", e5), Ae();
163
163
  } finally {
164
164
  re.value = false;
165
165
  }
@@ -189,7 +189,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
189
189
  return oe ? oe.root.innerHTML : "";
190
190
  } }), (e3, t2) => {
191
191
  const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), k2 = a("el-image-viewer"), w2 = a("el-dialog");
192
- return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(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] = () => {
192
+ return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, [...t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(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] = () => {
193
193
  he.value = false;
194
194
  }), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { 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, z)]), _: 1 }, 8, ["modelValue"])], 64);
195
195
  };
@@ -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-f0e9b5f0"]]);
4
+ const r = t(e, [["__scopeId", "data-v-ccac4657"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,155 +1,156 @@
1
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
- import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as R } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as P } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
5
- import D from "../common/title-suffix-element.vue.js";
6
- import { $t as I } 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 O } from "element-plus";
11
- import { useI18n as W } from "vue-i18n";
12
- const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", display: "flex", "align-items": "center" } }, G = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = "__amb_select_all__", H = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
13
- const { t: J } = W(), N = e2, Q = l(null), X = l(false), Y = N.pageContext.entity ? N.pageContext.entity : {};
14
- let Z = P(N.pageContext, N.configure);
15
- const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle, ie = l(ee.props ? ee.props : {});
16
- let ne = l(ie.value.optionDescriptionPosition && "default" !== ie.value.optionDescriptionPosition), re = [];
17
- const ue = "copyBtn_" + N.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
- function se() {
19
- let e3 = R(Y, Z);
20
- return null != e3 && (e3 = String(e3)), ie.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
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
+ import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
5
+ import I from "../common/title-suffix-element.vue.js";
6
+ import { $t as q } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
8
+ import { CopyDocument as E } from "@element-plus/icons-vue";
9
+ import O from "clipboard";
10
+ import { ElMessage as W } from "element-plus";
11
+ import { useI18n as B } from "vue-i18n";
12
+ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", display: "flex", "align-items": "center" } }, K = { key: 0, style: { display: "flex", "flex-direction": "column" } }, L = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = { style: { float: "left" } }, $ = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, H = "__amb_select_all__", J = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
13
+ const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
14
+ let ee = V(Q.pageContext, Q.configure);
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 re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
17
+ const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
+ function pe() {
19
+ let e3 = P(Z, ee);
20
+ return null != e3 && (e3 = String(e3)), ne.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
21
21
  }
22
- const pe = t({ get: () => se(), set(e3) {
23
- const l2 = se();
24
- re = Array.isArray(l2) ? [...l2] : l2;
22
+ const ce = t({ get: () => pe(), set(e3) {
23
+ const l2 = pe();
24
+ ue = Array.isArray(l2) ? [...l2] : l2;
25
25
  let t2 = e3;
26
- if (ie.value.multiple && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($)) {
27
- const e4 = (ce.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
26
+ if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
27
+ const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
28
28
  t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
29
29
  }
30
- if (ie.value.multiple) {
31
- t2 = !!ie.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
30
+ if (ne.value.multiple) {
31
+ t2 = !!ne.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
32
32
  }
33
- void 0 === t2 && (t2 = null), k(Y, Z, t2), null != t2 && (Q.value = "");
34
- } }), ce = l(ie.value.options ? ie.value.options : []), fe = A(N.pageContext, N.configure);
35
- fe.length > 0 && (ce.value = fe);
36
- const ve = l(false), ge = N.configure.props && N.configure.props.dataOrigin ? N.configure.props.dataOrigin : {}, me = ge.optionValueSetType;
37
- let de = [];
38
- const ye = ie.value.optionconfigInfo ? ie.value.optionconfigInfo : {};
39
- if ("dynamicData" == me || "dataTable" == me || "service" == me) {
40
- if ("remote" == ge.filterType) {
33
+ void 0 === t2 && (t2 = null), k(Z, ee, t2), null != t2 && (X.value = "");
34
+ } }), fe = l(ne.value.options ? ne.value.options : []), ve = A(Q.pageContext, Q.configure);
35
+ ve.length > 0 && (fe.value = ve);
36
+ const ge = l(false), me = Q.configure.props && Q.configure.props.dataOrigin ? Q.configure.props.dataOrigin : {}, de = me.optionValueSetType;
37
+ let ye = [];
38
+ const he = ne.value.optionconfigInfo ? ne.value.optionconfigInfo : {};
39
+ if ("dynamicData" == de || "dataTable" == de || "service" == de) {
40
+ if ("remote" == me.filterType) {
41
41
  let e3;
42
- ie.value.filterable = true, ie.value.remote = true, ie.value.remoteShowSuffix = true, ie.value.remoteMethod = function(l2) {
43
- e3 !== l2 && (e3 = l2, ve.value = true, T(N.pageContext, ye, l2).then((e4) => {
44
- ve.value = false;
42
+ ne.value.filterable = true, ne.value.remote = true, ne.value.remoteShowSuffix = true, ne.value.remoteMethod = function(l2) {
43
+ e3 !== l2 && (e3 = l2, ge.value = true, T(Q.pageContext, he, l2).then((e4) => {
44
+ ge.value = false;
45
45
  }).then((e4) => {
46
- ve.value = false;
46
+ ge.value = false;
47
47
  }));
48
48
  };
49
49
  }
50
- if (ge.autoSets) for (let e3 of ge.autoSets) e3.source && de.push(e3);
51
- }
52
- N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }), ie.value.changeMethod = function(e3) {
50
+ if (me.autoSets) for (let e3 of me.autoSets) e3.source && ye.push(e3);
51
+ } else "static" == de && j(Q.pageContext, Q.configure.uuid, fe.value);
52
+ Q.configure && Q.configure.props && Q.configure.props.base && Q.configure.props.base.optionProp && ye.push({ source: "label", target: Q.configure.props.base.optionProp }), ne.value.changeMethod = function(e3) {
53
53
  var _a;
54
54
  let l2, t2 = null;
55
- ce.value && null != e3 && null != e3 && (((_a = ie.value) == null ? void 0 : _a.multiple) && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($) && (e3 = e3.filter((e4) => e4 !== $)), t2 = ce.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
56
- de.length > 0 && j(N.configure, N.pageContext, de, t2, [ie.value.prop]);
55
+ fe.value && null != e3 && null != e3 && (((_a = ne.value) == null ? void 0 : _a.multiple) && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H) && (e3 = e3.filter((e4) => e4 !== H)), t2 = fe.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
56
+ ye.length > 0 && R(Q.configure, Q.pageContext, ye, t2, [ne.value.prop]);
57
57
  t2 && t2.length > 0 && (l2 = t2[0]);
58
58
  let o2 = {};
59
59
  l2 && (o2.extendParams = l2);
60
- o2.options = ce.value, o2.oldValue = re, V(e3, N.pageContext, N.configure, "change", o2);
60
+ o2.options = fe.value, o2.oldValue = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
61
61
  };
62
- const he = ie.value.monitorFields, be = [];
63
- if (he) {
62
+ const be = ne.value.monitorFields, xe = [];
63
+ if (be) {
64
64
  const e3 = [];
65
- for (let l2 of he) if (l2.startsWith("${")) {
65
+ for (let l2 of be) if (l2.startsWith("${")) {
66
66
  l2 = l2.substring(2, l2.length - 1);
67
67
  const t2 = l2.split(".");
68
- "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (be.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
68
+ "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (xe.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
69
69
  }
70
- for (let l2 of e3) o(Y[l2], () => {
71
- _e();
70
+ for (let l2 of e3) o(Z[l2], () => {
71
+ we();
72
72
  });
73
73
  }
74
- let xe = "", Ce = false;
75
- function _e() {
76
- Ce && clearTimeout(Ce), Ce = setTimeout(function() {
74
+ let Ce = "", _e = false;
75
+ function we() {
76
+ _e && clearTimeout(_e), _e = setTimeout(function() {
77
77
  const e3 = function() {
78
78
  let e4 = [];
79
- for (let l2 of be) e4.push(R(Y, l2));
79
+ for (let l2 of xe) e4.push(P(Z, l2));
80
80
  return e4.join(",");
81
81
  }();
82
- e3 != xe && (xe = e3, ye.watchAttrValue = e3, T(N.pageContext, ye, void 0).then((e4) => {
83
- ve.value = false;
82
+ e3 != Ce && (Ce = e3, he.watchAttrValue = e3, T(Q.pageContext, he, void 0).then((e4) => {
83
+ ge.value = false;
84
84
  }));
85
85
  }, 200);
86
86
  }
87
87
  a(() => {
88
- Ce && clearTimeout(Ce);
88
+ _e && clearTimeout(_e);
89
89
  });
90
- let we = false;
91
- const Se = l(null), ke = l(null), Ae = l(null);
92
- function Te() {
93
- const e3 = se();
90
+ let Se = false;
91
+ const ke = l(null), Ae = l(null), Te = l(null);
92
+ function je() {
93
+ const e3 = pe();
94
94
  if (null != e3 && "" !== e3 && e3.length > 0) {
95
95
  let l2 = "";
96
- return "string" == typeof e3 ? ce.value.length > 0 ? ce.value.forEach((t2) => {
96
+ return "string" == typeof e3 ? fe.value.length > 0 ? fe.value.forEach((t2) => {
97
97
  t2.value === e3 && (l2 = t2.label);
98
- }) : l2 = e3 : ce.value.length > 0 ? (ce.value.forEach((t2) => {
98
+ }) : l2 = e3 : fe.value.length > 0 ? (fe.value.forEach((t2) => {
99
99
  e3.forEach((e4) => {
100
100
  t2.value === e4 && (l2 = l2 + t2.label + ",");
101
101
  });
102
102
  }), l2 = l2.slice(0, l2.length - 1)) : l2 = e3.join(","), l2;
103
103
  }
104
104
  }
105
- function je(e3) {
106
- X.value = e3;
105
+ function Re(e3) {
106
+ Y.value = e3;
107
107
  }
108
- function Re() {
109
- const e3 = Te();
108
+ function Pe() {
109
+ const e3 = je();
110
110
  e3 && navigator.clipboard && navigator.clipboard.writeText(e3).then(() => {
111
- O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
111
+ W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
112
112
  });
113
113
  }
114
114
  return i(() => {
115
- const e3 = new E("#" + ue, { text: function() {
116
- return Te();
115
+ const e3 = new O("#" + se, { text: function() {
116
+ return je();
117
117
  } });
118
118
  e3.on("success", () => {
119
- O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
119
+ W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
120
120
  }), e3.on("error", (e4) => {
121
+ console.error("复制失败", e4);
121
122
  }), n(() => {
122
- const e4 = pe.value;
123
- M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
123
+ const e4 = ce.value;
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 });
124
125
  });
125
- }), H2({ updateOptions: function(e3) {
126
- if (ce.value = e3 || [], !we) {
127
- const e4 = se();
128
- if (null != e4 && "" !== e4 && ce.value.length > 0) {
126
+ }), J2({ updateOptions: function(e3) {
127
+ if (fe.value = e3 || [], !Se) {
128
+ const e4 = pe();
129
+ if (null != e4 && "" !== e4 && fe.value.length > 0) {
129
130
  let l2 = false;
130
- for (let t2 of ce.value) if (t2.value == e4) {
131
+ for (let t2 of fe.value) if (t2.value == e4) {
131
132
  l2 = true;
132
133
  break;
133
134
  }
134
135
  if (!l2) {
135
- for (let l3 of ce.value) if (l3.label == e4) {
136
- pe.value = l3.value;
136
+ for (let l3 of fe.value) if (l3.label == e4) {
137
+ ce.value = l3.value;
137
138
  break;
138
139
  }
139
140
  }
140
141
  }
141
142
  }
142
- we = true;
143
+ Se = true;
143
144
  }, addRequiredClass: function() {
144
- Q.value = q();
145
- }, getSelectItemsTitle: Te, getOptions: function() {
146
- return ce.value;
147
- } }), (e3, l2) => {
148
- const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), i2 = r("el-popover"), n2 = r("el-form-item");
149
- return s(), u(n2, { ref_key: "formItemRef", ref: Se, required: !!ie.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ie.value.labelWidth, style: p(f(le)) }, 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", F, [m(a2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ie.value.state, size: ie.value.size, clearable: ie.value.clearable, multiple: ie.value.multiple, "collapse-tags": ie.value.collapseTags, "collapse-tags-tooltip": ie.value.collapseTagsTooltip, filterable: ie.value.filterable, "allow-create": ie.value.allowCreate, placeholder: ie.value.placeholder, "remote-show-suffix": ie.value.remoteShowSuffix, remote: ie.value.remote, "remote-method": ie.value.remoteMethod, loading: ve.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
150
- }, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => pe.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(o2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e3.pageContext, e3.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ne) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, 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", B, [m(t2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ie.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }), class: "amb-form-item-label" }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e3.pageContext, property: ie.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(I)(ie.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
145
+ X.value = z();
146
+ }, getSelectItemsTitle: je, getOptions: function() {
147
+ return fe.value;
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: 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 {
154
- H as default
155
+ J as default
155
156
  };
@@ -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 {
@@ -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: 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 {