super-page-runtime 2.3.35 → 2.3.36-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 (71) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +35 -36
  4. package/dist/es/components/runtime/utils/events/standard-event.js +37 -37
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  23. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +19 -19
  26. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  31. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  36. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +21 -21
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +10 -11
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  49. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +14 -16
  50. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
  53. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  54. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  56. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -1
  57. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +14 -16
  60. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  62. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  63. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  66. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  67. package/dist/es/components/runtime/views/super-page.vue2.js +18 -19
  68. package/dist/es/i18n/langs/cn.js +1 -1
  69. package/dist/es/i18n/langs/en.js +1 -1
  70. package/dist/es/style.css +5 -0
  71. package/package.json +2 -2
@@ -1,22 +1,22 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as i, resolveComponent as a, createBlock as u, openBlock as p, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as a, resolveComponent as i, createBlock as p, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as m, createElementBlock as c, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { handleAfterInitEvent as C, handleFormEvent as S } from "../../../../utils/events/event-util.js";
4
4
  import F from "../common/title-suffix-element.vue.js";
5
- import { $t as b } from "../../../../utils/i18n-util.js";
6
- import { setVariableValue as k, getVariableValue as w, getFormPropName as z, getValueFromVariable as R } from "../../../../utils/page-helper-util.js";
7
- import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
8
- const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
- const I = e2, T = t(null), q = t([]), W = I.pageContext.entity ? I.pageContext.entity : {};
5
+ import { $t as I } from "../../../../utils/i18n-util.js";
6
+ import { setVariableValue as b, getVariableValue as k, getFormPropName as w, getValueFromVariable as z } from "../../../../utils/page-helper-util.js";
7
+ import { addRequiredClassUtil as R } from "../../../../utils/common-util.js";
8
+ const j = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
9
+ const _ = e2, T = t(null), q = t([]), W = _.pageContext.entity ? _.pageContext.entity : {};
10
10
  W.data || (W.data = {});
11
11
  const M = W.data, O = W.page;
