super-page-runtime 2.3.10 → 2.3.12-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 (44) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +57 -57
  3. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +3 -3
  4. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  5. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  6. package/dist/es/components/runtime/utils/events/standard-event.js +232 -226
  7. package/dist/es/components/runtime/utils/events/validator-util.d.ts +2 -1
  8. package/dist/es/components/runtime/utils/events/validator-util.js +13 -10
  9. package/dist/es/components/runtime/utils/page-init-util.js +24 -25
  10. package/dist/es/components/runtime/utils/page-store.js +10 -10
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -8
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -10
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
  22. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +11 -11
  24. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
  25. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -94
  26. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +144 -144
  27. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  28. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  29. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  30. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
  31. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -2
  32. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +41 -36
  33. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  34. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
  35. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +34 -35
  36. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  37. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  38. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +14 -15
  39. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  40. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  41. package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
  42. package/dist/es/style.css +5 -5
  43. package/package.json +2 -2
  44. package/dist/es.zip +0 -0
@@ -176,27 +176,27 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
176
176
  d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
177
177
  }
178
178
  }
179
- function Ve(e3) {
180
- if (!Y.dataTypeMaps) return;
181
- const t2 = Y.dataTypeMaps;
182
- let n2 = [];
183
- if (e3) for (var o2 in e3) {
184
- const a2 = e3[o2];
185
- if (null != a2 && "" !== a2) if (a2 instanceof Array) {
186
- if (a2.length > 0) {
179
+ function Ve(e3, t2) {
180
+ if (!t2 && !Y.dataTypeMaps) return;
181
+ const n2 = t2 || Y.dataTypeMaps;
182
+ let o2 = [];
183
+ if (e3) for (var i2 in e3) {
184
+ const t3 = e3[i2];
185
+ if (null != t3 && "" !== t3) if (t3 instanceof Array) {
186
+ if (t3.length > 0) {
187
187
  const e4 = [];
188
- for (var i2 = 0; i2 < a2.length; i2++) {
189
- const n3 = {};
190
- n3.leftBracket = 0 === i2 ? "((" : "(", n3.propName = o2, n3.propDbName = o2, n3.dataType = t2[o2] ? t2[o2] : "TEXT", n3.operator = "EQ", n3.propValue = a2[i2], i2 === a2.length - 1 ? (n3.rightBracket = "))", n3.joinSign = "and") : (n3.rightBracket = ")", n3.joinSign = "or"), e4.push(n3);
188
+ for (var a2 = 0; a2 < t3.length; a2++) {
189
+ const o3 = {};
190
+ o3.leftBracket = 0 === a2 ? "((" : "(", o3.propName = i2, o3.propDbName = i2, o3.dataType = n2[i2] ? n2[i2] : "TEXT", o3.operator = "EQ", o3.propValue = t3[a2], a2 === t3.length - 1 ? (o3.rightBracket = "))", o3.joinSign = "and") : (o3.rightBracket = ")", o3.joinSign = "or"), e4.push(o3);
191
191
  }
192
- n2 = n2.concat(e4);
192
+ o2 = o2.concat(e4);
193
193
  }
194
194
  } else {
195
195
  const e4 = { leftBracket: "(" };
196
- e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, Ze(e4, o2), e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
196
+ e4.propName = i2, e4.propDbName = i2, e4.dataType = n2[i2] ? n2[i2] : "TEXT", e4.operator = "EQ", e4.propValue = t3, Ze(e4, i2), e4.rightBracket = ")", e4.joinSign = "and", o2.push(e4);
197
197
  }
198
198
  }
199
- ue.value.toolbarRefresh(null, null, n2);
199
+ ue.value.toolbarRefresh(null, null, o2);
200
200
  }
201
201
  function je(e3) {
202
202
  const t2 = Ne();
@@ -207,7 +207,6 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
207
207
  }
208
208
  function Ne() {
209
209
  if (!ue.value) return;
210
- Q.configure.name, Q.configure;
211
210
  const e3 = U(Q.pageContext, Q.configure);
212
211
  if (e3) {
213
212
  if (e3.isCalcHeight) {
@@ -283,7 +282,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
283
282
  }
284
283
  n(() => {
285
284
  const e3 = Ke();
286
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
285
+ ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
287
286
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
288
287
  }), F.$on(pe + "_close-dialog-get-entity", () => {
289
288
  F.$emit(pe + "_close-super-dialog");
@@ -365,7 +364,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
365
364
  }, getTableData: function() {
366
365
  var _a;
367
366
  return (_a = ue.value) == null ? void 0 : _a.getTableData();
368
- } }), (e3, t2) => {
367
+ }, searchGridData: Ve }), (e3, t2) => {
369
368
  const n2 = a("super-grid");
370
369
  return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
371
370
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as o, createBlock as a, createCommentVNode as l, unref as r } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as a, createBlock as o, createCommentVNode as l, unref as r } from "vue";
2
2
  import i from "./sub-table-runtime.vue.js";
3
3
  import c from "./main-table-runtime.vue.js";
4
4
  const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
@@ -72,7 +72,10 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
72
72
  }, addRequiredClass: function(e3, t2, n2) {
73
73
  var _a;
74
74
  (_a = b.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
75
- } }), (e3, t2) => (o(), u("div", null, [r(g) && "form" === r(g) && C.value ? (o(), a(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (o(), a(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
75
+ }, searchGridData: function(e3, t2) {
76
+ var _a;
77
+ (_a = b.value) == null ? void 0 : _a.searchGridData(e3, t2);
78
+ } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
76
79
  } });
77
80
  export {
78
81
  f as default
@@ -1,62 +1,67 @@
1
- import { defineComponent as e, ref as t, computed as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as m, withCtx as d, resolveDynamicComponent as g, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
3
  import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
5
5
  import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
6
- import { getListCode as _, addRequiredClassUtil as D } from "../../../../utils/common-util.js";
7
- import { getComponentRef as E } from "../../../../utils/global-refs.js";
6
+ import { getListCode as _ } from "../../../../utils/common-util.js";
7
+ import { getComponentRef as D } from "../../../../utils/global-refs.js";
8
8
  import { getAdditionalParamMap as w } from "../../../../utils/events/standard-event.js";
9
- import { $t as S } from "../../../../utils/i18n-util.js";
10
- import U from "../../../../utils/eventBus.js";
11
- import { functions as F } from "../../../../utils/api/page-expose-util.js";
12
- const q = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
- const z = e2, G = t(null), H = z.pageContext.entity ? z.pageContext.entity : {}, P = C(z.pageContext, z.configure), I = o({ get: () => y(H, P), set(e3) {
14
- x(H, P, e3), null != e3 && (G.value = "");
15
- } }), A = z.configure.runtime ? z.configure.runtime : {}, B = A.style, W = A.class, J = A.headerStyle, K = t(A.props ? A.props : {}), L = function(e3) {
9
+ import { $t as E } from "../../../../utils/i18n-util.js";
10
+ import F from "../../../../utils/eventBus.js";
11
+ import { functions as S } from "../../../../utils/api/page-expose-util.js";
12
+ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
+ const O = e2, z = O.pageContext.entity ? O.pageContext.entity : {}, G = C(O.pageContext, O.configure), H = t({ get: () => y(z, G), set(e3) {
14
+ x(z, G, e3);
15
+ } }), P = O.configure.runtime ? O.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
16
16
  let t2 = {};
17
17
  if (e3) for (let o2 in e3) {
18
- const a2 = e3[o2];
19
- t2[o2] = b(z.pageContext, a2);
18
+ const n2 = e3[o2];
19
+ t2[o2] = b(O.pageContext, n2);
20
20
  }
21
21
  return t2;
22
- }(A.customParams ? A.customParams : {}), M = w(z.pageContext), N = t(z.configure.props && z.configure.props.base ? z.configure.props.base.name : null);
23
- function Q(e3, t2) {
24
- j(H, e3, t2);
22
+ }(P.customParams ? P.customParams : {}), K = w(O.pageContext), L = o(O.configure.props && O.configure.props.base ? O.configure.props.base.name : null);
23
+ function M(e3, t2) {
24
+ j(z, e3, t2);
25
25
  }
26
- function T(e3) {
27
- F.isHasFieldAuthPermission(z.configure) ? V(z.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", P ? P.join(".") : "");
26
+ function N(e3) {
27
+ S.isHasFieldAuthPermission(O.configure) && V(O.pageContext, e3);
28
28
  }
29
- function X() {
30
- const e3 = z.pageContext.tableUuids;
29
+ function Q() {
30
+ const e3 = O.pageContext.tableUuids;
31
31
  e3 && e3.forEach((e4) => {
32
- const t2 = _(z.pageContext.code, z.pageContext.version, z.configure.uuid), o2 = E(z.pageContext, e4);
32
+ const t2 = _(O.pageContext.code, O.pageContext.version, O.configure.uuid), o2 = D(O.pageContext, e4);
33
33
  o2 && o2.restoreGridEdit(t2);
34
34
  });
35
35
  }
36
- z.configure.props.verification.custom && z.configure.props.verification.custom.enabled && (z.pageContext.customValidatorUuids || (z.pageContext.customValidatorUuids = []), z.pageContext.customValidatorUuids.push(z.configure.uuid));
37
- const Y = z.pageContext.code, Z = t(P && P.length > 0 ? Y + "__" + P.join("__") : null), ee = t(null), te = t(null), oe = t(null);
38
- function ae(e3) {
39
- k(I.value, z.pageContext, z.configure, e3);
36
+ O.configure.props.verification.custom && O.configure.props.verification.custom.enabled && (O.pageContext.customValidatorUuids || (O.pageContext.customValidatorUuids = []), O.pageContext.customValidatorUuids.push(O.configure.uuid));
37
+ const T = O.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
38
+ function te(e3) {
39
+ k(H.value, O.pageContext, O.configure, e3);
40
40
  }
41
- return a(() => {
42
- U.$on(Z.value + "-scanDone", (e3) => {
41
+ return n(() => {
42
+ F.$on(X.value + "-scanDone", (e3) => {
43
43
  const t2 = e3.result;
44
- x(H, P, t2);
45
- }), U.$on(Z.value + "-pickFileDone", (e3) => {
46
- Z.value, ee.value.pickFileDone(e3);
47
- }), n(() => {
48
- const e3 = I.value;
49
- R(e3, z.pageContext, z.configure, { formItemRef: te.value, componentRef: ee.value, titleRef: oe.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
44
+ x(z, G, t2);
45
+ }), F.$on(X.value + "-pickFileDone", (e3) => {
46
+ Y.value.pickFileDone(e3);
47
+ }), a(() => {
48
+ const e3 = H.value;
49
+ R(e3, O.pageContext, O.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
50
50
  });
51
51
  }), i(() => {
52
- U.$off(Z.value + "-scanDone"), U.$off(Z.value + "-pickFileDone");
52
+ F.$off(X.value + "-scanDone"), F.$off(X.value + "-pickFileDone");
53
53
  }), $2({ getCustomRef: function() {
54
- return ee.value;
54
+ return Y.value;
55
+ }, invokeCustomFunction: function(e3, ...t2) {
56
+ if (Y.value && "function" == typeof Y.value[e3]) return Y.value[e3](...t2);
57
+ throw new Error(`执行失败:Function '${e3}' not found in custom component`);
58
+ }, hasCustomFunction: function(e3) {
59
+ return Y.value && "function" == typeof Y.value[e3];
55
60
  }, addRequiredClass: function() {
56
- G.value = D();
61
+ requiredClass.value = addRequiredClassUtil();
57
62
  } }), (e3, t2) => {
58
63
  const o2 = u("el-form-item");
59
- return K.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: te, required: K.value.required, class: g(m(W) + (G.value ? " " + G.value : "")), "label-width": K.value.labelWidth, style: c(m(B)) }, { label: d(() => [K.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: oe, style: c({ ...m(J) }) }, v(m(S)(K.value.title)), 5)) : s("", true)]), default: d(() => [N.value ? (p(), r("div", q, [(p(), l(f(N.value), { ref_key: "customRef", ref: ee, size: K.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(L), modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), disabled: "disabled" === K.value.state, "additional-param-map": m(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: t2[1] || (t2[1] = (t3) => m(k)(I.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : N.value ? (p(), r("div", O, [(p(), l(f(N.value), { ref_key: "customRef", ref: ee, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(L), modelValue: I.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => I.value = e4), disabled: "disabled" === K.value.state, "additional-param-map": m(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: t2[3] || (t2[3] = (t3) => m(k)(I.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
64
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: f(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(E)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", U, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", q, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
60
65
  };
61
66
  } });
62
67
  export {
@@ -1,4 +1,4 @@
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 p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
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 p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
4
  import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
@@ -8,24 +8,24 @@ import Y from "dayjs";
8
8
  import { $t as _ } from "../../../../utils/i18n-util.js";
9
9
  import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
10
10
  const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
11
- const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, $ = A.class, I = A.headerStyle, M = A.titleExceedStyle, B = a(A.props ? A.props : {});
12
- let N = h(S.pageContext, S.configure, B.value.prop);
13
- if (S.pageContext.modelFieldsMap && N && N.length > 0 && "data" === N[0]) {
14
- const e3 = C(N, S.pageContext);
11
+ const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, I = A.class, M = A.headerStyle, B = A.titleExceedStyle, N = a(A.props ? A.props : {});
12
+ let U = h(S.pageContext, S.configure, N.value.prop);
13
+ if (S.pageContext.modelFieldsMap && U && U.length > 0 && "data" === U[0]) {
14
+ const e3 = C(U, S.pageContext);
15
15
  e3 && function(e4) {
16
16
  const a2 = e4.dataType;
17
- k(a2) && ("year" === B.value.dateType && "YYYY" === B.value.valueFormat || "month" === B.value.dateType && "YYYY-MM" === B.value.valueFormat) && (B.value.valueFormat = "x");
17
+ k(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
18
18
  }(e3);
19
19
  }
20
- let U = null, W = false;
21
- if (B.value.dateType && B.value.dateType.includes("range")) {
22
- W = true;
23
- let e3 = B.value.prop2;
20
+ let W = null, $ = false;
21
+ if (N.value.dateType && N.value.dateType.includes("range")) {
22
+ $ = true;
23
+ let e3 = N.value.prop2;
24
24
  e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
25
25
  const a2 = x(q, e3, null);
26
- if (e3 = e3.substring(2, e3.length - 1), U = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && B.value.defaultValue2) {
27
- const e4 = x(q, B.value.defaultValue2);
28
- b(q, U, e4);
26
+ if (e3 = e3.substring(2, e3.length - 1), W = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && N.value.defaultValue2) {
27
+ const e4 = x(q, N.value.defaultValue2);
28
+ b(q, W, e4);
29
29
  }
30
30
  }
31
31
  const E = a(null), O = a(null), G = a(null);
@@ -38,7 +38,7 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
38
38
  let t2 = null;
39
39
  return t2 = "x" === a2 ? l2.toDate().getTime() : Y(e3).format(a2), t2;
40
40
  } catch (a3) {
41
- return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${B.value.valueFormat}`), e3;
41
+ return e3;
42
42
  }
43
43
  }
44
44
  return e3;
@@ -48,28 +48,28 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
48
48
  const e3 = J.value;
49
49
  T(e3, S.pageContext, S.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
50
50
  });
51
- }), N) {
52
- const e3 = F(q, N), a2 = H(e3, B.value.valueFormat);
53
- e3 !== a2 && b(q, N, a2);
54
- }
55
- if (U) {
56
- const e3 = F(q, U), a2 = H(e3, B.value.valueFormat);
51
+ }), U) {
52
+ const e3 = F(q, U), a2 = H(e3, N.value.valueFormat);
57
53
  e3 !== a2 && b(q, U, a2);
58
54
  }
55
+ if (W) {
56
+ const e3 = F(q, W), a2 = H(e3, N.value.valueFormat);
57
+ e3 !== a2 && b(q, W, a2);
58
+ }
59
59
  const J = o({ get() {
60
- if (W) {
60
+ if ($) {
61
61
  const e3 = [];
62
- let a2 = F(q, N);
63
- e3.push(H(a2, B.value.valueFormat));
64
- let l2 = F(q, U);
65
- return e3.push(H(l2, B.value.valueFormat)), e3;
62
+ let a2 = F(q, U);
63
+ e3.push(H(a2, N.value.valueFormat));
64
+ let l2 = F(q, W);
65
+ return e3.push(H(l2, N.value.valueFormat)), e3;
66
66
  }
67
- return H(F(q, N), B.value.valueFormat);
67
+ return H(F(q, U), N.value.valueFormat);
68
68
  }, set(e3) {
69
- W ? Array.isArray(e3) ? (b(q, N, e3[0]), b(q, U, e3[1]), w.value = "") : null === e3 && (b(q, N, null), b(q, U, null)) : (b(q, N, e3), null != e3 && (w.value = ""));
70
- } }), K = a(y(B.value.dateScopeDetails, B.value.sourceType, B.value.dateType));
71
- if (B.value.shortcutsFunc) {
72
- const e3 = V(S.pageContext, B.value.shortcutsFunc);
69
+ $ ? Array.isArray(e3) ? (b(q, U, e3[0]), b(q, W, e3[1]), w.value = "") : null === e3 && (b(q, U, null), b(q, W, null)) : (b(q, U, e3), null != e3 && (w.value = ""));
70
+ } }), K = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
71
+ if (N.value.shortcutsFunc) {
72
+ const e3 = V(S.pageContext, N.value.shortcutsFunc);
73
73
  if (e3) {
74
74
  let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
75
75
  if (a2) {
@@ -81,8 +81,8 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
81
81
  return P2({ addRequiredClass: function() {
82
82
  w.value = z();
83
83
  } }), (e3, a2) => {
84
- const l2 = r("el-time-picker"), t2 = r("el-date-picker"), o2 = r("el-form-item");
85
- return n(), u(o2, { ref_key: "formItemRef", ref: E, required: B.value.required, class: p(s($) + (w.value ? " " + w.value : "")), "label-width": B.value.labelWidth, style: i(s(D)) }, { label: c(() => [B.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(I), ...s(M) }) }, [B.value.prefixType ? (n(), u(R, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(B.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == B.value.dateType || "timerange" == B.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == B.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: B.value.clearable, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, "unlink-panels": true, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: B.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(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"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: O, clearable: B.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: B.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
84
+ const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
85
+ return n(), r(o2, { ref_key: "formItemRef", ref: E, required: N.value.required, class: p(s(I) + (w.value ? " " + w.value : "")), "label-width": N.value.labelWidth, style: i(s(D)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(M), ...s(B) }) }, [N.value.prefixType ? (n(), r(R, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(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"])) : (n(), r(t2, { key: 1, ref_key: "componentRef", ref: O, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
86
86
  };
87
87
  } });
88
88
  export {
@@ -1,70 +1,72 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as d, unref as v, withCtx as m, createElementBlock as f, toDisplayString as c } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
- import b from "agilebuilder-ui/src/utils/request";
5
- import { FsUploadNew as w } from "agilebuilder-ui";
6
- import x from "../../../../utils/eventBus.js";
7
- import { $t as k } from "../../../../utils/i18n-util.js";
4
+ import w from "agilebuilder-ui/src/utils/request";
5
+ import { FsUploadNew as b } from "agilebuilder-ui";
6
+ import k from "../../../../utils/eventBus.js";
7
+ import { $t as x } from "../../../../utils/i18n-util.js";
8
8
  import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
9
  const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
10
- const j = e2, N = l(null), R = j.configure.runtime ? j.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, S = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = K(q.prop), U = K(q.propName);
11
- F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
12
- J(h(S, F));
10
+ var _a, _b, _c, _d, _e, _f, _g;
11
+ const j = e2, N = l(null), S = j.configure.runtime ? j.configure.runtime : {}, R = l(S.props ? S.props : {}), T = S.style, z = S.class, D = S.headerStyle, I = S.titleExceedStyle, O = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = L(q.prop), W = L(q.propName);
12
+ let U = l({});
13
+ U.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", U.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
14
+ K(h(O, F));
13
15
  });
14
- const $ = j.pageContext.code, W = l(F ? $ + "__" + F.join("__") : null), B = h(S, F), E = l(null), A = l(false), G = l([]), H = l({});
15
- function J(e3) {
16
+ const $ = j.pageContext.code, B = l(F ? $ + "__" + F.join("__") : null), E = h(O, F), A = l(null), G = l(false), H = l([]), J = l({});
17
+ function K(e3) {
16
18
  if (e3) {
17
19
  const l2 = e3.split(",");
18
20
  if (l2.length > 0) {
19
21
  const e4 = j.pageContext.backendUrl;
20
- b.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
21
- G.value = [];
22
+ w.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
23
+ H.value = [];
22
24
  const t2 = [];
23
- for (let o2 = 0; o2 < l2.length; o2++) {
24
- const a2 = l2[o2];
25
- t2.push(e5[a2]), G.value.push({ showName: e5[a2], serverPath: a2 });
25
+ for (let a2 = 0; a2 < l2.length; a2++) {
26
+ const o2 = l2[a2];
27
+ t2.push(e5[o2]), H.value.push({ showName: e5[o2], serverPath: o2 });
26
28
  }
27
- "input" === T.value.displayType && (H.value.showName = t2.join(","), H.value.serverPath = l2.join(","));
29
+ "input" === R.value.displayType && (J.value.showName = t2.join(","), J.value.serverPath = l2.join(","));
28
30
  }).finally(() => {
29
- A.value = true;
31
+ G.value = true;
30
32
  });
31
- } else A.value = true;
32
- } else G.value = [], H.value = {}, A.value = true;
33
+ } else G.value = true;
34
+ } else H.value = [], J.value = {}, G.value = true;
33
35
  }
34
- function K(e3) {
36
+ function L(e3) {
35
37
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
36
38
  }
37
- function L(e3) {
39
+ function M(e3) {
38
40
  return C(e3);
39
41
  }
40
- J(B);
41
- const M = (e3, l2, t2) => {
42
- V();
43
- }, Q = (e3) => {
44
- V();
45
- }, V = () => {
42
+ K(E);
43
+ const Q = (e3, l2, t2) => {
44
+ X();
45
+ }, V = (e3) => {
46
+ X();
47
+ }, X = () => {
46
48
  const e3 = [], l2 = [];
47
- if (T.value.limit && G.value.length > T.value.limit) {
48
- const e4 = G.value.length - T.value.limit;
49
- for (let l3 = 0; l3 < e4; l3++) G.value.shift();
49
+ if (R.value.limit && H.value.length > R.value.limit) {
50
+ const e4 = H.value.length - R.value.limit;
51
+ for (let l3 = 0; l3 < e4; l3++) H.value.shift();
50
52
  }
51
- for (let t2 = 0; t2 < G.value.length; t2++) e3.push(G.value[t2].showName), l2.push(G.value[t2].serverPath);
52
- y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (N.value = "");
53
- }, X = l(null), Y = l(null);
54
- return o(() => {
55
- x.$on(W.value + "-pickFileDone", (e3) => {
56
- W.value, E.value.pickFileDone(e3);
57
- }), a(() => {
58
- const e3 = h(S, F), l2 = { showName: h(S, U), serverPath: e3 };
59
- g(l2, j.pageContext, j.configure, { formItemRef: X.value, componentRef: E.value, titleRef: Y.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
53
+ for (let t2 = 0; t2 < H.value.length; t2++) e3.push(H.value[t2].showName), l2.push(H.value[t2].serverPath);
54
+ y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, W, e3.join(",")), l2.length > 0 && (N.value = "");
55
+ }, Y = l(null), Z = l(null);
56
+ return a(() => {
57
+ k.$on(B.value + "-pickFileDone", (e3) => {
58
+ A.value.pickFileDone(e3);
59
+ }), o(() => {
60
+ const e3 = h(O, F), l2 = { showName: h(O, W), serverPath: e3 };
61
+ g(l2, j.pageContext, j.configure, { formItemRef: Y.value, componentRef: A.value, titleRef: Z.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
60
62
  });
61
63
  }), i(() => {
62
- x.$off(W.value + "-pickFileDone");
64
+ k.$off(B.value + "-pickFileDone");
63
65
  }), _2({ addRequiredClass: function() {
64
66
  N.value = P();
65
67
  } }), (e3, l2) => {
66
68
  const t2 = n("el-form-item");
67
- return T.value.tittleShow ? (p(), s(t2, { key: 0, ref_key: "formItemRef", ref: X, required: T.value.required, class: d(v(D) + (N.value ? " " + N.value : "")), "label-width": T.value.labelWidth, style: r(v(z)) }, { label: m(() => [T.value.tittleShow ? (p(), f("div", { key: 0, ref_key: "titleRef", ref: Y, style: r({ ...v(I), ...v(O) }) }, c(v(k)(T.value.title)), 5)) : u("", true)]), default: m(() => [A.value ? (p(), s(v(w), { key: 0, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : A.value ? (p(), s(v(w), { key: 1, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
69
+ return R.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Y, required: R.value.required, class: d(m(z) + (N.value ? " " + N.value : "")), "label-width": R.value.labelWidth, style: p(m(T)) }, { label: v(() => [R.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: Z, style: p({ ...m(D), ...m(I) }) }, c(m(x)(R.value.title)), 5)) : r("", true)]), default: v(() => [G.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : G.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
68
70
  };
69
71
  } });
70
72
  export {