super-page-runtime 2.3.36 → 2.3.37-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 (77) 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 +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
  5. package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
  6. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -98
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  23. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  30. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  32. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  33. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -37
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +43 -43
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -60
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -28
  50. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
  51. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
  61. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +96 -94
  63. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
  66. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  68. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  70. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  71. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  72. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  73. package/dist/es/components/runtime/views/super-page.vue2.js +27 -22
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. package/dist/es/style.css +166 -158
  77. package/package.json +2 -2
@@ -1,111 +1,111 @@
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
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
5
- import S from "agilebuilder-ui/src/utils/request";
6
- import { $t as E } from "../../../../utils/i18n-util.js";
7
- import { getBaseUrl as A, addRequiredClassUtil as L } from "../../../../utils/common-util.js";
8
- import H from "quill";
1
+ import { defineComponent as e, ref as t, watch as n, onMounted as l, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, createSlots as g, withCtx as h, createElementVNode as b, toDisplayString as y } from "vue";
2
+ import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
+ import { getSizeConfig as k, formatVariableValue as w, getVariableValue as C, setVariableValue as q } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as T, handleFormEvent as S } from "../../../../utils/events/event-util.js";
5
+ import E from "agilebuilder-ui/src/utils/request";
6
+ import { $t as A } from "../../../../utils/i18n-util.js";
7
+ import { getBaseUrl as L, addRequiredClassUtil as H } from "../../../../utils/common-util.js";
8
+ import M from "quill";
9
9
  import "quill/dist/quill.snow.css";
10
- import { ElMessage as M } from "element-plus";
11
- const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext-statusbar" }, j = { class: "word-count" }, V = { key: 0, class: "upload-loading" }, $ = ["innerHTML"], z = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
- const B = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], F = H.import("attributors/style/size");
13
- F.whitelist = B, H.register(F, true);
14
- const U = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], D = H.import("attributors/style/font");
15
- D.whitelist = U, H.register(D, true);
16
- const W = e2, P = t(""), G = W.pageContext.entity ? W.pageContext.entity : {}, I = y(W.pageContext, W.configure), K = W.configure.runtime ? W.configure.runtime : {}, O = K.style, Y = K.class, J = K.headerStyle, Q = K.titleExceedStyle, X = t(K.props ? K.props : {});
17
- let Z = x(W.pageContext, W.configure);
18
- Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
19
- let ee = X.value.value;
20
- const te = k(W.pageContext, ee), ne = t(null);
21
- let le = null;
22
- const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
23
- let se = null, ce = X.value.state;
24
- function de(e3) {
10
+ import { ElMessage as N } from "element-plus";
11
+ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext-statusbar" }, V = { class: "word-count" }, $ = { key: 0, class: "upload-loading" }, z = ["innerHTML"], B = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
12
+ const F = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], U = M.import("attributors/style/size");
13
+ U.whitelist = F, M.register(U, true);
14
+ const D = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], W = M.import("attributors/style/font");
15
+ W.whitelist = D, M.register(W, true);
16
+ const P = e2, G = t(""), I = P.pageContext.entity ? P.pageContext.entity : {}, K = x(P.pageContext, P.configure), O = P.configure.runtime ? P.configure.runtime : {}, Y = O.style, J = O.class, Q = O.headerStyle, X = O.titleExceedStyle, Z = t(O.props ? O.props : {});
17
+ let ee = k(P.pageContext, P.configure);
18
+ ee && ee.fixHeight && (Y.height || (Y.height = ee.fixHeight + "px"));
19
+ let te = Z.value.value;
20
+ const ne = w(P.pageContext, te), le = t(null);
21
+ let oe = null;
22
+ const ie = t(false), ae = t(0), re = t(false), ue = t(false), se = t("");
23
+ let ce = null, de = Z.value.state;
24
+ function pe(e3) {
25
25
  return "readonly" == e3 || "disabled" == e3;
26
26
  }
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
- function me() {
29
- if (!(le == null ? void 0 : le.container)) return;
30
- const e3 = le.container.parentNode;
27
+ const fe = pe(de), me = 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: F }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: D }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: fe ? "" : Z.value.placeholder, readOnly: fe });
28
+ function ve() {
29
+ if (!(oe == null ? void 0 : oe.container)) return;
30
+ const e3 = oe.container.parentNode;
31
31
  if (!e3) return;
32
- const t2 = e3.getBoundingClientRect(), n2 = le.container.getBoundingClientRect();
32
+ const t2 = e3.getBoundingClientRect(), n2 = oe.container.getBoundingClientRect();
33
33
  let l2 = t2.height - (n2.top - t2.top);
34
- l2 -= 24, le.container.style.height = Math.max(l2, 100) + "px";
34
+ l2 -= 24, oe.container.style.height = Math.max(l2, 100) + "px";
35
35
  }
