super-page-runtime 2.3.36 → 2.3.37-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 (38) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.js +1 -1
  2. package/dist/es/components/runtime/utils/events/validator-util.js +230 -189
  3. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  4. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -2
  5. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  6. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -26
  7. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -1
  8. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  9. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  10. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  11. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -36
  12. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +45 -45
  13. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +61 -61
  14. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -35
  15. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +58 -58
  16. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -19
  17. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -59
  18. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -26
  20. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -27
  21. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -49
  22. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +111 -111
  24. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +88 -88
  26. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
  27. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +19 -19
  29. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +102 -90
  30. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -3
  31. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +41 -20
  33. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  35. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  36. package/dist/es/components/runtime/views/super-page.vue2.js +9 -3
  37. package/dist/es/style.css +168 -160
  38. package/package.json +2 -2
@@ -1,156 +1,156 @@
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
121
  console.error("复制失败", e4);
122
122
  }), 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 });
123
+ const e4 = pe.value;
124
+ 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
125
  });
126
- }), $2({ updateOptions: function(e3) {
127
- if (pe.value = e3 || [], !_e) {
128
- const e4 = ue();
129
- if (null != e4 && "" !== e4 && pe.value.length > 0) {
126
+ }), H2({ updateOptions: function(e3) {
127
+ if (ce.value = e3 || [], !we) {
128
+ const e4 = se();
129
+ if (null != e4 && "" !== e4 && ce.value.length > 0) {
130
130
  let l2 = false;
131
- for (let t2 of pe.value) if (t2.value == e4) {
131
+ for (let t2 of ce.value) if (t2.value == e4) {
132
132
  l2 = true;
133
133
  break;
134
134
  }
135
135
  if (!l2) {
136
- for (let l3 of pe.value) if (l3.label == e4) {
137
- se.value = l3.value;
136
+ for (let l3 of ce.value) if (l3.label == e4) {
137
+ pe.value = l3.value;
138
138
  break;
139
139
  }
140
140
  }
141
141
  }
142
142
  }
143
- _e = true;
143
+ we = true;
144
144
  }, addRequiredClass: function() {
145
- N.value = I();
146
- }, getSelectItemsTitle: Ae, getOptions: function() {
147
- return pe.value;
145
+ Q.value = q();
146
+ }, getSelectItemsTitle: Te, getOptions: function() {
147
+ return ce.value;
148
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"]);
149
+ const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
150
+ return s(), u(k2, { 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(n2, { 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(i2, { 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: t2[0] || (t2[0] = y(h(() => {
151
+ }, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(a2, { 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(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e2.pageContext, e2.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(o2, { 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) }), class: "amb-form-item-label" }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e2.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
152
  };
153
153
  } });
154
154
  export {
155
- $ as default
155
+ H as default
156
156
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, withCtx as s, createVNode as f, createElementBlock as p, createCommentVNode as m, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, createSlots as s, withCtx as f, createVNode as m, createElementVNode as p, toDisplayString as d } from "vue";
2
2
  import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
5
- import { $t as C } from "../../../../utils/i18n-util.js";
6
- import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
5
+ import { $t as b } from "../../../../utils/i18n-util.js";
6
+ import { addRequiredClassUtil as C } from "../../../../utils/common-util.js";
7
7
  const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
8
8
  const R = e2, _ = t(null), j = R.pageContext.entity ? R.pageContext.entity : {};
9
9
  let k = g(R.pageContext, R.configure);
@@ -25,10 +25,10 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
25
25
  x(e3, R.pageContext, R.configure, { formItemRef: A.value, componentRef: B.value, titleRef: F.value, value: e3, entity: R.pageContext.entity.data, pageData: R.pageContext.entity.page });
26
26
  });
27
27
  }), w2({ addRequiredClass: function() {
28
- _.value = b();
28
+ _.value = C();
29
29
  } }), (t2, l2) => {
30
30
  const a2 = i("el-switch"), u2 = i("el-form-item");
31
- return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
31
+ return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
32
32
  };
33
33
  } });
34
34
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./textarea-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-8dcd42b5"]]);
4
+ const r = t(e, [["__scopeId", "data-v-1e8a62fc"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, withCtx as f, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
- import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
5
- import k from "../common/title-suffix-element.vue.js";
6
- import { $t as R } from "../../../../utils/i18n-util.js";
7
- import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
8
- const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
- const q = e2, I = t(null), z = q.pageContext.entity ? q.pageContext.entity : {};
10
- let S = y(q.pageContext, q.configure);
11
- const V = l({ get: () => C(z, S), set(e3) {
12
- h(z, S, e3), null != e3 && "" !== e3 && (I.value = "");
13
- } }), B = q.configure.runtime ? q.configure.runtime : {}, D = t(B.props ? B.props : {}), E = B.style, F = B.class, N = B.headerStyle, T = B.titleExceedStyle, U = t(null), W = t(null), A = t(null);
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, createSlots as f, withCtx as g, createElementVNode as c, createBlock as d, Fragment as v, createTextVNode as x, toDisplayString as y } from "vue";
2
+ import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
+ import { setVariableValue as C, getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { handleAfterInitEvent as w, handleFormEvent as k } from "../../../../utils/events/event-util.js";
5
+ import R from "../common/title-suffix-element.vue.js";
6
+ import { $t as j } from "../../../../utils/i18n-util.js";
7
+ import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
8
+ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
9
+ const I = e2, z = t(null), S = I.pageContext.entity ? I.pageContext.entity : {};
10
+ let V = h(I.pageContext, I.configure);
11
+ const B = l({ get: () => b(S, V), set(e3) {
12
+ C(S, V, e3), null != e3 && "" !== e3 && (z.value = "");
13
+ } }), D = I.configure.runtime ? I.configure.runtime : {}, E = t(D.props ? D.props : {}), F = D.style, N = D.class, T = D.headerStyle, U = D.titleExceedStyle, W = t(null), A = t(null), G = t(null);
14
14
  return a(() => {
15
15
  o(() => {
16
- const e3 = V.value;
17
- w(e3, q.pageContext, q.configure, { formItemRef: U.value, componentRef: W.value, titleRef: A.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
16
+ const e3 = B.value;
17
+ w(e3, I.pageContext, I.configure, { formItemRef: W.value, componentRef: A.value, titleRef: G.value, value: e3, entity: I.pageContext.entity.data, pageData: I.pageContext.entity.page });
18
18
  });
19
- }), _2({ addRequiredClass: function() {
20
- I.value = j();
19
+ }), q2({ addRequiredClass: function() {
20
+ z.value = _();
21
21
  } }), (t2, l2) => {
22
22
  const a2 = n("el-input"), o2 = n("el-form-item");
23
- return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
23
+ return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
24
24
  };
25
25
  } });
26
26
  export {
27
- _ as default
27
+ q as default
28
28
  };