super-page-runtime 2.3.40-sit2 → 2.3.41-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 +80 -68
- package/dist/es/components/runtime/utils/events/event-util.js +198 -186
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +480 -501
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +50 -50
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -28
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -4
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
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
|
|
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 d, unref as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
6
|
-
import
|
|
4
|
+
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import j from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import R from "dayjs";
|
|
8
8
|
import { $t as Y } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
10
|
-
import { DatePickerRange as D } from "agilebuilder-ui";
|
|
11
|
-
const
|
|
10
|
+
import { DatePickerRange as D, DateQuarterPicker as S } from "agilebuilder-ui";
|
|
11
|
+
const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
12
12
|
var _a;
|
|
13
|
-
const w = e2,
|
|
14
|
-
let
|
|
15
|
-
if (w.pageContext.modelFieldsMap &&
|
|
16
|
-
const e3 = x(
|
|
13
|
+
const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, M = w.configure.runtime ? w.configure.runtime : {}, U = M.style, I = M.class, N = M.headerStyle, W = M.titleExceedStyle, $ = a(M.props ? M.props : {});
|
|
14
|
+
let E = y(w.pageContext, w.configure, $.value.prop);
|
|
15
|
+
if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
|
|
16
|
+
const e3 = x(E, w.pageContext);
|
|
17
17
|
e3 && function(e4) {
|
|
18
18
|
const a2 = e4.dataType;
|
|
19
|
-
|
|
19
|
+
k(a2) && ("year" === $.value.dateType && "YYYY" === $.value.valueFormat || "month" === $.value.dateType && "YYYY-MM" === $.value.valueFormat) && ($.value.valueFormat = "x");
|
|
20
20
|
}(e3);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
let e3 =
|
|
22
|
+
let O = null, G = false;
|
|
23
|
+
if ($.value.dateType && $.value.dateType.includes("range")) {
|
|
24
|
+
G = true;
|
|
25
|
+
let e3 = $.value.prop2;
|
|
26
26
|
e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
|
|
27
|
-
const a2 = b(
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
29
|
-
const e4 = b(
|
|
30
|
-
if (null != e4 && "" !== e4)
|
|
31
|
-
else if (((_a =
|
|
32
|
-
const e5 =
|
|
27
|
+
const a2 = b(B, e3, null);
|
|
28
|
+
if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && $.value.defaultValue2) {
|
|
29
|
+
const e4 = b(B, $.value.defaultValue2);
|
|
30
|
+
if (null != e4 && "" !== e4) F(B, O, e4);
|
|
31
|
+
else if (((_a = $.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
+
const e5 = $.value.moreDefaultValue2;
|
|
33
33
|
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
|
-
const l2 = b(
|
|
34
|
+
const l2 = b(B, e5[a3]);
|
|
35
35
|
if (null != l2 && "" !== l2) {
|
|
36
|
-
|
|
36
|
+
F(B, O, l2);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
43
|
+
const H = a(null), J = a(null), K = a(null);
|
|
44
|
+
function L(e3, a2) {
|
|
45
45
|
if (!e3) return e3;
|
|
46
46
|
if (a2) {
|
|
47
47
|
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
@@ -57,46 +57,46 @@ const S = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
57
57
|
}
|
|
58
58
|
if (l(() => {
|
|
59
59
|
t(() => {
|
|
60
|
-
const e3 =
|
|
61
|
-
|
|
60
|
+
const e3 = Q.value;
|
|
61
|
+
T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
e3 !== a2 &&
|
|
63
|
+
}), E) {
|
|
64
|
+
const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
|
|
65
|
+
e3 !== a2 && F(B, E, a2);
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
const e3 =
|
|
69
|
-
e3 !== a2 &&
|
|
67
|
+
if (O) {
|
|
68
|
+
const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
|
|
69
|
+
e3 !== a2 && F(B, O, a2);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
71
|
+
const Q = o({ get() {
|
|
72
|
+
if (G) {
|
|
73
73
|
const e3 = [];
|
|
74
|
-
let a2 =
|
|
75
|
-
e3.push(
|
|
76
|
-
let l2 =
|
|
77
|
-
return e3.push(
|
|
74
|
+
let a2 = V(B, E);
|
|
75
|
+
e3.push(L(a2, $.value.valueFormat));
|
|
76
|
+
let l2 = V(B, O);
|
|
77
|
+
return e3.push(L(l2, $.value.valueFormat)), e3;
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return L(V(B, E), $.value.valueFormat);
|
|
80
80
|
}, set(e3) {
|
|
81
|
-
|
|
82
|
-
} }),
|
|
83
|
-
if (
|
|
84
|
-
const e3 =
|
|
81
|
+
G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
|
|
82
|
+
} }), X = a(C($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
|
|
83
|
+
if ($.value.shortcutsFunc) {
|
|
84
|
+
const e3 = z(w.pageContext, $.value.shortcutsFunc);
|
|
85
85
|
if (e3) {
|
|
86
86
|
let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
|
|
87
87
|
if (a2) {
|
|
88
|
-
Array.isArray(a2) || (a2 = [a2]),
|
|
89
|
-
for (let e4 of a2) e4.text && e4.value &&
|
|
88
|
+
Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
|
|
89
|
+
for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
return
|
|
94
|
-
|
|
93
|
+
return q2({ addRequiredClass: function() {
|
|
94
|
+
A.value = _();
|
|
95
95
|
} }), (e3, a2) => {
|
|
96
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:
|
|
97
|
+
return n(), r(o2, { ref_key: "formItemRef", ref: H, required: $.value.required, class: d(c(I) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(c(U)) }, p({ default: s(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, "unlink-panels": true, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => Q.value = e4), shortcuts: X.value, type: $.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" !== $.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes($.value.dateType) ? (n(), r(c(D), { key: 1, modelValue: Q.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, size: $.value.size, shortcuts: X.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"])) : "quarter" === $.value.dateType ? (n(), r(c(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e4) => Q.value = e4), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: $.value.placeholder, size: $.value.size, 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")), onClear: a2[18] || (a2[18] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (n(), r(t2, { key: 3, ref_key: "componentRef", ref: J, clearable: $.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": a2[19] || (a2[19] = (e4) => Q.value = e4), shortcuts: X.value, type: $.value.dateType, onChange: a2[20] || (a2[20] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[21] || (a2[21] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[22] || (a2[22] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[23] || (a2[23] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[24] || (a2[24] = (a3) => c(P)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[25] || (a2[25] = (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"]))]), _: 2 }, [$.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...c(N), ...c(W) }) }, [$.value.prefixType ? (n(), r(j, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (n(), f(g, { key: 1 }, [m(h(c(Y)($.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
98
98
|
};
|
|
99
99
|
} });
|
|
100
100
|
export {
|
|
101
|
-
|
|
101
|
+
q as default
|
|
102
102
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as
|
|
2
|
-
import { SuperIcon as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
|
|
2
|
+
import { SuperIcon as I } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleFormEvent as j, handleAfterInitEvent as
|
|
6
|
-
import { formatScanRuleSets as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
5
|
+
import { handleFormEvent as j, handleAfterInitEvent as P, doSuffixOrPrefixClickEvent as S } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as L, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as D, isDingTalkEnv as M } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import N from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as J } from "../../../../utils/common-util.js";
|
|
12
12
|
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
|
|
@@ -17,62 +17,64 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
17
17
|
const e3 = w(E, F.pageContext);
|
|
18
18
|
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const H = l(
|
|
20
|
+
const H = l(D()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
21
|
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
-
} }), Q = l(null), X = l(null), Y = l(null)
|
|
22
|
+
} }), Q = l(null), X = l(null), Y = l(null);
|
|
23
|
+
F.configure.props.suffixLinkPage && !F.configure.props.linkPage && (F.configure.props.linkPage = F.configure.props.suffixLinkPage);
|
|
24
|
+
const Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
25
|
let te = false;
|
|
24
|
-
|
|
26
|
+
M() && (te = true);
|
|
25
27
|
let ne = "";
|
|
26
28
|
ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
27
29
|
const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
|
|
28
30
|
let ue = {};
|
|
29
|
-
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (
|
|
31
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(ee.value.scan.ruleList).then((e3) => {
|
|
30
32
|
ue = e3;
|
|
31
33
|
}), u(() => K.value, (e3) => {
|
|
32
34
|
e3 = e3.trim();
|
|
33
|
-
const l2 =
|
|
34
|
-
l2 &&
|
|
35
|
+
const l2 = L(e3, ue);
|
|
36
|
+
l2 && O(F.pageContext, l2.scanSet, l2.params);
|
|
35
37
|
}));
|
|
36
38
|
const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
|
|
37
39
|
function ce(e3) {
|
|
38
40
|
return b($, E, e3);
|
|
39
41
|
}
|
|
40
42
|
n(() => {
|
|
41
|
-
|
|
43
|
+
N.$on(W.value + "-scanDone", (e3) => {
|
|
42
44
|
ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
43
45
|
}), o(() => {
|
|
44
46
|
var _a2;
|
|
45
47
|
const e3 = K.value;
|
|
46
|
-
|
|
48
|
+
P(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
|
|
47
49
|
});
|
|
48
50
|
}), a(() => {
|
|
49
|
-
|
|
51
|
+
N.$off(W.value + "-scanDone");
|
|
50
52
|
});
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
+
const fe = l(false);
|
|
54
|
+
function ve() {
|
|
53
55
|
if (oe || te) {
|
|
54
56
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
55
57
|
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
-
} else if (H.value) if ("https:" === window.location.protocol)
|
|
58
|
+
} else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
|
|
57
59
|
else {
|
|
58
60
|
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
59
61
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
60
62
|
}
|
|
61
|
-
else
|
|
63
|
+
else fe.value = true;
|
|
62
64
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
+
function ge(e3) {
|
|
66
|
+
fe.value = false, ce(e3);
|
|
65
67
|
}
|
|
66
68
|
return B2({ getValue: function() {
|
|
67
69
|
return _($, E);
|
|
68
|
-
}, setValue: ce, scanClick:
|
|
69
|
-
G.value =
|
|
70
|
+
}, setValue: ce, scanClick: ve, addRequiredClass: function() {
|
|
71
|
+
G.value = J();
|
|
70
72
|
} }), (e3, l2) => {
|
|
71
73
|
const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
72
|
-
return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(
|
|
74
|
+
return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(f(ie)) }, v({ default: g(() => [m(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
|
|
73
75
|
let l3 = _($, E);
|
|
74
76
|
null != l3 && (l3 = l3.trim()), b($, E, l3), j(e5, F.pageContext, F.configure, "blur");
|
|
75
|
-
}(e4)), onFocus: l2[9] || (l2[9] = (l3) =>
|
|
77
|
+
}(e4)), onFocus: l2[9] || (l2[9] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ae.value ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => ve()) })) : y("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(n2, { key: 0, onClose: ge })) : y("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...f(se), ...f(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), k(T, { key: 1 }, [d(x(f(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
76
78
|
};
|
|
77
79
|
} });
|
|
78
80
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as a, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as p, unref as s, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
|
|
2
2
|
import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
@@ -27,13 +27,13 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
27
27
|
}));
|
|
28
28
|
const A = t(null), B = t(null), E = t(null);
|
|
29
29
|
return i(() => {
|
|
30
|
-
|
|
30
|
+
a(() => {
|
|
31
31
|
const e3 = J.value;
|
|
32
32
|
x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
|
|
33
33
|
});
|
|
34
34
|
}), (e3, t2) => {
|
|
35
|
-
const l2 =
|
|
36
|
-
return o(), u(
|
|
35
|
+
const l2 = n("el-link"), i2 = n("el-tooltip"), a2 = n("el-form-item");
|
|
36
|
+
return o(), u(a2, { ref_key: "formItemRef", ref: A, class: p(s(I)), "label-width": S.value.labelWidth, style: r(s(V)) }, f({ default: c(() => [m(i2, { disabled: !s(z), content: s(z) }, { default: c(() => [m(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => s(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(s(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...s(P) }), class: "amb-form-item-label" }, v(s(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
37
37
|
};
|
|
38
38
|
} });
|
|
39
39
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.41-sit1",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
50
50
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
51
51
|
"@vue/test-utils": "^2.4.4",
|
|
52
|
-
"agilebuilder-ui": "1.1.
|
|
52
|
+
"agilebuilder-ui": "1.1.97-sit1",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|