super-page-runtime 2.3.50-sit3 → 2.3.51-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 (22) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -5
  2. package/dist/es/components/runtime/utils/charts/chart-util.js +121 -90
  3. package/dist/es/components/runtime/utils/events/event-util.js +2 -1
  4. package/dist/es/components/runtime/utils/events/standard-event.js +70 -70
  5. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +7 -6
  6. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
  7. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +25 -13
  8. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +95 -53
  12. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +10 -10
  13. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +48 -26
  15. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -1
  16. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -56
  17. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +12 -12
  19. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +27 -23
  21. package/dist/es/style.css +41 -34
  22. package/package.json +3 -3
@@ -1,54 +1,54 @@
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 r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as d, unref as s, createSlots as c, withCtx as p, 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
- import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
4
+ import { getModelFieldFromPageContext as b, getValueFromVariable as x, setVariableValue as V, getVariableValue as T, isDateDataType as k } from "../../../../utils/page-helper-util.js";
5
+ import { handleAfterInitEvent as F, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
6
6
  import j from "../common/title-suffix-element.vue.js";
7
- import R from "dayjs";
8
- import { $t as Y } from "../../../../utils/i18n-util.js";
7
+ import w from "dayjs";
8
+ import { $t as R } from "../../../../utils/i18n-util.js";
9
9
  import { addRequiredClassUtil as D } from "../../../../utils/common-util.js";
10
- import { DatePickerRange as _, DateQuarterPicker as S } from "agilebuilder-ui";
11
- const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
10
+ import { DatePickerRange as L, DateQuarterPicker as O } from "agilebuilder-ui";
11
+ const Y = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: Y2 }) {
12
12
  var _a;
13
- const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, I = w.configure.runtime ? w.configure.runtime : {}, M = I.style, U = I.class, N = I.headerStyle, W = I.titleExceedStyle, $ = a(I.props ? I.props : {});
14
- let E = y(w.pageContext, w.configure, $.value.prop);
15
- if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
16
- const e3 = x(E, w.pageContext);
13
+ const _ = e2, q = a(null), S = _.pageContext.entity ? _.pageContext.entity : {}, B = _.configure.runtime ? _.configure.runtime : {}, E = B.style, U = B.class, A = B.headerStyle, I = B.titleExceedStyle, M = a(B.props ? B.props : {});
14
+ let G = y(_.pageContext, _.configure, M.value.prop);
15
+ if (_.pageContext.modelFieldsMap && G && G.length > 0 && "data" === G[0]) {
16
+ const e3 = b(G, _.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" === M.value.dateType && "YYYY" === M.value.valueFormat || "month" === M.value.dateType && "YYYY-MM" === M.value.valueFormat) && (M.value.valueFormat = "x");
20
20
  }(e3);
21
21
  }
22
- let O = null, G = false;
23
- if ($.value.dateType && $.value.dateType.includes("range")) {
24
- G = true;
25
- let e3 = $.value.prop2;
26
- e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
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);
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;
22
+ let N = null, W = false;
23
+ if (M.value.dateType && M.value.dateType.includes("range")) {
24
+ W = true;
25
+ let e3 = M.value.prop2;
26
+ e3 && e3.startsWith("${") || (e3 = "${page." + _.configure.uuid + "-2}");
27
+ const a2 = x(S, e3, null);
28
+ if (e3 = e3.substring(2, e3.length - 1), N = e3.split("."), !(a2 || S.data && (S.data.id || S.data.ID)) && M.value.defaultValue2) {
29
+ const e4 = x(S, M.value.defaultValue2);
30
+ if (null != e4 && "" !== e4) V(S, N, e4);
31
+ else if (((_a = M.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
32
+ const e5 = M.value.moreDefaultValue2;
33
33
  for (let a3 = 0; a3 < e5.length; a3++) {
34
- const l2 = b(B, e5[a3]);
34
+ const l2 = x(S, e5[a3]);
35
35
  if (null != l2 && "" !== l2) {
36
- F(B, O, l2);
36
+ V(S, N, l2);
37
37
  break;
38
38
  }
39
39
  }
40
40
  }
41
41
  }
42
42
  }
43
- const H = a(null), J = a(null), K = a(null);
44
- function L(e3, a2) {
43
+ const $ = a(null), H = a(null), J = a(null);
44
+ function K(e3, a2) {
45
45
  if (!e3) return e3;
46
46
  if (a2) {
47
47
  "number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
48
48
  try {
49
- const l2 = R(e3);
49
+ const l2 = w(e3);
50
50
  let t2 = null;
51
- return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
51
+ return t2 = "x" === a2 ? l2.toDate().getTime() : w(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
52
52
  } catch (a3) {
53
53
  return e3;
54
54
  }
@@ -58,45 +58,87 @@ const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
58
58
  if (l(() => {
59
59
  t(() => {
60
60
  const e3 = Q.value;
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 });
61
+ F(e3, _.pageContext, _.configure, { formItemRef: $.value, componentRef: H.value, titleRef: J.value, value: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
62
62
  });
63
- }), E) {
64
- const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
65
- e3 !== a2 && F(B, E, a2);
63
+ }), G) {
64
+ const e3 = T(S, G), a2 = K(e3, M.value.valueFormat);
65
+ e3 !== a2 && V(S, G, a2);
66
66
  }
67
- if (O) {
68
- const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
69
- e3 !== a2 && F(B, O, a2);
67
+ if (N) {
68
+ const e3 = T(S, N), a2 = K(e3, M.value.valueFormat);
69
+ e3 !== a2 && V(S, N, a2);
70
70
  }
71
- const Q = o({ get() {
72
- if (G) {
71
+ const Q = r({ get() {
72
+ if (W) {
73
73
  const e3 = [];
74
- let a2 = V(B, E);
75
- e3.push(L(a2, $.value.valueFormat));
76
- let l2 = V(B, O);
77
- return e3.push(L(l2, $.value.valueFormat)), e3;
74
+ let a2 = T(S, G);
75
+ e3.push(K(a2, M.value.valueFormat));
76
+ let l2 = T(S, N);
77
+ return e3.push(K(l2, M.value.valueFormat)), e3;
78
78
  }
79
- return L(V(B, E), $.value.valueFormat);
79
+ return K(T(S, G), M.value.valueFormat);
80
80
  }, set(e3) {
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);
81
+ W ? Array.isArray(e3) ? (V(S, G, e3[0]), V(S, N, e3[1]), q.value = "") : null === e3 && (V(S, G, null), V(S, N, null)) : (V(S, G, e3), null != e3 && (q.value = ""));
82
+ } }), X = a(C(M.value.dateScopeDetails, M.value.sourceType, M.value.dateType));
83
+ if (M.value.shortcutsFunc) {
84
+ const e3 = z(_.pageContext, M.value.shortcutsFunc);
85
85
  if (e3) {
86
- let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
86
+ let a2 = e3.apply(e3, [{ pageContext: _.pageContext, configureObj: _.configure }]);
87
87
  if (a2) {
88
88
  Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
89
89
  for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
90
90
  }
91
91
  }
92
92
  }
93
- return q2({ addRequiredClass: function() {
94
- A.value = D();
93
+ function Z(e3, a2) {
94
+ const l2 = w(e3);
95
+ if (!l2.isValid()) return null;
96
+ const t2 = l2.startOf("day");
97
+ switch (a2) {
98
+ case "week":
99
+ return t2.subtract((t2.day() + 6) % 7, "day");
100
+ case "month":
101
+ return t2.startOf("month");
102
+ case "quarter":
103
+ return t2.startOf("month").subtract(t2.month() % 3, "month");
104
+ case "year":
105
+ return t2.startOf("year");
106
+ default:
107
+ return t2;
108
+ }
109
+ }
110
+ function ee(e3) {
111
+ const a2 = M.value || {};
112
+ if (true !== a2.dateLimitEnabled) return false;
113
+ let l2 = /* @__PURE__ */ new Date();
114
+ if ("variable" === a2.dateLimitBase) {
115
+ if (!a2.dateLimitVariable) return false;
116
+ const e4 = _.pageContext.entity ? _.pageContext.entity : {};
117
+ if (l2 = x(e4, a2.dateLimitVariable), null == l2 || "" === l2) return false;
118
+ }
119
+ const t2 = a2.dateLimitUnit || "day", r2 = Z(e3, t2), o2 = Z(l2, t2);
120
+ if (!r2 || !o2) return false;
121
+ const u2 = r2.valueOf(), n2 = o2.valueOf();
122
+ switch (a2.dateLimitOperator || "GE") {
123
+ case "GT":
124
+ return u2 <= n2;
125
+ case "GE":
126
+ return u2 < n2;
127
+ case "LT":
128
+ return u2 >= n2;
129
+ case "LE":
130
+ return u2 > n2;
131
+ default:
132
+ return false;
133
+ }
134
+ }
135
+ return Y2({ addRequiredClass: function() {
136
+ q.value = D();
95
137
  } }), (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(U) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(c(M)) }, 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: c(Y)($.value.placeholder), "start-placeholder": c(Y)($.value.placeholder), "end-placeholder": c(Y)($.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(_), { 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: c(Y)($.value.placeholder), "start-placeholder": c(Y)($.value.placeholder), "end-placeholder": c(Y)($.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: c(Y)($.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: c(Y)($.value.placeholder), "start-placeholder": c(Y)($.value.placeholder), "end-placeholder": c(Y)($.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"]);
138
+ const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
139
+ return n(), u(r2, { ref_key: "formItemRef", ref: $, required: M.value.required, class: d(s(U) + (q.value ? " " + q.value : "")), "label-width": M.value.labelWidth, style: i(s(E)) }, c({ default: p(() => ["time" == M.value.dateType || "timerange" == M.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: H, "is-range": "timerange" == M.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: M.value.clearable, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), "unlink-panels": true, format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => Q.value = e4), shortcuts: X.value, type: M.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(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" !== M.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(M.value.dateType) ? (n(), u(s(L), { key: 1, modelValue: Q.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => Q.value = e4), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), size: M.value.size, shortcuts: X.value, "disabled-date": ee, onChange: a2[8] || (a2[8] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(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" === M.value.dateType ? (n(), u(s(O), { key: 2, modelValue: Q.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => Q.value = e4), type: M.value.dateType, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, clearable: M.value.clearable, format: M.value.format, "value-format": M.value.valueFormat, placeholder: s(R)(M.value.placeholder), size: M.value.size, "disabled-date": ee, onChange: a2[15] || (a2[15] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onClear: a2[18] || (a2[18] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), u(t2, { key: 3, ref_key: "componentRef", ref: H, clearable: M.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === M.value.state, readonly: "readonly" === M.value.state, size: M.value.size, placeholder: s(R)(M.value.placeholder), "start-placeholder": s(R)(M.value.placeholder), "end-placeholder": s(R)(M.value.endPlaceholder ? M.value.endPlaceholder : M.value.placeholder), format: M.value.format, "value-format": M.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[19] || (a2[19] = (e4) => Q.value = e4), shortcuts: X.value, type: M.value.dateType, "disabled-date": ee, onChange: a2[20] || (a2[20] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[21] || (a2[21] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[22] || (a2[22] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[23] || (a2[23] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[24] || (a2[24] = (a3) => s(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[25] || (a2[25] = (a3) => s(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 }, [M.value.tittleShow ? { name: "label", fn: p(() => [v("div", { ref_key: "titleRef", ref: J, style: i({ ...s(A), ...s(I) }) }, [M.value.prefixType ? (n(), u(j, { key: 0, pageContext: e3.pageContext, property: M.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(s(R)(M.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
98
140
  };
99
141
  } });
100
142
  export {
101
- q as default
143
+ Y as default
102
144
  };
@@ -1,7 +1,7 @@
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 v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
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 v, createSlots as f, withCtx as y, createVNode as m, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
2
2
  import { SuperIcon as k } from "agilebuilder-ui";
3
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";
4
+ import { getModelFieldFromPageContext as w, isNumberDataType as b, setVariableValue as h, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
6
  import { formatScanRuleSets as D, analysisScanValue as O, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
7
  import q from "../common/title-suffix-element.vue.js";
@@ -15,10 +15,10 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
15
15
  let E = V(F.pageContext, F.configure);
16
16
  if (F.pageContext.modelFieldsMap) {
17
17
  const e3 = w(E, F.pageContext);
18
- e3 && (A.value = h(e3.dataType) ? "number" : "text");
18
+ e3 && (A.value = b(e3.dataType) ? "number" : "text");
19
19
  }
20
20
  const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
21
- b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
21
+ h($, E, e3), null != e3 && "" !== e3 && (G.value = "");
22
22
  } }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
23
23
  let te = false;
24
24
  N() && (te = true);
@@ -35,7 +35,7 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
35
35
  }));
36
36
  const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
37
37
  function ce(e3) {
38
- return b($, E, e3);
38
+ return h($, E, e3);
39
39
  }
40
40
  n(() => {
41
41
  z.$on(W.value + "-scanDone", (e3) => {
@@ -50,7 +50,7 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
50
50
  });
51
51
  const ve = l(false);
52
52
  function fe() {
53
- if (oe || te) {
53
+ if ("disabled" !== ee.value.state && "readonly" !== ee.value.state) if (oe || te) {
54
54
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
55
55
  te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
56
56
  } else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
@@ -60,7 +60,7 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
60
60
  }
61
61
  else ve.value = true;
62
62
  }
63
- function me(e3) {
63
+ function ye(e3) {
64
64
  ve.value = false, ce(e3), S(e3, F.pageContext, F.configure, "afterScanDone");
65
65
  }
66
66
  return B2({ getValue: function() {
@@ -69,10 +69,10 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
69
69
  G.value = L();
70
70
  } }), (e3, l2) => {
71
71
  const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
72
- return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: m(() => [y(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: v(J)(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) => v(S)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
72
+ return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: y(() => [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: v(J)(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) => v(S)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
73
73
  let l3 = _($, E);
74
- null != l3 && (l3 = l3.trim()), b($, E, l3), S(e5, F.pageContext, F.configure, "blur");
75
- }(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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: m(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: me, onCancel: l2[12] || (l2[12] = (e4) => ve.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
74
+ null != l3 && (l3 = l3.trim()), h($, E, l3), S(e5, F.pageContext, F.configure, "blur");
75
+ }(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(S)(l3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: y(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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: y(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: ye, onCancel: l2[12] || (l2[12] = (e4) => ve.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
76
76
  };
77
77
  } });
78
78
  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-c76703c3"]]);
4
+ const t = r(e, [["__scopeId", "data-v-bda987c5"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,36 +1,58 @@
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";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as u, resolveComponent as i, createElementBlock as o, createBlock as a, openBlock as s, normalizeStyle as r, normalizeClass as p, 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 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
- 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) {
3
+ import { getVariableValue as h, formatValueByType as w, getParamNames as T, getValueFromVariable as k } from "../../../../utils/page-helper-util.js";
4
+ import { SuperIcon as C } from "agilebuilder-ui";
5
+ import { getCustomFunc as _, handleAfterInitEvent as I, handleFormEvent as b } from "../../../../utils/events/event-util.js";
6
+ import { $t as V } from "../../../../utils/i18n-util.js";
7
+ const j = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, R = { style: { overflow: "hidden", "white-space": "nowrap" } }, S = ["title"], P = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
8
+ const q = e2, O = q.pageContext.entity ? q.pageContext.entity : {};
9
+ let $ = x(q.pageContext, q.configure);
10
+ const A = q.configure.runtime ? q.configure.runtime : {}, z = A.style, D = A.class, E = A.headerStyle, F = A.appendClass, N = A.appendStyle, W = A.titleExceedStyle, B = t(A.props ? A.props : {});
11
+ const G = t(B.value.options ? B.value.options : []), H = B.value.formatType;
12
+ function J(e3) {
13
+ if (!e3) return "";
14
+ const t2 = T(e3);
15
+ if (0 === t2.length) {
16
+ const t3 = V(e3);
17
+ return "string" == typeof t3 ? t3 : "";
18
+ }
19
+ const l2 = V(e3);
20
+ return "string" == typeof l2 && l2 !== e3 ? function(e4, t3) {
21
+ return t3.reduce((e5, t4) => {
22
+ const l3 = k(O, t4);
23
+ return e5.split(t4).join(null == l3 ? "" : String(l3));
24
+ }, e4);
25
+ }(l2, t2) : e3.split(/(\$\{[^}]+\})/g).map((e4) => {
26
+ if (/^\$\{[^}]+\}$/.test(e4)) {
27
+ const t3 = k(O, e4);
28
+ return null == t3 ? "" : String(t3);
29
+ }
30
+ return e4 ? V(e4) : "";
31
+ }).join("");
32
+ }
33
+ const K = l(() => J(B.value.title)), L = l(() => {
34
+ let e3 = h(O, $);
35
+ if (H) if (B.value.hasOptions) {
14
36
  let t2 = null;
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 = k(S.pageContext, W.value.formatFunc);
18
- t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
19
- } else e3 = w(e3, G, W.value);
37
+ G.value && (t2 = G.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
38
+ } else if ("custom" === H) {
39
+ const t2 = _(q.pageContext, B.value.formatFunc);
40
+ t2 && (e3 = t2.apply(t2, [{ pageContext: q.pageContext, configureObj: q.configure, value: e3 }]));
41
+ } else e3 = w(e3, H, B.value);
20
42
  return e3 = null == e3 ? "" : e3, e3;
21
- }), J = t(null), K = t(null), L = t(null);
43
+ }), M = t(null), Q = t(null), U = t(null);
22
44
  return n(() => {
23
- a(() => {
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 });
45
+ u(() => {
46
+ const e3 = L.value;
47
+ I(e3, q.pageContext, q.configure, { formItemRef: M.value, componentRef: Q.value, titleRef: U.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
26
48
  });
27
- }), R2({ updateOptions: function(e3) {
28
- B.value = e3 || [];
49
+ }), P2({ updateOptions: function(e3) {
50
+ G.value = e3 || [];
29
51
  } }), (e3, t2) => {
30
- const l2 = u("el-form-item");
31
- 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(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(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: 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(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
52
+ const l2 = i("el-form-item");
53
+ return B.value.whetherTitle || B.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: U, class: p(f(D)), style: r(f(z)) }, [c("div", j, v(K.value), 1)], 6)) : B.value.tittleShow ? (s(), a(l2, { key: 1, ref_key: "formItemRef", ref: M, required: !!B.value.required, class: p([f(D), B.value.contentAlign ? "form-item-align-" + B.value.contentAlign : "formNo" === B.value.showType ? "form-item-align-flex-end" : ""]), "label-width": B.value.labelWidth, style: r(f(z)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: Q, onClick: t2[0] || (t2[0] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", R, [B.value.preIconValue || B.value.preText ? (s(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != B.value.iconPosition, "el-input-group__append": "outer" == B.value.iconPosition }), style: r(f(N)) }, [B.value.preIconType && B.value.preIconValue ? (s(), a(f(C), { key: 0, iconType: B.value.preIconType, iconValue: B.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(V)(B.value.preText)), 1)], 6)) : m("", true), d("  " + v(L.value), 1)]), B.value.sufIconValue || B.value.sufText ? (s(), o("span", { key: 0, class: p({ "el-input__suffix": "outer" != B.value.iconPosition, "el-input-group__append": "outer" == B.value.iconPosition }) }, [B.value.sufIconType && B.value.sufIconValue ? (s(), a(f(C), { key: 0, style: {}, iconType: B.value.sufIconType, iconValue: B.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(V)(B.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: U, style: r({ ...f(E), ...f(W) }) }, v(K.value), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(b)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: L.value }, v(B.value.prefixIcon) + " " + v(L.value), 9, S), B.value.suffixTxt ? (s(), o("span", { key: 0, class: p(f(F)), style: r(f(N)) }, v(f(V)(B.value.suffixTxt)), 7)) : m("", true)]));
32
54
  };
33
55
  } });
34
56
  export {
35
- R as default
57
+ P as default
36
58
  };
@@ -1,7 +1,8 @@
1
1
  import e from "./select-runtime.vue2.js";
2
2
  /* empty css */
3
+ /* empty css */
3
4
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(e, [["__scopeId", "data-v-dbb21bd8"]]);
5
+ const r = t(e, [["__scopeId", "data-v-a9e40942"]]);
5
6
  export {
6
7
  r as default
7
8
  };