super-page-runtime 2.3.18-tmp1 → 2.3.18-tmp3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +49 -48
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -12
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +58 -56
  5. package/dist/es/components/runtime/utils/events/event-util.js +111 -111
  6. package/dist/es/components/runtime/utils/events/print-label.js +1 -0
  7. package/dist/es/components/runtime/utils/events/standard-event.js +524 -512
  8. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  9. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  10. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  11. package/dist/es/components/runtime/utils/page-init-util.js +82 -79
  12. package/dist/es/components/runtime/utils/page-store.js +10 -10
  13. package/dist/es/components/runtime/utils/table-utils.js +28 -28
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +86 -85
  22. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
  23. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -38
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +90 -87
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -49
  32. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  33. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  34. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  35. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
  36. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +16 -16
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +6 -6
  38. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  39. package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -9
  40. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  41. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  42. package/dist/es/components/runtime/views/super-page.vue2.js +172 -171
  43. package/dist/es/style.css +76 -76
  44. package/package.json +1 -1
@@ -1,56 +1,56 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as d, withCtx as m, resolveDynamicComponent as g, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as d, unref as m, withCtx as g, resolveDynamicComponent as f, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
3
  import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
5
- import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
6
- import { getListCode as _ } from "../../../../utils/common-util.js";
7
- import { getComponentRef as D } from "../../../../utils/global-refs.js";
5
+ import { updateFormItemEditState as D } from "../../../../utils/events/validator-util.js";
6
+ import { getListCode as V } from "../../../../utils/common-util.js";
7
+ import { getComponentRef as _ } from "../../../../utils/global-refs.js";
8
8
  import { getAdditionalParamMap as w } from "../../../../utils/events/standard-event.js";
9
9
  import { $t as E } from "../../../../utils/i18n-util.js";
10
10
  import F from "../../../../utils/eventBus.js";
11
11
  import { functions as S } from "../../../../utils/api/page-expose-util.js";
12
- const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
- const O = e2, z = O.pageContext.entity ? O.pageContext.entity : {}, G = C(O.pageContext, O.configure), H = t({ get: () => y(z, G), set(e3) {
14
- x(z, G, e3);
15
- } }), P = O.configure.runtime ? O.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
12
+ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, P = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
13
+ const $ = e2, O = $.pageContext.entity ? $.pageContext.entity : {}, z = C($.pageContext, $.configure), G = t({ get: () => y(O, z), set(e3) {
14
+ x(O, z, e3);
15
+ } }), H = $.configure.runtime ? $.configure.runtime : {}, I = H.style, A = H.class, B = H.headerStyle, N = o(H.props ? H.props : {}), W = function(e3) {
16
16
  let t2 = {};
17
17
  if (e3) for (let o2 in e3) {
18
18
  const n2 = e3[o2];
19
- t2[o2] = b(O.pageContext, n2);
19
+ t2[o2] = b($.pageContext, n2);
20
20
  }
21
21
  return t2;
22
- }(P.customParams ? P.customParams : {}), K = w(O.pageContext), L = o(O.configure.props && O.configure.props.base ? O.configure.props.base.name : null);
23
- function M(e3, t2) {
24
- j(z, e3, t2);
22
+ }(H.customParams ? H.customParams : {}), J = w($.pageContext), K = o($.configure.props && $.configure.props.base ? $.configure.props.base.name : null);
23
+ function L(e3, t2) {
24
+ j(O, e3, t2);
25
25
  }
