super-page-runtime 2.2.86 → 2.2.89-sit4
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 +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +2 -4
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +42 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +541 -543
- package/dist/es/components/runtime/utils/events/validator-util.js +32 -32
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +43 -47
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +23 -23
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +19 -13
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- 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 +85 -88
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +108 -111
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +50 -49
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -51
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +41 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +123 -125
- package/dist/es/style.css +101 -92
- package/package.json +2 -2
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import { updateFormItemEditState as
|
|
6
|
-
import { getListCode as
|
|
7
|
-
import { getComponentRef as
|
|
4
|
+
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as _ } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
const U = { key: 0, style: { width: "100%", height: "100%" } },
|
|
12
|
-
const
|
|
13
|
-
x(
|
|
14
|
-
} }),
|
|
11
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
12
|
+
const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => y(z, F), set(e3) {
|
|
13
|
+
x(z, F, e3);
|
|
14
|
+
} }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
|
|
15
15
|
let t2 = {};
|
|
16
16
|
if (e3) for (let o2 in e3) {
|
|
17
17
|
const a2 = e3[o2];
|
|
18
|
-
t2[o2] = b(
|
|
18
|
+
t2[o2] = b(q.pageContext, a2);
|
|
19
19
|
}
|
|
20
20
|
return t2;
|
|
21
|
-
}(
|
|
22
|
-
function
|
|
23
|
-
j(
|
|
21
|
+
}(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
|
|
22
|
+
function L(e3, t2) {
|
|
23
|
+
j(z, e3, t2);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function M(e3) {
|
|
26
|
+
V(q.pageContext, e3);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const e3 =
|
|
28
|
+
function N() {
|
|
29
|
+
const e3 = q.pageContext.tableUuids;
|
|
30
30
|
e3 && e3.forEach((e4) => {
|
|
31
|
-
const t2 =
|
|
31
|
+
const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
|
|
32
32
|
o2 && o2.restoreGridEdit(t2);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
const Q =
|
|
35
|
+
q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
|
|
36
|
+
const Q = q.pageContext.code, T = o(F && F.length > 0 ? Q + "__" + F.join("__") : null), X = o(null), Y = o(null), Z = o(null);
|
|
37
37
|
function ee(e3) {
|
|
38
|
-
|
|
38
|
+
k(G.value, q.pageContext, q.configure, e3);
|
|
39
39
|
}
|
|
40
40
|
return a(() => {
|
|
41
41
|
S.$on(T.value + "-scanDone", (e3) => {
|
|
42
42
|
const t2 = e3.result;
|
|
43
|
-
x(
|
|
43
|
+
x(z, F, t2);
|
|
44
44
|
}), S.$on(T.value + "-pickFileDone", (e3) => {
|
|
45
|
-
|
|
45
|
+
X.value.pickFileDone(e3);
|
|
46
46
|
}), n(() => {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
47
|
+
const e3 = G.value;
|
|
48
|
+
R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
49
49
|
});
|
|
50
50
|
}), i(() => {
|
|
51
51
|
S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
|
|
52
|
-
}),
|
|
52
|
+
}), $2({ getCustomRef: function() {
|
|
53
53
|
return X.value;
|
|
54
54
|
} }), (e3, t2) => {
|
|
55
|
-
const o2 =
|
|
56
|
-
return
|
|
55
|
+
const o2 = u("el-form-item");
|
|
56
|
+
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: c(m(P)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [K.value ? (p(), r("div", U, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (p(), r("div", O, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
$ as default
|
|
61
61
|
};
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,78 +1,79 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, 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
4
|
import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent as
|
|
5
|
+
import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import V from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import j from "dayjs";
|
|
8
|
-
import { $t as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
e3
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const e4 = C(_, $.value.defaultValue2);
|
|
21
|
-
x(_, I, e4);
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
|
+
const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
10
|
+
const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, S = P.style, w = P.class, A = P.headerStyle, D = P.titleExceedStyle, q = a(P.props ? P.props : {});
|
|
11
|
+
let I = h(_2.pageContext, _2.configure, q.value.prop), B = null, N = false;
|
|
12
|
+
if (q.value.dateType && q.value.dateType.includes("range")) {
|
|
13
|
+
N = true;
|
|
14
|
+
let e3 = q.value.prop2;
|
|
15
|
+
e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}");
|
|
16
|
+
const a2 = C(z, e3, null);
|
|
17
|
+
if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || z.data && (z.data.id || z.data.ID)) && q.value.defaultValue2) {
|
|
18
|
+
const e4 = C(z, q.value.defaultValue2);
|
|
19
|
+
x(z, B, e4);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
|
-
const U = a(null), W = a(null),
|
|
25
|
-
function
|
|
22
|
+
const U = a(null), W = a(null), $ = a(null);
|
|
23
|
+
function E(e3, a2) {
|
|
26
24
|
if (!e3) return e3;
|
|
27
|
-
if (a2)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
if (a2) {
|
|
26
|
+
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
27
|
+
try {
|
|
28
|
+
const l2 = j(e3);
|
|
29
|
+
let t2 = null;
|
|
30
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
31
|
+
} catch (a3) {
|
|
32
|
+
return e3;
|
|
33
|
+
}
|
|
33
34
|
}
|
|
34
35
|
return e3;
|
|
35
36
|
}
|
|
36
37
|
if (l(() => {
|
|
37
38
|
t(() => {
|
|
38
|
-
const e3 =
|
|
39
|
-
|
|
39
|
+
const e3 = O.value;
|
|
40
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
40
41
|
});
|
|
41
|
-
}),
|
|
42
|
-
const e3 = b(
|
|
43
|
-
e3 !== a2 && x(
|
|
42
|
+
}), I) {
|
|
43
|
+
const e3 = b(z, I), a2 = E(e3, q.value.valueFormat);
|
|
44
|
+
e3 !== a2 && x(z, I, a2);
|
|
44
45
|
}
|
|
45
|
-
if (
|
|
46
|
-
const e3 = b(
|
|
47
|
-
e3 !== a2 && x(
|
|
46
|
+
if (B) {
|
|
47
|
+
const e3 = b(z, B), a2 = E(e3, q.value.valueFormat);
|
|
48
|
+
e3 !== a2 && x(z, B, a2);
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
50
|
+
const O = r({ get() {
|
|
51
|
+
if (N) {
|
|
51
52
|
const e3 = [];
|
|
52
|
-
let a2 = b(
|
|
53
|
-
e3.push(
|
|
54
|
-
let l2 = b(
|
|
55
|
-
return e3.push(
|
|
53
|
+
let a2 = b(z, I);
|
|
54
|
+
e3.push(E(a2, q.value.valueFormat));
|
|
55
|
+
let l2 = b(z, B);
|
|
56
|
+
return e3.push(E(l2, q.value.valueFormat)), e3;
|
|
56
57
|
}
|
|
57
|
-
return
|
|
58
|
+
return E(b(z, I), q.value.valueFormat);
|
|
58
59
|
}, set(e3) {
|
|
59
|
-
|
|
60
|
-
} }),
|
|
61
|
-
if (
|
|
62
|
-
const e3 =
|
|
60
|
+
N ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
|
|
61
|
+
} }), G = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
|
|
62
|
+
if (q.value.shortcutsFunc) {
|
|
63
|
+
const e3 = F(_2.pageContext, q.value.shortcutsFunc);
|
|
63
64
|
if (e3) {
|
|
64
|
-
let a2 = e3.apply(e3, [{ pageContext:
|
|
65
|
+
let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
|
|
65
66
|
if (a2) {
|
|
66
|
-
Array.isArray(a2) || (a2 = [a2]),
|
|
67
|
-
for (let e4 of a2) e4.text && e4.value &&
|
|
67
|
+
Array.isArray(a2) || (a2 = [a2]), G.value || (G.value = []);
|
|
68
|
+
for (let e4 of a2) e4.text && e4.value && G.value.push(e4);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
return (e3, a2) => {
|
|
72
|
-
const l2 =
|
|
73
|
-
return n(), u(
|
|
73
|
+
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
74
|
+
return n(), u(r2, { ref_key: "formItemRef", ref: U, required: q.value.required, class: p(s(w)), "label-width": q.value.labelWidth, style: i(s(S)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(A), ...s(D) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(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"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: W, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(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"]);
|
|
74
75
|
};
|
|
75
76
|
} });
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
_ as default
|
|
78
79
|
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,61 +1,69 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as
|
|
2
|
-
import { getVariableValue as
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew as
|
|
6
|
-
import
|
|
7
|
-
import { $t as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as c, createElementBlock as v, toDisplayString as d } from "vue";
|
|
2
|
+
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import x from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as b } from "agilebuilder-ui";
|
|
6
|
+
import k from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
8
|
+
const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
|
|
10
|
+
F && F.length > 1 && l(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
|
|
11
|
+
A(h(O, F));
|
|
12
|
+
});
|
|
13
|
+
const q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t(false), B = t([]), E = t({});
|
|
14
|
+
function A(e3) {
|
|
15
|
+
if (e3) {
|
|
16
|
+
const t2 = e3.split(",");
|
|
17
|
+
if (t2.length > 0) {
|
|
18
|
+
const e4 = w2.pageContext.backendUrl;
|
|
19
|
+
x.post(e4 + "/common/fs-upload/search-file-names", t2).then((e5) => {
|
|
20
|
+
B.value = [];
|
|
21
|
+
const l2 = [];
|
|
22
|
+
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
23
|
+
const o2 = t2[i2];
|
|
24
|
+
l2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
|
|
25
|
+
}
|
|
26
|
+
"input" === j.value.displayType && (E.value.showName = l2.join(","), E.value.serverPath = t2.join(","));
|
|
27
|
+
}).finally(() => {
|
|
28
|
+
W.value = true;
|
|
29
|
+
});
|
|
30
|
+
} else W.value = true;
|
|
31
|
+
} else W.value = true;
|
|
32
|
+
}
|
|
33
|
+
function G(e3) {
|
|
27
34
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
28
35
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
36
|
+
function H(e3) {
|
|
37
|
+
return C(e3);
|
|
31
38
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
A(U);
|
|
40
|
+
const J = (e3, t2, l2) => {
|
|
41
|
+
L();
|
|
42
|
+
}, K = (e3) => {
|
|
43
|
+
L();
|
|
44
|
+
}, L = () => {
|
|
45
|
+
const e3 = [], t2 = [];
|
|
46
|
+
if (j.value.limit && B.value.length > j.value.limit) {
|
|
47
|
+
const e4 = B.value.length - j.value.limit;
|
|
48
|
+
for (let t3 = 0; t3 < e4; t3++) B.value.shift();
|
|
41
49
|
}
|
|
42
|
-
for (let
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
for (let l2 = 0; l2 < B.value.length; l2++) e3.push(B.value[l2].showName), t2.push(B.value[l2].serverPath);
|
|
51
|
+
y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
|
|
52
|
+
}, M = t(null), Q = t(null);
|
|
53
|
+
return i(() => {
|
|
54
|
+
k.$on(D.value + "-pickFileDone", (e3) => {
|
|
55
|
+
$.value.pickFileDone(e3);
|
|
48
56
|
}), o(() => {
|
|
49
|
-
const e3 =
|
|
50
|
-
|
|
57
|
+
const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
|
|
58
|
+
g(t2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
|
|
51
59
|
});
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
}), (e3,
|
|
55
|
-
const
|
|
56
|
-
return
|
|
60
|
+
}), a(() => {
|
|
61
|
+
k.$off(D.value + "-pickFileDone");
|
|
62
|
+
}), (e3, t2) => {
|
|
63
|
+
const l2 = s("el-form-item");
|
|
64
|
+
return j.value.tittleShow ? (p(), n(l2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: c(() => [j.value.tittleShow ? (p(), v("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: c(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
|
|
57
65
|
};
|
|
58
66
|
} });
|
|
59
67
|
export {
|
|
60
|
-
|
|
68
|
+
w as default
|
|
61
69
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,76 +1,75 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { getFormModelFields as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
|
|
2
|
+
import { SuperIcon as T } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, 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
6
|
import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import P from "../common/title-suffix-element.vue.js";
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
const
|
|
8
|
+
import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import z from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as L } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const M = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: M2 }) {
|
|
12
12
|
var _a, _b, _c;
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
16
|
-
const e3 = V(
|
|
17
|
-
e3 && (
|
|
13
|
+
const N = e2, B = N.pageContext.entity ? N.pageContext.entity : {}, F = t("text");
|
|
14
|
+
let J = k(N.pageContext, N.configure);
|
|
15
|
+
if (N.pageContext.modelFieldsMap) {
|
|
16
|
+
const e3 = V(J, N.pageContext);
|
|
17
|
+
e3 && (F.value = h(e3.dataType) ? "number" : "text");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
e3 = e3.trim(), w(
|
|
21
|
-
} }), W =
|
|
19
|
+
const $ = t(q()), A = N.pageContext.code, E = t(J && J.length > 0 ? A + "__" + J.join("__") : null), U = l({ get: () => b(B, J), set(e3) {
|
|
20
|
+
e3 = e3.trim(), w(B, J, e3);
|
|
21
|
+
} }), W = t(null), G = t(null), H = t(null), K = N.configure.runtime ? N.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
|
|
22
22
|
let Y = false;
|
|
23
23
|
const Z = window.localStorage.getItem("auth_source");
|
|
24
24
|
Z && "dingtalk" === Z && (Y = true);
|
|
25
25
|
let ee = "";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let ne = {};
|
|
26
|
+
ee = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
27
|
+
const te = !(!$.value || !ee || "app" !== ee), le = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
|
|
28
|
+
let oe = {};
|
|
30
29
|
((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Q.value.scan.ruleList).then((e3) => {
|
|
31
|
-
|
|
30
|
+
oe = e3;
|
|
32
31
|
}), u(() => U.value, (e3) => {
|
|
33
32
|
e3 = e3.trim();
|
|
34
|
-
const
|
|
35
|
-
|
|
33
|
+
const t2 = D(e3, oe);
|
|
34
|
+
t2 && O(N.pageContext, t2.scanSet, t2.params);
|
|
36
35
|
}));
|
|
37
|
-
const
|
|
36
|
+
const ne = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
|
|
38
37
|
function re(e3) {
|
|
39
|
-
return w(
|
|
38
|
+
return w(B, J, e3);
|
|
40
39
|
}
|
|
41
40
|
o(() => {
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
z.$on(E.value + "-scanDone", (e3) => {
|
|
42
|
+
re(e3.result), _(e3.result, N.pageContext, N.configure, "afterScanDone");
|
|
44
43
|
}), n(() => {
|
|
45
44
|
var _a2;
|
|
46
45
|
const e3 = U.value;
|
|
47
|
-
S(e3,
|
|
48
|
-
})
|
|
46
|
+
S(e3, N.pageContext, N.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page }), le.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
|
|
47
|
+
});
|
|
49
48
|
}), a(() => {
|
|
50
|
-
|
|
49
|
+
z.$off(E.value + "-scanDone");
|
|
51
50
|
});
|
|
52
|
-
const pe =
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
55
|
-
const e3 = { type: "scan", componentId: E.value, systemCode:
|
|
51
|
+
const pe = t(false);
|
|
52
|
+
function ce() {
|
|
53
|
+
if (te || Y) {
|
|
54
|
+
const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
|
|
56
55
|
Y && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
|
|
57
|
-
} else if (
|
|
56
|
+
} else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
|
|
58
57
|
else {
|
|
59
|
-
const e3 = { type: "scan", componentId: E.value, systemCode:
|
|
58
|
+
const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
|
|
60
59
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
60
|
}
|
|
62
61
|
else pe.value = true;
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function se(e3) {
|
|
65
64
|
pe.value = false, re(e3);
|
|
66
65
|
}
|
|
67
|
-
return
|
|
68
|
-
return b(
|
|
69
|
-
}, setValue: re, scanClick:
|
|
70
|
-
const
|
|
71
|
-
return
|
|
66
|
+
return M2({ getValue: function() {
|
|
67
|
+
return b(B, J);
|
|
68
|
+
}, setValue: re, scanClick: ce }), (e3, t2) => {
|
|
69
|
+
const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
|
|
70
|
+
return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.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] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), 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" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
72
71
|
};
|
|
73
72
|
} });
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
M as default
|
|
76
75
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
|
|
2
2
|
import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
5
|
import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
|
-
const R = e2,
|
|
9
|
-
let
|
|
10
|
-
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType
|
|
11
|
-
|
|
12
|
-
const H = l(() => {
|
|
13
|
-
let e3 = m(P, S);
|
|
8
|
+
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
|
+
let P = d(R.pageContext, R.configure);
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType, H = l(() => {
|
|
11
|
+
let e3 = m(S, P);
|
|
14
12
|
if (G) if (A.value.hasOptions) {
|
|
15
13
|
let t2 = null;
|
|
16
14
|
B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
@@ -29,7 +27,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
29
27
|
B.value = e3 || [];
|
|
30
28
|
} }), (e3, t2) => {
|
|
31
29
|
const l2 = n("el-form-item");
|
|
32
|
-
return A.value.whetherTittle ? (
|
|
30
|
+
return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x(" " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), 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: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
33
31
|
};
|
|
34
32
|
} });
|
|
35
33
|
export {
|