super-page-runtime 2.3.39-sit2 → 2.3.40-cdn1

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 (80) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +157 -149
  6. package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
  7. package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
  8. package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
  9. package/dist/es/components/runtime/utils/page-init-util.js +28 -26
  10. package/dist/es/components/runtime/utils/page-store.js +9 -9
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  22. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
  27. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  28. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  29. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  30. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
  32. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -17
  34. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  37. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  42. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  44. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  45. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -37
  46. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  48. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
  49. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
  52. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  53. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
  55. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
  56. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
  57. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
  58. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
  61. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  64. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  66. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
  67. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  68. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  72. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  73. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  74. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  75. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  76. package/dist/es/components/runtime/views/super-page.vue2.js +75 -72
  77. package/dist/es/i18n/langs/cn.js +1 -1
  78. package/dist/es/i18n/langs/en.js +1 -1
  79. package/dist/es/style.css +102 -102
  80. package/package.json +2 -2
@@ -1,78 +1,79 @@
1
- import { defineComponent as e, ref as l, computed as t, 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 T, 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 s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as y, createVNode as m, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
2
2
  import { SuperIcon as k } from "agilebuilder-ui";
3
- import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
4
- import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
- import { handleFormEvent as j, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
7
- import D from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
9
- import z from "../../../../utils/eventBus.js";
10
- import { $t as J } from "../../../../utils/i18n-util.js";
3
+ import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
4
+ import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
+ import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
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, isDingTalkEnv as J } from "agilebuilder-ui/src/utils/common-util";
9
+ import M from "../../../../utils/eventBus.js";
10
+ import { $t as z } from "../../../../utils/i18n-util.js";
11
11
  import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
12
12
  const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  var _a, _b, _c;
14
- const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
15
- let E = V(F.pageContext, F.configure);
14
+ const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = t("text");
15
+ let E = w(F.pageContext, F.configure);
16
16
  if (F.pageContext.modelFieldsMap) {
17
- const e3 = w(E, F.pageContext);
17
+ const e3 = V(E, F.pageContext);
18
18
  e3 && (A.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
20
+ const H = t(D()), U = F.pageContext.code, W = t(E && E.length > 0 ? U + "__" + E.join("__") : null), G = t(null), K = l({ get: () => _($, E), set(e3) {
21
21
  b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
22
- } }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
23
- let te = false;
24
- N() && (te = true);
22
+ } }), Q = t(null), X = t(null), Y = t(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = t(Z.props ? Z.props : {}), te = t(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
23
+ let le = false;
24
+ J() && (le = true);
25
25
  let ne = "";
26
- ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
27
- const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
28
- let ue = {};
26
+ const oe = navigator.userAgent;
27
+ ne = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
28
+ const ae = !(!H.value || !ne || "app" !== ne), ue = t(!!((ae || le) && te.value || H.value && te.value && "https:" === window.location.protocol));
29
+ let ie = {};
29
30
  ((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
30
- ue = e3;
31
+ ie = e3;
31
32
  }), u(() => K.value, (e3) => {
32
33
  e3 = e3.trim();
33
- const l2 = P(e3, ue);
34
- l2 && q(F.pageContext, l2.scanSet, l2.params);
34
+ const t2 = N(e3, ie);
35
+ t2 && P(F.pageContext, t2.scanSet, t2.params);
35
36
  }));
36
- const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
37
- function ce(e3) {
37
+ const re = Z.style, se = Z.class, pe = Z.headerStyle, ce = Z.titleExceedStyle;
38
+ function ve(e3) {
38
39
  return b($, E, e3);
39
40
  }
40
41
  n(() => {
41
- z.$on(W.value + "-scanDone", (e3) => {
42
- ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
42
+ M.$on(W.value + "-scanDone", (e3) => {
43
+ W.value, JSON.stringify(e3), ve(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
43
44
  }), o(() => {
44
45
  var _a2;
45
46
  const e3 = K.value;
46
- S(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
47
+ j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ye();
47
48
  });
48
49
  }), a(() => {
49
- z.$off(W.value + "-scanDone");
50
+ M.$off(W.value + "-scanDone");
50
51
  });
51
- const ve = l(false);
52
- function fe() {
53
- if (oe || te) {
52
+ const fe = t(false);
53
+ function ye() {
54
+ if (ae || le) {
54
55
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
55
- te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
56
- } else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
56
+ le && (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), "*"));
57
+ } else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
57
58
  else {
58
59
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
59
60
  window.parent.postMessage(JSON.stringify(e3), "*");
60
61
  }
61
- else ve.value = true;
62
+ else fe.value = true;
62
63
  }
63
64
  function me(e3) {
64
- ve.value = false, ce(e3);
65
+ fe.value = false, ve(e3);
65
66
  }
66
67
  return B2({ getValue: function() {
67
68
  return _($, E);
68
- }, setValue: ce, scanClick: fe, addRequiredClass: function() {
69
+ }, setValue: ve, scanClick: ye, addRequiredClass: function() {
69
70
  G.value = L();
70
- } }), (e3, l2) => {
71
- const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
72
- return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: m(() => [y(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
73
- let l3 = _($, E);
74
- null != l3 && (l3 = l3.trim()), b($, E, l3), j(e5, F.pageContext, F.configure, "blur");
75
- }(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: m(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: me })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(D, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
71
+ } }), (t2, l2) => {
72
+ const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
73
+ return s(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(se) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(re)) }, f({ default: y(() => [m(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => K.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) {
74
+ let t3 = _($, E);
75
+ null != t3 && (t3 = t3.trim()), b($, E, t3), S(e4, F.pageContext, F.configure, "blur");
76
+ }(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" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: y(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: y(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => ye()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.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: me })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
76
77
  };
77
78
  } });
78
79
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as w } from "agilebuilder-ui";
@@ -8,7 +8,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
8
8
  const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
9
9
  let q = x(S.pageContext, S.configure);
10
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
- const B = t(W.value.options ? W.value.options : []), G = W.value.formatType, H = l(() => {
11
+ const B = t(W.value.options ? W.value.options : []), G = W.value.formatType;
12
+ W.value;
13
+ const H = l(() => {
12
14
  let e3 = h(P, q);
13
15
  if (G) if (W.value.hasOptions) {
14
16
  let t2 = null;
@@ -26,9 +28,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
26
28
  });
27
29
  }), R2({ updateOptions: function(e3) {
28
30
  B.value = e3 || [];
29
- } }), (e3, t2) => {
30
- const l2 = u("el-form-item");
31
- return W.value.whetherTittle ? (s(), i("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(), o(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(), i("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(), o(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(), i("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(), o(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(), i("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(), i("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)]));
32
34
  };
33
35
  } });
34
36
  export {
@@ -7,7 +7,9 @@ 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 : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {}), $ = t();
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
+ const $ = t();
11
13
  ((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
12
14
  let q = S.value.formatting;
13
15
  const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
@@ -31,9 +33,9 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
31
33
  const e3 = J.value;
32
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 });
33
35
  });
34
- }), (e3, t2) => {
35
- const l2 = a("el-link"), i2 = a("el-tooltip"), n2 = a("el-form-item");
36
- return o(), u(n2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(i2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(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: 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"]);
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"]);
37
39
  };
38
40
  } });
39
41
  export {
@@ -1,82 +1,84 @@
1
1
  import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
2
- import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, autoSetAfterSelect as R, queryOptionDatasources as j } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as I, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
5
- import { $t as V } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as w } from "../../../../utils/common-util.js";
7
- const z = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
8
- const O = e2, D = t(null), E = O.pageContext.entity ? O.pageContext.entity : {};
9
- let M = T(O.pageContext, O.configure);
10
- const P = l({ get() {
11
- let e3 = _(E, M);
2
+ import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
+ import { $t as w } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
7
+ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
+ const D = e2, E = t(null), M = D.pageContext.entity ? D.pageContext.entity : {};
9
+ let P = I(D.pageContext, D.configure);
10
+ const W = l({ get() {
11
+ let e3 = _(M, P);
12
12
  return null != e3 && (e3 += ""), e3;
13
13
  }, set(e3) {
14
- k(E, M, e3), null != e3 && (D.value = "");
15
- } }), W = O.configure.runtime ? O.configure.runtime : {}, F = W.style, U = W.class, $ = W.headerStyle, A = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = t(B.value.options ? B.value.options : []), H = S(O.pageContext, O.configure);
16
- H.length > 0 && (G.value = H);
17
- const J = O.configure.props && O.configure.props.dataOrigin ? O.configure.props.dataOrigin : {}, K = J.optionValueSetType;
18
- let L = [];
19
- if (("dynamicData" == K || "dataTable" == K || "service" == K) && J.autoSets) for (let e3 of J.autoSets) e3.source && L.push(e3);
20
- O.configure && O.configure.props && O.configure.props.base && O.configure.props.base.optionProp && L.push({ source: "label", target: O.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
21
- if (L.length > 0) {
14
+ k(M, P, e3), null != e3 && (E.value = "");
15
+ } }), F = D.configure.runtime ? D.configure.runtime : {}, U = F.style, $ = F.class, A = F.headerStyle, B = F.titleExceedStyle, G = t(F.props ? F.props : {}), H = t(G.value.options ? G.value.options : []), J = S(D.pageContext, D.configure);
16
+ J.length > 0 && (H.value = J);
17
+ const K = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, L = K.optionValueSetType;
18
+ let N = [];
19
+ if ("dynamicData" == L || "dataTable" == L || "service" == L) {
20
+ if (K.autoSets) for (let e3 of K.autoSets) e3.source && N.push(e3);
21
+ } else "static" == L && R(D.pageContext, D.configure.uuid, H.value);
22
+ D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && N.push({ source: "label", target: D.configure.props.base.optionProp }), G.value.changeMethod = function(e3) {
23
+ if (N.length > 0) {
22
24
  let t2 = null;
23
- G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => e3 === t3.value)), R(O.configure, O.pageContext, L, t2);
25
+ H.value && null != e3 && null != e3 && (t2 = H.value.filter((t3) => e3 === t3.value)), j(D.configure, D.pageContext, N, t2);
24
26
  }
25
- I(e3, O.pageContext, O.configure, "change");
27
+ q(e3, D.pageContext, D.configure, "change");
26
28
  };
27
- const N = B.value.monitorFields, Q = [];
28
- if (N) {
29
+ const Q = G.value.monitorFields, X = [];
30
+ if (Q) {
29
31
  const e3 = [];
30
- for (let t2 of N) if (t2.startsWith("${")) {
32
+ for (let t2 of Q) if (t2.startsWith("${")) {
31
33
  t2 = t2.substring(2, t2.length - 1);
32
34
  const l2 = t2.split(".");
33
- "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (Q.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
35
+ "page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (X.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
34
36
  }
35
- for (let t2 of e3) o(E[t2], () => {
36
- te();
37
+ for (let t2 of e3) o(M[t2], () => {
38
+ le();
37
39
  });
38
40
  }
39
- function X() {
41
+ function Y() {
40
42
  let e3 = "";
41
- for (let t2 of Q) e3 += "_" + _(E, t2);
43
+ for (let t2 of X) e3 += "_" + _(M, t2);
42
44
  return e3;
43
45
  }
44
- let Y = X(), Z = false;
45
- const ee = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
46
- function te() {
47
- Z && clearTimeout(Z), Z = setTimeout(function() {
48
- const e3 = X();
49
- e3 != Y && (Y = e3, j(O.pageContext, ee, void 0).then((e4) => {
46
+ let Z = Y(), ee = false;
47
+ const te = G.value.optionconfigInfo ? G.value.optionconfigInfo : {};
48
+ function le() {
49
+ ee && clearTimeout(ee), ee = setTimeout(function() {
50
+ const e3 = Y();
51
+ e3 != Z && (Z = e3, T(D.pageContext, te, void 0).then((e4) => {
50
52
  }));
51
53
  }, 200);
52
54
  }
53
55
  n(() => {
54
- Z && clearTimeout(Z);
56
+ ee && clearTimeout(ee);
55
57
  });
56
- const le = t(null), oe = t(null), ne = t(null);
58
+ const oe = t(null), ne = t(null), ae = t(null);
57
59
  return a(() => {
58
60
  u(() => {
59
- const e3 = P.value;
60
- q(e3, O.pageContext, O.configure, { formItemRef: le.value, componentRef: oe.value, titleRef: ne.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
61
+ const e3 = W.value;
62
+ V(e3, D.pageContext, D.configure, { formItemRef: oe.value, componentRef: ne.value, titleRef: ae.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
61
63
  });
62
- }), z2({ updateOptions: function(e3) {
63
- G.value = e3 || [];
64
+ }), O2({ updateOptions: function(e3) {
65
+ H.value = e3 || [];
64
66
  }, addRequiredClass: function() {
65
- D.value = w();
67
+ E.value = z();
66
68
  }, getSelectItemsTitle: function() {
67
- let e3 = _(E, M);
69
+ let e3 = _(M, P);
68
70
  if (null == e3) return "";
69
71
  if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
70
72
  let t2 = "";
71
- return G.value.length > 0 ? (G.value.forEach((l2) => {
73
+ return H.value.length > 0 ? (H.value.forEach((l2) => {
72
74
  l2.value === e3 && (t2 = t2 + l2.label + ",");
73
75
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
74
76
  }
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: 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"]);
77
+ } }), (t2, l2) => {
78
+ const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
79
+ return s(), r(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
80
  };
79
81
  } });
80
82
  export {
81
- z as default
83
+ O as default
82
84
  };
@@ -159,7 +159,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
159
159
  const n2 = oe.root.getElementsByTagName("img");
160
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
- Ae();
162
+ console.error("上传图片失败", e5), Ae();
163
163
  } finally {
164
164
  re.value = false;
165
165
  }
@@ -189,7 +189,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
189
189
  return oe ? oe.root.innerHTML : "";
190
190
  } }), (e3, t2) => {
191
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] = () => {
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
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
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./select-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(e, [["__scopeId", "data-v-f0e9b5f0"]]);
4
+ const r = t(e, [["__scopeId", "data-v-ccac4657"]]);
5
5
  export {
6
6
  r as default
7
7
  };