super-page-runtime 2.3.26 → 2.3.28-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +133 -124
  2. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  3. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  4. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  5. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  6. package/dist/es/components/runtime/utils/events/standard-event.js +569 -553
  7. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  8. package/dist/es/components/runtime/utils/page-init-util.js +9 -11
  9. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +4 -4
  11. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +4 -4
  12. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +4 -4
  13. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  14. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +4 -4
  15. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -2
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +7 -9
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +2 -2
  20. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -2
  21. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +2 -2
  22. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +2 -2
  23. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +2 -2
  24. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  25. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  26. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  27. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  28. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +11 -12
  30. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  32. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
  34. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +4 -4
  40. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +4 -4
  41. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +4 -4
  42. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -4
  44. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +4 -4
  45. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +4 -4
  46. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +4 -4
  48. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  50. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +10 -7
  52. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +17 -17
  54. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -4
  56. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -4
  57. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  58. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  59. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -4
  60. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +4 -4
  61. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +5 -5
  62. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
  63. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +38 -39
  64. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  65. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -5
  66. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -4
  68. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +54 -52
  70. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +47 -48
  71. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  72. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
  73. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +12 -12
  74. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +4 -4
  75. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +4 -4
  76. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -17
  77. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +6 -6
  79. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +2 -2
  81. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +2 -2
  83. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  85. package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
  86. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -3
  87. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  88. package/dist/es/components/runtime/views/super-page.vue2.js +75 -76
  89. package/dist/es/i18n/langs/cn.js +1 -1
  90. package/dist/es/i18n/langs/en.js +1 -1
  91. package/dist/es/style.css +133 -129
  92. package/package.json +2 -2
@@ -1,15 +1,15 @@
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, openBlock as r, createBlock as p, normalizeStyle as s, unref as c, normalizeClass as v, withCtx as f, createVNode as y, createSlots as g, createCommentVNode as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
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
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
7
- import 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";
12
- const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
7
+ import D from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as M } from "agilebuilder-ui/src/utils/common-util";
9
+ import N from "../../../../utils/eventBus.js";
10
+ import { $t as P } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
+ const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
13
13
  var _a, _b, _c;
14
14
  const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
15
15
  let $ = k(L.pageContext, L.configure);
@@ -17,66 +17,65 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
17
17
  const e3 = w($, L.pageContext);