26
- function N(e3) {
27
- S.isHasFieldAuthPermission(O.configure) ? V(O.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
26
+ function M(e3) {
27
+ S.isHasFieldAuthPermission($.configure) ? D($.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", z ? z.join(".") : "");
28
28
  }
29
29
  function Q() {
30
- const e3 = O.pageContext.tableUuids;
30
+ const e3 = $.pageContext.tableUuids;
31
31
  e3 && e3.forEach((e4) => {
32
- const t2 = _(O.pageContext.code, O.pageContext.version, O.configure.uuid), o2 = D(O.pageContext, e4);
32
+ const t2 = V($.pageContext.code, $.pageContext.version, $.configure.uuid), o2 = _($.pageContext, e4);
33
33
  o2 && o2.restoreGridEdit(t2);
34
34
  });
35
35
  }
36
- O.configure.props.verification.custom && O.configure.props.verification.custom.enabled && (O.pageContext.customValidatorUuids || (O.pageContext.customValidatorUuids = []), O.pageContext.customValidatorUuids.push(O.configure.uuid));
37
- const T = O.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
36
+ console.log("自定义控件----componentName=", K, "designProperty=", N), $.configure.props.verification.custom && $.configure.props.verification.custom.enabled && ($.pageContext.customValidatorUuids || ($.pageContext.customValidatorUuids = []), $.pageContext.customValidatorUuids.push($.configure.uuid));
37
+ const T = $.pageContext.code, X = o(z && z.length > 0 ? T + "__" + z.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
38
38
  function te(e3) {
39
- k(H.value, O.pageContext, O.configure, e3);
39
+ k(G.value, $.pageContext, $.configure, e3);
40
40
  }
41
41
  return n(() => {
42
42
  F.$on(X.value + "-scanDone", (e3) => {
43
43
  const t2 = e3.result;
44
- x(z, G, t2);
44
+ x(O, z, t2);
45
45
  }), F.$on(X.value + "-pickFileDone", (e3) => {
46
- X.value, Y.value.pickFileDone(e3);
46
+ console.log("superPage4444---pickFileDone--componentId.value=", X.value, "data=", e3), Y.value.pickFileDone(e3);
47
47
  }), a(() => {
48
- const e3 = H.value;
49
- R(e3, O.pageContext, O.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
48
+ const e3 = G.value;
49
+ R(e3, $.pageContext, $.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: $.pageContext.entity.data, pageData: $.pageContext.entity.page });
50
50
  });
51
51
  }), i(() => {
52
52
  F.$off(X.value + "-scanDone"), F.$off(X.value + "-pickFileDone");
53
- }), $2({ getCustomRef: function() {
53
+ }), P2({ getCustomRef: function() {
54
54
  return Y.value;
55
55
  }, invokeCustomFunction: function(e3, ...t2) {
56
56
  if (Y.value && "function" == typeof Y.value[e3]) return Y.value[e3](...t2);
@@ -61,9 +61,9 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, st
61
61
  requiredClass.value = addRequiredClassUtil();
62
62
  } }), (e3, t2) => {
63
63
  const o2 = u("el-form-item");
64
- return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: f(d(A)), "label-width": W.value.labelWidth, style: c(d(I)) }, { label: m(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...d(B) }) }, v(d(E)(W.value.title)), 5)) : s("", true)]), default: m(() => [L.value ? (p(), r("div", U, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: d(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => d(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", q, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: d(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => d(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
64
+ return N.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: N.value.required, class: d(m(A)), "label-width": N.value.labelWidth, style: c(m(I)) }, { label: g(() => [N.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(E)(N.value.title)), 5)) : s("", true)]), default: g(() => [K.value ? (p(), r("div", U, [(p(), l(f(K.value), { ref_key: "customRef", ref: Y, size: N.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(J), "component-id": X.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (p(), r("div", q, [(p(), l(f(K.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(W), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === N.value.state, "additional-param-map": m(J), "component-id": X.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
65
65
  };
66
66
  } });
67
67
  export {
68
- $ as default
68
+ P as default
69
69
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
2
- import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
- import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as c, toDisplayString as f } from "vue";
2
+ import { getVariableValue as h, setVariableValue as g } from "../../../../utils/page-helper-util.js";
3
+ import { handleAfterInitEvent as y, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
4
  import w from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew as b } from "agilebuilder-ui";
6
6
  import k from "../../../../utils/eventBus.js";
@@ -9,12 +9,12 @@ import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
9
  import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
10
10
  const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
11
11
  var _a, _b, _c, _d, _e, _f, _g;
12
- const N = e2, S = l(null), R = N.configure.runtime ? N.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, q = N.pageContext.entity ? N.pageContext.entity : {}, F = N.configure.props.base ? N.configure.props.base : {}, W = M(F.prop), U = M(F.propName);
12
+ const N = e2, S = l(null), R = N.configure.runtime ? N.configure.runtime : {}, D = l(R.props ? R.props : {}), I = R.style, T = R.class, z = R.headerStyle, F = R.titleExceedStyle, O = N.pageContext.entity ? N.pageContext.entity : {}, q = N.configure.props.base ? N.configure.props.base : {}, W = M(q.prop), U = M(q.propName);
13
13
  let $ = l({});
14
14
  $.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", $.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => N.pageContext.entity[W[0]][W[1]], (e3) => {
15
- L(h(q, W));
15
+ L(h(O, W));
16
16
  });
17
- const B = N.pageContext.code, E = l(W ? B + "__" + W.join("__") : null), A = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
17
+ const B = N.pageContext.code, E = l(W ? B + "__" + W.join("__") : null), A = h(O, W), G = l(null), H = l(false), J = l([]), K = l({});
18
18
  function L(e3) {
19
19
  if (e3) {
20
20
  const l2 = e3.split(",");
@@ -27,7 +27,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
27
27
  const o2 = l2[a2];
28
28
  t3.push(e5[o2]), J.value.push({ showName: e5[o2], serverPath: o2 });
29
29
  }
30
- "input" === T.value.displayType && (K.value.showName = t3.join(","), K.value.serverPath = l2.join(","));
30
+ "input" === D.value.displayType && (K.value.showName = t3.join(","), K.value.serverPath = l2.join(","));
31
31
  }).finally(() => {
32
32
  H.value = true;
33
33
  });
@@ -47,19 +47,19 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
47
47
  Y();
48
48
  }, Y = () => {
49
49
  const e3 = [], l2 = [];
50
- if (T.value.limit && J.value.length > T.value.limit) {
51
- const e4 = J.value.length - T.value.limit;
50
+ if (D.value.limit && J.value.length > D.value.limit) {
51
+ const e4 = J.value.length - D.value.limit;
52
52
  for (let l3 = 0; l3 < e4; l3++) J.value.shift();
53
53
  }
54
54
  for (let t2 = 0; t2 < J.value.length; t2++) e3.push(J.value[t2].showName), l2.push(J.value[t2].serverPath);
55
- y(N.pageContext.entity, W, l2.join(",")), y(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (S.value = "");
55
+ g(N.pageContext.entity, W, l2.join(",")), g(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (S.value = "");
56
56
  }, Z = l(null), ee = l(null);
57
57
  return a(() => {
58
58
  k.$on(E.value + "-pickFileDone", (e3) => {
59
- E.value, G.value.pickFileDone(e3);
59
+ console.log("superPage4444---pickFileDone--componentId.value=", E.value, "data=", e3), G.value.pickFileDone(e3);
60
60
  }), o(() => {
61
- const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
62
- g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
61
+ const e3 = h(O, W), l2 = { showName: h(O, U), serverPath: e3 };
62
+ y(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
63
63
  });
64
64
  }), i(() => {
65
65
  k.$off(E.value + "-pickFileDone");
@@ -67,7 +67,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
67
67
  S.value = P();
68
68
  } }), (e3, l2) => {
69
69
  const t2 = n("el-form-item");
70
- return T.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Z, required: T.value.required, class: d(m(D) + (S.value ? " " + S.value : "")), "label-width": T.value.labelWidth, style: p(m(z)) }, { label: v(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(I), ...m(O) }) }, c(m(x)(T.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
70
+ return D.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Z, required: D.value.required, class: d(m(T) + (S.value ? " " + S.value : "")), "label-width": D.value.labelWidth, style: p(m(I)) }, { label: v(() => [D.value.tittleShow ? (u(), c("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(z), ...m(F) }) }, f(m(x)(D.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
71
71
  };
72
72
  } });
73
73
  export {
@@ -1,80 +1,80 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
- import { SuperIcon as T } from "agilebuilder-ui";
3
- import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
- import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
1
+ import { defineComponent as e, ref as n, computed as t, onMounted as o, nextTick as l, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as c, normalizeClass as p, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as d, createTextVNode as m, toDisplayString as x, createElementBlock as C, Fragment as w } from "vue";
2
+ import { SuperIcon as k } from "agilebuilder-ui";
3
+ import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
4
+ import { getModelFieldFromPageContext as T, 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 q from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
- import J from "../../../../utils/eventBus.js";
10
- import { $t as M } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as D } from "../../../../utils/form/scan-util.js";
7
+ import N from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as P } from "agilebuilder-ui/src/utils/common-util";
9
+ import q 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
12
  const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
13
13
  var _a, _b, _c;
14
- const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
15
- let $ = k(L.pageContext, L.configure);
14
+ const L = e2, A = L.pageContext.entity ? L.pageContext.entity : {}, B = n("text");
15
+ let F = I(L.pageContext, L.configure);
16
16
  if (L.pageContext.modelFieldsMap) {
17
- const e3 = w($, L.pageContext);
18
- e3 && (F.value = V(e3.dataType) ? "number" : "text");
17
+ const e3 = T(F, L.pageContext);
18
+ e3 && (B.value = V(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(D()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
21
- h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
22
- } }), H = 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));
20
+ const $ = n(P()), E = L.pageContext.code, U = n(F && F.length > 0 ? E + "__" + F.join("__") : null), W = n(null), G = t({ get: () => b(A, F), set(e3) {
21
+ h(A, F, e3), null != e3 && "" !== e3 && (W.value = "");
22
+ } }), H = n(null), K = n(null), Q = n(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = n(X.props ? X.props : {}), Z = n(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
23
23
  let ee = false;
24
- const te = window.localStorage.getItem("auth_source");
25
- te && "dingtalk" === te && (ee = true);
26
- let le = "";
27
- const ne = navigator.userAgent;
28
- le = ne.indexOf(" uni-app ") > 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));
24
+ const ne = window.localStorage.getItem("auth_source");
25
+ ne && "dingtalk" === ne && (ee = true);
26
+ let te = "";
27
+ const oe = navigator.userAgent;
28
+ te = oe.indexOf(" uni-app ") > 0 ? "app" : "browser";
29
+ const le = !(!$.value || !te || "app" !== te), ae = n(!!((le || ee) && Z.value || $.value && Z.value && "https:" === window.location.protocol));
30
30
  let ue = {};
31
31
  ((_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
32
  ue = e3;
33
33
  }), u(() => G.value, (e3) => {
34
34
  e3 = e3.trim();
35
- const t2 = O(e3, ue);
36
- t2 && N(L.pageContext, t2.scanSet, t2.params);
35
+ const n2 = O(e3, ue);
36
+ n2 && D(L.pageContext, n2.scanSet, n2.params);
37
37
  }));
38
- const ie = X.style, re = X.class, pe = X.headerStyle, se = X.titleExceedStyle;
39
- function ce(e3) {
40
- return h(B, $, e3);
38
+ const ie = X.style, re = X.class, se = X.headerStyle, ce = X.titleExceedStyle;
39
+ function pe(e3) {
40
+ return h(A, F, e3);
41
41
  }
42
- n(() => {
43
- J.$on(U.value + "-scanDone", (e3) => {
44
- U.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
45
- }), o(() => {
42
+ o(() => {
43
+ q.$on(U.value + "-scanDone", (e3) => {
44
+ console.log("superPage4444---scanDone--componentId.value=", U.value, "data=", JSON.stringify(e3)), pe(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
45
+ }), l(() => {
46
46
  var _a2;
47
47
  const e3 = G.value;
48
48
  S(e3, L.pageContext, L.configure, { formItemRef: H.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();
49
- });
49
+ }), console.log("input-text");
50
50
  }), a(() => {
51
- J.$off(U.value + "-scanDone");
51
+ q.$off(U.value + "-scanDone");
52
52
  });
53
- const ve = t(false);
53
+ const ve = n(false);
54
54
  function fe() {
55
- if (oe || ee) {
55
+ if (console.log("scanClick----userAgent=", te), le || ee) {
56
56
  const e3 = { type: "scan", componentId: U.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;
57
+ ee && (e3.type = "dingTalkScan"), window.parent.parent ? (console.log("scanClick----window.parent.parent", window.parent.parent), window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (console.log("scanClick----window.parent", window.parent), window.parent.postMessage(JSON.stringify(e3), "*"));
58
+ } else if ($.value) if ("https:" === window.location.protocol) ve.value = true;
59
59
  else {
60
60
  const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
61
61
  window.parent.postMessage(JSON.stringify(e3), "*");
62
62
  }
63
63
  else ve.value = true;
64
64
  }
65
- function ye(e3) {
66
- ve.value = false, ce(e3);
65
+ function ge(e3) {
66
+ ve.value = false, pe(e3);
67
67
  }
68
68
  return z2({ getValue: function() {
69
- return b(B, $);
70
- }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
- W.value = P();
72
- } }), (e3, t2) => {
73
- const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
74
- return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(pe), ...v(se) }) }, [Y.value.prefixType ? (p(), r(q, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(M)(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: G.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => G.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
- let t3 = b(B, $);
76
- null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
77
- }(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 ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(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 ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(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 ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(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 ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(n2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
69
+ return b(A, F);
70
+ }, setValue: pe, scanClick: fe, addRequiredClass: function() {
71
+ W.value = M();
72
+ } }), (e3, n2) => {
73
+ const t2 = i("el-input"), o2 = i("scan-code-input-browser"), l2 = i("el-form-item");
74
+ return s(), r(l2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: p(v(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: c(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: c({ ...v(se), ...v(ce) }) }, [Y.value.prefixType ? (s(), r(N, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(w, { key: 1 }, [m(x(v(J)(Y.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(t2, { 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: B.value, modelValue: G.value, "onUpdate:modelValue": n2[5] || (n2[5] = (e4) => G.value = e4), onInput: n2[6] || (n2[6] = (n3) => v(_)(n3, e3.pageContext, e3.configure, "input")), onChange: n2[7] || (n2[7] = (n3) => v(_)(n3, e3.pageContext, e3.configure, "change")), onBlur: n2[8] || (n2[8] = (e4) => function(e5) {
75
+ let n3 = b(A, F);
76
+ null != n3 && (n3 = n3.trim()), h(A, F, n3), _(e5, L.pageContext, L.configure, "blur");
77
+ }(e4)), onFocus: n2[9] || (n2[9] = (n3) => v(_)(n3, e3.pageContext, e3.configure, "focus")), onClick: n2[10] || (n2[10] = (n3) => v(_)(n3, e3.pageContext, e3.configure, "click")), onClear: n2[11] || (n2[11] = (n3) => v(_)(n3, e3.pageContext, e3.configure, "clear")) }, d({ _: 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(k), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: n2[0] || (n2[0] = (n3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + 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(k), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: n2[1] || (n2[1] = (n3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + 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(k), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: n2[2] || (n2[2] = (n3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + 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(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: n2[3] || (n2[3] = (e4) => fe()) })) : y("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: n2[4] || (n2[4] = (n3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), m(" " + 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: ge })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
@@ -1,17 +1,17 @@
1
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";
2
- import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
2
+ import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
3
+ import { getVariableValue as x, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
5
5
  import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
6
  import { $t as _ } from "../../../../utils/i18n-util.js";
7
7
  const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
- let P = x(R.pageContext, R.configure);
8
+ const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
9
+ let S = d(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
11
  const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
12
- N.value;
12
+ console.log("designProperty.value", N.value);
13
13
  const G = l(() => {
14
- let e3 = d(S, P);
14
+ let e3 = x(P, S);
15
15
  if (B) if (N.value.hasOptions) {
16
16
  let t2 = null;
17
17
  W.value && (t2 = W.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
@@ -1,30 +1,30 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as g, createElementBlock as m, createCommentVNode as v } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
5
5
  import { $t as C } from "../../../../utils/i18n-util.js";
6
6
  const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
7
  const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
8
- S.value;
8
+ console.log("designProperty", S.value);
9
9
  let $ = S.value.formatting;
10
- const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
10
+ const D = _2.pageContext.entity ? _2.pageContext.entity : {}, P = l(() => {
11
11
  let e3 = b(D, h);
12
12
  return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
13
13
  });
14
- let W = S.value.tooltip, q = null;
15
- W && (q = l(() => {
14
+ let V = S.value.tooltip, W = null;
15
+ V && (W = l(() => {
16
16
  let e3 = b(D, h);
17
- return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
17
+ return e3 = null == e3 || null == e3 ? "" : e3, V.replace(/\${value}/g, e3);
18
18
  }));
19
- const z = t(null), A = t(null), B = t(null);
19
+ const q = t(null), z = t(null), A = t(null);
20
20
  return n(() => {
21
21
  a(() => {
22
- const e3 = V.value;
23
- k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
22
+ const e3 = P.value;
23
+ k(e3, _2.pageContext, _2.configure, { formItemRef: q.value, componentRef: z.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
24
24
  });
25
25
  }), (e3, t2) => {
26
26
  const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
27
- return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
27
+ return o(), u(a2, { ref_key: "formItemRef", ref: q, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...p(I) }) }, g(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: z, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(g(P.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
28
28
  };
29
29
  } });
30
30
  export {
@@ -47,6 +47,7 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
47
47
  Y && clearTimeout(Y), Y = setTimeout(function() {
48
48
  const e3 = Q();
49
49
  e3 != X && (X = e3, R(z.pageContext, Z, void 0).then((e4) => {
50
+ console.log("查询失败!", e4);
50
51
  }));
51
52
  }, 200);
52
53
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
3
+ import { getSizeConfig as x, formatVariableValue as w, getVariableValue as k, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
5
5
  import S from "agilebuilder-ui/src/utils/request";
6
6
  import { $t as E } from "../../../../utils/i18n-util.js";
@@ -17,7 +17,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
17
17
  let Z = x(W.pageContext, W.configure);
18
18
  Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
19
19
  let ee = X.value.value;
20
- const te = k(W.pageContext, ee), le = t(null);
20
+ const te = w(W.pageContext, ee), le = t(null);
21
21
  let ne = null;
22
22
  const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
23
23
  let se = null, ce = X.value.state;
@@ -43,15 +43,15 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
43
43
  });
44
44
  const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
45
45
  let xe = null;
46
- function ke(e3) {
46
+ function we(e3) {
47
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
48
48
  return t2 ? t2[1] : "";
49
49
  }
50
- function we(e3) {
50
+ function ke(e3) {
51
51
  if (!ne) return;
52
52
  const t2 = function(e4) {
53
53
  let t3 = e4.replace(/<img data-uuid="(.*?)"/g, (e5, t4) => {
54
- const l3 = ke(t4), n2 = W.pageContext.backendUrl;
54
+ const l3 = we(t4), n2 = W.pageContext.backendUrl;
55
55
  return `<img src="${A(n2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${l3}&isShowWatermark=false" data-uuid="${l3}"`;
56
56
  });
57
57
  return t3 = t3.replace(/\t/g, "    "), t3 = t3.replace(/ {2}/g, "  "), t3;
@@ -60,7 +60,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
60
60
  if (!ne) return;
61
61
  ne.root.querySelectorAll("img").forEach((e4) => {
62
62
  if (!e4.getAttribute("data-uuid")) {
63
- const t3 = ke(e4.src);
63
+ const t3 = we(e4.src);
64
64
  e4.setAttribute("data-uuid", t3);
65
65
  }
66
66
  });
@@ -81,7 +81,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
81
81
  ie.value = e3.length;
82
82
  }
83
83
  function Ee() {
84
- M.error({ message: "图片上传失败,请重试", duration: 3e3 });
84
+ console.warn("图片上传失败"), M.error({ message: "图片上传失败,请重试", duration: 3e3 });
85
85
  }
86
86
  function Ae(e3) {
87
87
  "Escape" === e3.key && oe.value && (oe.value = false);
@@ -138,11 +138,11 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
138
138
  e3 && e3.addEventListener("mousedown", (e4) => {
139
139
  e4.preventDefault();
140
140
  });
141
- }(), we(te), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Le), ne.on("text-change", async function(e3) {
141
+ }(), ke(te), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Le), ne.on("text-change", async function(e3) {
142
142
  if (!ne) return;
143
143
  const t2 = ne.root.getElementsByTagName("img");
144
144
  for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
145
- const t3 = ke(e4.src);
145
+ const t3 = we(e4.src);
146
146
  e4.setAttribute("data-uuid", t3);
147
147
  }
148
148
  if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
@@ -172,7 +172,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
172
172
  }, 300);
173
173
  }(), Se();
174
174
  }), Se(), xe = ne.container, xe.addEventListener("click", He), me(), o(() => {
175
- const e3 = w(G, I);
175
+ const e3 = k(G, I);
176
176
  q(e3, W.pageContext, W.configure, { formItemRef: he.value, componentRef: be.value, titleRef: ye.value, value: e3, entity: W.pageContext.entity.data, pageData: W.pageContext.entity.page });
177
177
  }));
178
178
  }), n(() => {
@@ -182,14 +182,14 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
182
182
  }), z2({ addRequiredClass: function() {
183
183
  P.value = L();
184
184
  }, setContent: function(e3) {
185
- we(e3), Se();
185
+ ke(e3), Se();
186
186
  }, getContent: function() {
187
187
  return ne ? ne.root.innerHTML : "";
188
188
  } }), (e3, t2) => {
189
- const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
189
+ const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), w2 = a("el-dialog");
190
190
  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: le, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { class: "toolbar-btn", onClick: Te, title: "预览" }, [c(n2, null, { default: g(() => [c(l2)]), _: 1 })]), h("button", { class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(n2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(n2, { 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] = () => {
191
191
  ge.value = false;
192
- }), "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);
192
+ }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(w2, { 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);
193
193
  };
194
194
  } });
195
195
  export {