super-page-runtime 2.3.41-sit1 → 2.3.41

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 (73) 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 +38 -38
  5. package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
  6. package/dist/es/components/runtime/utils/page-init-util.js +28 -26
  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 +100 -95
  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.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  36. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
  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.vue2.js +16 -16
  40. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  43. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
  44. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
  47. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  48. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -47
  50. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -9
  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.vue2.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
  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 +3 -3
  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.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  61. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
  62. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  66. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  68. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  69. package/dist/es/components/runtime/views/super-page.vue2.js +53 -52
  70. package/dist/es/i18n/langs/cn.js +1 -1
  71. package/dist/es/i18n/langs/en.js +1 -1
  72. package/dist/es/style.css +10 -10
  73. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, createBlock as r, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
1
+ import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
4
4
  import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
@@ -10,26 +10,26 @@ import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
10
10
  import { DatePickerRange as D, DateQuarterPicker as S } from "agilebuilder-ui";
11
11
  const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
12
12
  var _a;
13
- const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, M = w.configure.runtime ? w.configure.runtime : {}, U = M.style, I = M.class, N = M.headerStyle, W = M.titleExceedStyle, $ = a(M.props ? M.props : {});
14
- let E = y(w.pageContext, w.configure, $.value.prop);
13
+ const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, M = w.configure.runtime ? w.configure.runtime : {}, U = M.style, $ = M.class, I = M.headerStyle, N = M.titleExceedStyle, W = a(M.props ? M.props : {});
14
+ let E = y(w.pageContext, w.configure, W.value.prop);
15
15
  if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
16
16
  const e3 = x(E, w.pageContext);
17
17
  e3 && function(e4) {
18
18
  const a2 = e4.dataType;
19
- k(a2) && ("year" === $.value.dateType && "YYYY" === $.value.valueFormat || "month" === $.value.dateType && "YYYY-MM" === $.value.valueFormat) && ($.value.valueFormat = "x");
19
+ k(a2) && ("year" === W.value.dateType && "YYYY" === W.value.valueFormat || "month" === W.value.dateType && "YYYY-MM" === W.value.valueFormat) && (W.value.valueFormat = "x");
20
20
  }(e3);
21
21
  }
22
22
  let O = null, G = false;
