super-page-runtime 2.3.36 → 2.3.37-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) 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 +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
  5. package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
  6. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  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 +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  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/gauge/gauge-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -98
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  23. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  30. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  32. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  33. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -37
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +43 -43
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -60
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -28
  50. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
  51. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
  61. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +96 -94
  63. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
  66. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  68. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  70. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  71. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  72. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  73. package/dist/es/components/runtime/views/super-page.vue2.js +27 -22
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. package/dist/es/style.css +166 -158
  77. package/package.json +2 -2
@@ -1,38 +1,36 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
- import { SuperIcon as k } from "agilebuilder-ui";
5
- import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
- import { $t as _ } from "../../../../utils/i18n-util.js";
7
- const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
- let P = x(R.pageContext, R.configure);
10
- const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
11
- const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
12
- N.value;
13
- const G = l(() => {
14
- let e3 = d(S, P);
15
- if (B) if (N.value.hasOptions) {
3
+ import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon as w } from "agilebuilder-ui";
5
+ import { getCustomFunc as T, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, V = { style: { overflow: "hidden", "white-space": "nowrap" } }, j = ["title"], R = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
8
+ const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
9
+ let q = x(S.pageContext, S.configure);
10
+ const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
11
+ const B = t(W.value.options ? W.value.options : []), G = W.value.formatType, H = l(() => {
12
+ let e3 = h(P, q);
13
+ if (G) if (W.value.hasOptions) {
16
14
  let t2 = null;
17
- W.value && (t2 = W.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
18
- } else if ("custom" === B) {
19
- const t2 = w(R.pageContext, N.value.formatFunc);
20
- t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
21
- } else e3 = h(e3, B, N.value);
15
+ B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
+ } else if ("custom" === G) {
17
+ const t2 = T(S.pageContext, W.value.formatFunc);
18
+ t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
19
+ } else e3 = k(e3, G, W.value);
22
20
  return e3 = null == e3 ? "" : e3, e3;
23
- }), H = t(null), J = t(null), K = t(null);
21
+ }), J = t(null), K = t(null), L = t(null);
24
22
  return n(() => {
25
23
  a(() => {
26
- const e3 = G.value;
27
- T(e3, R.pageContext, R.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
24
+ const e3 = H.value;
25
+ C(e3, S.pageContext, S.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
28
26
  });
29
- }), j2({ updateOptions: function(e3) {
30
- W.value = e3 || [];
31
- } }), (t2, l2) => {
32
- const n2 = u("el-form-item");
33
- return N.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: l2[0] || (l2[0] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), i(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), i(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
27
+ }), R2({ updateOptions: function(e3) {
28
+ B.value = e3 || [];
29
+ } }), (e3, t2) => {
30
+ const l2 = u("el-form-item");
31
+ return W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
34
32
  };
35
33
  } });
36
34
  export {
37
- j as default
35
+ R as default
38
36
  };
@@ -1,43 +1,41 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createCommentVNode as g, createTextVNode as d, toDisplayString as m, createElementBlock as v } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as x, handleEvent as b } from "../../../../utils/events/event-util.js";
5
- import { $t as C } from "../../../../utils/i18n-util.js";
6
- import { SuperIcon as _ } from "agilebuilder-ui";
7
- import { analysisValue as h } from "agilebuilder-ui/src/utils/util";
8
- const R = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, createSlots as f, withCtx as c, createVNode as d, createCommentVNode as g, createTextVNode as m, toDisplayString as v, createElementVNode as y } from "vue";
2
+ import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as x } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as b, handleEvent as C } from "../../../../utils/events/event-util.js";
5
+ import { $t as _ } from "../../../../utils/i18n-util.js";
6
+ import { SuperIcon as h } from "agilebuilder-ui";
7
+ import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
8
+ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
9
  var _a;
