super-page-runtime 2.3.3 → 2.3.4-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 (35) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +53 -53
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  4. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +1 -2
  7. package/dist/es/components/runtime/utils/page-store.js +10 -10
  8. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  10. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  11. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +7 -12
  12. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +17 -19
  13. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  14. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +34 -34
  16. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  17. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -10
  18. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  20. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
  21. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -47
  22. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  23. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  24. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  25. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  26. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
  27. package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
  28. package/dist/es/components/runtime/views/home-chart.vue.js +24 -22
  29. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  30. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  31. package/dist/es/components/runtime/views/super-page.vue2.js +50 -52
  32. package/dist/es/i18n/langs/cn.js +1 -1
  33. package/dist/es/i18n/langs/en.js +1 -1
  34. package/dist/es/style.css +87 -87
  35. package/package.json +2 -2
@@ -74,7 +74,7 @@ class ExpressionEvaluator {
74
74
  try {
75
75
  return eval(expression);
76
76
  } catch (e) {
77
- return console.error("表达式错误:", expression, e), false;
77
+ return false;
78
78
  }
79
79
  }
80
80
  }
@@ -115,7 +115,6 @@ function summaryStatistics(e, t, r, o) {
115
115
  const e2 = n2.apply(n2, [{ data: t, prop: r }]);
116
116
  a = e2 ? ` ${e2}` : " N/A";
117
117
  } catch (e2) {
118
- console.error("自定义函数脚本错误:", t, e2);
119
118
  }
120
119
  else a = " N/A";
121
120
  } else switch (n) {
@@ -148,8 +147,7 @@ function getHeaderCellStyleUtil(e, t, r) {
148
147
  const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
149
148
  if (a2) try {
150
149
  false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
151
- } catch (r2) {
152
- console.error("自定义函数脚本错误:", t2, e, r2);
150
+ } catch (e2) {
153
151
  }
154
152
  } else copyStyle(o, t2);
155
153
  }));
@@ -165,8 +163,7 @@ function getRowStyleUtil(e, t, r) {
165
163
  if (t3) try {
166
164
  const r2 = t3.apply(t3, [{ data: e }]);
167
165
  null != r2 && false !== r2 && copyStyle(o, a);
168
- } catch (t4) {
169
- console.error("自定义函数脚本错误:", e, t4);
166
+ } catch (e2) {
170
167
  }
171
168
  } else if (a.matchingCondition) {
172
169
  const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
@@ -190,8 +187,7 @@ function getCellStyleUtil(e, t, r) {
190
187
  const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
191
188
  if (t2) try {
192
189
  false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
193
- } catch (t3) {
194
- console.error("自定义函数脚本错误:", e, t3);
190
+ } catch (e2) {
195
191
  }
196
192
  } else if (n.matchingCondition) {
197
193
  const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
@@ -315,7 +311,7 @@ function computeFormula(itemConfs, datas, entity) {
315
311
  r += Number(e2[t]);
316
312
  });
317
313
  } catch (e2) {
318
- console.error("计算错误:", e2), r = 0;
314
+ r = 0;
319
315
  }
320
316
  totalValueMap[e] = r;
321
317
  } else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
@@ -327,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
327
323
  try {
328
324
  data[key] = eval(expr);
329
325
  } catch (e) {
330
- console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
326
+ data[key] = 0;
331
327
  }
332
328
  });
333
329
  });