12
- let $ = h(I.pageContext, I.configure);
13
- const D = $.length > 0 ? $[$.length - 1] : I.configure.uuid, E = I.configure.runtime ? I.configure.runtime : {}, V = t(E.props ? E.props : {}), A = E.style, B = E.class, G = E.headerStyle, H = E.titleExceedStyle;
12
+ let $ = h(_.pageContext, _.configure);
13
+ const D = $.length > 0 ? $[$.length - 1] : _.configure.uuid, E = _.configure.runtime ? _.configure.runtime : {}, V = t(E.props ? E.props : {}), A = E.style, B = E.class, G = E.headerStyle, H = E.titleExceedStyle;
14
14
  E.props.deptScope && ("field" == E.props.deptScope && E.props.deptScopeField ? (Y(), function(e3, t2) {
15
15
  if (0 === e3.indexOf("${fixed.")) return;
16
16
  const l2 = e3.match(/\${(.*?)}/);
17
17
  if (!l2) return;
18
18
  const o2 = l2 ? l2[1].split(".") : [];
19
- o2 && o2.length > 0 && i(() => o2.reduce((e4, t3) => e4[t3], I.pageContext.entity), (e4, l3) => {
19
+ o2 && o2.length > 0 && a(() => o2.reduce((e4, t3) => e4[t3], _.pageContext.entity), (e4, l3) => {
20
20
  t2(e4, l3);
21
21
  });
22
22
  }(E.props.deptScopeField, (e3, t2) => {
@@ -26,30 +26,30 @@ const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {
26
26
  l(() => {
27
27
  o(() => {
28
28
  const e3 = M ? M[D] : null;
29
- C(e3, I.pageContext, I.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: I.pageContext.entity.data, pageData: I.pageContext.entity.page });
29
+ C(e3, _.pageContext, _.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
30
30
  });
31
31
  });
32
- const N = n({ get: () => w(W, $), set(e3) {
33
- k(W, $, e3), null != e3 && (T.value = "");
32
+ const N = n({ get: () => k(W, $), set(e3) {
33
+ b(W, $, e3), null != e3 && (T.value = "");
34
34
  } }), P = V.value.autoSetFields ? V.value.autoSetFields : [];
35
35
  let Q = null;
36
36
  function U(e3, t2) {
37
- Q ? Q === e3 && ($.length > 0 ? S(w(W, $), I.pageContext, I.configure, "change") : S(t2, I.pageContext, I.configure, "change")) : e3 === D && S(t2, I.pageContext, I.configure, "change");
37
+ Q ? Q === e3 && ($.length > 0 ? S(k(W, $), _.pageContext, _.configure, "change") : S(t2, _.pageContext, _.configure, "change")) : e3 === D && S(t2, _.pageContext, _.configure, "change");
38
38
  }
39
39
  function X() {
40
- S(null, I.pageContext, I.configure, "click");
40
+ S(null, _.pageContext, _.configure, "click");
41
41
  }
42
42
  function Y() {
43
- const e3 = R(I.pageContext.entity, E.props.deptScopeField);
43
+ const e3 = z(_.pageContext.entity, E.props.deptScopeField);
44
44
  q.value = e3 ? e3.split(",") : [];
45
45
  }
46
- return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = z(P[P.length - 1].model)), _2({ addRequiredClass: function() {
47
- T.value = j();
48
- } }), (t2, l2) => {
49
- const o2 = a("OrganizationInput"), n2 = a("el-form-item");
50
- return p(), u(n2, { ref_key: "formItemRef", ref: J, required: V.value.required, class: s(d(B) + (T.value ? " " + T.value : "")), "label-width": V.value.labelWidth, style: r(d(A)) }, { label: f(() => [V.value.tittleShow ? (p(), m("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [V.value.prefixType ? (p(), u(F, { key: 0, pageContext: e2.pageContext, property: V.value }, null, 8, ["pageContext", "property"])) : (p(), m(v, { key: 1 }, [y(x(d(b)(V.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(o2, { ref_key: "componentRef", ref: K, disabled: "disabled" == V.value.state, multiple: V.value.multiple, treeType: V.value.treeType, value: N.value, models: d(M), departmentInfo: q.value, limitFilterColumn: V.value.limitFilterColumn, pageModels: d(O), fields: d(P), inputShowWay: V.value.inputShowWay, autosize: V.value.autosize, size: V.value.size, separator: V.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
46
+ return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = w(P[P.length - 1].model)), j2({ addRequiredClass: function() {
47
+ T.value = R();
48
+ } }), (e3, t2) => {
49
+ const l2 = i("OrganizationInput"), o2 = i("el-form-item");
50
+ return u(), p(o2, { ref_key: "formItemRef", ref: J, required: V.value.required, class: s(d(B) + (T.value ? " " + T.value : "")), "label-width": V.value.labelWidth, style: r(d(A)) }, { label: f(() => [V.value.tittleShow ? (u(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [V.value.prefixType ? (u(), p(F, { key: 0, pageContext: e3.pageContext, property: V.value }, null, 8, ["pageContext", "property"])) : (u(), c(v, { key: 1 }, [y(x(d(I)(V.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [m(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" == V.value.state, multiple: V.value.multiple, treeType: V.value.treeType, value: N.value, models: d(M), departmentInfo: q.value, limitFilterColumn: V.value.limitFilterColumn, pageModels: d(O), fields: d(P), inputShowWay: V.value.inputShowWay, autosize: V.value.autosize, size: V.value.size, displayItem: V.value.displayItem, separator: V.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "inputShowWay", "autosize", "size", "displayItem", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
51
51
  };
52
52
  } });
53
53
  export {
54
- _ as default
54
+ j as default
55
55
  };
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
14
14
  const e3 = b.value;
15
15
  v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
16
16
  });
17
- }), (t2, n2) => {
18
- const o2 = i("el-divider");
19
- return l(), u(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
17
+ }), (e3, t2) => {
18
+ const n2 = i("el-divider");
19
+ return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
20
20
  };
21
21
  } });
22
22
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as d, unref as f, withCtx as v, createElementBlock as m, toDisplayString as c } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as s, normalizeStyle as p, normalizeClass as d, unref as f, withCtx as m, createElementBlock as v, toDisplayString as c } from "vue";
2
2
  import { getVariableValue as g, setVariableValue as h } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as x, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as b, fileUploadDeleted as x } from "../../../../utils/events/event-util.js";
4
4
  import k from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew as I } from "agilebuilder-ui";
6
6
  import P from "../../../../utils/eventBus.js";
@@ -42,14 +42,13 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
42
42
  }
43
43
  function Y(e3) {
44
44
  j.pageContext.fileuploadInfo || (j.pageContext.fileuploadInfo = []);
45
- return -1 === j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid) && j.pageContext.fileuploadInfo.push({ uuid: j.configure.uuid, label: S(F.value.title) }), j.pageContext.fileuploadInfo, C(e3);
45
+ return -1 === j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid) && j.pageContext.fileuploadInfo.push({ uuid: j.configure.uuid, label: S(F.value.title) }), C(e3);
46
46
  }
47
47
  function Z() {
48
- if (j.pageContext.fileuploadInfo, j.configure.uuid, j.pageContext.fileuploadInfo && j.configure.uuid) {
48
+ if (j.pageContext.fileuploadInfo && j.configure.uuid) {
49
49
  const e3 = j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid);
50
50
  -1 !== e3 && j.pageContext.fileuploadInfo.splice(e3, 1);
51
51
  }
52
- j.pageContext.fileuploadInfo;
53
52
  }
54
53
  function ee(e3) {
55
54
  Z();
@@ -59,10 +58,10 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
59
58
  var o2;
60
59
  Z(), oe(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(j.pageContext, j.configure, o2);
61
60
  }, te = (e3) => {
62
- const l2 = (t2 = { file: e3 }, x(j.pageContext, j.configure, t2));
61
+ const l2 = (t2 = { file: e3 }, b(j.pageContext, j.configure, t2));
63
62
  var t2;
64
63
  (l2 || void 0 === l2) && (oe(), function(e4) {
65
- b(j.pageContext, j.configure, e4);
64
+ x(j.pageContext, j.configure, e4);
66
65
  }({ file: e3 }));
67
66
  }, oe = () => {
68
67
  const e3 = [], l2 = [];
@@ -75,7 +74,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
75
74
  }, ie = l(null), ae = l(null);
76
75
  return o(() => {
77
76
  P.$on(H.value + "-pickFileDone", (e3) => {
78
- H.value, K.value.pickFileDone(e3);
77
+ K.value.pickFileDone(e3);
79
78
  }), i(() => {
80
79
  const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
81
80
  y(l2, j.pageContext, j.configure, { formItemRef: ie.value, componentRef: K.value, titleRef: ae.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
@@ -84,9 +83,9 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
84
83
  P.$off(H.value + "-pickFileDone");
85
84
  }), _2({ addRequiredClass: function() {
86
85
  z.value = N();
87
- } }), (l2, t2) => {
88
- const o2 = n("el-form-item");
89
- return F.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: ie, required: F.value.required, class: d(f(O) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: s(f(D)) }, { label: v(() => [F.value.tittleShow ? (p(), m("div", { key: 0, ref_key: "titleRef", ref: ae, style: s({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: v(() => [L.value ? (p(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
86
+ } }), (e3, l2) => {
87
+ const t2 = n("el-form-item");
88
+ return F.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ie, required: F.value.required, class: d(f(O) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: p(f(D)) }, { label: m(() => [F.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: ae, style: p({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: m(() => [L.value ? (s(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (s(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
90
89
  };
91
90
  } });
92
91
  export {
@@ -18,9 +18,9 @@ const q = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
18
18
  });
19
19
  }), q2({ addRequiredClass: function() {
20
20
  z.value = _();
21
- } }), (t2, l2) => {
22
- const o2 = n("el-input-number"), a2 = n("el-form-item");
23
- return i(), u(a2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e2.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(o2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: l2[1] || (l2[1] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
21
+ } }), (e3, t2) => {
22
+ const l2 = n("el-input-number"), o2 = n("el-form-item");
23
+ return i(), u(o2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e3.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: t2[1] || (t2[1] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -3,13 +3,13 @@ import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
7
- import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
- import D from "../../../../utils/eventBus.js";
10
- import { $t as J } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
12
- const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
+ import q from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
+ import M from "../../../../utils/eventBus.js";
10
+ import { $t as N } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
+ const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
13
13
  var _a, _b, _c;
14
14
  const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
15
15
  let $ = k(L.pageContext, L.configure);
@@ -17,66 +17,65 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
17
17
  const e3 = w($, L.pageContext);
18
18
  e3 && (F.value = V(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(q()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
20
+ const A = t(D()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
21
21
  h(B, $, e3), null != e3 && "" !== e3 && (U.value = "");
22
22
  } }), G = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
23
23
  let ee = false;
24
24
  const te = window.localStorage.getItem("auth_source");
25
25
  te && "dingtalk" === te && (ee = true);
26
26
  let le = "";
27
- const ne = navigator.userAgent;
28
- le = ne.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
30
- let ue = {};
27
+ le = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
28
+ const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
29
+ let ae = {};
31
30
  ((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
32
- ue = e3;
31
+ ae = e3;
33
32
  }), u(() => W.value, (e3) => {
34
33
  e3 = e3.trim();
35
- const t2 = O(e3, ue);
36
- t2 && N(L.pageContext, t2.scanSet, t2.params);
34
+ const t2 = O(e3, ae);
35
+ t2 && P(L.pageContext, t2.scanSet, t2.params);
37
36
  }));
38
- const ie = X.style, re = X.class, se = X.headerStyle, pe = X.titleExceedStyle;
39
- function ce(e3) {
37
+ const ue = X.style, ie = X.class, re = X.headerStyle, se = X.titleExceedStyle;
38
+ function pe(e3) {
40
39
  return h(B, $, e3);
41
40
  }
42
41
  n(() => {
43
- D.$on(H.value + "-scanDone", (e3) => {
44
- H.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
42
+ M.$on(H.value + "-scanDone", (e3) => {
43
+ pe(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
45
44
  }), o(() => {
46
45
  var _a2;
47
46
  const e3 = W.value;
48
- S(e3, L.pageContext, L.configure, { formItemRef: G.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
47
+ S(e3, L.pageContext, L.configure, { formItemRef: G.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
49
48
  });
50
49
  }), a(() => {
51
- D.$off(H.value + "-scanDone");
50
+ M.$off(H.value + "-scanDone");
52
51
  });
53
- const ve = t(false);
54
- function fe() {
55
- if (oe || ee) {
52
+ const ce = t(false);
53
+ function ve() {
54
+ if (ne || ee) {
56
55
  const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
57
- ee && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
58
- } else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
56
+ ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
57
+ } else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
59
58
  else {
60
59
  const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
61
60
  window.parent.postMessage(JSON.stringify(e3), "*");
62
61
  }
63
- else ve.value = true;
62
+ else ce.value = true;
64
63
  }
65
- function ye(e3) {
66
- ve.value = false, ce(e3);
64
+ function fe(e3) {
65
+ ce.value = false, pe(e3);
67
66
  }
68
- return z2({ getValue: function() {
67
+ return J2({ getValue: function() {
69
68
  return b(B, $);
70
- }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
- U.value = M();
72
- } }), (t2, l2) => {
73
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
74
- return s(), r(a2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(re) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(se), ...v(pe) }) }, [Y.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(J)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => W.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
69
+ }, setValue: pe, scanClick: ve, addRequiredClass: function() {
70
+ U.value = z();
71
+ } }), (e3, t2) => {
72
+ const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
73
+ return s(), r(o2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(ie) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(re), ...v(se) }) }, [Y.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(N)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => W.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
75
74
  let t3 = b(B, $);
76
- null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
77
- }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
+ null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
76
+ }(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (s(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
77
  };
79
78
  } });
80
79
  export {
81
- z as default
80
+ J as default
82
81
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
@@ -8,9 +8,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
8
8
  const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
9
  let P = x(R.pageContext, R.configure);
10
10
  const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
11
- const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
12
- N.value;
13
- const G = l(() => {
11
+ const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
14
12
  let e3 = d(S, P);
15
13
  if (B) if (N.value.hasOptions) {
16
14
  let t2 = null;
@@ -28,9 +26,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
28
26
  });
29
27
  }), j2({ updateOptions: function(e3) {
30
28
  W.value = e3 || [];
31
- } }), (t2, l2) => {
32
- const n2 = u("el-form-item");
33
- return N.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: l2[0] || (l2[0] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), i(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), i(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
29
+ } }), (e3, t2) => {
30
+ const l2 = u("el-form-item");
31
+ return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
34
32
  };
35
33
  } });
36
34
  export {
@@ -1,43 +1,41 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createCommentVNode as g, createTextVNode as d, toDisplayString as m, createElementBlock as v } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as f, createVNode as c, createCommentVNode as g, createTextVNode as d, toDisplayString as m, createElementBlock as v } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as x, handleEvent as b } from "../../../../utils/events/event-util.js";
5
5
  import { $t as C } from "../../../../utils/i18n-util.js";
6
6
  import { SuperIcon as _ } from "agilebuilder-ui";
7
- import { analysisValue as h } from "agilebuilder-ui/src/utils/util.js";
8
- const j = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ import { analysisValue as h } from "agilebuilder-ui/src/utils/util";
8
+ const R = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
9
  var _a;
10
- const j2 = e2, R = y(j2.pageContext, j2.configure), T = j2.configure.runtime ? j2.configure.runtime : {}, w = T.style, V = T.class, I = T.headerStyle, P = t(T.props ? T.props : {});
11
- P.value;
12
- const S = t();
13
- ((_a = j2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = j2.configure.props.linkPage);
10
+ const R2 = e2, T = y(R2.pageContext, R2.configure), j = R2.configure.runtime ? R2.configure.runtime : {}, w = j.style, V = j.class, I = j.headerStyle, P = t(j.props ? j.props : {}), S = t();
11
+ ((_a = R2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = R2.configure.props.linkPage);
14
12
  let $ = P.value.formatting;
15
- const q = j2.pageContext.entity ? j2.pageContext.entity : {}, D = l(() => {
13
+ const q = R2.pageContext.entity ? R2.pageContext.entity : {}, D = l(() => {
16
14
  var _a2;
17
- let e3 = k(q, R);
15
+ let e3 = k(q, T);
18
16
  if (e3 = null == e3 || null == e3 ? "" : e3, $) e3 = $.replace(/\${value}/g, e3);
19
17
  else if (S.value && S.value.displayTextJudge && ((_a2 = S.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
20
- const e4 = h(S.value.dynamicTags.join("-#-#"), q.data, q.request, q.context, j2.pageContext);
18
+ const e4 = h(S.value.dynamicTags.join("-#-#"), q.data, q.request, q.context, R2.pageContext);
21
19
  if (e4) return e4;
22
20
  }
23
21
  return e3;
24
22
  });
25
23
  let J = P.value.tooltip, W = null;
26
24
  J && (W = l(() => {
27
- let e3 = k(q, R);
25
+ let e3 = k(q, T);
28
26
  return e3 = null == e3 || null == e3 ? "" : e3, J.replace(/\${value}/g, e3);
29
27
  }));
30
28
  const z = t(null), A = t(null), B = t(null);
31
29
  return i(() => {
32
30
  n(() => {
33
31
  const e3 = D.value;
34
- x(e3, j2.pageContext, j2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
32
+ x(e3, R2.pageContext, R2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: R2.pageContext.entity.data, pageData: R2.pageContext.entity.page });
35
33
  });
36
- }), (t2, l2) => {
37
- const i2 = a("el-link"), n2 = a("el-tooltip"), y2 = a("el-form-item");
38
- return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(V)), "label-width": P.value.labelWidth, style: r(p(w)) }, { label: c(() => [P.value.tittleShow ? (o(), v("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(P.value.title)), 5)) : g("", true)]), default: c(() => [f(n2, { disabled: !p(W), content: p(W) }, { default: c(() => [f(i2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(b)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [S.value ? (o(), u(p(_), { key: 0, iconType: S.value.iconType, iconValue: S.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + m(D.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
34
+ }), (e3, t2) => {
35
+ const l2 = a("el-link"), i2 = a("el-tooltip"), n2 = a("el-form-item");
36
+ return o(), u(n2, { ref_key: "formItemRef", ref: z, class: p(s(V)), "label-width": P.value.labelWidth, style: r(s(w)) }, { label: f(() => [P.value.tittleShow ? (o(), v("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...s(I) }) }, m(s(C)(P.value.title)), 5)) : g("", true)]), default: f(() => [c(i2, { disabled: !s(W), content: s(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(b)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [S.value ? (o(), u(s(_), { key: 0, iconType: S.value.iconType, iconValue: S.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + m(D.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
39
37
  };
40
38
  } });
41
39
  export {
42
- j as default
40
+ R as default
43
41
  };
@@ -72,9 +72,9 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
72
72
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
73
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
74
  }
75
- } }), (t2, l2) => {
76
- const o2 = i("el-radio"), n2 = i("el-radio-group"), u2 = i("el-form-item");
77
- return s(), r(u2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
+ } }), (e3, t2) => {
76
+ const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
77
+ return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
@@ -159,7 +159,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
159
159
  const l2 = le.root.getElementsByTagName("img");
160
160
  for (const e6 of l2) e6.src === t4 && (e6.width = 300, e6.src = n2.url, e6.setAttribute("data-uuid", n2.uuid));
161
161
  } catch (e5) {
162
- console.error("上传图片失败", e5), Ee();
162
+ Ee();
163
163
  } finally {
164
164
  ae.value = false;
165
165
  }
@@ -189,7 +189,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
189
189
  return le ? le.root.innerHTML : "";
190
190
  } }), (e3, t2) => {
191
191
  const n2 = a("View"), l2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
192
- return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { type: "button", class: "toolbar-btn", onClick: Te, title: "预览" }, [c(l2, null, { default: g(() => [c(n2)]), _: 1 })]), h("button", { type: "button", class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(l2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, [...t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
192
+ return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { type: "button", class: "toolbar-btn", onClick: Te, title: "预览" }, [c(l2, null, { default: g(() => [c(n2)]), _: 1 })]), h("button", { type: "button", class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(l2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
193
193
  ge.value = false;
194
194
  }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
195
195
  };
@@ -118,7 +118,6 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", di
118
118
  e3.on("success", () => {
119
119
  E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
120
120
  }), e3.on("error", (e4) => {
121
- console.error("复制失败", e4);
122
121
  }), n(() => {
123
122
  const e4 = se.value;
124
123
  V(e4, J.pageContext, J.configure, { formItemRef: we.value, componentRef: Se.value, titleRef: ke.value, value: e4, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page });
@@ -145,10 +144,10 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", di
145
144
  N.value = I();
146
145
  }, getSelectItemsTitle: Ae, getOptions: function() {
147
146
  return pe.value;
148
- } }), (l2, t2) => {
149
- const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), S2 = r("el-form-item");
150
- return s(), u(S2, { ref_key: "formItemRef", ref: we, required: !!ae.value.required, class: c(f(le) + (N.value ? " " + N.value : "")), "label-width": ae.value.labelWidth, style: p(f(ee)) }, { label: v(() => [ae.value.tittleShow ? (s(), b("div", { key: 0, ref_key: "titleRef", ref: ke, style: p({ ...f(te), ...f(oe) }) }, [ae.value.prefixType ? (s(), u(M, { key: 0, pageContext: e2.pageContext, property: ae.value }, null, 8, ["pageContext", "property"])) : (s(), b(x, { key: 1 }, [w(_(f(D)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: v(() => [m("div", B, [g(i2, { ref_key: "componentRef", ref: Se, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ae.value.state, size: ae.value.size, clearable: ae.value.clearable, multiple: ae.value.multiple, "collapse-tags": ae.value.collapseTags, "collapse-tags-tooltip": ae.value.collapseTagsTooltip, filterable: ae.value.filterable, "allow-create": ae.value.allowCreate, placeholder: ae.value.placeholder, "remote-show-suffix": ae.value.remoteShowSuffix, remote: ae.value.remote, "remote-method": ae.value.remoteMethod, loading: fe.value, onKeydown: t2[0] || (t2[0] = d(y(() => {
151
- }, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => se.value = e3) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(o2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(H)("superGrid.selectAll"), value: U, disabled: !(pe.value && pe.value.length > 0) }, null, 8, ["label", "disabled"])) : h("", true), (s(true), b(x, null, C(pe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e2.pageContext, e2.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ie) ? (s(), b("div", F, [m("span", null, _(l3.label), 1), m("span", G, _(l3._description_), 1)])) : (s(), b(x, { key: 1 }, [m("span", K, _(l3.label), 1), m("span", L, _(l3._description_), 1)], 64))], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(o2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
147
+ } }), (e3, l2) => {
148
+ const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), i2 = r("el-popover"), n2 = r("el-form-item");
149
+ return s(), u(n2, { ref_key: "formItemRef", ref: we, required: !!ae.value.required, class: c(f(le) + (N.value ? " " + N.value : "")), "label-width": ae.value.labelWidth, style: p(f(ee)) }, { label: v(() => [ae.value.tittleShow ? (s(), b("div", { key: 0, ref_key: "titleRef", ref: ke, style: p({ ...f(te), ...f(oe) }) }, [ae.value.prefixType ? (s(), u(M, { key: 0, pageContext: e3.pageContext, property: ae.value }, null, 8, ["pageContext", "property"])) : (s(), b(x, { key: 1 }, [w(_(f(D)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(i2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: Se, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ae.value.state, size: ae.value.size, clearable: ae.value.clearable, multiple: ae.value.multiple, "collapse-tags": ae.value.collapseTags, "collapse-tags-tooltip": ae.value.collapseTagsTooltip, filterable: ae.value.filterable, "allow-create": ae.value.allowCreate, placeholder: ae.value.placeholder, "remote-show-suffix": ae.value.remoteShowSuffix, remote: ae.value.remote, "remote-method": ae.value.remoteMethod, loading: fe.value, onKeydown: l2[0] || (l2[0] = d(y(() => {
150
+ }, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => se.value = e4) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(t2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(o2, { key: 0, label: f(H)("superGrid.selectAll"), value: U, disabled: !(pe.value && pe.value.length > 0) }, null, 8, ["label", "disabled"])) : h("", true), (s(true), b(x, null, C(pe.value, (l3) => (s(), u(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e3.pageContext, e3.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ie) ? (s(), b("div", F, [m("span", null, _(l3.label), 1), m("span", G, _(l3._description_), 1)])) : (s(), b(x, { key: 1 }, [m("span", K, _(l3.label), 1), m("span", L, _(l3._description_), 1)], 64))], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(t2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
152
151
  };
153
152
  } });
154
153
  export {
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
9
9
  const e3 = y(v.configure.props.base.title);
10
10
  b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
11
11
  });
12
- }), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
12
+ }), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
13
13
  } });
14
14
  export {
15
15
  d as default
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
26
26
  });
27
27
  }), w2({ addRequiredClass: function() {
28
28
  _.value = b();
29
- } }), (t2, l2) => {
30
- const a2 = i("el-switch"), u2 = i("el-form-item");
31
- return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
29
+ } }), (e3, t2) => {
30
+ const l2 = i("el-switch"), a2 = i("el-form-item");
31
+ return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
32
32
  };
33
33
  } });
34
34
  export {