18
18
  e3 && (F.value = V(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(D()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
20
+ const A = t(M()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
21
21
  h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
22
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));
23
23
  let ee = false;
24
24
  const te = window.localStorage.getItem("auth_source");
25
25
  te && "dingtalk" === te && (ee = true);
26
26
  let le = "";
27
- const ne = navigator.userAgent;
28
- le = ne.indexOf(" 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));
30
- let ue = {};
27
+ le = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
28
+ const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
29
+ let ae = {};
31
30
  ((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
32
- ue = e3;
31
+ ae = e3;
33
32
  }), u(() => G.value, (e3) => {
34
33
  e3 = e3.trim();
35
- const t2 = O(e3, ue);
36
- t2 && N(L.pageContext, t2.scanSet, t2.params);
34
+ const t2 = O(e3, ae);
35
+ t2 && q(L.pageContext, t2.scanSet, t2.params);
37
36
  }));
38
- const ie = X.style, re = X.class, pe = X.headerStyle, se = X.titleExceedStyle;
39
- function ce(e3) {
37
+ const ue = X.style, ie = X.class, re = X.headerStyle, pe = X.titleExceedStyle;
38
+ function se(e3) {
40
39
  return h(B, $, e3);
41
40
  }
42
41
  n(() => {
43
- J.$on(U.value + "-scanDone", (e3) => {
44
- U.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
42
+ N.$on(U.value + "-scanDone", (e3) => {
43
+ se(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
45
44
  }), o(() => {
46
45
  var _a2;
47
46
  const e3 = G.value;
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();
47
+ 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 }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
49
48
  });
50
49
  }), a(() => {
51
- J.$off(U.value + "-scanDone");
50
+ N.$off(U.value + "-scanDone");
52
51
  });
53
- const ve = t(false);
54
- function fe() {
55
- if (oe || ee) {
52
+ const ce = t(false);
53
+ function ve() {
54
+ if (ne || ee) {
56
55
  const e3 = { type: "scan", componentId: 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;
56
+ ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
57
+ } else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
59
58
  else {
60
59
  const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
61
60
  window.parent.postMessage(JSON.stringify(e3), "*");
62
61
  }
63
- else ve.value = true;
62
+ else ce.value = true;
64
63
  }
65
- function ye(e3) {
66
- ve.value = false, ce(e3);
64
+ function fe(e3) {
65
+ ce.value = false, se(e3);
67
66
  }
68
- return z2({ getValue: function() {
67
+ return J2({ getValue: function() {
69
68
  return b(B, $);
70
- }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
- W.value = P();
72
- } }), (t2, l2) => {
73
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
74
- return r(), p(a2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: v(c(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(c(ie)) }, { label: f(() => [Y.value.tittleShow ? (r(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...c(pe), ...c(se) }) }, [Y.value.prefixType ? (r(), p(q, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (r(), C(I, { key: 1 }, [d(x(c(M)(Y.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => G.value = e3), onInput: l2[6] || (l2[6] = (t3) => c(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => c(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
69
+ }, setValue: se, scanClick: ve, addRequiredClass: function() {
70
+ W.value = z();
71
+ } }), (e3, t2) => {
72
+ const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
73
+ return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(ie) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(re), ...v(pe) }) }, [Y.value.prefixType ? (p(), r(D, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(P)(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
74
  let t3 = b(B, $);
76
- null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
77
- }(e3)), onFocus: l2[9] || (l2[9] = (t3) => c(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => c(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => c(_)(t3, e2.pageContext, e2.configure, "clear")) }, g({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (r(), p(c(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => c(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(c(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 ? (r(), p(c(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => c(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(c(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 ? (r(), p(c(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => c(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(c(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 ? (r(), p(c(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : m("", true), Y.value.sufIconType && Y.value.sufIconValue ? (r(), p(c(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => c(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(c(M)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (r(), p(o2, { key: 0, onClose: ye })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
+ null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
76
+ }(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (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(P)(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(P)(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(P)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (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(P)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (p(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
77
  };
79
78
  } });
80
79
  export {
81
- z as default
80
+ J as default
82
81
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, openBlock as o, createElementBlock as i, normalizeStyle as s, unref as p, normalizeClass as r, createElementVNode as f, toDisplayString as c, createBlock as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
@@ -8,9 +8,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
8
8
  const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
9
  let P = x(R.pageContext, R.configure);
10
10
  const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
11
- const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
12
- N.value;
13
- const G = l(() => {
11
+ const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
14
12
  let e3 = d(S, P);
15
13
  if (B) if (N.value.hasOptions) {
16
14
  let t2 = null;
@@ -28,9 +26,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
28
26
  });
29
27
  }), j2({ updateOptions: function(e3) {
30
28
  W.value = e3 || [];
31
- } }), (t2, l2) => {
32
- const n2 = u("el-form-item");
33
- return N.value.whetherTittle ? (o(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(p(A)), style: s(p(O)) }, [f("div", I, c(N.value.title), 1)], 6)) : N.value.tittleShow ? (o(), v(n2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([p(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: s(p(O)) }, { label: y(() => [N.value.tittleShow ? (o(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: s({ ...p(z), ...p(F) }) }, c(p(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, [f("span", b, [N.value.preIconValue || N.value.preText ? (o(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: s(p(E)) }, [N.value.preIconType && N.value.preIconValue ? (o(), v(p(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + c(p(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + c(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (o(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (o(), v(p(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + c(p(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (o(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, c(N.value.prefixIcon) + " " + c(G.value), 9, V), N.value.suffixTxt ? (o(), i("span", { key: 0, class: r(p(D)), style: s(p(E)) }, c(N.value.suffixTxt), 7)) : g("", true)]));
29
+ } }), (e3, t2) => {
30
+ const l2 = u("el-form-item");
31
+ return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m("  " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
34
32
  };
35
33
  } });
36
34
  export {
@@ -1,11 +1,10 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, openBlock as u, createBlock as o, normalizeStyle as r, unref as s, normalizeClass 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 m, createElementBlock as g, 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;
9
8
  let $ = S.value.formatting;
10
9
  const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
11
10
  let e3 = b(D, h);
@@ -22,9 +21,9 @@ const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
22
21
  const e3 = V.value;
23
22
  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 });
24
23
  });
25
- }), (t2, l2) => {
26
- const n2 = i("el-link"), a2 = i("el-tooltip"), y2 = i("el-form-item");
27
- return u(), o(y2, { ref_key: "formItemRef", ref: z, class: p(s(w)), "label-width": S.value.labelWidth, style: r(s(j)) }, { label: f(() => [S.value.tittleShow ? (u(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...s(I) }) }, m(s(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(a2, { disabled: !s(q), content: s(q) }, { default: f(() => [c(n2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => s(x)(t3, e2.pageContext, e2.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"]);
24
+ }), (e3, t2) => {
25
+ const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
26
+ 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"]);
28
27
  };
29
28
  } });
30
29
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, openBlock as l, createBlock as a, normalizeStyle as u, unref as f, normalizeClass as s, withCtx as i, createElementVNode as m } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, createBlock as l, openBlock as a, normalizeStyle as u, normalizeClass as f, unref as s, withCtx as i, createElementVNode as m } from "vue";
2
2
  import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
3
3
  const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
4
4
  const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
@@ -8,7 +8,7 @@ const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure
8
8
  });
9
9
  }), (e3, t2) => {
10
10
  const n2 = r("el-form-item");
11
- return l(), a(n2, { ref_key: "formItemRef", ref: v, class: s(f(d)), style: u(f(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
11
+ return a(), l(n2, { ref_key: "formItemRef", ref: v, class: f(s(d)), style: u(s(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
12
12
  };
13
13
  } });
14
14
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as u, nextTick as a, resolveComponent as i, openBlock as r, createBlock as s, normalizeStyle as f, unref as p, normalizeClass as c, withCtx as g, createVNode as v, createElementBlock as d, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as u, nextTick as a, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, withCtx as g, createVNode as v, createElementBlock as d, Fragment as m, renderList as h, createTextVNode as y, toDisplayString as b, createCommentVNode as C } from "vue";
2
2
  import { setVariableValue as x, getVariableValue as k, getOptionDatasFromPage as _, autoSetAfterSelect as S, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as T, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
@@ -72,9 +72,9 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
72
72
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
73
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
74
  }
75
- } }), (t2, l2) => {
76
- const o2 = i("el-radio"), n2 = i("el-radio-group"), u2 = i("el-form-item");
77
- return r(), s(u2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: c(p(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(p(W)) }, { label: g(() => [A.value.tittleShow ? (r(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...p(U), ...p($) }) }, b(p(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: g(() => [(r(true), d(m, null, h(B.value, (t3) => (r(), s(o2, { key: t3.value, label: t3.value, onClick: (l3) => p(T)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
+ } }), (e3, t2) => {
76
+ const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
77
+ return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
@@ -2,7 +2,7 @@ import t from "./richtext-runtime.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const r = e(t, [["__scopeId", "data-v-fd10cc69"]]);
5
+ const r = e(t, [["__scopeId", "data-v-7f659782"]]);
6
6
  export {
7
7
  r as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, openBlock as r, createElementBlock as u, Fragment as s, createVNode as c, normalizeStyle as d, unref as p, normalizeClass as f, withCtx as m, createElementVNode as v, createBlock as g, toDisplayString as h, createCommentVNode as b } from "vue";
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, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
@@ -17,8 +17,8 @@ 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);
21
- let ne = null;
20
+ const te = k(W.pageContext, ee), ne = t(null);
21
+ let le = 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;
24
24
  function de(e3) {
@@ -26,19 +26,19 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
26
26
  }
27
27
  const pe = de(ce), fe = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: B }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: U }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: pe ? "" : X.value.placeholder, readOnly: pe });
28
28
  function me() {
29
- if (!(ne == null ? void 0 : ne.container)) return;
30
- const e3 = ne.container.parentNode;
29
+ if (!(le == null ? void 0 : le.container)) return;
30
+ const e3 = le.container.parentNode;
31
31
  if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), l2 = ne.container.getBoundingClientRect();
33
- let n2 = t2.height - (l2.top - t2.top);
34
- ne.container.style.height = Math.max(n2, 100) + "px";
32
+ const t2 = e3.getBoundingClientRect(), n2 = le.container.getBoundingClientRect();
33
+ let l2 = t2.height - (n2.top - t2.top);
34
+ l2 -= 24, le.container.style.height = Math.max(l2, 100) + "px";
35
35
  }
36
- l(X.value, () => {
36
+ n(X.value, () => {
37
37
  const e3 = X.value.state;
38
38
  if (null != e3 && e3 !== ce) {
39
39
  ce = e3;
40
40
  const t2 = de(ce);
41
- ne && (ne.enable(!t2), ne.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
41
+ le && (le.enable(!t2), le.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
42
42
  }
43
43
  });
44
44
  const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
@@ -48,17 +48,17 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
48
48
  return t2 ? t2[1] : "";
49
49
  }
50
50
  function we(e3) {
51
- if (!ne) return;
51
+ if (!le) 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;
55
- return `<img src="${A(n2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${l3}&isShowWatermark=false" data-uuid="${l3}"`;
54
+ const n3 = ke(t4), l2 = W.pageContext.backendUrl;
55
+ return `<img src="${A(l2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
56
56
  });
57
57
  return t3 = t3.replace(/\t/g, "    "), t3 = t3.replace(/ {2}/g, "  "), t3;
58
- }(e3), l2 = ne.clipboard.convertHTML(t2);
59
- ne.setContents(l2.ops), o(() => {
60
- if (!ne) return;
61
- ne.root.querySelectorAll("img").forEach((e4) => {
58
+ }(e3), n2 = le.clipboard.convertHTML(t2);
59
+ le.setContents(n2.ops), o(() => {
60
+ if (!le) return;
61
+ le.root.querySelectorAll("img").forEach((e4) => {
62
62
  if (!e4.getAttribute("data-uuid")) {
63
63
  const t3 = ke(e4.src);
64
64
  e4.setAttribute("data-uuid", t3);
@@ -69,26 +69,28 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
69
69
  const Ce = { bold: "加粗", italic: "斜体", underline: "下划线", strike: "删除线", blockquote: "引用", "code-block": "代码块", 'list[value="ordered"]': "有序列表", 'list[value="bullet"]': "无序列表", 'script[value="sub"]': "下标", 'script[value="super"]': "上标", 'indent[value="-1"]': "减少缩进", 'indent[value="+1"]': "增加缩进", 'direction[value="rtl"]': "文字方向", size: "字体大小", header: "标题", color: "字体颜色", background: "背景颜色", font: "字体", align: "对齐方式", clean: "清除格式", link: "链接", image: "图片" };
70
70
  function qe() {
71
71
  oe.value = !oe.value, o(() => {
72
- me();
72
+ !oe.value && (le == null ? void 0 : le.container) && (le.container.style.height = ""), me();
73
73
  });
74
74
  }
75
75
  function Te() {
76
- ne && (ue.value = ne.root.innerHTML, re.value = true);
76
+ le && (ue.value = le.root.innerHTML, re.value = true);
77
77
  }
78
78
  function Se() {
79
- if (!ne) return void (ie.value = 0);
80
- const e3 = ne.getText().trim();
79
+ if (!le) return void (ie.value = 0);
80
+ const e3 = le.getText().trim();
81
81
  ie.value = e3.length;
82
82
  }
83
83
  function Ee() {
84
84
  M.error({ message: "图片上传失败,请重试", duration: 3e3 });
85
85
  }
86
86
  function Ae(e3) {
87
- "Escape" === e3.key && oe.value && (oe.value = false);
87
+ "Escape" === e3.key && oe.value && (oe.value = false, o(() => {
88
+ (le == null ? void 0 : le.container) && (le.container.style.height = ""), me();
89
+ }));
88
90
  }
89
91
  function Le(e3) {
90
92
  var _a;
91
- ne && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || T(ne.root.innerHTML, W.pageContext, W.configure, "change", { entity: G }));
93
+ le && (null !== e3.relatedTarget && ((_a = ne.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || T(le.root.innerHTML, W.pageContext, W.configure, "change", { entity: G }));
92
94
  }
93
95
  function He(e3) {
94
96
  if ("img" === e3.target.localName) {
@@ -100,47 +102,47 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
100
102
  function Me(e3) {
101
103
  const t2 = new FormData();
102
104
  t2.append("file", e3);
103
- const l2 = W.pageContext.backendUrl, n2 = A(l2, W.pageContext.isTest);
104
- return S.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
105
+ const n2 = W.pageContext.backendUrl, l2 = A(n2, W.pageContext.isTest);
106
+ return S.post(l2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
105
107
  }
106
108
  function Ne(e3, t2) {
107
- const l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/), o2 = n2 ? n2[1] : "image/png", i2 = atob(l2[1]);
109
+ const n2 = e3.split(","), l2 = n2[0].match(/:(.*?);/), o2 = l2 ? l2[1] : "image/png", i2 = atob(n2[1]);
108
110
  let a2 = i2.length;
109
111
  const r2 = new Uint8Array(a2);
110
112
  for (; a2--; ) r2[a2] = i2.charCodeAt(a2);
111
113
  return new File([r2], t2, { type: o2 });
112
114
  }
113
- return n(() => {
115
+ return l(() => {
114
116
  var _a;
115
- le.value && (ne = new H(le.value, fe.value), ne.root.style.fontSize = "16px", function() {
117
+ ne.value && (le = new H(ne.value, fe.value), le.root.style.fontSize = "16px", function() {
116
118
  var _a2, _b;
117
- 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");
118
120
  if (!e3) return;
119
121
  e3.querySelectorAll("button").forEach((e4) => {
120
122
  const t2 = e4.className.match(/ql-([\w-]+)/);
121
123
  if (t2) {
122
- const l2 = t2[1], n2 = `${l2}[value="${e4.value}"]`;
123
- Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[l2] && e4.setAttribute("data-tooltip", Ce[l2]);
124
+ const n2 = t2[1], l2 = `${n2}[value="${e4.value}"]`;
125
+ Ce[l2] ? e4.setAttribute("data-tooltip", Ce[l2]) : Ce[n2] && e4.setAttribute("data-tooltip", Ce[n2]);
124
126
  }
125
127
  }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
126
128
  const t2 = e4.className.match(/ql-(\w+)/);
127
129
  if (t2) {
128
- const l2 = t2[1];
129
- if (Ce[l2]) {
130
+ const n2 = t2[1];
131
+ if (Ce[n2]) {
130
132
  const t3 = e4.querySelector(".ql-picker-label");
131
- t3 && t3.setAttribute("data-tooltip", Ce[l2]);
133
+ t3 && t3.setAttribute("data-tooltip", Ce[n2]);
132
134
  }
133
135
  }
134
136
  });
135
137
  }(), function() {
136
138
  var _a2, _b;
137
- 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");
138
140
  e3 && e3.addEventListener("mousedown", (e4) => {
139
141
  e4.preventDefault();
140
142
  });
141
- }(), we(te), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", Le), ne.on("text-change", async function(e3) {
142
- if (!ne) return;
143
- const t2 = ne.root.getElementsByTagName("img");
143
+ }(), we(te), (_a = ne.value) == null ? void 0 : _a.addEventListener("focusout", Le), le.on("text-change", async function(e3) {
144
+ if (!le) return;
145
+ const t2 = le.root.getElementsByTagName("img");
144
146
  for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
145
147
  const t3 = ke(e4.src);
146
148
  e4.setAttribute("data-uuid", t3);
@@ -152,12 +154,12 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
152
154
  if (!t4.startsWith("data:image")) continue;
153
155
  try {
154
156
  ae.value = true;
155
- const e5 = Ne(t4, "image.png"), l2 = await Me(e5);
156
- if (!ne) return;
157
- const n2 = ne.root.getElementsByTagName("img");
158
- for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
157
+ const e5 = Ne(t4, "image.png"), n2 = await Me(e5);
158
+ if (!le) return;
159
+ const l2 = le.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
161
  } catch (e5) {
160
- console.error("上传图片失败", e5), Ee();
162
+ Ee();
161
163
  } finally {
162
164
  ae.value = false;
163
165
  }
@@ -166,30 +168,30 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
166
168
  !function() {
167
169
  se && clearTimeout(se);
168
170
  se = setTimeout(() => {
169
- if (!ne) return;
170
- const e4 = ne.root.innerHTML;
171
+ if (!le) return;
172
+ const e4 = le.root.innerHTML;
171
173
  C(G, I, e4), e4 && (P.value = "");
172
174
  }, 300);
173
175
  }(), Se();
174
- }), Se(), xe = ne.container, xe.addEventListener("click", He), me(), o(() => {
176
+ }), Se(), xe = le.container, xe.addEventListener("click", He), me(), o(() => {
175
177
  const e3 = w(G, I);
176
178
  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
179
  }));
178
- }), n(() => {
180
+ }), l(() => {
179
181
  document.addEventListener("keydown", Ae);
180
182
  }), i(() => {
181
- document.removeEventListener("keydown", Ae), se && clearTimeout(se), le.value && le.value.removeEventListener("focusout", Le), xe && xe.removeEventListener("click", He);
183
+ document.removeEventListener("keydown", Ae), se && clearTimeout(se), ne.value && ne.value.removeEventListener("focusout", Le), xe && xe.removeEventListener("click", He);
182
184
  }), z2({ addRequiredClass: function() {
183
185
  P.value = L();
184
186
  }, setContent: function(e3) {
185
187
  we(e3), Se();
186
188
  }, getContent: function() {
187
- return ne ? ne.root.innerHTML : "";
189
+ return le ? le.root.innerHTML : "";
188
190
  } }), (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");
190
- return r(), u(s, null, [c(y2, { required: X.value.required, class: f(p(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: d(p(O)) }, { label: m(() => [X.value.tittleShow ? (r(), u("div", { key: 0, style: d({ ...p(J), ...p(Q) }) }, h(p(E)(X.value.title)), 5)) : b("", true)]), default: m(() => [v("div", { class: f(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [v("div", { ref_key: "quillEditorRef", ref: le, style: { width: "100%" } }, null, 512), v("div", N, [v("button", { class: "toolbar-btn", onClick: Te, title: "预览" }, [c(n2, null, { default: m(() => [c(l2)]), _: 1 })]), v("button", { class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (r(), g(n2, { key: 1 }, { default: m(() => [c(i2)]), _: 1 })) : (r(), g(n2, { key: 0 }, { default: m(() => [c(o2)]), _: 1 }))], 8, R)]), v("div", _, [v("span", j, "字数:" + h(ie.value), 1)]), ae.value ? (r(), u("div", V, [...t2[2] || (t2[2] = [v("div", { class: "loading-spinner" }, null, -1), v("span", null, "图片上传中...", -1)])])) : b("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (r(), g(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
191
+ const n2 = a("View"), l2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
192
+ return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { type: "button", class: "toolbar-btn", onClick: Te, title: "预览" }, [c(l2, null, { default: g(() => [c(n2)]), _: 1 })]), h("button", { type: "button", class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(l2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
191
193
  ge.value = false;
192
- }), "url-list": ve.value }, null, 8, ["url-list"])) : b("", 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: m(() => [v("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
194
+ }), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
193
195
  };
194
196
  } });
195
197
  export {