@@ -367,8 +363,7 @@ function formatCustomFunc(e, t, r, o, a) {
367
363
  if (n) {
368
364
  try {
369
365
  return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
370
- } catch (t2) {
371
- console.error("自定义函数脚本错误:", e, t2);
366
+ } catch (e2) {
372
367
  }
373
368
  return "";
374
369
  }
@@ -1,34 +1,32 @@
1
- import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as r, withCtx as s, createVNode as u, createTextVNode as p, toDisplayString as n } from "vue";
2
- import { packageTemplateFiles as i } from "../../../utils/common-util.js";
3
- const m = "${", c = "}", d = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: d2 }) {
4
- const g = e2, f = d2, b = t([]), h = t([]), x = g.configure.props.base, v = g.pageContext.entity.data;
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as p, withCtx as r, createVNode as s, createTextVNode as u, toDisplayString as i } from "vue";
2
+ import { packageTemplateFiles as n } from "../../../utils/common-util.js";
3
+ const m = "${", d = "}", c = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: c2 }) {
4
+ const g = e2, f = c2, b = t([]), h = t([]), x = g.configure.props.base, v = g.pageContext.entity.data;
5
5
  function w(e3) {
6
6
  let t2, a2, l2 = e3;
7
- const o2 = l2.indexOf(m), r2 = l2.indexOf(c);
8
- return -1 !== o2 && -1 !== r2 ? (o2 > r2 ? l2 = l2.substring(0, r2) + l2.substring(r2 + 1) : (t2 = l2.substring(o2 + 2, r2), a2 = l2.substring(o2, r2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
7
+ const o2 = l2.indexOf(m), p2 = l2.indexOf(d);
8
+ return -1 !== o2 && -1 !== p2 ? (o2 > p2 ? l2 = l2.substring(0, p2) + l2.substring(p2 + 1) : (t2 = l2.substring(o2 + 2, p2), a2 = l2.substring(o2, p2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
9
9
  }
10
10
  function y() {
11
11
  f("close");
12
12
  }
13
13
  return a(() => {
14
- x.templateFiles && x.templateFiles.length > 0 ? b.value = i(x.templateFiles) : x.templateUuid && x.templateName && b.value.push({ templateUuid: x.templateUuid, templateName: x.templateName }), b.value.forEach((e3) => {
15
- e3 && e3.templateName && (e3.templateName = function(e4) {
16
- const t2 = w(e4);
17
- return t2.forEach((t3) => {
18
- const a2 = m + t3 + c;
19
- let l2;
20
- -1 !== e4.indexOf(a2) && v.hasOwnProperty(t3) && (l2 = v[t3] ? v[t3] : "", e4 = e4.replace(a2, l2));
21
- }), e4;
22
- }(e3.templateName));
14
+ x.templateFiles && x.templateFiles.length > 0 ? b.value = n(x.templateFiles) : x.templateUuid && x.templateName && b.value.push({ templateUuid: x.templateUuid, templateName: x.templateName }), b.value.forEach((e3) => {
15
+ var t2;
16
+ e3 && e3.templateName && (e3.templateName = (w(t2 = e3.templateName).forEach((e4) => {
17
+ const a2 = m + e4 + d;
18
+ let l2;
19
+ -1 !== t2.indexOf(a2) && v.hasOwnProperty(e4) && (l2 = v[e4] ? v[e4] : "", t2 = t2.replace(a2, l2));
20
+ }), t2));
23
21
  });
24
22
  }), (e3, t2) => {
25
- const a2 = l("el-table-column"), i2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
26
- return r(), o(c2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: s(() => [u(m2, { data: b.value, style: { width: "100%" } }, { default: s(() => [u(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: s((e4) => [p(n(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), u(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: s((t3) => [u(i2, { type: "text", size: "small", onClick: (e4) => {
23
+ const a2 = l("el-table-column"), n2 = l("el-button"), m2 = l("el-table"), d2 = l("el-dialog");
24
+ return p(), o(d2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: r(() => [s(m2, { data: b.value, style: { width: "100%" } }, { default: r(() => [s(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: r((e4) => [u(i(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: r((t3) => [s(n2, { type: "text", size: "small", onClick: (e4) => {
27
25
  return a3 = t3.row, void f("export", g.configure, a3);
28
26
  var a3;
29
- } }, { default: s(() => [p(n(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
27
+ } }, { default: r(() => [u(i(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
30
28
  };
31
29
  } });
32
30
  export {
33
- d as default
31
+ c as default
34
32
  };
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
19
19
  B.value = l2 ?? 0, R(n2 || i2 || false, e3);
20
20
  }
21
21
  } catch (e3) {
22
- console.error(e3);
23
22
  }
24
23
  }, R = (e3, t2) => {
25
24
  var _a;
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
56
55
  })();
57
56
  b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
57
  } catch (e3) {
59
- console.error(e3);
60
58
  }
61
59
  });
62
60
  }, 100);
@@ -1,7 +1,7 @@
1
- import t from "./tabs-runtime.vue2.js";
1
+ import e from "./tabs-runtime.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-50669d0c"]]);
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = t(e, [["__scopeId", "data-v-df9efce2"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,96 +1,96 @@
1
- import { defineComponent as e, ref as t, watch as n, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as d, Fragment as g, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
1
+ import { defineComponent as e, ref as t, watch as n, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
2
2
  import { ElTabs as x, ElTabPane as C } from "element-plus";
3
3
  import T from "../../object-render.vue.js";
4
4
  import { SuperIcon as E } from "agilebuilder-ui";
5
5
  import { handleAfterInitEvent as k, handleEvent as N } from "../../../../utils/events/event-util.js";
6
6
  import { $t as V } from "../../../../utils/i18n-util.js";
7
7
  import { isPromise as _ } from "../../../../utils/page-helper-util.js";
8
- const w = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
9
- const A = e2, P = t(""), j = t([]);
10
- A.configure.items.forEach((e3) => {
8
+ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
9
+ const P = e2, j = t(""), w = t([]);
10
+ P.configure.items.forEach((e3) => {
11
11
  e3.code || (e3.code = e3.index);
12
- }), P.value = A.configure.props.defaultOpen ? A.configure.props.defaultOpen : 1;
13
- const O = t(null), R = A.configure.runtime ? A.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
12
+ }), j.value = P.configure.props.defaultOpen ? P.configure.props.defaultOpen : 1;
13
+ const O = t(null), R = P.configure.runtime ? P.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
14
14
  function S(e3, t2) {
15
- return N(e3, A.pageContext, A.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
15
+ return N(e3, P.pageContext, P.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
16
16
  }
17
17
  function D(e3, t2) {
18
18
  const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
19
- return A.pageContext.activeTab = o2, A.pageContext.activeLabel = n2.label, N(o2, A.pageContext, A.configure, "tab-click", n2);
19
+ return P.pageContext.activeTab = o2, P.pageContext.activeLabel = n2.label, N(o2, P.pageContext, P.configure, "tab-click", n2);
20
20
  }
21
21
  function F(e3) {
22
22
  const t2 = { paneName: e3 };
23
- return A.pageContext.activeTab = e3, N(e3, A.pageContext, A.configure, "tab-change", t2);
23
+ return P.pageContext.activeTab = e3, N(e3, P.pageContext, P.configure, "tab-change", t2);
24
24
  }
25
25
  function L(e3) {
26
- const t2 = { paneName: e3 }, n2 = N(e3, A.pageContext, A.configure, "tab-remove", t2);
26
+ const t2 = { paneName: e3 }, n2 = N(e3, P.pageContext, P.configure, "tab-remove", t2);
27
27
  _(n2) ? n2.then((t3) => {
28
28
  false !== t3 && U(e3);
29
29
  }) : false !== n2 && U(e3);
30
30
  }
31
31
  function U(e3) {
32
- P.value === e3 && A.configure.items.forEach((t2, n2) => {
32
+ j.value === e3 && P.configure.items.forEach((t2, n2) => {
33
33
  if (t2.code === e3) {
34
- const e4 = A.configure.items[n2 + 1] || A.configure.items[n2 - 1];
35
- e4 && void 0 !== e4.code && (P.value = e4.code);
34
+ const e4 = P.configure.items[n2 + 1] || P.configure.items[n2 - 1];
35
+ e4 && void 0 !== e4.code && (j.value = e4.code);
36
36
  }
37
- }), j.value.includes(e3) || j.value.push(e3);
37
+ }), w.value.includes(e3) || w.value.push(e3);
38
38
  }
39
39
  function q() {
40
- return N(null, A.pageContext, A.configure, "tab-add");
40
+ return N(null, P.pageContext, P.configure, "tab-add");
41
41
  }
42
42
  function G(e3, t2) {
43
43
  const n2 = { paneName: e3, action: t2 };
44
- return N(e3, A.pageContext, A.configure, "edit", n2);
44
+ return N(e3, P.pageContext, P.configure, "edit", n2);
45
45
  }
46
46
  function H() {
47
- const e3 = N(A.configure.items, A.pageContext, A.configure, "tab-reset");
47
+ const e3 = N(P.configure.items, P.pageContext, P.configure, "tab-reset");
48
48
  _(e3) ? e3.then((e4) => {
49
- j.value = [];
50
- }) : false !== e3 && (j.value = []);
49
+ w.value = [];
50
+ }) : false !== e3 && (w.value = []);
51
51
  }
52
- return n(j, (e3) => {
52
+ return n(w, (e3) => {
53
53
  e3 && e3.length > 0 ? e3.forEach((e4) => {
54
54
  const t2 = document.getElementById("tab-" + e4);
55
55
  t2 && (t2.style.display = "none");
56
- }) : A.configure.items.forEach((e4) => {
56
+ }) : P.configure.items.forEach((e4) => {
57
57
  const t2 = document.getElementById("tab-" + e4.code);
58
58
  t2 && (t2.style.display = "");
59
59
  });
60
60
  }, { deep: true }), o(() => {
61
61
  a(() => {
62
62
  let e3 = [];
63
- A.configure.items.forEach((t2) => {
63
+ P.configure.items.forEach((t2) => {
64
64
  t2.code && e3.push(document.getElementById("tab-" + t2.code));
65
- }), k(null, A.pageContext, A.configure, { componentRef: O.value, tabsDom: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
65
+ }), k(null, P.pageContext, P.configure, { componentRef: O.value, tabsDom: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
66
66
  });
67
- }), w2({ thisRef: O, activeName: P, hiddenPanes: j, resetTab: H, hiddenTabPanes: function(e3) {
67
+ }), A2({ thisRef: O, activeName: j, hiddenPanes: w, resetTab: H, hiddenTabPanes: function(e3) {
68
68
  if (Array.isArray(e3)) {
69
69
  const t2 = [];
70
70
  e3.forEach((e4) => {
71
- j.value.includes(e4) || t2.push(e4);
72
- }), t2.length > 0 && j.value.push(...t2);
71
+ w.value.includes(e4) || t2.push(e4);
72
+ }), t2.length > 0 && w.value.push(...t2);
73
73
  }
74
74
  }, showTabPanes: function(e3) {
75
75
  Array.isArray(e3) && e3.forEach((e4) => {
76
- const t2 = j.value.indexOf(e4);
77
- t2 > -1 && j.value.splice(t2, 1);
76
+ const t2 = w.value.indexOf(e4);
77
+ t2 > -1 && w.value.splice(t2, 1);
78
78
  });
79
79
  }, showTabPanesOnly: function(e3) {
80
80
  const t2 = [];
81
- A.configure.items.forEach((n2) => {
81
+ P.configure.items.forEach((n2) => {
82
82
  e3.includes(n2.code) || t2.push(n2.code);
83
- }), j.value = [...new Set(t2)];
83
+ }), w.value = [...new Set(t2)];
84
84
  }, hiddenTabPanesOnly: function(e3) {
85
85
  const t2 = [];
86
- A.configure.items.forEach((n2) => {
86
+ P.configure.items.forEach((n2) => {
87
87
  e3.includes(n2.code) && t2.push(n2.code);
88
- }), j.value = [...new Set(t2)];
88
+ }), w.value = [...new Set(t2)];
89
89
  } }), (e3, t2) => {
90
90
  const n2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(B)), class: r([u(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(g, null, m(A.configure.items, (t3, n3) => (l(), c(u(C), { key: n3, label: t3.label, name: t3.code, style: s({ display: false === t3.show ? "none" : "" }), lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (l(), c(u(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), b("span", { style: s(u(I)) }, y(u(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === P.value ? (l(true), f(g, { key: 0 }, m(t3.items, (t4) => (l(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : d("", true)]), _: 2 }, 1032, ["label", "name", "style", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : d("", true)]), _: 1 })) : d("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
91
+ return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
92
  };
93
93
  } });
94
94
  export {
95
- w as default
95
+ A as default
96
96
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
2
2
  import d from "qrcode";
3
3
  import v from "jsbarcode";
4
4
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
12
12
  let k = y(q.pageContext, q.configure);
13
13
  const A = t({ get: () => x(N, k), set(e3) {
14
14
  h(N, k, e3);
15
- } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
15
+ } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
16
16
  function F(e3) {
17
17
  return h(N, k, e3);
18
18
  }
@@ -22,32 +22,31 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
22
22
  function L(e3) {
23
23
  var t2;
24
24
  "QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
25
- e4 ? console.error(e4) : $.value = t3;
25
+ e4 || ($.value = t3);
26
26
  })) : function(e4) {
27
27
  try {
28
28
  v(I.value, e4, { format: Q.value });
29
29
  } catch (e5) {
30
- console.error("生成条形码时发生错误:", e5);
31
30
  }
32
31
  }(e3);
33
32
  }
34
- return a(() => {
33
+ return r(() => {
35
34
  _.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
36
- o(() => q.pageContext.entity.data[e3], (e4, t2) => {
35
+ l(() => q.pageContext.entity.data[e3], (e4, t2) => {
37
36
  null != e4 && function() {
38
37
  let e5 = true;
39
38
  V.value.forEach((t3) => {
40
39
  q.pageContext.entity.data[t3] || (e5 = false);
41
40
  }), e5 && J(function(e6, t3) {
42
- const r2 = /\$\{(\w+)\}/g;
43
- return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
41
+ const a2 = /\$\{(\w+)\}/g;
42
+ return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
44
43
  }(_.value.generateRule, q.pageContext.entity.data));
45
44
  }();
46
45
  });
47
46
  })) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
48
47
  const t2 = JSON.parse(e3.barcodeModelItems);
49
48
  t2.forEach((e4) => {
50
- "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
49
+ "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
51
50
  if (null != e5) {
52
51
  const e6 = b(t2, q.pageContext.entity.data);
53
52
  e6 && J(e6);
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
55
54
  }));
56
55
  });
57
56
  }).catch((e3) => {
58
- console.error("获取条码规则失败:", e3);
59
57
  })), A.value && L(A.value);
60
58
  }), D2({ getValue: function() {
61
59
  return x(N, k);
62
60
  }, setValue: F }), (e3, t2) => {
63
- const r2 = l("el-form-item");
64
- return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
61
+ const a2 = o("el-form-item");
62
+ return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
65
63
  };
66
64
  } });
67
65
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
2
  import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as E } from "../../../../utils/events/event-util.js";
3
- import { getBaseUrl as D, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
3
+ import { getBaseUrl as D, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as B, popupToPage as P } from "../../../../utils/table-utils.js";
@@ -22,7 +22,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
22
22
  const e3 = Y.systemCode, t2 = Y.code;
23
23
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
24
  null == n2 && (n2 = []);
25
- const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
25
+ const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: De }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
26
  return function(e4) {
27
27
  var _a;
28
28
  ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
@@ -56,7 +56,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
56
56
  }();
57
57
  const re = t(), ue = t(), se = function() {
58
58
  let e3 = oe + "/dsc/commons/list";
59
- e3 && (e3 = R(e3, ee, te, Y.isTest));
59
+ e3 && (e3 = O(e3, ee, te, Y.isTest));
60
60
  return e3;
61
61
  }(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
62
62
  function we() {
@@ -101,7 +101,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
101
101
  let t2;
102
102
  const n2 = y(e3.events, "click");
103
103
  if (n2) {
104
- if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
104
+ if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Oe : "lineEditDelete" === n2 && (t2 = ke), !t2) {
105
105
  t2 = x(Y, e3.events, "click");
106
106
  }
107
107
  } else ie.value[e3.uuid] = e3, t2 = Be;
@@ -136,15 +136,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
136
136
  }) : ue.value.restoreRow(i2, ce);
137
137
  d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
138
138
  }
139
- function Re(e3, t2, n2, o2, i2) {
139
+ function Oe(e3, t2, n2, o2, i2) {
140
140
  const a2 = ie.value.lineEditUpdate, l2 = J;
141
141
  a2.props.base.tableUuid = l2.uuid;
142
142
  const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
143
143
  r2 && (N(r2) ? r2.then((l3) => {
144
- l3 && Oe(e3, t2, n2, o2, i2, a2);
145
- }) : Oe(e3, t2, n2, o2, i2, a2));
144
+ l3 && Re(e3, t2, n2, o2, i2, a2);
145
+ }) : Re(e3, t2, n2, o2, i2, a2));
146
146
  }
147
- function Oe(e3, t2, n2, o2, i2, a2) {
147
+ function Re(e3, t2, n2, o2, i2, a2) {
148
148
  Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
149
149
  if (true === a3.canExecute) {
150
150
  ue.value.editRow(i2, ce);
@@ -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");
@@ -42,7 +42,7 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
42
42
  const t2 = e3.result;
43
43
  x(z, F, t2);
44
44
  }), S.$on(T.value + "-pickFileDone", (e3) => {
45
- T.value, X.value.pickFileDone(e3);
45
+ X.value.pickFileDone(e3);
46
46
  }), n(() => {
47
47
  const e3 = G.value;
48
48
  R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
@@ -7,27 +7,27 @@ import Y from "../common/title-suffix-element.vue.js";
7
7
  import R from "dayjs";
8
8
  import { $t as _ } from "../../../../utils/i18n-util.js";
9
9
  const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
- const z2 = e2, P = z2.pageContext.entity ? z2.pageContext.entity : {}, S = z2.configure.runtime ? z2.configure.runtime : {}, w = S.style, A = S.class, D = S.headerStyle, $ = S.titleExceedStyle, q = a(S.props ? S.props : {});
11
- let I = h(z2.pageContext, z2.configure, q.value.prop);
12
- if (z2.pageContext.modelFieldsMap && I && I.length > 0 && "data" === I[0]) {
13
- const e3 = C(I, z2.pageContext);
10
+ const z2 = e2, P = z2.pageContext.entity ? z2.pageContext.entity : {}, S = z2.configure.runtime ? z2.configure.runtime : {}, w = S.style, A = S.class, D = S.headerStyle, q = S.titleExceedStyle, I = a(S.props ? S.props : {});
11
+ let M = h(z2.pageContext, z2.configure, I.value.prop);
12
+ if (z2.pageContext.modelFieldsMap && M && M.length > 0 && "data" === M[0]) {
13
+ const e3 = C(M, z2.pageContext);
14
14
  e3 && function(e4) {
15
15
  const a2 = e4.dataType;
16
- k(a2) && ("year" === q.value.dateType && "YYYY" === q.value.valueFormat || "month" === q.value.dateType && "YYYY-MM" === q.value.valueFormat) && (q.value.valueFormat = "x");
16
+ k(a2) && ("year" === I.value.dateType && "YYYY" === I.value.valueFormat || "month" === I.value.dateType && "YYYY-MM" === I.value.valueFormat) && (I.value.valueFormat = "x");
17
17
  }(e3);
18
18
  }
19
- let M = null, B = false;
20
- if (q.value.dateType && q.value.dateType.includes("range")) {
21
- B = true;
22
- let e3 = q.value.prop2;
19
+ let B = null, N = false;
20
+ if (I.value.dateType && I.value.dateType.includes("range")) {
21
+ N = true;
22
+ let e3 = I.value.prop2;
23
23
  e3 && e3.startsWith("${") || (e3 = "${page." + z2.configure.uuid + "-2}");
24
24
  const a2 = x(P, e3, null);
25
- if (e3 = e3.substring(2, e3.length - 1), M = e3.split("."), !(a2 || P.data && (P.data.id || P.data.ID)) && q.value.defaultValue2) {
26
- const e4 = x(P, q.value.defaultValue2);
27
- b(P, M, e4);
25
+ if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || P.data && (P.data.id || P.data.ID)) && I.value.defaultValue2) {
26
+ const e4 = x(P, I.value.defaultValue2);
27
+ b(P, B, e4);
28
28
  }
29
29
  }
30
- const N = a(null), U = a(null), W = a(null);
30
+ const U = a(null), W = a(null), $ = a(null);
31
31
  function E(e3, a2) {
32
32
  if (!e3) return e3;
33
33
  if (a2) {
@@ -37,7 +37,7 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
37
37
  let t2 = null;
38
38
  return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), t2;
39
39
  } catch (a3) {
40
- return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${q.value.valueFormat}`), e3;
40
+ return e3;
41
41
  }
42
42
  }
43
43
  return e3;
@@ -45,30 +45,30 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
45
45
  if (l(() => {
46
46
  t(() => {
47
47
  const e3 = O.value;
48
- T(e3, z2.pageContext, z2.configure, { formItemRef: N.value, componentRef: U.value, titleRef: W.value, value: e3, entity: z2.pageContext.entity.data, pageData: z2.pageContext.entity.page });
48
+ T(e3, z2.pageContext, z2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: z2.pageContext.entity.data, pageData: z2.pageContext.entity.page });
49
49
  });
50
- }), I) {
51
- const e3 = F(P, I), a2 = E(e3, q.value.valueFormat);
52
- e3 !== a2 && b(P, I, a2);
53
- }
54
- if (M) {
55
- const e3 = F(P, M), a2 = E(e3, q.value.valueFormat);
50
+ }), M) {
51
+ const e3 = F(P, M), a2 = E(e3, I.value.valueFormat);
56
52
  e3 !== a2 && b(P, M, a2);
57
53
  }
54
+ if (B) {
55
+ const e3 = F(P, B), a2 = E(e3, I.value.valueFormat);
56
+ e3 !== a2 && b(P, B, a2);
57
+ }
58
58
  const O = o({ get() {
59
- if (B) {
59
+ if (N) {
60
60
  const e3 = [];
61
- let a2 = F(P, I);
62
- e3.push(E(a2, q.value.valueFormat));
63
- let l2 = F(P, M);
64
- return e3.push(E(l2, q.value.valueFormat)), e3;
61
+ let a2 = F(P, M);
62
+ e3.push(E(a2, I.value.valueFormat));
63
+ let l2 = F(P, B);
64
+ return e3.push(E(l2, I.value.valueFormat)), e3;
65
65
  }
66
- return E(F(P, I), q.value.valueFormat);
66
+ return E(F(P, M), I.value.valueFormat);
67
67
  }, set(e3) {
68
- B ? Array.isArray(e3) ? (b(P, I, e3[0]), b(P, M, e3[1])) : null === e3 && (b(P, I, null), b(P, M, null)) : b(P, I, e3);
69
- } }), G = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
70
- if (q.value.shortcutsFunc) {
71
- const e3 = V(z2.pageContext, q.value.shortcutsFunc);
68
+ N ? Array.isArray(e3) ? (b(P, M, e3[0]), b(P, B, e3[1])) : null === e3 && (b(P, M, null), b(P, B, null)) : b(P, M, e3);
69
+ } }), G = a(y(I.value.dateScopeDetails, I.value.sourceType, I.value.dateType));
70
+ if (I.value.shortcutsFunc) {
71
+ const e3 = V(z2.pageContext, I.value.shortcutsFunc);
72
72
  if (e3) {
73
73
  let a2 = e3.apply(e3, [{ pageContext: z2.pageContext, configureObj: z2.configure }]);
74
74
  if (a2) {
@@ -79,7 +79,7 @@ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
79
79
  }
80
80
  return (e3, a2) => {
81
81
  const l2 = r("el-time-picker"), t2 = r("el-date-picker"), o2 = r("el-form-item");
82
- return n(), u(o2, { ref_key: "formItemRef", ref: N, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: W, style: i({ ...s(D), ...s($) }) }, [q.value.prefixType ? (n(), u(Y, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: U, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, "unlink-panels": true, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: q.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: U, clearable: q.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: q.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"]);
82
+ return n(), u(o2, { ref_key: "formItemRef", ref: U, required: I.value.required, class: p(s(A)), "label-width": I.value.labelWidth, style: i(s(w)) }, { label: c(() => [I.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(D), ...s(q) }) }, [I.value.prefixType ? (n(), u(Y, { key: 0, pageContext: e3.pageContext, property: I.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(I.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == I.value.dateType || "timerange" == I.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == I.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: I.value.clearable, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, "unlink-panels": true, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: I.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: W, clearable: I.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: I.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"]);
83
83
  };
84
84
  } });
85
85
  export {