36
- n(X.value, () => {
37
- const e3 = X.value.state;
38
- if (null != e3 && e3 !== ce) {
39
- ce = e3;
40
- const t2 = de(ce);
41
- le && (le.enable(!t2), le.root.dataset.placeholder = t2 ? "" : X.value.placeholder);
36
+ n(Z.value, () => {
37
+ const e3 = Z.value.state;
38
+ if (null != e3 && e3 !== de) {
39
+ de = e3;
40
+ const t2 = pe(de);
41
+ oe && (oe.enable(!t2), oe.root.dataset.placeholder = t2 ? "" : Z.value.placeholder);
42
42
  }
43
43
  });
44
- const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
45
- let xe = null;
46
- function ke(e3) {
44
+ const ge = t([]), he = t(false), be = t(null), ye = t(null), xe = t(null);
45
+ let ke = null;
46
+ function we(e3) {
47
47
  const t2 = e3.match(/serverPath=([^&"]+)/);
48
48
  return t2 ? t2[1] : "";
49
49
  }
50
- function we(e3) {
51
- if (!le) return;
50
+ function Ce(e3) {
51
+ if (!oe) return;
52
52
  const t2 = function(e4) {
53
53
  let t3 = e4.replace(/<img data-uuid="(.*?)"/g, (e5, t4) => {
54
- const n3 = ke(t4), l2 = W.pageContext.backendUrl;
55
- return `<img src="${A(l2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
54
+ const n3 = we(t4), l2 = P.pageContext.backendUrl;
55
+ return `<img src="${L(l2, P.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
56
56
  });
57
57
  return t3 = t3.replace(/\t/g, "    "), t3 = t3.replace(/ {2}/g, "  "), t3;
58
- }(e3), n2 = le.clipboard.convertHTML(t2);
59
- le.setContents(n2.ops), o(() => {
60
- if (!le) return;
61
- le.root.querySelectorAll("img").forEach((e4) => {
58
+ }(e3), n2 = oe.clipboard.convertHTML(t2);
59
+ oe.setContents(n2.ops), o(() => {
60
+ if (!oe) return;
61
+ oe.root.querySelectorAll("img").forEach((e4) => {
62
62
  if (!e4.getAttribute("data-uuid")) {
63
- const t3 = ke(e4.src);
63
+ const t3 = we(e4.src);
64
64
  e4.setAttribute("data-uuid", t3);
65
65
  }
66
66
  });
67
67
  });
68
68
  }
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
- function qe() {
71
- oe.value = !oe.value, o(() => {
72
- !oe.value && (le == null ? void 0 : le.container) && (le.container.style.height = ""), me();
73
- });
74
- }
69
+ const qe = { 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: "图片" };
75
70
  function Te() {
76
- le && (ue.value = le.root.innerHTML, re.value = true);
71
+ ie.value = !ie.value, o(() => {
72
+ !ie.value && (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ve();
73
+ });
77
74
  }
78
75
  function Se() {
79
- if (!le) return void (ie.value = 0);
80
- const e3 = le.getText().trim();
81
- ie.value = e3.length;
76
+ oe && (se.value = oe.root.innerHTML, ue.value = true);
82
77
  }
83
78
  function Ee() {
84
- M.error({ message: "图片上传失败,请重试", duration: 3e3 });
79
+ if (!oe) return void (ae.value = 0);
80
+ const e3 = oe.getText().trim();
81
+ ae.value = e3.length;
85
82
  }
86
- function Ae(e3) {
87
- "Escape" === e3.key && oe.value && (oe.value = false, o(() => {
88
- (le == null ? void 0 : le.container) && (le.container.style.height = ""), me();
89
- }));
83
+ function Ae() {
84
+ N.error({ message: "图片上传失败,请重试", duration: 3e3 });
90
85
  }
91
86
  function Le(e3) {
92
- var _a;
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 }));
87
+ "Escape" === e3.key && ie.value && (ie.value = false, o(() => {
88
+ (oe == null ? void 0 : oe.container) && (oe.container.style.height = ""), ve();
89
+ }));
94
90
  }
95
91
  function He(e3) {
92
+ var _a;
93
+ oe && (null !== e3.relatedTarget && ((_a = le.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || S(oe.root.innerHTML, P.pageContext, P.configure, "change", { entity: I }));
94
+ }
95
+ function Me(e3) {
96
96
  if ("img" === e3.target.localName) {
97
- ve.value = [];
97
+ ge.value = [];
98
98
  let t2 = e3.target.src;
99
- ve.value.push(t2), ge.value = true;
99
+ ge.value.push(t2), he.value = true;
100
100
  }
101
101
  }
102
- function Me(e3) {
102
+ function Ne(e3) {
103
103
  const t2 = new FormData();
104
104
  t2.append("file", e3);
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
+ const n2 = P.pageContext.backendUrl, l2 = L(n2, P.pageContext.isTest);
106
+ return E.post(l2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
107
107
  }
108
- function Ne(e3, t2) {
108
+ function Re(e3, t2) {
109
109
  const n2 = e3.split(","), l2 = n2[0].match(/:(.*?);/), o2 = l2 ? l2[1] : "image/png", i2 = atob(n2[1]);
110
110
  let a2 = i2.length;
111
111
  const r2 = new Uint8Array(a2);
@@ -114,37 +114,37 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
114
114
  }
115
115
  return l(() => {
116
116
  var _a;
117
- ne.value && (le = new H(ne.value, fe.value), le.root.style.fontSize = "16px", function() {
117
+ le.value && (oe = new M(le.value, me.value), oe.root.style.fontSize = "16px", function() {
118
118
  var _a2, _b;
119
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
119
+ const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
120
120
  if (!e3) return;
121
121
  e3.querySelectorAll("button").forEach((e4) => {
122
122
  const t2 = e4.className.match(/ql-([\w-]+)/);
123
123
  if (t2) {
124
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]);
125
+ qe[l2] ? e4.setAttribute("data-tooltip", qe[l2]) : qe[n2] && e4.setAttribute("data-tooltip", qe[n2]);
126
126
  }
127
127
  }), e3.querySelectorAll(".ql-picker").forEach((e4) => {
128
128
  const t2 = e4.className.match(/ql-(\w+)/);
129
129
  if (t2) {
130
130
  const n2 = t2[1];
131
- if (Ce[n2]) {
131
+ if (qe[n2]) {
132
132
  const t3 = e4.querySelector(".ql-picker-label");
133
- t3 && t3.setAttribute("data-tooltip", Ce[n2]);
133
+ t3 && t3.setAttribute("data-tooltip", qe[n2]);
134
134
  }
135
135
  }
136
136
  });
137
137
  }(), function() {
138
138
  var _a2, _b;
139
- const e3 = (_b = (_a2 = ne.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
139
+ const e3 = (_b = (_a2 = le.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
140
140
  e3 && e3.addEventListener("mousedown", (e4) => {
141
141
  e4.preventDefault();
142
142
  });
143
- }(), 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");
143
+ }(), Ce(ne), (_a = le.value) == null ? void 0 : _a.addEventListener("focusout", He), oe.on("text-change", async function(e3) {
144
+ if (!oe) return;
145
+ const t2 = oe.root.getElementsByTagName("img");
146
146
  for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
147
- const t3 = ke(e4.src);
147
+ const t3 = we(e4.src);
148
148
  e4.setAttribute("data-uuid", t3);
149
149
  }
150
150
  if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
@@ -153,47 +153,47 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
153
153
  const t4 = e4.image;
154
154
  if (!t4.startsWith("data:image")) continue;
155
155
  try {
156
- ae.value = true;
157
- const e5 = Ne(t4, "image.png"), n2 = await Me(e5);
158
- if (!le) return;
159
- const l2 = le.root.getElementsByTagName("img");
156
+ re.value = true;
157
+ const e5 = Re(t4, "image.png"), n2 = await Ne(e5);
158
+ if (!oe) return;
159
+ const l2 = oe.root.getElementsByTagName("img");
160
160
  for (const e6 of l2) e6.src === t4 && (e6.width = 300, e6.src = n2.url, e6.setAttribute("data-uuid", n2.uuid));
161
161
  } catch (e5) {
162
- console.error("上传图片失败", e5), Ee();
162
+ Ae();
163
163
  } finally {
164
- ae.value = false;
164
+ re.value = false;
165
165
  }
166
166
  }
167
167
  }
168
168
  !function() {
169
- se && clearTimeout(se);
170
- se = setTimeout(() => {
171
- if (!le) return;
172
- const e4 = le.root.innerHTML;
173
- C(G, I, e4), e4 && (P.value = "");
169
+ ce && clearTimeout(ce);
170
+ ce = setTimeout(() => {
171
+ if (!oe) return;
172
+ const e4 = oe.root.innerHTML;
173
+ q(I, K, e4), e4 && (G.value = "");
174
174
  }, 300);
175
- }(), Se();
176
- }), Se(), xe = le.container, xe.addEventListener("click", He), me(), o(() => {
177
- const e3 = w(G, I);
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 });
175
+ }(), Ee();
176
+ }), Ee(), ke = oe.container, ke.addEventListener("click", Me), ve(), o(() => {
177
+ const e3 = C(I, K);
178
+ T(e3, P.pageContext, P.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: xe.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
179
179
  }));
180
180
  }), l(() => {
181
- document.addEventListener("keydown", Ae);
181
+ document.addEventListener("keydown", Le);
182
182
  }), i(() => {
183
- document.removeEventListener("keydown", Ae), se && clearTimeout(se), ne.value && ne.value.removeEventListener("focusout", Le), xe && xe.removeEventListener("click", He);
184
- }), z2({ addRequiredClass: function() {
185
- P.value = L();
183
+ document.removeEventListener("keydown", Le), ce && clearTimeout(ce), le.value && le.value.removeEventListener("focusout", He), ke && ke.removeEventListener("click", Me);
184
+ }), B2({ addRequiredClass: function() {
185
+ G.value = H();
186
186
  }, setContent: function(e3) {
187
- we(e3), Se();
187
+ Ce(e3), Ee();
188
188
  }, getContent: function() {
189
- return le ? le.root.innerHTML : "";
189
+ return oe ? oe.root.innerHTML : "";
190
190
  } }), (e3, t2) => {
191
- const n2 = a("View"), l2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), 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] = () => {
193
- ge.value = false;
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);
191
+ const n2 = a("View"), l2 = 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: le, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(l2, null, { default: h(() => [c(n2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(l2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }) }, 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
+ he.value = false;
194
+ }), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
195
195
  };
196
196
  } });
197
197
  export {
198
- z as default
198
+ B as default
199
199
  };
@@ -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-68808d47"]]);
4
+ const r = t(e, [["__scopeId", "data-v-5193e959"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,156 +1,155 @@
1
- import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as y, createCommentVNode as h, createElementBlock as b, Fragment as x, renderList as C, toDisplayString as _, createTextVNode as w } from "vue";
2
- import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as A, autoSetAfterSelect as T, getVariableValue as j } from "../../../../utils/page-helper-util.js";
3
- import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as P, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
- import M from "../common/title-suffix-element.vue.js";
6
- import { $t as D } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
8
- import { CopyDocument as q } from "@element-plus/icons-vue";
9
- import z from "clipboard";
10
- import { ElMessage as E } from "element-plus";
11
- import { useI18n as O } from "vue-i18n";
12
- const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", display: "flex", "align-items": "center" } }, F = { key: 0, style: { display: "flex", "flex-direction": "column" } }, G = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, K = { style: { float: "left" } }, L = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, U = "__amb_select_all__", $ = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
- const { t: H } = O(), J = e2, N = l(null), Q = l(false), X = J.pageContext.entity ? J.pageContext.entity : {};
14
- let Y = R(J.pageContext, J.configure);
15
- const Z = J.configure.runtime ? J.configure.runtime : {}, ee = Z.style, le = Z.class, te = Z.headerStyle, oe = Z.titleExceedStyle, ae = l(Z.props ? Z.props : {});
16
- let ie = l(ae.value.optionDescriptionPosition && "default" !== ae.value.optionDescriptionPosition), ne = [];
17
- const re = "copyBtn_" + J.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
- function ue() {
19
- let e3 = j(X, Y);
20
- return null != e3 && (e3 = String(e3)), ae.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
1
+ import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
2
+ import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as R } from "../../../../utils/page-helper-util.js";
3
+ import { getFormModelFields as P } from "../../../../utils/page-init-util.js";
4
+ import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
5
+ import D from "../common/title-suffix-element.vue.js";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
8
+ import { CopyDocument as z } from "@element-plus/icons-vue";
9
+ import E from "clipboard";
10
+ import { ElMessage as O } from "element-plus";
11
+ import { useI18n as W } from "vue-i18n";
12
+ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", display: "flex", "align-items": "center" } }, G = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = "__amb_select_all__", H = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
13
+ const { t: J } = W(), N = e2, Q = l(null), X = l(false), Y = N.pageContext.entity ? N.pageContext.entity : {};
14
+ let Z = P(N.pageContext, N.configure);
15
+ const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle, ie = l(ee.props ? ee.props : {});
16
+ let ne = l(ie.value.optionDescriptionPosition && "default" !== ie.value.optionDescriptionPosition), re = [];
17
+ const ue = "copyBtn_" + N.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
+ function se() {
19
+ let e3 = R(Y, Z);
20
+ return null != e3 && (e3 = String(e3)), ie.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
21
21
  }
22
- const se = t({ get: () => ue(), set(e3) {
23
- const l2 = ue();
24
- ne = Array.isArray(l2) ? [...l2] : l2;
22
+ const pe = t({ get: () => se(), set(e3) {
23
+ const l2 = se();
24
+ re = Array.isArray(l2) ? [...l2] : l2;
25
25
  let t2 = e3;
26
- if (ae.value.multiple && false !== ae.value.showSelectAll && Array.isArray(e3) && e3.includes(U)) {
27
- const e4 = (pe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
26
+ if (ie.value.multiple && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($)) {
27
+ const e4 = (ce.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
28
28
  t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
29
29
  }
30
- if (ae.value.multiple) {
31
- t2 = !!ae.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
30
+ if (ie.value.multiple) {
31
+ t2 = !!ie.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
32
32
  }
33
- void 0 === t2 && (t2 = null), S(X, Y, t2), null != t2 && (N.value = "");
34
- } }), pe = l(ae.value.options ? ae.value.options : []), ce = k(J.pageContext, J.configure);
35
- ce.length > 0 && (pe.value = ce);
36
- const fe = l(false), ve = J.configure.props && J.configure.props.dataOrigin ? J.configure.props.dataOrigin : {}, ge = ve.optionValueSetType;
37
- let me = [];
38
- const de = ae.value.optionconfigInfo ? ae.value.optionconfigInfo : {};
39
- if ("dynamicData" == ge || "dataTable" == ge || "service" == ge) {
40
- if ("remote" == ve.filterType) {
33
+ void 0 === t2 && (t2 = null), k(Y, Z, t2), null != t2 && (Q.value = "");
34
+ } }), ce = l(ie.value.options ? ie.value.options : []), fe = A(N.pageContext, N.configure);
35
+ fe.length > 0 && (ce.value = fe);
36
+ const ve = l(false), ge = N.configure.props && N.configure.props.dataOrigin ? N.configure.props.dataOrigin : {}, me = ge.optionValueSetType;
37
+ let de = [];
38
+ const ye = ie.value.optionconfigInfo ? ie.value.optionconfigInfo : {};
39
+ if ("dynamicData" == me || "dataTable" == me || "service" == me) {
40
+ if ("remote" == ge.filterType) {
41
41
  let e3;
42
- ae.value.filterable = true, ae.value.remote = true, ae.value.remoteShowSuffix = true, ae.value.remoteMethod = function(l2) {
43
- e3 !== l2 && (e3 = l2, fe.value = true, A(J.pageContext, de, l2).then((e4) => {
44
- fe.value = false;
42
+ ie.value.filterable = true, ie.value.remote = true, ie.value.remoteShowSuffix = true, ie.value.remoteMethod = function(l2) {
43
+ e3 !== l2 && (e3 = l2, ve.value = true, T(N.pageContext, ye, l2).then((e4) => {
44
+ ve.value = false;
45
45
  }).then((e4) => {
46
- fe.value = false;
46
+ ve.value = false;
47
47
  }));
48
48
  };
49
49
  }
50
- if (ve.autoSets) for (let e3 of ve.autoSets) e3.source && me.push(e3);
50
+ if (ge.autoSets) for (let e3 of ge.autoSets) e3.source && de.push(e3);
51
51
  }
52
- J.configure && J.configure.props && J.configure.props.base && J.configure.props.base.optionProp && me.push({ source: "label", target: J.configure.props.base.optionProp }), ae.value.changeMethod = function(e3) {
52
+ N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }), ie.value.changeMethod = function(e3) {
53
53
  var _a;
54
54
  let l2, t2 = null;
55
- pe.value && null != e3 && null != e3 && (((_a = ae.value) == null ? void 0 : _a.multiple) && false !== ae.value.showSelectAll && Array.isArray(e3) && e3.includes(U) && (e3 = e3.filter((e4) => e4 !== U)), t2 = pe.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
56
- me.length > 0 && T(J.configure, J.pageContext, me, t2, [ae.value.prop]);
55
+ ce.value && null != e3 && null != e3 && (((_a = ie.value) == null ? void 0 : _a.multiple) && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($) && (e3 = e3.filter((e4) => e4 !== $)), t2 = ce.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
56
+ de.length > 0 && j(N.configure, N.pageContext, de, t2, [ie.value.prop]);
57
57
  t2 && t2.length > 0 && (l2 = t2[0]);
58
58
  let o2 = {};
59
59
  l2 && (o2.extendParams = l2);
60
- o2.options = pe.value, o2.oldValue = ne, P(e3, J.pageContext, J.configure, "change", o2);
60
+ o2.options = ce.value, o2.oldValue = re, V(e3, N.pageContext, N.configure, "change", o2);
61
61
  };
62
- const ye = ae.value.monitorFields, he = [];
63
- if (ye) {
62
+ const he = ie.value.monitorFields, be = [];
63
+ if (he) {
64
64
  const e3 = [];
65
- for (let l2 of ye) if (l2.startsWith("${")) {
65
+ for (let l2 of he) if (l2.startsWith("${")) {
66
66
  l2 = l2.substring(2, l2.length - 1);
67
67
  const t2 = l2.split(".");
68
- "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (he.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
68
+ "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (be.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
69
69
  }
70
- for (let l2 of e3) o(X[l2], () => {
71
- Ce();
70
+ for (let l2 of e3) o(Y[l2], () => {
71
+ _e();
72
72
  });
73
73
  }
74
- let be = "", xe = false;
75
- function Ce() {
76
- xe && clearTimeout(xe), xe = setTimeout(function() {
74
+ let xe = "", Ce = false;
75
+ function _e() {
76
+ Ce && clearTimeout(Ce), Ce = setTimeout(function() {
77
77
  const e3 = function() {
78
78
  let e4 = [];
79
- for (let l2 of he) e4.push(j(X, l2));
79
+ for (let l2 of be) e4.push(R(Y, l2));
80
80
  return e4.join(",");
81
81
  }();
82
- e3 != be && (be = e3, de.watchAttrValue = e3, A(J.pageContext, de, void 0).then((e4) => {
83
- fe.value = false;
82
+ e3 != xe && (xe = e3, ye.watchAttrValue = e3, T(N.pageContext, ye, void 0).then((e4) => {
83
+ ve.value = false;
84
84
  }));
85
85
  }, 200);
86
86
  }
87
87
  a(() => {
88
- xe && clearTimeout(xe);
88
+ Ce && clearTimeout(Ce);
89
89
  });
90
- let _e = false;
91
- const we = l(null), Se = l(null), ke = l(null);
92
- function Ae() {
93
- const e3 = ue();
90
+ let we = false;
91
+ const Se = l(null), ke = l(null), Ae = l(null);
92
+ function Te() {
93
+ const e3 = se();
94
94
  if (null != e3 && "" !== e3 && e3.length > 0) {
95
95
  let l2 = "";
96
- return "string" == typeof e3 ? pe.value.length > 0 ? pe.value.forEach((t2) => {
96
+ return "string" == typeof e3 ? ce.value.length > 0 ? ce.value.forEach((t2) => {
97
97
  t2.value === e3 && (l2 = t2.label);
98
- }) : l2 = e3 : pe.value.length > 0 ? (pe.value.forEach((t2) => {
98
+ }) : l2 = e3 : ce.value.length > 0 ? (ce.value.forEach((t2) => {
99
99
  e3.forEach((e4) => {
100
100
  t2.value === e4 && (l2 = l2 + t2.label + ",");
101
101
  });
102
102
  }), l2 = l2.slice(0, l2.length - 1)) : l2 = e3.join(","), l2;
103
103
  }
104
104
  }
105
- function Te(e3) {
106
- Q.value = e3;
105
+ function je(e3) {
106
+ X.value = e3;
107
107
  }
108
- function je() {
109
- const e3 = Ae();
108
+ function Re() {
109
+ const e3 = Te();
110
110
  e3 && navigator.clipboard && navigator.clipboard.writeText(e3).then(() => {
111
- E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
111
+ O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
112
112
  });
113
113
  }
114
114
  return i(() => {
115
- const e3 = new z("#" + re, { text: function() {
116
- return Ae();
115
+ const e3 = new E("#" + ue, { text: function() {
116
+ return Te();
117
117
  } });
118
118
  e3.on("success", () => {
119
- E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
119
+ O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
120
120
  }), e3.on("error", (e4) => {
121
- console.error("复制失败", e4);
122
121
  }), n(() => {
123
- const e4 = se.value;
124
- V(e4, J.pageContext, J.configure, { formItemRef: we.value, componentRef: Se.value, titleRef: ke.value, value: e4, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page });
122
+ const e4 = pe.value;
123
+ M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
125
124
  });
126
- }), $2({ updateOptions: function(e3) {
127
- if (pe.value = e3 || [], !_e) {
128
- const e4 = ue();
129
- if (null != e4 && "" !== e4 && pe.value.length > 0) {
125
+ }), H2({ updateOptions: function(e3) {
126
+ if (ce.value = e3 || [], !we) {
127
+ const e4 = se();
128
+ if (null != e4 && "" !== e4 && ce.value.length > 0) {
130
129
  let l2 = false;
131
- for (let t2 of pe.value) if (t2.value == e4) {
130
+ for (let t2 of ce.value) if (t2.value == e4) {
132
131
  l2 = true;
133
132
  break;
134
133
  }
135
134
  if (!l2) {
136
- for (let l3 of pe.value) if (l3.label == e4) {
137
- se.value = l3.value;
135
+ for (let l3 of ce.value) if (l3.label == e4) {
136
+ pe.value = l3.value;
138
137
  break;
139
138
  }
140
139
  }
141
140
  }
142
141
  }
143
- _e = true;
142
+ we = true;
144
143
  }, addRequiredClass: function() {
145
- N.value = I();
146
- }, getSelectItemsTitle: Ae, getOptions: function() {
147
- return pe.value;
148
- } }), (l2, t2) => {
149
- const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), S2 = r("el-form-item");
150
- return s(), u(S2, { ref_key: "formItemRef", ref: we, required: !!ae.value.required, class: c(f(le) + (N.value ? " " + N.value : "")), "label-width": ae.value.labelWidth, style: p(f(ee)) }, { label: v(() => [ae.value.tittleShow ? (s(), b("div", { key: 0, ref_key: "titleRef", ref: ke, style: p({ ...f(te), ...f(oe) }) }, [ae.value.prefixType ? (s(), u(M, { key: 0, pageContext: e2.pageContext, property: ae.value }, null, 8, ["pageContext", "property"])) : (s(), b(x, { key: 1 }, [w(_(f(D)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: v(() => [m("div", B, [g(i2, { ref_key: "componentRef", ref: Se, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ae.value.state, size: ae.value.size, clearable: ae.value.clearable, multiple: ae.value.multiple, "collapse-tags": ae.value.collapseTags, "collapse-tags-tooltip": ae.value.collapseTagsTooltip, filterable: ae.value.filterable, "allow-create": ae.value.allowCreate, placeholder: ae.value.placeholder, "remote-show-suffix": ae.value.remoteShowSuffix, remote: ae.value.remote, "remote-method": ae.value.remoteMethod, loading: fe.value, onKeydown: t2[0] || (t2[0] = d(y(() => {
151
- }, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => se.value = e3) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(o2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(H)("superGrid.selectAll"), value: U, disabled: !(pe.value && pe.value.length > 0) }, null, 8, ["label", "disabled"])) : h("", true), (s(true), b(x, null, C(pe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e2.pageContext, e2.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ie) ? (s(), b("div", F, [m("span", null, _(l3.label), 1), m("span", G, _(l3._description_), 1)])) : (s(), b(x, { key: 1 }, [m("span", K, _(l3.label), 1), m("span", L, _(l3._description_), 1)], 64))], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(o2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
144
+ Q.value = q();
145
+ }, getSelectItemsTitle: Te, getOptions: function() {
146
+ return ce.value;
147
+ } }), (e3, l2) => {
148
+ const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), i2 = r("el-popover"), n2 = r("el-form-item");
149
+ return s(), u(n2, { ref_key: "formItemRef", ref: Se, required: !!ie.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ie.value.labelWidth, style: p(f(le)) }, v({ default: g(() => [m(i2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", F, [m(a2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ie.value.state, size: ie.value.size, clearable: ie.value.clearable, multiple: ie.value.multiple, "collapse-tags": ie.value.collapseTags, "collapse-tags-tooltip": ie.value.collapseTagsTooltip, filterable: ie.value.filterable, "allow-create": ie.value.allowCreate, placeholder: ie.value.placeholder, "remote-show-suffix": ie.value.remoteShowSuffix, remote: ie.value.remote, "remote-method": ie.value.remoteMethod, loading: ve.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
150
+ }, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => pe.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(o2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e3.pageContext, e3.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ne) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: g(() => [d("span", B, [m(t2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ie.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }) }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e3.pageContext, property: ie.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(I)(ie.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
152
151
  };
153
152
  } });
154
153
  export {
155
- $ as default
154
+ H as default
156
155
  };