super-page-runtime 2.3.30-tmp1 → 2.3.31-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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +135 -135
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +111 -107
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +34 -35
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +60 -54
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +67 -64
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, createBlock as r, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as c, withCtx as d, createElementBlock as s, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as
|
|
4
|
+
import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as k, isDateDataType as F } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleAfterInitEvent as T, getCustomFunc as V, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import j from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import z from "dayjs";
|
|
@@ -10,30 +10,30 @@ import { addRequiredClassUtil as Y } from "../../../../utils/common-util.js";
|
|
|
10
10
|
import { DatePickerRange as _ } from "agilebuilder-ui";
|
|
11
11
|
const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
|
|
12
12
|
var _a;
|
|
13
|
-
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, M = A.style,
|
|
14
|
-
let
|
|
15
|
-
if (S.pageContext.modelFieldsMap &&
|
|
16
|
-
const e3 = C(
|
|
13
|
+
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, M = A.style, B = A.class, I = A.headerStyle, U = A.titleExceedStyle, N = a(A.props ? A.props : {});
|
|
14
|
+
let W = h(S.pageContext, S.configure, N.value.prop);
|
|
15
|
+
if (S.pageContext.modelFieldsMap && W && W.length > 0 && "data" === W[0]) {
|
|
16
|
+
const e3 = C(W, S.pageContext);
|
|
17
17
|
e3 && function(e4) {
|
|
18
18
|
const a2 = e4.dataType;
|
|
19
|
-
|
|
19
|
+
F(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
|
|
20
20
|
}(e3);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
22
|
+
let $ = null, E = false;
|
|
23
|
+
if (N.value.dateType && N.value.dateType.includes("range")) {
|
|
24
24
|
E = true;
|
|
25
|
-
let e3 =
|
|
25
|
+
let e3 = N.value.prop2;
|
|
26
26
|
e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
|
|
27
27
|
const a2 = x(q, e3, null);
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
29
|
-
const e4 = x(q,
|
|
30
|
-
if (null != e4 && "" !== e4) b(q,
|
|
31
|
-
else if (((_a =
|
|
32
|
-
const e5 =
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), $ = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && N.value.defaultValue2) {
|
|
29
|
+
const e4 = x(q, N.value.defaultValue2);
|
|
30
|
+
if (null != e4 && "" !== e4) b(q, $, e4);
|
|
31
|
+
else if (((_a = N.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
+
const e5 = N.value.moreDefaultValue2;
|
|
33
33
|
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
34
|
const l2 = x(q, e5[a3]);
|
|
35
35
|
if (null != l2 && "" !== l2) {
|
|
36
|
-
b(q,
|
|
36
|
+
b(q, $, l2);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -50,7 +50,7 @@ const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
50
50
|
let t2 = null;
|
|
51
51
|
return t2 = "x" === a2 ? l2.toDate().getTime() : z(e3).format(a2), t2;
|
|
52
52
|
} catch (a3) {
|
|
53
|
-
return
|
|
53
|
+
return e3;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return e3;
|
|
@@ -60,28 +60,28 @@ const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
60
60
|
const e3 = K.value;
|
|
61
61
|
T(e3, S.pageContext, S.configure, { formItemRef: O.value, componentRef: G.value, titleRef: H.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
e3 !== a2 && b(q, N, a2);
|
|
66
|
-
}
|
|
67
|
-
if (W) {
|
|
68
|
-
const e3 = F(q, W), a2 = J(e3, U.value.valueFormat);
|
|
63
|
+
}), W) {
|
|
64
|
+
const e3 = k(q, W), a2 = J(e3, N.value.valueFormat);
|
|
69
65
|
e3 !== a2 && b(q, W, a2);
|
|
70
66
|
}
|
|
67
|
+
if ($) {
|
|
68
|
+
const e3 = k(q, $), a2 = J(e3, N.value.valueFormat);
|
|
69
|
+
e3 !== a2 && b(q, $, a2);
|
|
70
|
+
}
|
|
71
71
|
const K = o({ get() {
|
|
72
72
|
if (E) {
|
|
73
73
|
const e3 = [];
|
|
74
|
-
let a2 =
|
|
75
|
-
e3.push(J(a2,
|
|
76
|
-
let l2 =
|
|
77
|
-
return e3.push(J(l2,
|
|
74
|
+
let a2 = k(q, W);
|
|
75
|
+
e3.push(J(a2, N.value.valueFormat));
|
|
76
|
+
let l2 = k(q, $);
|
|
77
|
+
return e3.push(J(l2, N.value.valueFormat)), e3;
|
|
78
78
|
}
|
|
79
|
-
return J(
|
|
79
|
+
return J(k(q, W), N.value.valueFormat);
|
|
80
80
|
}, set(e3) {
|
|
81
|
-
E ? Array.isArray(e3) ? (b(q,
|
|
82
|
-
} }), L = a(y(
|
|
83
|
-
if (
|
|
84
|
-
const e3 = V(S.pageContext,
|
|
81
|
+
E ? Array.isArray(e3) ? (b(q, W, e3[0]), b(q, $, e3[1]), w.value = "") : null === e3 && (b(q, W, null), b(q, $, null)) : (b(q, W, e3), null != e3 && (w.value = ""));
|
|
82
|
+
} }), L = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
|
|
83
|
+
if (N.value.shortcutsFunc) {
|
|
84
|
+
const e3 = V(S.pageContext, N.value.shortcutsFunc);
|
|
85
85
|
if (e3) {
|
|
86
86
|
let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
|
|
87
87
|
if (a2) {
|
|
@@ -93,8 +93,8 @@ const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
93
93
|
return D2({ addRequiredClass: function() {
|
|
94
94
|
w.value = Y();
|
|
95
95
|
} }), (e3, a2) => {
|
|
96
|
-
const l2 =
|
|
97
|
-
return n(),
|
|
96
|
+
const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
|
|
97
|
+
return n(), r(o2, { ref_key: "formItemRef", ref: O, required: N.value.required, class: p(c(B) + (w.value ? " " + w.value : "")), "label-width": N.value.labelWidth, style: i(c(M)) }, { label: d(() => [N.value.tittleShow ? (n(), s("div", { key: 0, ref_key: "titleRef", ref: H, style: i({ ...c(I), ...c(U) }) }, [N.value.prefixType ? (n(), r(j, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), s(f, { key: 1 }, [g(m(c(R)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: d(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: G, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => K.value = e4), shortcuts: L.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== N.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes(N.value.dateType) ? (n(), r(c(_), { key: 1, modelValue: K.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => K.value = e4), type: N.value.dateType, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, clearable: N.value.clearable, format: N.value.format, "value-format": N.value.valueFormat, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, size: N.value.size, shortcuts: L.value, onChange: a2[8] || (a2[8] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : (n(), r(t2, { key: 2, ref_key: "componentRef", ref: G, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: K.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => K.value = e4), shortcuts: L.value, type: N.value.dateType, onChange: a2[15] || (a2[15] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[16] || (a2[16] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[17] || (a2[17] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[18] || (a2[18] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[19] || (a2[19] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[20] || (a2[20] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
98
98
|
};
|
|
99
99
|
} });
|
|
100
100
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -56,7 +56,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
56
56
|
}, Z = l(null), ee = l(null);
|
|
57
57
|
return a(() => {
|
|
58
58
|
k.$on(E.value + "-pickFileDone", (e3) => {
|
|
59
|
-
|
|
59
|
+
G.value.pickFileDone(e3);
|
|
60
60
|
}), o(() => {
|
|
61
61
|
const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
|
|
62
62
|
g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -3,13 +3,13 @@ import { SuperIcon as T } from "agilebuilder-ui";
|
|
|
3
3
|
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
12
|
-
const
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as M } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import N from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as P } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
12
|
+
const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
|
|
15
15
|
let $ = k(L.pageContext, L.configure);
|
|
@@ -17,66 +17,65 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
17
17
|
const e3 = w($, L.pageContext);
|
|
18
18
|
e3 && (F.value = V(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const A = t(
|
|
20
|
+
const A = t(M()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
|
|
21
21
|
h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
|
|
22
22
|
} }), H = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
|
|
23
23
|
let ee = false;
|
|
24
24
|
const te = window.localStorage.getItem("auth_source");
|
|
25
25
|
te && "dingtalk" === te && (ee = true);
|
|
26
26
|
let le = "";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
let ue = {};
|
|
27
|
+
le = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
28
|
+
const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
|
|
29
|
+
let ae = {};
|
|
31
30
|
((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
|
|
32
|
-
|
|
31
|
+
ae = e3;
|
|
33
32
|
}), u(() => G.value, (e3) => {
|
|
34
33
|
e3 = e3.trim();
|
|
35
|
-
const t2 = O(e3,
|
|
36
|
-
t2 &&
|
|
34
|
+
const t2 = O(e3, ae);
|
|
35
|
+
t2 && q(L.pageContext, t2.scanSet, t2.params);
|
|
37
36
|
}));
|
|
38
|
-
const
|
|
39
|
-
function
|
|
37
|
+
const ue = X.style, ie = X.class, re = X.headerStyle, pe = X.titleExceedStyle;
|
|
38
|
+
function se(e3) {
|
|
40
39
|
return h(B, $, e3);
|
|
41
40
|
}
|
|
42
41
|
n(() => {
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
N.$on(U.value + "-scanDone", (e3) => {
|
|
43
|
+
se(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
45
44
|
}), o(() => {
|
|
46
45
|
var _a2;
|
|
47
46
|
const e3 = G.value;
|
|
48
|
-
S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }),
|
|
47
|
+
S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
|
|
49
48
|
});
|
|
50
49
|
}), a(() => {
|
|
51
|
-
|
|
50
|
+
N.$off(U.value + "-scanDone");
|
|
52
51
|
});
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
52
|
+
const ce = t(false);
|
|
53
|
+
function ve() {
|
|
54
|
+
if (ne || ee) {
|
|
56
55
|
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
57
|
-
ee && (e3.type = "dingTalkScan"), window.parent.parent ?
|
|
58
|
-
} else if (A.value) if ("https:" === window.location.protocol)
|
|
56
|
+
ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
57
|
+
} else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
|
|
59
58
|
else {
|
|
60
59
|
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
61
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
61
|
}
|
|
63
|
-
else
|
|
62
|
+
else ce.value = true;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
64
|
+
function fe(e3) {
|
|
65
|
+
ce.value = false, se(e3);
|
|
67
66
|
}
|
|
68
|
-
return
|
|
67
|
+
return J2({ getValue: function() {
|
|
69
68
|
return b(B, $);
|
|
70
|
-
}, setValue:
|
|
71
|
-
W.value =
|
|
69
|
+
}, setValue: se, scanClick: ve, addRequiredClass: function() {
|
|
70
|
+
W.value = z();
|
|
72
71
|
} }), (e3, t2) => {
|
|
73
72
|
const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
74
|
-
return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(
|
|
73
|
+
return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(ie) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(re), ...v(pe) }) }, [Y.value.prefixType ? (p(), r(D, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(P)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => G.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
|
|
75
74
|
let t3 = b(B, $);
|
|
76
75
|
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
|
|
77
|
-
}(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(
|
|
76
|
+
}(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (p(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
78
77
|
};
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
J as default
|
|
82
81
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
@@ -8,9 +8,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let P = x(R.pageContext, R.configure);
|
|
10
10
|
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
|
|
11
|
-
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType
|
|
12
|
-
N.value;
|
|
13
|
-
const G = l(() => {
|
|
11
|
+
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
|
|
14
12
|
let e3 = d(S, P);
|
|
15
13
|
if (B) if (N.value.hasOptions) {
|
|
16
14
|
let t2 = null;
|
|
@@ -30,7 +28,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
30
28
|
W.value = e3 || [];
|
|
31
29
|
} }), (e3, t2) => {
|
|
32
30
|
const l2 = u("el-form-item");
|
|
33
|
-
return N.value.whetherTittle ? (s(),
|
|
31
|
+
return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m(" " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
|
|
34
32
|
};
|
|
35
33
|
} });
|
|
36
34
|
export {
|
|
@@ -5,7 +5,6 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
|
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
-
S.value;
|
|
9
8
|
let $ = S.value.formatting;
|
|
10
9
|
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
11
10
|
let e3 = b(D, h);
|
|
@@ -159,7 +159,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
159
159
|
const l2 = le.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
|
-
|
|
162
|
+
Ee();
|
|
163
163
|
} finally {
|
|
164
164
|
ae.value = false;
|
|
165
165
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as n, nextTick as i, resolveComponent as u, createBlock as r, 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 h, createElementBlock as y, Fragment as x, renderList as b, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as S, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
@@ -10,33 +10,33 @@ import z from "clipboard";
|
|
|
10
10
|
import { ElMessage as E } from "element-plus";
|
|
11
11
|
import { useI18n as O } from "vue-i18n";
|
|
12
12
|
const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }, F = { 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)" } }, $ = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
13
|
-
const { t: G } = O(), H = e2, J =
|
|
13
|
+
const { t: G } = O(), H = e2, J = t(null), N = H.pageContext.entity ? H.pageContext.entity : {};
|
|
14
14
|
let Q = R(H.pageContext, H.configure);
|
|
15
|
-
const X = H.configure.runtime ? H.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.headerStyle,
|
|
16
|
-
let oe =
|
|
15
|
+
const X = H.configure.runtime ? H.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.headerStyle, te = X.titleExceedStyle, le = t(X.props ? X.props : {});
|
|
16
|
+
let oe = t(le.value.optionDescriptionPosition && "default" !== le.value.optionDescriptionPosition), ae = [];
|
|
17
17
|
const ne = "copyBtn_" + H.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function ie() {
|
|
19
19
|
let e3 = A(N, Q);
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
20
|
+
return null != e3 && (e3 = String(e3)), le.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const ue =
|
|
23
|
-
const
|
|
24
|
-
ae = Array.isArray(
|
|
25
|
-
let
|
|
26
|
-
if (
|
|
27
|
-
|
|
22
|
+
const ue = l({ get: () => ie(), set(e3) {
|
|
23
|
+
const t2 = ie();
|
|
24
|
+
ae = Array.isArray(t2) ? [...t2] : t2;
|
|
25
|
+
let l2 = e3;
|
|
26
|
+
if (le.value.multiple) {
|
|
27
|
+
l2 = !!le.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
28
28
|
}
|
|
29
|
-
void 0 ===
|
|
30
|
-
} }), re =
|
|
29
|
+
void 0 === l2 && (l2 = null), k(N, Q, l2), null != l2 && (J.value = "");
|
|
30
|
+
} }), re = t(le.value.options ? le.value.options : []), se = S(H.pageContext, H.configure);
|
|
31
31
|
se.length > 0 && (re.value = se);
|
|
32
|
-
const pe =
|
|
32
|
+
const pe = t(false), ce = H.configure.props && H.configure.props.dataOrigin ? H.configure.props.dataOrigin : {}, fe = ce.optionValueSetType;
|
|
33
33
|
let ve = [];
|
|
34
|
-
const ge =
|
|
34
|
+
const ge = le.value.optionconfigInfo ? le.value.optionconfigInfo : {};
|
|
35
35
|
if ("dynamicData" == fe || "dataTable" == fe || "service" == fe) {
|
|
36
36
|
if ("remote" == ce.filterType) {
|
|
37
37
|
let e3;
|
|
38
|
-
|
|
39
|
-
e3 !==
|
|
38
|
+
le.value.filterable = true, le.value.remote = true, le.value.remoteShowSuffix = true, le.value.remoteMethod = function(t2) {
|
|
39
|
+
e3 !== t2 && (e3 = t2, pe.value = true, T(H.pageContext, ge, t2).then((e4) => {
|
|
40
40
|
pe.value = false;
|
|
41
41
|
}).then((e4) => {
|
|
42
42
|
pe.value = false;
|
|
@@ -45,24 +45,24 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
45
45
|
}
|
|
46
46
|
if (ce.autoSets) for (let e3 of ce.autoSets) e3.source && ve.push(e3);
|
|
47
47
|
}
|
|
48
|
-
H.configure && H.configure.props && H.configure.props.base && H.configure.props.base.optionProp && ve.push({ source: "label", target: H.configure.props.base.optionProp }),
|
|
49
|
-
let
|
|
50
|
-
re.value && null != e3 && null != e3 && (
|
|
51
|
-
ve.length > 0 && j(H.configure, H.pageContext, ve,
|
|
52
|
-
|
|
48
|
+
H.configure && H.configure.props && H.configure.props.base && H.configure.props.base.optionProp && ve.push({ source: "label", target: H.configure.props.base.optionProp }), le.value.changeMethod = function(e3) {
|
|
49
|
+
let t2, l2 = null;
|
|
50
|
+
re.value && null != e3 && null != e3 && (l2 = re.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
|
+
ve.length > 0 && j(H.configure, H.pageContext, ve, l2, [le.value.prop]);
|
|
52
|
+
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
53
53
|
let o2 = {};
|
|
54
|
-
|
|
54
|
+
t2 && (o2.extendParams = t2);
|
|
55
55
|
o2.options = re.value, o2.oldValue = ae, V(e3, H.pageContext, H.configure, "change", o2);
|
|
56
56
|
};
|
|
57
|
-
const me =
|
|
57
|
+
const me = le.value.monitorFields, de = [];
|
|
58
58
|
if (me) {
|
|
59
59
|
const e3 = [];
|
|
60
|
-
for (let
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
"page" !==
|
|
60
|
+
for (let t2 of me) if (t2.startsWith("${")) {
|
|
61
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
62
|
+
const l2 = t2.split(".");
|
|
63
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (de.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
64
64
|
}
|
|
65
|
-
for (let
|
|
65
|
+
for (let t2 of e3) o(N[t2], () => {
|
|
66
66
|
xe();
|
|
67
67
|
});
|
|
68
68
|
}
|
|
@@ -71,7 +71,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
71
71
|
ye && clearTimeout(ye), ye = setTimeout(function() {
|
|
72
72
|
const e3 = function() {
|
|
73
73
|
let e4 = [];
|
|
74
|
-
for (let
|
|
74
|
+
for (let t2 of de) e4.push(A(N, t2));
|
|
75
75
|
return e4.join(",");
|
|
76
76
|
}();
|
|
77
77
|
e3 != he && (he = e3, ge.watchAttrValue = e3, T(H.pageContext, ge, void 0).then((e4) => {
|
|
@@ -83,18 +83,18 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
83
83
|
ye && clearTimeout(ye);
|
|
84
84
|
});
|
|
85
85
|
let be = false;
|
|
86
|
-
const Ce =
|
|
86
|
+
const Ce = t(null), we = t(null), _e = t(null);
|
|
87
87
|
function ke() {
|
|
88
88
|
const e3 = ie();
|
|
89
89
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
90
|
-
let
|
|
91
|
-
return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((
|
|
92
|
-
|
|
93
|
-
}) :
|
|
90
|
+
let t2 = "";
|
|
91
|
+
return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((l2) => {
|
|
92
|
+
l2.value === e3 && (t2 = l2.label);
|
|
93
|
+
}) : t2 = e3 : re.value.length > 0 ? (re.value.forEach((l2) => {
|
|
94
94
|
e3.forEach((e4) => {
|
|
95
|
-
|
|
95
|
+
l2.value === e4 && (t2 = t2 + l2.label + ",");
|
|
96
96
|
});
|
|
97
|
-
}),
|
|
97
|
+
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
return n(() => {
|
|
@@ -104,7 +104,6 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
104
104
|
e3.on("success", () => {
|
|
105
105
|
E({ showClose: true, type: "success", message: G("superPageRuntimeMessage.copySuccess") });
|
|
106
106
|
}), e3.on("error", (e4) => {
|
|
107
|
-
console.error("复制失败", e4);
|
|
108
107
|
}), i(() => {
|
|
109
108
|
const e4 = ue.value;
|
|
110
109
|
M(e4, H.pageContext, H.configure, { formItemRef: Ce.value, componentRef: we.value, titleRef: _e.value, value: e4, entity: H.pageContext.entity.data, pageData: H.pageContext.entity.page });
|
|
@@ -113,14 +112,14 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
113
112
|
if (re.value = e3 || [], !be) {
|
|
114
113
|
const e4 = ie();
|
|
115
114
|
if (null != e4 && "" !== e4 && re.value.length > 0) {
|
|
116
|
-
let
|
|
117
|
-
for (let
|
|
118
|
-
|
|
115
|
+
let t2 = false;
|
|
116
|
+
for (let l2 of re.value) if (l2.value == e4) {
|
|
117
|
+
t2 = true;
|
|
119
118
|
break;
|
|
120
119
|
}
|
|
121
|
-
if (!
|
|
122
|
-
for (let
|
|
123
|
-
ue.value =
|
|
120
|
+
if (!t2) {
|
|
121
|
+
for (let t3 of re.value) if (t3.label == e4) {
|
|
122
|
+
ue.value = t3.value;
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
126
125
|
}
|
|
@@ -131,10 +130,10 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
131
130
|
J.value = I();
|
|
132
131
|
}, getSelectItemsTitle: ke, getOptions: function() {
|
|
133
132
|
return re.value;
|
|
134
|
-
} }), (e3,
|
|
135
|
-
const
|
|
136
|
-
return s(), r(i2, { ref_key: "formItemRef", ref: Ce, required: !!
|
|
137
|
-
}, ["stop"]), ["space"])), onChange:
|
|
133
|
+
} }), (e3, t2) => {
|
|
134
|
+
const l2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), n2 = u("el-popover"), i2 = u("el-form-item");
|
|
135
|
+
return s(), r(i2, { ref_key: "formItemRef", ref: Ce, required: !!le.value.required, class: c(f(Z) + (J.value ? " " + J.value : "")), "label-width": le.value.labelWidth, style: p(f(Y)) }, { label: v(() => [le.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: _e, style: p({ ...f(ee), ...f(te) }) }, [le.value.prefixType ? (s(), r(P, { key: 0, pageContext: e3.pageContext, property: le.value }, null, 8, ["pageContext", "property"])) : (s(), y(x, { key: 1 }, [_(w(f(D)(le.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(n2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: we, style: { width: "100%" }, disabled: "disabled" === le.value.state, size: le.value.size, clearable: le.value.clearable, multiple: le.value.multiple, "collapse-tags": le.value.collapseTags, "collapse-tags-tooltip": le.value.collapseTagsTooltip, filterable: le.value.filterable, "allow-create": le.value.allowCreate, placeholder: le.value.placeholder, "remote-show-suffix": le.value.remoteShowSuffix, remote: le.value.remote, "remote-method": le.value.remoteMethod, loading: pe.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
|
|
136
|
+
}, ["stop"]), ["space"])), onChange: le.value.changeMethod, onClear: le.value.changeMethod, modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4) }, { default: v(() => [(s(true), y(x, null, b(re.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.label, value: t3.value, class: c({ "option-description-newLine": f(oe) }), onClick: (l3) => f(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ue.value }) }, { default: v(() => [t3._description_ ? (s(), y(x, { key: 0 }, [f(oe) ? (s(), y("div", F, [m("span", null, w(t3.label), 1), m("span", K, w(t3._description_), 1)])) : (s(), y(x, { key: 1 }, [m("span", L, w(t3.label), 1), m("span", U, w(t3._description_), 1)], 64))], 64)) : C("", 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(l2, { id: ne }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
138
137
|
};
|
|
139
138
|
} });
|
|
140
139
|
export {
|