23
- if ($.value.dateType && $.value.dateType.includes("range")) {
23
+ if (W.value.dateType && W.value.dateType.includes("range")) {
24
24
  G = true;
25
- let e3 = $.value.prop2;
25
+ let e3 = W.value.prop2;
26
26
  e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
27
27
  const a2 = b(B, e3, null);
28
- if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && $.value.defaultValue2) {
29
- const e4 = b(B, $.value.defaultValue2);
28
+ if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && W.value.defaultValue2) {
29
+ const e4 = b(B, W.value.defaultValue2);
30
30
  if (null != e4 && "" !== e4) F(B, O, e4);
31
- else if (((_a = $.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
32
- const e5 = $.value.moreDefaultValue2;
31
+ else if (((_a = W.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
32
+ const e5 = W.value.moreDefaultValue2;
33
33
  for (let a3 = 0; a3 < e5.length; a3++) {
34
34
  const l2 = b(B, e5[a3]);
35
35
  if (null != l2 && "" !== l2) {
@@ -50,7 +50,7 @@ const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
50
50
  let t2 = null;
51
51
  return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), t2;
52
52
  } catch (a3) {
53
- return e3;
53
+ return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${W.value.valueFormat}`), e3;
54
54
  }
55
55
  }
56
56
  return e3;
@@ -61,27 +61,27 @@ const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
61
61
  T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
62
62
  });
63
63
  }), E) {
64
- const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
64
+ const e3 = V(B, E), a2 = L(e3, W.value.valueFormat);
65
65
  e3 !== a2 && F(B, E, a2);
66
66
  }
67
67
  if (O) {
68
- const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
68
+ const e3 = V(B, O), a2 = L(e3, W.value.valueFormat);
69
69
  e3 !== a2 && F(B, O, a2);
70
70
  }
71
71
  const Q = o({ get() {
72
72
  if (G) {
73
73
  const e3 = [];
74
74
  let a2 = V(B, E);
75
- e3.push(L(a2, $.value.valueFormat));
75
+ e3.push(L(a2, W.value.valueFormat));
76
76
  let l2 = V(B, O);
77
- return e3.push(L(l2, $.value.valueFormat)), e3;
77
+ return e3.push(L(l2, W.value.valueFormat)), e3;
78
78
  }
79
- return L(V(B, E), $.value.valueFormat);
79
+ return L(V(B, E), W.value.valueFormat);
80
80
  }, set(e3) {
81
81
  G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
82
- } }), X = a(C($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
83
- if ($.value.shortcutsFunc) {
84
- const e3 = z(w.pageContext, $.value.shortcutsFunc);
82
+ } }), X = a(C(W.value.dateScopeDetails, W.value.sourceType, W.value.dateType));
83
+ if (W.value.shortcutsFunc) {
84
+ const e3 = z(w.pageContext, W.value.shortcutsFunc);
85
85
  if (e3) {
86
86
  let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
87
87
  if (a2) {
@@ -92,9 +92,9 @@ const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
92
92
  }
93
93
  return q2({ addRequiredClass: function() {
94
94
  A.value = _();
95
- } }), (e3, a2) => {
96
- const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
97
- return n(), r(o2, { ref_key: "formItemRef", ref: H, required: $.value.required, class: d(c(I) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(c(U)) }, p({ default: s(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, "unlink-panels": true, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => Q.value = e4), shortcuts: X.value, type: $.value.dateType, onChange: a2[1] || (a2[1] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== $.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes($.value.dateType) ? (n(), r(c(D), { key: 1, modelValue: Q.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, size: $.value.size, shortcuts: X.value, onChange: a2[8] || (a2[8] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === $.value.dateType ? (n(), r(c(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, size: $.value.size, onChange: a2[15] || (a2[15] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onClear: a2[18] || (a2[18] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), r(t2, { key: 3, ref_key: "componentRef", ref: J, clearable: $.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[19] || (a2[19] = (e4) => Q.value = e4), shortcuts: X.value, type: $.value.dateType, onChange: a2[20] || (a2[20] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[21] || (a2[21] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[22] || (a2[22] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[23] || (a2[23] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[24] || (a2[24] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[25] || (a2[25] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [$.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...c(N), ...c(W) }) }, [$.value.prefixType ? (n(), r(j, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(c(Y)($.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
95
+ } }), (a2, l2) => {
96
+ const t2 = r("el-time-picker"), o2 = r("el-date-picker"), y2 = r("el-form-item");
97
+ return n(), u(y2, { ref_key: "formItemRef", ref: H, required: W.value.required, class: d(c($) + (A.value ? " " + A.value : "")), "label-width": W.value.labelWidth, style: i(c(U)) }, p({ default: s(() => ["time" == W.value.dateType || "timerange" == W.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == W.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: W.value.clearable, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, "unlink-panels": true, format: W.value.format, "value-format": W.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), shortcuts: X.value, type: W.value.dateType, onChange: l2[1] || (l2[1] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== W.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(W.value.dateType) ? (n(), u(c(D), { key: 1, modelValue: Q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => Q.value = e3), type: W.value.dateType, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, clearable: W.value.clearable, format: W.value.format, "value-format": W.value.valueFormat, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, size: W.value.size, shortcuts: X.value, onChange: l2[8] || (l2[8] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === W.value.dateType ? (n(), u(c(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => Q.value = e3), type: W.value.dateType, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, clearable: W.value.clearable, format: W.value.format, "value-format": W.value.valueFormat, placeholder: W.value.placeholder, size: W.value.size, onChange: l2[15] || (l2[15] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[16] || (l2[16] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[17] || (l2[17] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onClear: l2[18] || (l2[18] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), u(o2, { key: 3, ref_key: "componentRef", ref: J, clearable: W.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, placeholder: W.value.placeholder, "start-placeholder": W.value.placeholder, "end-placeholder": W.value.endPlaceholder ? W.value.endPlaceholder : W.value.placeholder, format: W.value.format, "value-format": W.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[19] || (l2[19] = (e3) => Q.value = e3), shortcuts: X.value, type: W.value.dateType, onChange: l2[20] || (l2[20] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[21] || (l2[21] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[22] || (l2[22] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[23] || (l2[23] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[24] || (l2[24] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[25] || (l2[25] = (a3) => c(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...c(I), ...c(N) }) }, [W.value.prefixType ? (n(), u(j, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(c(Y)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
98
98
  };
99
99
  } });
100
100
  export {
@@ -45,9 +45,9 @@ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {
45
45
  }
46
46
  return Q.length - 1 > 0 && Q[Q.length - 1] && Q[Q.length - 1].model && (U = z(Q[Q.length - 1].model)), _2({ addRequiredClass: function() {
47
47
  q.value = j();
48
- } }), (e3, t2) => {
49
- const l2 = i("OrganizationInput"), o2 = i("el-form-item");
50
- return u(), p(o2, { ref_key: "formItemRef", ref: K, required: A.value.required, class: s(d(G) + (q.value ? " " + q.value : "")), "label-width": A.value.labelWidth, style: r(d(B)) }, m({ default: f(() => [c(l2, { ref_key: "componentRef", ref: L, disabled: "disabled" == A.value.state, multiple: A.value.multiple, treeType: A.value.treeType, value: P.value, models: d(O), departmentInfo: W.value, limitFilterColumn: A.value.limitFilterColumn, pageModels: d($), fields: d(Q), inputShowWay: A.value.inputShowWay, autosize: A.value.autosize, size: A.value.size, displayItem: A.value.displayItem, separator: A.value.separator, onSetValue: X, onShowTree: Y }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 2 }, [A.value.tittleShow ? { name: "label", fn: f(() => [g("div", { ref_key: "titleRef", ref: N, style: r({ ...d(H), ...d(J) }), class: "amb-form-item-label" }, [A.value.prefixType ? (u(), p(F, { key: 0, pageContext: e3.pageContext, property: A.value }, null, 8, ["pageContext", "property"])) : (u(), v(y, { key: 1 }, [x(h(d(I)(A.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
48
+ } }), (t2, l2) => {
49
+ const o2 = i("OrganizationInput"), a2 = i("el-form-item");
50
+ return u(), p(a2, { ref_key: "formItemRef", ref: K, required: A.value.required, class: s(d(G) + (q.value ? " " + q.value : "")), "label-width": A.value.labelWidth, style: r(d(B)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" == A.value.state, multiple: A.value.multiple, treeType: A.value.treeType, value: P.value, models: d(O), departmentInfo: W.value, limitFilterColumn: A.value.limitFilterColumn, pageModels: d($), fields: d(Q), inputShowWay: A.value.inputShowWay, autosize: A.value.autosize, size: A.value.size, displayItem: A.value.displayItem, separator: A.value.separator, onSetValue: X, onShowTree: Y }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 2 }, [A.value.tittleShow ? { name: "label", fn: f(() => [g("div", { ref_key: "titleRef", ref: N, style: r({ ...d(H), ...d(J) }), class: "amb-form-item-label" }, [A.value.prefixType ? (u(), p(F, { key: 0, pageContext: e2.pageContext, property: A.value }, null, 8, ["pageContext", "property"])) : (u(), v(y, { key: 1 }, [x(h(d(I)(A.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
51
51
  };
52
52
  } });
53
53
  export {
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
14
14
  const e3 = b.value;
15
15
  v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
16
16
  });
17
- }), (e3, t2) => {
18
- const n2 = i("el-divider");
19
- return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
17
+ }), (t2, n2) => {
18
+ const o2 = i("el-divider");
19
+ return l(), u(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
20
20
  };
21
21
  } });
22
22
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as d, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as f, unref as d, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadBeforeDelete as b, fileUploadUploaded as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
4
4
  import I from "agilebuilder-ui/src/utils/request";
@@ -45,10 +45,11 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
45
45
  return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: j(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
46
46
  }
47
47
  function ee() {
48
- if (z.pageContext.fileuploadInfo && z.configure.uuid) {
48
+ if (z.pageContext.fileuploadInfo, z.configure.uuid, z.pageContext.fileuploadInfo && z.configure.uuid) {
49
49
  const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
50
50
  -1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
51
51
  }
52
+ z.pageContext.fileuploadInfo;
52
53
  }
53
54
  function le(e3) {
54
55
  ee();
@@ -74,7 +75,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
74
75
  }, ne = l(null), ue = l(null);
75
76
  return o(() => {
76
77
  S.$on(J.value + "-pickFileDone", (e3) => {
77
- L.value.pickFileDone(e3);
78
+ J.value, L.value.pickFileDone(e3);
78
79
  }), i(() => {
79
80
  const e3 = h(A, U), l2 = { showName: h(A, B), serverPath: e3 };
80
81
  C(l2, z.pageContext, z.configure, { formItemRef: ne.value, componentRef: L.value, titleRef: ue.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
@@ -83,9 +84,9 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
83
84
  S.$off(J.value + "-pickFileDone");
84
85
  }), _2({ addRequiredClass: function() {
85
86
  R.value = N();
86
- } }), (e3, l2) => {
87
- const t2 = n("el-form-item");
88
- return O.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ne, required: O.value.required, class: f(d(q) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: p(d(D)) }, m({ default: v(() => [M.value ? (s(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ue, style: p({ ...d(W), ...d($) }), class: "amb-form-item-label" }, g(d(j)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (s(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
87
+ } }), (l2, t2) => {
88
+ const o2 = n("el-form-item");
89
+ return O.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: ne, required: O.value.required, class: f(d(q) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: s(d(D)) }, m({ default: v(() => [M.value ? (p(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e2.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ue, style: s({ ...d(W), ...d($) }), class: "amb-form-item-label" }, g(d(j)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (p(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e2.pageContext.systemCode, componentId: J.value, watermark: d(G), "on-success": oe, "on-remove": ie, "before-upload": Z, "on-error": le, "before-remove": te, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
89
90
  };
90
91
  } });
91
92
  export {
@@ -21,10 +21,11 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
21
21
  return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(R.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
22
22
  }
23
23
  function Y() {
24
- if (N.pageContext.fileuploadInfo && N.configure.uuid) {
24
+ if (N.pageContext.fileuploadInfo, N.configure.uuid, N.pageContext.fileuploadInfo && N.configure.uuid) {
25
25
  const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
26
26
  -1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
27
27
  }
28
+ N.pageContext.fileuploadInfo;
28
29
  }
29
30
  function Z(e3) {
30
31
  Y();
@@ -71,7 +72,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
71
72
  }, ae = t(null), ie = t(null);
72
73
  return l(() => {
73
74
  j.$on(H.value + "-pickFileDone", (e3) => {
74
- K.value.pickFileDone(e3);
75
+ H.value, K.value.pickFileDone(e3);
75
76
  }), o(() => {
76
77
  const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
77
78
  y(t2, N.pageContext, N.configure, { formItemRef: ae.value, componentRef: K.value, titleRef: ie.value, value: t2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
@@ -80,9 +81,9 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
80
81
  j.$off(H.value + "-pickFileDone");
81
82
  }), _2({ addRequiredClass: function() {
82
83
  O.value = P();
83
- } }), (e3, t2) => {
84
- const l2 = i("el-form-item");
85
- return R.value.tittleShow ? (r(), n(l2, { key: 0, ref_key: "formItemRef", ref: ae, required: R.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": R.value.labelWidth, style: p(f(D)) }, d({ default: c(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept && Object.keys(R.value.accept).length > 0 ? R.value.accept : "image/*", disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [R.value.tittleShow ? { name: "label", fn: c(() => [m("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(R.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept, disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e3.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
84
+ } }), (t2, l2) => {
85
+ const o2 = i("el-form-item");
86
+ return R.value.tittleShow ? (r(), n(o2, { key: 0, ref_key: "formItemRef", ref: ae, required: R.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": R.value.labelWidth, style: p(f(D)) }, d({ default: c(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept && Object.keys(R.value.accept).length > 0 ? R.value.accept : "image/*", disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [R.value.tittleShow ? { name: "label", fn: c(() => [m("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(R.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: R.value.accept, disabled: "disabled" === R.value.state, displayType: R.value.displayType, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "sort-type": R.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": R.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
86
87
  };
87
88
  } });
88
89
  export {
@@ -18,9 +18,9 @@ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
18
18
  });
19
19
  }), w2({ addRequiredClass: function() {
20
20
  S.value = q();
21
- } }), (e3, t2) => {
22
- const l2 = n("el-input-number"), o2 = n("el-form-item");
23
- return i(), u(o2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: W.value.placeholder, modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: t2[1] || (t2[1] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
21
+ } }), (t2, l2) => {
22
+ const o2 = n("el-input-number"), a2 = n("el-form-item");
23
+ return i(), u(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: W.value.placeholder, modelValue: I.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => I.value = e3), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: l2[1] || (l2[1] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -1,80 +1,81 @@
1
- import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
1
+ import { defineComponent as e, ref as n, computed as t, onMounted as l, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as y, createCommentVNode as m, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
2
2
  import { SuperIcon as I } from "agilebuilder-ui";
3
- import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
4
- import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
- import { handleFormEvent as j, handleAfterInitEvent as P, doSuffixOrPrefixClickEvent as S } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as L, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
7
- import q from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D, isDingTalkEnv as M } from "agilebuilder-ui/src/utils/common-util";
9
- import N from "../../../../utils/eventBus.js";
10
- import { $t as z } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as J } from "../../../../utils/common-util.js";
3
+ import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
4
+ import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
+ import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as P } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as L } from "../../../../utils/form/scan-util.js";
7
+ import N from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as q, isDingTalkEnv as D } from "agilebuilder-ui/src/utils/common-util";
9
+ import J from "../../../../utils/eventBus.js";
10
+ import { $t as M } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
12
  const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  var _a, _b, _c;
14
- const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
15
- let E = V(F.pageContext, F.configure);
14
+ const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = n("text");
15
+ let E = w(F.pageContext, F.configure);
16
16
  if (F.pageContext.modelFieldsMap) {
17
- const e3 = w(E, F.pageContext);
17
+ const e3 = V(E, F.pageContext);
18
18
  e3 && (A.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const H = l(D()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
20
+ const H = n(q()), U = F.pageContext.code, W = n(E && E.length > 0 ? U + "__" + E.join("__") : null), G = n(null), K = t({ get: () => _($, E), set(e3) {
21
21
  b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
22
- } }), Q = l(null), X = l(null), Y = l(null);
22
+ } }), Q = n(null), X = n(null), Y = n(null);
23
23
  F.configure.props.suffixLinkPage && !F.configure.props.linkPage && (F.configure.props.linkPage = F.configure.props.suffixLinkPage);
24
- const Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
24
+ const Z = F.configure.runtime ? F.configure.runtime : {}, ee = n(Z.props ? Z.props : {}), ne = n(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
25
25
  let te = false;
26
- M() && (te = true);
27
- let ne = "";
28
- ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
30
- let ue = {};
26
+ D() && (te = true);
27
+ let le = "";
28
+ const oe = navigator.userAgent;
29
+ le = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
30
+ const ae = !(!H.value || !le || "app" !== le), ue = n(!!((ae || te) && ne.value || H.value && ne.value && "https:" === window.location.protocol));
31
+ let ie = {};
31
32
  ((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(ee.value.scan.ruleList).then((e3) => {
32
- ue = e3;
33
+ ie = e3;
33
34
  }), u(() => K.value, (e3) => {
34
35
  e3 = e3.trim();
35
- const l2 = L(e3, ue);
36
- l2 && O(F.pageContext, l2.scanSet, l2.params);
36
+ const n2 = O(e3, ie);
37
+ n2 && L(F.pageContext, n2.scanSet, n2.params);
37
38
  }));
38
- const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
39
- function ce(e3) {
39
+ const re = Z.style, pe = Z.class, se = Z.headerStyle, ce = Z.titleExceedStyle;
40
+ function fe(e3) {
40
41
  return b($, E, e3);
41
42
  }
42
- n(() => {
43
- N.$on(W.value + "-scanDone", (e3) => {
44
- ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
43
+ l(() => {
44
+ J.$on(W.value + "-scanDone", (e3) => {
45
+ W.value, JSON.stringify(e3), fe(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
45
46
  }), o(() => {
46
47
  var _a2;
47
48
  const e3 = K.value;
48
- P(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
49
+ j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ge();
49
50
  });
50
51
  }), a(() => {
51
- N.$off(W.value + "-scanDone");
52
+ J.$off(W.value + "-scanDone");
52
53
  });
53
- const fe = l(false);
54
- function ve() {
55
- if (oe || te) {
54
+ const ve = n(false);
55
+ function ge() {
56
+ if (ae || te) {
56
57
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
57
- te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
58
- } else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
58
+ te && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
59
+ } else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
59
60
  else {
60
61
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
61
62
  window.parent.postMessage(JSON.stringify(e3), "*");
62
63
  }
63
- else fe.value = true;
64
+ else ve.value = true;
64
65
  }
65
- function ge(e3) {
66
- fe.value = false, ce(e3);
66
+ function ye(e3) {
67
+ ve.value = false, fe(e3);
67
68
  }
68
69
  return B2({ getValue: function() {
69
70
  return _($, E);
70
- }, setValue: ce, scanClick: ve, addRequiredClass: function() {
71
- G.value = J();
72
- } }), (e3, l2) => {
73
- const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
74
- return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(f(ie)) }, v({ default: g(() => [m(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
75
- let l3 = _($, E);
76
- null != l3 && (l3 = l3.trim()), b($, E, l3), j(e5, F.pageContext, F.configure, "blur");
77
- }(e4)), onFocus: l2[9] || (l2[9] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ae.value ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => ve()) })) : y("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(n2, { key: 0, onClose: ge })) : y("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...f(se), ...f(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), k(T, { key: 1 }, [d(x(f(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
71
+ }, setValue: fe, scanClick: ge, addRequiredClass: function() {
72
+ G.value = z();
73
+ } }), (n2, t2) => {
74
+ const l2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
75
+ return p(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(pe) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: s(f(re)) }, v({ default: g(() => [y(l2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => K.value = e3), onInput: t2[6] || (t2[6] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "input")), onChange: t2[7] || (t2[7] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "change")), onBlur: t2[8] || (t2[8] = (e3) => function(e4) {
76
+ let n3 = _($, E);
77
+ null != n3 && (n3 = n3.trim()), b($, E, n3), S(e4, F.pageContext, F.configure, "blur");
78
+ }(e3)), onFocus: t2[9] || (t2[9] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "focus")), onClick: t2[10] || (t2[10] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "click")), onClear: t2[11] || (t2[11] = (n3) => f(S)(n3, e2.pageContext, e2.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[0] || (t2[0] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[1] || (t2[1] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[2] || (t2[2] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ue.value ? (p(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e3) => ge()) })) : m("", true), ee.value.sufIconType && ee.value.sufIconValue ? (p(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[4] || (t2[4] = (n3) => f(P)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(f(M)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(o2, { key: 0, onClose: ye })) : m("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: s({ ...f(se), ...f(ce) }) }, [ee.value.prefixType ? (p(), r(N, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (p(), k(T, { key: 1 }, [d(x(f(M)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
79
  };
79
80
  } });
80
81
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./label-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-40f0b5f4"]]);
4
+ const t = r(e, [["__scopeId", "data-v-c76703c3"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,22 +1,24 @@
1
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 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";
3
+ import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon as T } from "agilebuilder-ui";
5
+ import { getCustomFunc as k, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
6
6
  import { $t as I } from "../../../../utils/i18n-util.js";
7
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
8
  const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
9
9
  let q = x(S.pageContext, S.configure);
10
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(() => {
11
+ const B = t(W.value.options ? W.value.options : []), G = W.value.formatType;
12
+ W.value;
13
+ const H = l(() => {
12
14
  let e3 = h(P, q);
13
15
  if (G) if (W.value.hasOptions) {
14
16
  let t2 = null;
15
17
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
16
18
  } else if ("custom" === G) {
17
- const t2 = T(S.pageContext, W.value.formatFunc);
19
+ const t2 = k(S.pageContext, W.value.formatFunc);
18
20
  t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
19
- } else e3 = k(e3, G, W.value);
21
+ } else e3 = w(e3, G, W.value);
20
22
  return e3 = null == e3 ? "" : e3, e3;
21
23
  }), J = t(null), K = t(null), L = t(null);
22
24
  return n(() => {
@@ -26,9 +28,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
26
28
  });
27
29
  }), R2({ updateOptions: function(e3) {
28
30
  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)]));
31
+ } }), (t2, l2) => {
32
+ const n2 = u("el-form-item");
33
+ return W.value.whetherTitle || 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(f(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (s(), o(n2, { 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: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.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(T), { 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(T), { 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: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.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(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
32
34
  };
33
35
  } });
34
36
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as a, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
2
2
  import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
@@ -7,7 +7,9 @@ import { SuperIcon as h } from "agilebuilder-ui";
7
7
  import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
8
8
  const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
9
  var _a;
10
- const T2 = e2, j = b(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();
10
+ const T2 = e2, j = b(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 : {});
11
+ S.value;
12
+ const $ = t();
11
13
  ((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
12
14
  let q = S.value.formatting;
13
15
  const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
@@ -26,14 +28,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
26
28
  return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
27
29
  }));
28
30
  const A = t(null), B = t(null), E = t(null);
29
- return i(() => {
30
- a(() => {
31
+ return a(() => {
32
+ i(() => {
31
33
  const e3 = J.value;
32
34
  x(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 });
33
35
  });
34
- }), (e3, t2) => {
35
- const l2 = n("el-link"), i2 = n("el-tooltip"), a2 = n("el-form-item");
36
- return o(), u(a2, { ref_key: "formItemRef", ref: A, class: p(s(I)), "label-width": S.value.labelWidth, style: r(s(V)) }, f({ default: c(() => [m(i2, { disabled: !s(z), content: s(z) }, { default: c(() => [m(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", 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"])) : d("", true), g(" " + 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) }), class: "amb-form-item-label" }, v(s(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
36
+ }), (t2, l2) => {
37
+ const a2 = n("el-link"), i2 = n("el-tooltip"), b2 = n("el-form-item");
38
+ return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(i2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + 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({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
37
39
  };
38
40
  } });
39
41
  export {
@@ -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 {