super-page-runtime 2.3.37-sit5 → 2.3.37

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/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
  5. package/dist/es/components/runtime/utils/events/event-util.js +9 -9
  6. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  7. package/dist/es/components/runtime/utils/events/standard-event.js +572 -584
  8. package/dist/es/components/runtime/utils/events/validator-util.js +53 -54
  9. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  10. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  11. package/dist/es/components/runtime/utils/page-init-util.js +117 -120
  12. package/dist/es/components/runtime/utils/page-store.js +21 -21
  13. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  14. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -16
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
  27. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
  28. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
  29. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
  38. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
  39. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -46
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -5
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -36
  48. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -43
  50. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -11
  51. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +8 -8
  52. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +40 -40
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -28
  55. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  56. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  58. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +19 -19
  61. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  66. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  67. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
  68. package/dist/es/components/runtime/views/super-page.vue2.js +187 -187
  69. package/dist/es/i18n/langs/cn.js +1 -1
  70. package/dist/es/i18n/langs/en.js +1 -1
  71. package/package.json +2 -2
@@ -1,80 +1,80 @@
1
- import { defineComponent as e, ref as n, computed as t, onMounted as l, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as c, normalizeClass as p, unref as v, createSlots as f, withCtx as g, createVNode as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as w, Fragment as k } from "vue";
2
- import { SuperIcon as I } from "agilebuilder-ui";
3
- import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
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 s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as I, Fragment as T } from "vue";
2
+ import { SuperIcon as k } from "agilebuilder-ui";
3
+ import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as D } from "../../../../utils/form/scan-util.js";
7
- import N from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
6
+ import { formatScanRuleSets as O, analysisScanValue as N, 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
9
  import J from "../../../../utils/eventBus.js";
10
10
  import { $t as M } from "../../../../utils/i18n-util.js";
11
11
  import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
12
  const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
13
13
  var _a, _b, _c;
14
- const A = e2, B = A.pageContext.entity ? A.pageContext.entity : {}, F = n("text");
15
- let $ = T(A.pageContext, A.configure);
16
- if (A.pageContext.modelFieldsMap) {
17
- const e3 = V($, A.pageContext);
18
- e3 && (F.value = h(e3.dataType) ? "number" : "text");
14
+ const B = e2, F = B.pageContext.entity ? B.pageContext.entity : {}, $ = t("text");
15
+ let A = w(B.pageContext, B.configure);
16
+ if (B.pageContext.modelFieldsMap) {
17
+ const e3 = V(A, B.pageContext);
18
+ e3 && ($.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const E = n(q()), H = A.pageContext.code, U = n($ && $.length > 0 ? H + "__" + $.join("__") : null), W = n(null), G = t({ get: () => _(B, $), set(e3) {
21
- b(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
22
- } }), K = n(null), Q = n(null), X = n(null), Y = A.configure.runtime ? A.configure.runtime : {}, Z = n(Y.props ? Y.props : {}), ee = n(!!((_a = Z.value.scan) == null ? void 0 : _a.enable));
23
- let ne = false;
24
- const te = window.localStorage.getItem("auth_source");
25
- te && "dingtalk" === te && (ne = true);
26
- let le = "";
20
+ const E = t(D()), H = B.pageContext.code, U = t(A && A.length > 0 ? H + "__" + A.join("__") : null), W = t(null), G = l({ get: () => _(F, A), set(e3) {
21
+ b(F, A, e3), null != e3 && "" !== e3 && (W.value = "");
22
+ } }), K = t(null), Q = t(null), X = t(null), Y = B.configure.runtime ? B.configure.runtime : {}, Z = t(Y.props ? Y.props : {}), ee = t(!!((_a = Z.value.scan) == null ? void 0 : _a.enable));
23
+ let te = false;
24
+ const le = window.localStorage.getItem("auth_source");
25
+ le && "dingtalk" === le && (te = true);
26
+ let ne = "";
27
27
  const oe = navigator.userAgent;
28
- le = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const ae = !(!E.value || !le || "app" !== le), ue = n(!!((ae || ne) && ee.value || E.value && ee.value && "https:" === window.location.protocol));
28
+ ne = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
+ const ae = !(!E.value || !ne || "app" !== ne), ue = t(!!((ae || te) && ee.value || E.value && ee.value && "https:" === window.location.protocol));
30
30
  let ie = {};
31
31
  ((_b = Z.value.scan) == null ? void 0 : _b.enable) && ((_c = Z.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(Z.value.scan.ruleList).then((e3) => {
32
32
  ie = e3;
33
33
  }), u(() => G.value, (e3) => {
34
34
  e3 = e3.trim();
35
- const n2 = P(e3, ie);
36
- n2 && D(A.pageContext, n2.scanSet, n2.params);
35
+ const t2 = N(e3, ie);
36
+ t2 && P(B.pageContext, t2.scanSet, t2.params);
37
37
  }));
38
- const re = Y.style, se = Y.class, ce = Y.headerStyle, pe = Y.titleExceedStyle;
38
+ const re = Y.style, se = Y.class, pe = Y.headerStyle, ce = Y.titleExceedStyle;
39
39
  function ve(e3) {
40
- return b(B, $, e3);
40
+ return b(F, A, e3);
41
41
  }
42
- l(() => {
42
+ n(() => {
43
43
  J.$on(U.value + "-scanDone", (e3) => {
44
- console.log("superPage4444---scanDone--componentId.value=", U.value, "data=", JSON.stringify(e3)), ve(e3.result), S(e3.result, A.pageContext, A.configure, "afterScanDone");
44
+ U.value, JSON.stringify(e3), ve(e3.result), S(e3.result, B.pageContext, B.configure, "afterScanDone");
45
45
  }), o(() => {
46
46
  var _a2;
47
47
  const e3 = G.value;
48
- j(e3, A.pageContext, A.configure, { formItemRef: K.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page }), ue.value && ((_a2 = Z.value.scan) == null ? void 0 : _a2.autoOpen) && ge();
49
- }), console.log("input-text");
48
+ j(e3, B.pageContext, B.configure, { formItemRef: K.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page }), ue.value && ((_a2 = Z.value.scan) == null ? void 0 : _a2.autoOpen) && me();
49
+ });
50
50
  }), a(() => {
51
51
  J.$off(U.value + "-scanDone");
52
52
  });
53
- const fe = n(false);
54
- function ge() {
55
- if (console.log("scanClick----userAgent=", le), ae || ne) {
56
- const e3 = { type: "scan", componentId: U.value, systemCode: A.pageContext.systemCode };
57
- ne && (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), "*"));
53
+ const fe = t(false);
54
+ function me() {
55
+ if (ae || te) {
56
+ const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
57
+ te && (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
58
  } else if (E.value) if ("https:" === window.location.protocol) fe.value = true;
59
59
  else {
60
- const e3 = { type: "scan", componentId: U.value, systemCode: A.pageContext.systemCode };
60
+ const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
61
61
  window.parent.postMessage(JSON.stringify(e3), "*");
62
62
  }
63
63
  else fe.value = true;
64
64
  }
65
- function me(e3) {
65
+ function ye(e3) {
66
66
  fe.value = false, ve(e3);
67
67
  }
68
68
  return L2({ getValue: function() {
69
- return _(B, $);
70
- }, setValue: ve, scanClick: ge, addRequiredClass: function() {
69
+ return _(F, A);
70
+ }, setValue: ve, scanClick: me, addRequiredClass: function() {
71
71
  W.value = z();
72
- } }), (e3, n2) => {
73
- const t2 = i("el-input"), l2 = i("scan-code-input-browser"), o2 = i("el-form-item");
74
- return s(), r(o2, { ref_key: "formItemRef", ref: K, required: !!Z.value.required, class: p(v(se) + (W.value ? " " + W.value : "")), "label-width": Z.value.labelWidth, style: c(v(re)) }, f({ default: g(() => [m(t2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === Z.value.state, readonly: "readonly" === Z.value.state, size: Z.value.size, clearable: Z.value.clearable, placeholder: Z.value.placeholder, maxlength: Z.value.maxLength, "show-word-limit": Z.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": n2[5] || (n2[5] = (e4) => G.value = e4), onInput: n2[6] || (n2[6] = (n3) => v(S)(n3, e3.pageContext, e3.configure, "input")), onChange: n2[7] || (n2[7] = (n3) => v(S)(n3, e3.pageContext, e3.configure, "change")), onBlur: n2[8] || (n2[8] = (e4) => function(e5) {
75
- let n3 = _(B, $);
76
- null != n3 && (n3 = n3.trim()), b(B, $, n3), S(e5, A.pageContext, A.configure, "blur");
77
- }(e4)), onFocus: n2[9] || (n2[9] = (n3) => v(S)(n3, e3.pageContext, e3.configure, "focus")), onClick: n2[10] || (n2[10] = (n3) => v(S)(n3, e3.pageContext, e3.configure, "click")), onClear: n2[11] || (n2[11] = (n3) => v(S)(n3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prefix", fn: g(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(I), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: n2[0] || (n2[0] = (n3) => v(R)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "0" } : void 0, "outer" == Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prepend", fn: g(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(I), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: n2[1] || (n2[1] = (n3) => v(R)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "1" } : void 0, "outer" != Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "suffix", fn: g(() => [Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(I), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: n2[2] || (n2[2] = (n3) => v(R)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "append", fn: g(() => [ue.value ? (s(), r(v(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: n2[3] || (n2[3] = (e4) => ge()) })) : y("", true), Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(I), { key: 1, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: n2[4] || (n2[4] = (n3) => v(R)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(l2, { key: 0, onClose: me })) : y("", true)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: X, class: "amb-form-item-label", style: c({ ...v(ce), ...v(pe) }) }, [Z.value.prefixType ? (s(), r(N, { key: 0, pageContext: e3.pageContext, property: Z.value }, null, 8, ["pageContext", "property"])) : (s(), w(k, { key: 1 }, [d(x(v(M)(Z.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
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: K, required: !!Z.value.required, class: c(v(se) + (W.value ? " " + W.value : "")), "label-width": Z.value.labelWidth, style: p(v(re)) }, f({ default: m(() => [y(n2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === Z.value.state, readonly: "readonly" === Z.value.state, size: Z.value.size, clearable: Z.value.clearable, placeholder: Z.value.placeholder, maxlength: Z.value.maxLength, "show-word-limit": Z.value.showInputNum, type: $.value, modelValue: G.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => G.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
75
+ let t3 = _(F, A);
76
+ null != t3 && (t3 = t3.trim()), b(F, A, t3), S(e4, B.pageContext, B.configure, "blur");
77
+ }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prefix", fn: m(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "0" } : void 0, "outer" == Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prepend", fn: m(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "1" } : void 0, "outer" != Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "suffix", fn: m(() => [Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "append", fn: m(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => me()) })) : g("", true), Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: X, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [Z.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: Z.value }, null, 8, ["pageContext", "property"])) : (s(), I(T, { key: 1 }, [d(x(v(M)(Z.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
@@ -5,32 +5,32 @@ import { SuperIcon as w } from "agilebuilder-ui";
5
5
  import { getCustomFunc as T, handleAfterInitEvent as C, handleFormEvent as _ } from "../../../../utils/events/event-util.js";
6
6
  import { $t as I } from "../../../../utils/i18n-util.js";
7
7
  const b = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, V = { style: { overflow: "hidden", "white-space": "nowrap" } }, j = ["title"], R = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: R2 }) {
8
- const P = e2, S = P.pageContext.entity ? P.pageContext.entity : {};
9
- let q = x(P.pageContext, P.configure);
10
- const O = P.configure.runtime ? P.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
8
+ const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
9
+ let q = x(S.pageContext, S.configure);
10
+ const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
11
11
  const B = t(W.value.options ? W.value.options : []), G = W.value.formatType;
12
- console.log("designProperty.value", W.value);
12
+ W.value;
13
13
  const H = l(() => {
14
- let e3 = h(S, q);
14
+ let e3 = h(P, q);
15
15
  if (G) if (W.value.hasOptions) {
16
16
  let t2 = null;
17
17
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
18
18
  } else if ("custom" === G) {
19
- const t2 = T(P.pageContext, W.value.formatFunc);
20
- t2 && (e3 = t2.apply(t2, [{ pageContext: P.pageContext, configureObj: P.configure, value: e3 }]));
19
+ const t2 = T(S.pageContext, W.value.formatFunc);
20
+ t2 && (e3 = t2.apply(t2, [{ pageContext: S.pageContext, configureObj: S.configure, value: e3 }]));
21
21
  } else e3 = k(e3, G, W.value);
22
22
  return e3 = null == e3 ? "" : e3, e3;
23
23
  }), J = t(null), K = t(null), L = t(null);
24
24
  return n(() => {
25
25
  a(() => {
26
26
  const e3 = H.value;
27
- C(e3, P.pageContext, P.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
27
+ C(e3, S.pageContext, S.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
28
28
  });
29
29
  }), R2({ updateOptions: function(e3) {
30
30
  B.value = e3 || [];
31
- } }), (e3, t2) => {
32
- const l2 = u("el-form-item");
33
- return W.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), i(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), i(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
31
+ } }), (t2, l2) => {
32
+ const n2 = u("el-form-item");
33
+ return W.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), i(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d("  " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), i(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
34
34
  };
35
35
  } });
36
36
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as i, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as c, withCtx as f, createVNode as g, createCommentVNode as d, createTextVNode as m, toDisplayString as v, createElementVNode as y } 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 s, unref as p, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
2
2
  import { getFormModelFields as b } 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 C } from "../../../../utils/events/event-util.js";
@@ -7,8 +7,8 @@ import { SuperIcon as h } from "agilebuilder-ui";
7
7
  import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
8
8
  const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
9
  var _a;
10
- const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, P = w.style, V = w.class, I = w.headerStyle, S = t(w.props ? w.props : {});
11
- console.log("designProperty", S.value);
10
+ const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {});
11
+ S.value;
12
12
  const $ = t();
13
13
  ((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
14
14
  let q = S.value.formatting;
@@ -28,14 +28,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
28
28
  return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
29
29
  }));
30
30
  const A = t(null), B = t(null), E = t(null);
31
- return n(() => {
32
- i(() => {
31
+ return i(() => {
32
+ n(() => {
33
33
  const e3 = J.value;
34
34
  x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
35
35
  });
36
- }), (e3, t2) => {
37
- const l2 = a("el-link"), n2 = a("el-tooltip"), i2 = a("el-form-item");
38
- return o(), u(i2, { ref_key: "formItemRef", ref: A, class: s(p(V)), "label-width": S.value.labelWidth, style: r(p(P)) }, c({ default: f(() => [g(n2, { disabled: !p(z), content: p(z) }, { default: f(() => [g(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), m(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: f(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(I) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
36
+ }), (t2, l2) => {
37
+ const i2 = a("el-link"), n2 = a("el-tooltip"), b2 = a("el-form-item");
38
+ return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(n2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(i2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
39
39
  };
40
40
  } });
41
41
  export {
@@ -47,7 +47,6 @@ const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
47
47
  Z && clearTimeout(Z), Z = setTimeout(function() {
48
48
  const e3 = X();
49
49
  e3 != Y && (Y = e3, j(O.pageContext, ee, void 0).then((e4) => {
50
- console.log("查询失败!", e4);
51
50
  }));
52
51
  }, 200);
53
52
  }
@@ -73,9 +72,9 @@ const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
73
72
  l2.value === e3 && (t2 = t2 + l2.label + ",");
74
73
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
75
74
  }
76
- } }), (e3, t2) => {
77
- const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
78
- return s(), r(n2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
75
+ } }), (t2, l2) => {
76
+ const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
77
+ return s(), r(a2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => P.value = e3) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
79
78
  };
80
79
  } });
81
80
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as t, watch as n, onMounted as l, 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, createSlots as g, withCtx as h, createElementVNode as b, toDisplayString as y } from "vue";
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, createSlots as g, withCtx as h, createElementVNode as b, toDisplayString as y } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as w, formatVariableValue as k, getVariableValue as C, setVariableValue as q } from "../../../../utils/page-helper-util.js";
3
+ import { getSizeConfig as k, formatVariableValue as w, getVariableValue as C, setVariableValue as q } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as T, handleFormEvent as S } from "../../../../utils/events/event-util.js";
5
5
  import E from "agilebuilder-ui/src/utils/request";
6
6
  import { $t as A } from "../../../../utils/i18n-util.js";
@@ -14,10 +14,10 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
14
14
  const D = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], W = M.import("attributors/style/font");
15
15
  W.whitelist = D, M.register(W, true);
16
16
  const P = e2, G = t(""), I = P.pageContext.entity ? P.pageContext.entity : {}, K = x(P.pageContext, P.configure), O = P.configure.runtime ? P.configure.runtime : {}, Y = O.style, J = O.class, Q = O.headerStyle, X = O.titleExceedStyle, Z = t(O.props ? O.props : {});
17
- let ee = w(P.pageContext, P.configure);
17
+ let ee = k(P.pageContext, P.configure);
18
18
  ee && ee.fixHeight && (Y.height || (Y.height = ee.fixHeight + "px"));
19
19
  let te = Z.value.value;
20
- const ne = k(P.pageContext, te), le = t(null);
20
+ const le = w(P.pageContext, te), ne = t(null);
21
21
  let oe = null;
22
22
  const ie = t(false), ae = t(0), re = t(false), ue = t(false), se = t("");
23
23
  let ce = null, de = Z.value.state;
@@ -29,11 +29,11 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
29
29
  if (!(oe == null ? void 0 : oe.container)) return;
30
30
  const e3 = oe.container.parentNode;
31
31
  if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), n2 = oe.container.getBoundingClientRect();
33
- let l2 = t2.height - (n2.top - t2.top);
34
- l2 -= 24, oe.container.style.height = Math.max(l2, 100) + "px";
32
+ const t2 = e3.getBoundingClientRect(), l2 = oe.container.getBoundingClientRect();
33
+ let n2 = t2.height - (l2.top - t2.top);
34
+ n2 -= 24, oe.container.style.height = Math.max(n2, 100) + "px";
35
35
  }
36
- n(Z.value, () => {
36
+ l(Z.value, () => {
37
37
  const e3 = Z.value.state;
38
38
  if (null != e3 && e3 !== de) {
39
39
  de = e3;
@@ -42,8 +42,8 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
42
42
  }
43
43
  });
44
44
  const ge = t([]), he = t(false), be = t(null), ye = t(null), xe = t(null);
45
- let we = null;
46
- function ke(e3) {
45
+ let ke = null;
46
+ function we(e3) {
47
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
48
48
  return t2 ? t2[1] : "";
49
49
  }
@@ -51,16 +51,16 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
51
51
  if (!oe) return;
52
52
  const t2 = function(e4) {
53
53
  let t3 = e4.replace(/<img data-uuid="(.*?)"/g, (e5, t4) => {
54
- const n3 = ke(t4), l2 = P.pageContext.backendUrl;
55
- return `<img src="${L(l2, P.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
54
+ const l3 = we(t4), n2 = P.pageContext.backendUrl;
55
+ return `<img src="${L(n2, P.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;
58
- }(e3), n2 = oe.clipboard.convertHTML(t2);
59
- oe.setContents(n2.ops), o(() => {
58
+ }(e3), l2 = oe.clipboard.convertHTML(t2);
59
+ oe.setContents(l2.ops), o(() => {
60
60
  if (!oe) return;
61
61
  oe.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 R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
81
81
  ae.value = e3.length;
82
82
  }
83
83
  function Ae() {
84
- console.warn("图片上传失败"), N.error({ message: "图片上传失败,请重试", duration: 3e3 });
84
+ N.error({ message: "图片上传失败,请重试", duration: 3e3 });
85
85
  }
86
86
  function Le(e3) {
87
87
  "Escape" === e3.key && ie.value && (ie.value = false, o(() => {
@@ -90,7 +90,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
90
90
  }
91
91
  function He(e3) {
92
92
  var _a;
93
- oe && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || S(oe.root.innerHTML, P.pageContext, P.configure, "change", { entity: I }));
93
+ oe && (null !== e3.relatedTarget && ((_a = ne.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || S(oe.root.innerHTML, P.pageContext, P.configure, "change", { entity: I }));
94
94
  }
95
95
  function Me(e3) {
96
96
  if ("img" === e3.target.localName) {
@@ -102,49 +102,49 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
102
102
  function Ne(e3) {
103
103
  const t2 = new FormData();
104
104
  t2.append("file", e3);
105
- const n2 = P.pageContext.backendUrl, l2 = L(n2, P.pageContext.isTest);
106
- return E.post(l2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
105
+ const l2 = P.pageContext.backendUrl, n2 = L(l2, P.pageContext.isTest);
106
+ return E.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
107
107
  }
108
108
  function Re(e3, t2) {
109
- const n2 = e3.split(","), l2 = n2[0].match(/:(.*?);/), o2 = l2 ? l2[1] : "image/png", i2 = atob(n2[1]);
109
+ const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", i2 = atob(l2[1]);
110
110
  let a2 = i2.length;
111
111
  const r2 = new Uint8Array(a2);
112
112
  for (; a2--; ) r2[a2] = i2.charCodeAt(a2);
113
113
  return new File([r2], t2, { type: o2 });
114
114
  }
115
- return l(() => {
115
+ return n(() => {
116
116
  var _a;
117
- le.value && (oe = new M(le.value, me.value), oe.root.style.fontSize = "16px", function() {
117
+ ne.value && (oe = new M(ne.value, me.value), oe.root.style.fontSize = "16px", function() {
118
118
  var _a2, _b;
119
- const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
119
+ const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
120
120
  if (!e3) return;
121
121
  e3.querySelectorAll("button").forEach((e4) => {
122
122
  const t2 = e4.className.match(/ql-([\w-]+)/);
123
123
  if (t2) {
124
- const n2 = t2[1], l2 = `${n2}[value="${e4.value}"]`;
125
- qe[l2] ? e4.setAttribute("data-tooltip", qe[l2]) : qe[n2] && e4.setAttribute("data-tooltip", qe[n2]);
124
+ const l2 = t2[1], n2 = `${l2}[value="${e4.value}"]`;
125
+ qe[n2] ? e4.setAttribute("data-tooltip", qe[n2]) : qe[l2] && e4.setAttribute("data-tooltip", qe[l2]);
126
126
  }
127
127
  }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
128
128
  const t2 = e4.className.match(/ql-(\w+)/);
129
129
  if (t2) {
130
- const n2 = t2[1];
131
- if (qe[n2]) {
130
+ const l2 = t2[1];
131
+ if (qe[l2]) {
132
132
  const t3 = e4.querySelector(".ql-picker-label");
133
- t3 && t3.setAttribute("data-tooltip", qe[n2]);
133
+ t3 && t3.setAttribute("data-tooltip", qe[l2]);
134
134
  }
135
135
  }
136
136
  });
137
137
  }(), function() {
138
138
  var _a2, _b;
139
- const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
139
+ const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
140
140
  e3 && e3.addEventListener("mousedown", (e4) => {
141
141
  e4.preventDefault();
142
142
  });
143
- }(), Ce(ne), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", He), oe.on("text-change", async function(e3) {
143
+ }(), Ce(le), (_a = ne.value) == null ? void 0 : _a.addEventListener("focusout", He), oe.on("text-change", async function(e3) {
144
144
  if (!oe) return;
145
145
  const t2 = oe.root.getElementsByTagName("img");
146
146
  for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
147
- const t3 = ke(e4.src);
147
+ const t3 = we(e4.src);
148
148
  e4.setAttribute("data-uuid", t3);
149
149
  }
150
150
  if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
@@ -154,10 +154,10 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
154
154
  if (!t4.startsWith("data:image")) continue;
155
155
  try {
156
156
  re.value = true;
157
- const e5 = Re(t4, "image.png"), n2 = await Ne(e5);
157
+ const e5 = Re(t4, "image.png"), l2 = await Ne(e5);
158
158
  if (!oe) return;
159
- const l2 = oe.root.getElementsByTagName("img");
160
- for (const e6 of l2) e6.src === t4 && (e6.width = 300, e6.src = n2.url, e6.setAttribute("data-uuid", n2.uuid));
159
+ const n2 = oe.root.getElementsByTagName("img");
160
+ for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
161
161
  } catch (e5) {
162
162
  console.error("上传图片失败", e5), Ae();
163
163
  } finally {
@@ -173,14 +173,14 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
173
173
  q(I, K, e4), e4 && (G.value = "");
174
174
  }, 300);
175
175
  }(), Ee();
176
- }), Ee(), we = oe.container, we.addEventListener("click", Me), ve(), o(() => {
176
+ }), Ee(), ke = oe.container, ke.addEventListener("click", Me), ve(), o(() => {
177
177
  const e3 = C(I, K);
178
178
  T(e3, P.pageContext, P.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: xe.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
179
179
  }));
180
- }), l(() => {
180
+ }), n(() => {
181
181
  document.addEventListener("keydown", Le);
182
182
  }), i(() => {
183
- document.removeEventListener("keydown", Le), ce && clearTimeout(ce), le.value && le.value.removeEventListener("focusout", He), we && we.removeEventListener("click", Me);
183
+ document.removeEventListener("keydown", Le), ce && clearTimeout(ce), ne.value && ne.value.removeEventListener("focusout", He), ke && ke.removeEventListener("click", Me);
184
184
  }), B2({ addRequiredClass: function() {
185
185
  G.value = H();
186
186
  }, setContent: function(e3) {
@@ -188,10 +188,10 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
188
188
  }, getContent: function() {
189
189
  return oe ? oe.root.innerHTML : "";
190
190
  } }), (e3, t2) => {
191
- const n2 = a("View"), l2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), w2 = a("el-image-viewer"), k2 = a("el-dialog");
192
- return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: le, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(l2, null, { default: h(() => [c(n2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(l2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(w2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
191
+ const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), k2 = a("el-image-viewer"), w2 = a("el-dialog");
192
+ return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, [...t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
193
193
  he.value = false;
194
- }), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
194
+ }), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
195
195
  };
196
196
  } });
197
197
  export {