10
- const R2 = e2, T = y(R2.pageContext, R2.configure), j = R2.configure.runtime ? R2.configure.runtime : {}, w = j.style, V = j.class, I = j.headerStyle, P = t(j.props ? j.props : {});
11
- P.value;
12
- const S = t();
13
- ((_a = R2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = R2.configure.props.linkPage);
14
- let $ = P.value.formatting;
15
- const q = R2.pageContext.entity ? R2.pageContext.entity : {}, D = l(() => {
10
+ const T2 = e2, j = k(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {}), $ = t();
11
+ ((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
12
+ let q = S.value.formatting;
13
+ const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
16
14
  var _a2;
17
- let e3 = k(q, T);
18
- if (e3 = null == e3 || null == e3 ? "" : e3, $) e3 = $.replace(/\${value}/g, e3);
19
- else if (S.value && S.value.displayTextJudge && ((_a2 = S.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
20
- const e4 = h(S.value.dynamicTags.join("-#-#"), q.data, q.request, q.context, R2.pageContext);
15
+ let e3 = x(D, j);
16
+ if (e3 = null == e3 || null == e3 ? "" : e3, q) e3 = q.replace(/\${value}/g, e3);
17
+ else if ($.value && $.value.displayTextJudge && ((_a2 = $.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
18
+ const e4 = R($.value.dynamicTags.join("-#-#"), D.data, D.request, D.context, T2.pageContext);
21
19
  if (e4) return e4;
22
20
  }
23
21
  return e3;
24
22
  });
25
- let J = P.value.tooltip, W = null;
26
- J && (W = l(() => {
27
- let e3 = k(q, T);
28
- return e3 = null == e3 || null == e3 ? "" : e3, J.replace(/\${value}/g, e3);
23
+ let W = S.value.tooltip, z = null;
24
+ W && (z = l(() => {
25
+ let e3 = x(D, j);
26
+ return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
29
27
  }));
30
- const z = t(null), A = t(null), B = t(null);
28
+ const A = t(null), B = t(null), E = t(null);
31
29
  return i(() => {
32
30
  n(() => {
33
- const e3 = D.value;
34
- x(e3, R2.pageContext, R2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: R2.pageContext.entity.data, pageData: R2.pageContext.entity.page });
31
+ const e3 = J.value;
32
+ b(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
35
33
  });
36
- }), (t2, l2) => {
37
- const i2 = a("el-link"), n2 = a("el-tooltip"), y2 = a("el-form-item");
38
- return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(V)), "label-width": P.value.labelWidth, style: r(p(w)) }, { label: c(() => [P.value.tittleShow ? (o(), v("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(P.value.title)), 5)) : g("", true)]), default: c(() => [f(n2, { disabled: !p(W), content: p(W) }, { default: c(() => [f(i2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(b)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [S.value ? (o(), u(p(_), { key: 0, iconType: S.value.iconType, iconValue: S.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + m(D.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
34
+ }), (e3, t2) => {
35
+ const l2 = a("el-link"), i2 = a("el-tooltip"), n2 = a("el-form-item");
36
+ return o(), u(n2, { ref_key: "formItemRef", ref: A, class: p(s(I)), "label-width": S.value.labelWidth, style: r(s(V)) }, f({ default: c(() => [d(i2, { disabled: !s(z), content: s(z) }, { default: c(() => [d(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(s(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...s(P) }) }, v(s(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
39
37
  };
40
38
  } });
41
39
  export {
42
- R as default
40
+ T as default
43
41
  };
@@ -1,82 +1,82 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as u, nextTick as a, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, withCtx as g, createVNode as v, createElementBlock as d, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
2
- import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as S, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as T, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
5
- import { $t as q } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as V } from "../../../../utils/common-util.js";
7
- const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
8
- const z = e2, O = t(null), D = z.pageContext.entity ? z.pageContext.entity : {};
9
- let E = j(z.pageContext, z.configure);
10
- const M = l({ get() {
11
- let e3 = k(D, E);
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 y, createTextVNode as b, 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);
12
12
  return null != e3 && (e3 += ""), e3;
13
13
  }, set(e3) {
14
- x(D, E, e3), null != e3 && (O.value = "");
15
- } }), P = z.configure.runtime ? z.configure.runtime : {}, W = P.style, F = P.class, U = P.headerStyle, $ = P.titleExceedStyle, A = t(P.props ? P.props : {}), B = t(A.value.options ? A.value.options : []), G = _(z.pageContext, z.configure);
16
- G.length > 0 && (B.value = G);
17
- const H = z.configure.props && z.configure.props.dataOrigin ? z.configure.props.dataOrigin : {}, J = H.optionValueSetType;
18
- let K = [];
19
- if (("dynamicData" == J || "dataTable" == J || "service" == J) && H.autoSets) for (let e3 of H.autoSets) e3.source && K.push(e3);
20
- z.configure && z.configure.props && z.configure.props.base && z.configure.props.base.optionProp && K.push({ source: "label", target: z.configure.props.base.optionProp }), A.value.changeMethod = function(e3) {
21
- if (K.length > 0) {
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) {
22
22
  let t2 = null;
23
- B.value && null != e3 && null != e3 && (t2 = B.value.filter((t3) => e3 === t3.value)), S(z.configure, z.pageContext, K, t2);
23
+ G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => e3 === t3.value)), R(O.configure, O.pageContext, L, t2);
24
24
  }
25
- T(e3, z.pageContext, z.configure, "change");
25
+ I(e3, O.pageContext, O.configure, "change");
26
26
  };
27
- const L = A.value.monitorFields, N = [];
28
- if (L) {
27
+ const N = B.value.monitorFields, Q = [];
28
+ if (N) {
29
29
  const e3 = [];
30
- for (let t2 of L) if (t2.startsWith("${")) {
30
+ for (let t2 of N) if (t2.startsWith("${")) {
31
31
  t2 = t2.substring(2, t2.length - 1);
32
32
  const l2 = t2.split(".");
33
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (N.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
33
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Q.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
34
34
  }
35
- for (let t2 of e3) o(D[t2], () => {
36
- ee();
35
+ for (let t2 of e3) o(E[t2], () => {
36
+ te();
37
37
  });
38
38
  }
39
- function Q() {
39
+ function X() {
40
40
  let e3 = "";
41
- for (let t2 of N) e3 += "_" + k(D, t2);
41
+ for (let t2 of Q) e3 += "_" + _(E, t2);
42
42
  return e3;
43
43
  }
44
- let X = Q(), Y = false;
45
- const Z = A.value.optionconfigInfo ? A.value.optionconfigInfo : {};
46
- function ee() {
47
- Y && clearTimeout(Y), Y = setTimeout(function() {
48
- const e3 = Q();
49
- e3 != X && (X = e3, R(z.pageContext, Z, void 0).then((e4) => {
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) => {
50
50
  }));
51
51
  }, 200);
52
52
  }
53
53
  n(() => {
54
- Y && clearTimeout(Y);
54
+ Z && clearTimeout(Z);
55
55
  });
56
- const te = t(null), le = t(null), oe = t(null);
57
- return u(() => {
58
- a(() => {
59
- const e3 = M.value;
60
- I(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: le.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
56
+ const le = t(null), oe = t(null), ne = t(null);
57
+ return a(() => {
58
+ 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
61
  });
62
- }), w2({ updateOptions: function(e3) {
63
- B.value = e3 || [];
62
+ }), z2({ updateOptions: function(e3) {
63
+ G.value = e3 || [];
64
64
  }, addRequiredClass: function() {
65
- O.value = V();
65
+ D.value = w();
66
66
  }, getSelectItemsTitle: function() {
67
- let e3 = k(D, E);
67
+ let e3 = _(E, M);
68
68
  if (null == e3) return "";
69
69
  if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
70
  let t2 = "";
71
- return B.value.length > 0 ? (B.value.forEach((l2) => {
71
+ return G.value.length > 0 ? (G.value.forEach((l2) => {
72
72
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
73
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
74
  }
75
- } }), (t2, l2) => {
76
- const o2 = i("el-radio"), n2 = i("el-radio-group"), u2 = i("el-form-item");
77
- return s(), r(u2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
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, y(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(() => [b(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) }) }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
81
- w as default
81
+ z as default
82
82
  };
@@ -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-7f659782"]]);
5
+ const r = e(t, [["__scopeId", "data-v-9fec556f"]]);
6
6
  export {
7
7
  r as default
8
8
  };