super-page-runtime 2.3.7 → 2.3.9-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 +50 -50
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +102 -102
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +29 -22
- package/dist/es/components/runtime/utils/common-util.d.ts +4 -0
- package/dist/es/components/runtime/utils/common-util.js +4 -0
- 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 +18 -18
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +122 -104
- package/dist/es/components/runtime/utils/page-init-util.js +24 -25
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
- 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/gauge/gauge-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
- 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/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +19 -17
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +26 -20
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +10 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +31 -28
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +32 -25
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +52 -49
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -30
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +38 -35
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +18 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -55
- 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/radio/radio-runtime.vue2.js +46 -43
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +55 -53
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +63 -61
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +25 -22
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +16 -13
- 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.vue2.js +11 -12
- package/dist/es/style.css +30 -0
- package/package.json +2 -2
- package/dist/es.zip +0 -0
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,87 +1,90 @@
|
|
|
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 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 { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleAfterInitEvent as T, getCustomFunc as V, handleFormEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import R from "../common/title-suffix-element.vue.js";
|
|
7
|
+
import Y from "dayjs";
|
|
8
8
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
10
|
+
const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
|
|
11
|
+
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, I = A.class, M = A.headerStyle, B = A.titleExceedStyle, N = a(A.props ? A.props : {});
|
|
12
|
+
let U = h(S.pageContext, S.configure, N.value.prop);
|
|
13
|
+
if (S.pageContext.modelFieldsMap && U && U.length > 0 && "data" === U[0]) {
|
|
14
|
+
const e3 = C(U, S.pageContext);
|
|
14
15
|
e3 && function(e4) {
|
|
15
16
|
const a2 = e4.dataType;
|
|
16
|
-
k(a2) && ("year" ===
|
|
17
|
+
k(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
|
|
17
18
|
}(e3);
|
|
18
19
|
}
|
|
19
|
-
let
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
let e3 =
|
|
23
|
-
e3 && e3.startsWith("${") || (e3 = "${page." +
|
|
24
|
-
const a2 = x(
|
|
25
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
26
|
-
const e4 = x(
|
|
27
|
-
b(
|
|
20
|
+
let W = null, $ = false;
|
|
21
|
+
if (N.value.dateType && N.value.dateType.includes("range")) {
|
|
22
|
+
$ = true;
|
|
23
|
+
let e3 = N.value.prop2;
|
|
24
|
+
e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
|
|
25
|
+
const a2 = x(q, e3, null);
|
|
26
|
+
if (e3 = e3.substring(2, e3.length - 1), W = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && N.value.defaultValue2) {
|
|
27
|
+
const e4 = x(q, N.value.defaultValue2);
|
|
28
|
+
b(q, W, e4);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
function
|
|
31
|
+
const E = a(null), O = a(null), G = a(null);
|
|
32
|
+
function H(e3, a2) {
|
|
32
33
|
if (!e3) return e3;
|
|
33
34
|
if (a2) {
|
|
34
35
|
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
35
36
|
try {
|
|
36
|
-
const l2 =
|
|
37
|
+
const l2 = Y(e3);
|
|
37
38
|
let t2 = null;
|
|
38
|
-
return t2 = "x" === a2 ? l2.toDate().getTime() :
|
|
39
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : Y(e3).format(a2), t2;
|
|
39
40
|
} catch (a3) {
|
|
40
|
-
return
|
|
41
|
+
return e3;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
return e3;
|
|
44
45
|
}
|
|
45
46
|
if (l(() => {
|
|
46
47
|
t(() => {
|
|
47
|
-
const e3 =
|
|
48
|
-
T(e3,
|
|
48
|
+
const e3 = J.value;
|
|
49
|
+
T(e3, S.pageContext, S.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
|
|
49
50
|
});
|
|
50
|
-
}),
|
|
51
|
-
const e3 = F(
|
|
52
|
-
e3 !== a2 && b(
|
|
51
|
+
}), U) {
|
|
52
|
+
const e3 = F(q, U), a2 = H(e3, N.value.valueFormat);
|
|
53
|
+
e3 !== a2 && b(q, U, a2);
|
|
53
54
|
}
|
|
54
|
-
if (
|
|
55
|
-
const e3 = F(
|
|
56
|
-
e3 !== a2 && b(
|
|
55
|
+
if (W) {
|
|
56
|
+
const e3 = F(q, W), a2 = H(e3, N.value.valueFormat);
|
|
57
|
+
e3 !== a2 && b(q, W, a2);
|
|
57
58
|
}
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
59
|
+
const J = o({ get() {
|
|
60
|
+
if ($) {
|
|
60
61
|
const e3 = [];
|
|
61
|
-
let a2 = F(
|
|
62
|
-
e3.push(
|
|
63
|
-
let l2 = F(
|
|
64
|
-
return e3.push(
|
|
62
|
+
let a2 = F(q, U);
|
|
63
|
+
e3.push(H(a2, N.value.valueFormat));
|
|
64
|
+
let l2 = F(q, W);
|
|
65
|
+
return e3.push(H(l2, N.value.valueFormat)), e3;
|
|
65
66
|
}
|
|
66
|
-
return
|
|
67
|
+
return H(F(q, U), N.value.valueFormat);
|
|
67
68
|
}, set(e3) {
|
|
68
|
-
|
|
69
|
-
} }),
|
|
70
|
-
if (
|
|
71
|
-
const e3 = V(
|
|
69
|
+
$ ? Array.isArray(e3) ? (b(q, U, e3[0]), b(q, W, e3[1]), w.value = "") : null === e3 && (b(q, U, null), b(q, W, null)) : (b(q, U, e3), null != e3 && (w.value = ""));
|
|
70
|
+
} }), K = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
|
|
71
|
+
if (N.value.shortcutsFunc) {
|
|
72
|
+
const e3 = V(S.pageContext, N.value.shortcutsFunc);
|
|
72
73
|
if (e3) {
|
|
73
|
-
let a2 = e3.apply(e3, [{ pageContext:
|
|
74
|
+
let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
|
|
74
75
|
if (a2) {
|
|
75
|
-
Array.isArray(a2) || (a2 = [a2]),
|
|
76
|
-
for (let e4 of a2) e4.text && e4.value &&
|
|
76
|
+
Array.isArray(a2) || (a2 = [a2]), K.value || (K.value = []);
|
|
77
|
+
for (let e4 of a2) e4.text && e4.value && K.value.push(e4);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
return (
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
return P2({ addRequiredClass: function() {
|
|
82
|
+
w.value = z();
|
|
83
|
+
} }), (e3, a2) => {
|
|
84
|
+
const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
|
|
85
|
+
return n(), r(o2, { ref_key: "formItemRef", ref: E, required: N.value.required, class: p(s(I) + (w.value ? " " + w.value : "")), "label-width": N.value.labelWidth, style: i(s(D)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(M), ...s(B) }) }, [N.value.prefixType ? (n(), r(R, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: O, "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: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(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(), r(t2, { key: 1, ref_key: "componentRef", ref: O, 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: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(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"]);
|
|
83
86
|
};
|
|
84
87
|
} });
|
|
85
88
|
export {
|
|
86
|
-
|
|
89
|
+
P as default
|
|
87
90
|
};
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as i, watch as n, resolveComponent as p, createBlock as a, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { handleAfterInitEvent as S, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import F from "../common/title-suffix-element.vue.js";
|
|
5
5
|
import { $t as b } from "../../../../utils/i18n-util.js";
|
|
6
|
-
import { setVariableValue as k, getVariableValue as R, getValueFromVariable as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
T
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
import { setVariableValue as k, getVariableValue as R, getValueFromVariable as j } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
8
|
+
const I = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: I2 }) {
|
|
9
|
+
const T = e2, q = t(null), w = t([]), z = T.pageContext.entity ? T.pageContext.entity : {};
|
|
10
|
+
z.data || (z.data = {});
|
|
11
|
+
const M = z.data, O = z.page;
|
|
12
|
+
let $ = C(T.pageContext, T.configure);
|
|
13
|
+
const D = $.length > 0 ? $[$.length - 1] : T.configure.uuid, E = T.configure.runtime ? T.configure.runtime : {}, V = t(E.props ? E.props : {}), W = E.style, A = E.class, B = E.headerStyle, G = E.titleExceedStyle;
|
|
14
|
+
E.props.deptScope && ("field" == E.props.deptScope && E.props.deptScopeField ? (U(), function(e3, t2) {
|
|
14
15
|
if (0 === e3.indexOf("${fixed.")) return;
|
|
15
16
|
const l2 = e3.match(/\${(.*?)}/);
|
|
16
17
|
if (!l2) return;
|
|
17
18
|
const o2 = l2 ? l2[1].split(".") : [];
|
|
18
|
-
o2 && o2.length > 0 &&
|
|
19
|
+
o2 && o2.length > 0 && n(() => o2.reduce((e4, t3) => e4[t3], T.pageContext.entity), (e4, l3) => {
|
|
19
20
|
t2(e4, l3);
|
|
20
21
|
});
|
|
21
|
-
}(
|
|
22
|
-
|
|
23
|
-
})) : "depts" ==
|
|
24
|
-
const
|
|
22
|
+
}(E.props.deptScopeField, (e3, t2) => {
|
|
23
|
+
U();
|
|
24
|
+
})) : "depts" == E.props.deptScope && E.props.deptScopeCodes && (w.value = E.props.deptScopeCodes.split(",")));
|
|
25
|
+
const H = t(null), J = t(null), K = t(null);
|
|
25
26
|
l(() => {
|
|
26
27
|
o(() => {
|
|
27
|
-
const e3 =
|
|
28
|
-
S(e3,
|
|
28
|
+
const e3 = M ? M[D] : null;
|
|
29
|
+
S(e3, T.pageContext, T.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
|
-
const
|
|
32
|
-
k(
|
|
33
|
-
} }),
|
|
34
|
-
function
|
|
35
|
-
e3 ===
|
|
32
|
+
const L = i({ get: () => R(z, $), set(e3) {
|
|
33
|
+
k(z, $, e3), null != e3 && (q.value = "");
|
|
34
|
+
} }), N = V.value.autoSetFields ? V.value.autoSetFields : [];
|
|
35
|
+
function P(e3, t2) {
|
|
36
|
+
e3 === D && h(t2, T.pageContext, T.configure, "change");
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
h(null,
|
|
38
|
+
function Q() {
|
|
39
|
+
h(null, T.pageContext, T.configure, "click");
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
const e3 =
|
|
42
|
-
|
|
41
|
+
function U() {
|
|
42
|
+
const e3 = j(T.pageContext.entity, E.props.deptScopeField);
|
|
43
|
+
w.value = e3 ? e3.split(",") : [];
|
|
43
44
|
}
|
|
44
|
-
return (
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
return I2({ addRequiredClass: function() {
|
|
46
|
+
q.value = _();
|
|
47
|
+
} }), (e3, t2) => {
|
|
48
|
+
const l2 = p("OrganizationInput"), o2 = p("el-form-item");
|
|
49
|
+
return u(), a(o2, { ref_key: "formItemRef", ref: H, required: V.value.required, class: s(d(A) + (q.value ? " " + q.value : "")), "label-width": V.value.labelWidth, style: r(d(W)) }, { label: f(() => [V.value.tittleShow ? (u(), m("div", { key: 0, ref_key: "titleRef", ref: K, style: r({ ...d(B), ...d(G) }) }, [V.value.prefixType ? (u(), a(F, { key: 0, pageContext: e3.pageContext, property: V.value }, null, 8, ["pageContext", "property"])) : (u(), m(v, { key: 1 }, [y(x(d(b)(V.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(l2, { ref_key: "componentRef", ref: J, disabled: "disabled" == V.value.state, multiple: V.value.multiple, treeType: V.value.treeType, value: L.value, models: d(M), departmentInfo: w.value, limitFilterColumn: V.value.limitFilterColumn, pageModels: d(O), fields: d(N), size: V.value.size, separator: V.value.separator, onSetValue: P, onShowTree: Q }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
47
50
|
};
|
|
48
51
|
} });
|
|
49
52
|
export {
|
|
50
|
-
|
|
53
|
+
I as default
|
|
51
54
|
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -5,65 +5,68 @@ import b from "agilebuilder-ui/src/utils/request";
|
|
|
5
5
|
import { FsUploadNew as w } from "agilebuilder-ui";
|
|
6
6
|
import x from "../../../../utils/eventBus.js";
|
|
7
7
|
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
9
|
+
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
10
|
+
const j = e2, N = l(null), R = j.configure.runtime ? j.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, S = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = K(q.prop), U = K(q.propName);
|
|
11
|
+
F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
|
|
12
|
+
J(h(S, F));
|
|
12
13
|
});
|
|
13
|
-
const
|
|
14
|
-
function
|
|
14
|
+
const $ = j.pageContext.code, W = l(F ? $ + "__" + F.join("__") : null), B = h(S, F), E = l(null), A = l(false), G = l([]), H = l({});
|
|
15
|
+
function J(e3) {
|
|
15
16
|
if (e3) {
|
|
16
17
|
const l2 = e3.split(",");
|
|
17
18
|
if (l2.length > 0) {
|
|
18
|
-
const e4 =
|
|
19
|
+
const e4 = j.pageContext.backendUrl;
|
|
19
20
|
b.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
|
|
20
|
-
|
|
21
|
+
G.value = [];
|
|
21
22
|
const t2 = [];
|
|
22
23
|
for (let o2 = 0; o2 < l2.length; o2++) {
|
|
23
24
|
const a2 = l2[o2];
|
|
24
|
-
t2.push(e5[a2]),
|
|
25
|
+
t2.push(e5[a2]), G.value.push({ showName: e5[a2], serverPath: a2 });
|
|
25
26
|
}
|
|
26
|
-
"input" ===
|
|
27
|
+
"input" === T.value.displayType && (H.value.showName = t2.join(","), H.value.serverPath = l2.join(","));
|
|
27
28
|
}).finally(() => {
|
|
28
|
-
|
|
29
|
+
A.value = true;
|
|
29
30
|
});
|
|
30
|
-
} else
|
|
31
|
-
} else
|
|
31
|
+
} else A.value = true;
|
|
32
|
+
} else G.value = [], H.value = {}, A.value = true;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function K(e3) {
|
|
34
35
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function L(e3) {
|
|
37
38
|
return C(e3);
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
},
|
|
40
|
+
J(B);
|
|
41
|
+
const M = (e3, l2, t2) => {
|
|
42
|
+
V();
|
|
43
|
+
}, Q = (e3) => {
|
|
44
|
+
V();
|
|
45
|
+
}, V = () => {
|
|
45
46
|
const e3 = [], l2 = [];
|
|
46
|
-
if (
|
|
47
|
-
const e4 =
|
|
48
|
-
for (let l3 = 0; l3 < e4; l3++)
|
|
47
|
+
if (T.value.limit && G.value.length > T.value.limit) {
|
|
48
|
+
const e4 = G.value.length - T.value.limit;
|
|
49
|
+
for (let l3 = 0; l3 < e4; l3++) G.value.shift();
|
|
49
50
|
}
|
|
50
|
-
for (let t2 = 0; t2 <
|
|
51
|
-
y(
|
|
52
|
-
},
|
|
51
|
+
for (let t2 = 0; t2 < G.value.length; t2++) e3.push(G.value[t2].showName), l2.push(G.value[t2].serverPath);
|
|
52
|
+
y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (N.value = "");
|
|
53
|
+
}, X = l(null), Y = l(null);
|
|
53
54
|
return o(() => {
|
|
54
|
-
x.$on(
|
|
55
|
-
|
|
55
|
+
x.$on(W.value + "-pickFileDone", (e3) => {
|
|
56
|
+
E.value.pickFileDone(e3);
|
|
56
57
|
}), a(() => {
|
|
57
|
-
const e3 = h(
|
|
58
|
-
g(l2,
|
|
58
|
+
const e3 = h(S, F), l2 = { showName: h(S, U), serverPath: e3 };
|
|
59
|
+
g(l2, j.pageContext, j.configure, { formItemRef: X.value, componentRef: E.value, titleRef: Y.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
|
|
59
60
|
});
|
|
60
61
|
}), i(() => {
|
|
61
|
-
x.$off(
|
|
62
|
-
}), (
|
|
62
|
+
x.$off(W.value + "-pickFileDone");
|
|
63
|
+
}), _2({ addRequiredClass: function() {
|
|
64
|
+
N.value = P();
|
|
65
|
+
} }), (e3, l2) => {
|
|
63
66
|
const t2 = n("el-form-item");
|
|
64
|
-
return
|
|
67
|
+
return T.value.tittleShow ? (p(), s(t2, { key: 0, ref_key: "formItemRef", ref: X, required: T.value.required, class: d(v(D) + (N.value ? " " + N.value : "")), "label-width": T.value.labelWidth, style: r(v(z)) }, { label: m(() => [T.value.tittleShow ? (p(), f("div", { key: 0, ref_key: "titleRef", ref: Y, style: r({ ...v(I), ...v(O) }) }, c(v(k)(T.value.title)), 5)) : u("", true)]), default: m(() => [A.value ? (p(), s(v(w), { key: 0, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : A.value ? (p(), s(v(w), { key: 1, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
|
|
65
68
|
};
|
|
66
69
|
} });
|
|
67
70
|
export {
|
|
68
|
-
|
|
71
|
+
_ as default
|
|
69
72
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, Fragment as v, createTextVNode as g, toDisplayString as y } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as C, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent as b, handleFormEvent as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
import { handleAfterInitEvent as b, handleFormEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import j from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
8
|
+
const q = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
9
|
+
const w = e2, z = t(null), S = w.pageContext.entity ? w.pageContext.entity : {};
|
|
10
|
+
let V = x(w.pageContext, w.configure);
|
|
11
|
+
const B = l({ get: () => h(S, V), set(e3) {
|
|
12
|
+
C(S, V, e3), null != e3 && (z.value = "");
|
|
13
|
+
} }), I = w.configure.runtime ? w.configure.runtime : {}, D = I.style, E = I.class, F = I.headerStyle, T = I.titleExceedStyle, U = t(I.props ? I.props : {}), W = t(null), A = t(null), G = t(null);
|
|
13
14
|
return o(() => {
|
|
14
15
|
a(() => {
|
|
15
|
-
const e3 =
|
|
16
|
-
b(e3,
|
|
16
|
+
const e3 = B.value;
|
|
17
|
+
b(e3, w.pageContext, w.configure, { formItemRef: W.value, componentRef: A.value, titleRef: G.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
17
18
|
});
|
|
18
|
-
}), (
|
|
19
|
+
}), q2({ addRequiredClass: function() {
|
|
20
|
+
z.value = _();
|
|
21
|
+
} }), (e3, t2) => {
|
|
19
22
|
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
20
|
-
return
|
|
23
|
+
return i(), u(o2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e3.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: t2[1] || (t2[1] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
21
24
|
};
|
|
22
25
|
} });
|
|
23
26
|
export {
|
|
24
|
-
|
|
27
|
+
q as default
|
|
25
28
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, 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
2
|
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
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
8
|
+
import { isMobileBrowser as M } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import N from "../../../../utils/eventBus.js";
|
|
10
10
|
import { $t as P } from "../../../../utils/i18n-util.js";
|
|
11
|
-
|
|
11
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
12
|
+
const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
|
|
12
13
|
var _a, _b, _c;
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
16
|
-
const e3 = w(
|
|
17
|
-
e3 && (
|
|
14
|
+
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
|
|
15
|
+
let $ = k(L.pageContext, L.configure);
|
|
16
|
+
if (L.pageContext.modelFieldsMap) {
|
|
17
|
+
const e3 = w($, L.pageContext);
|
|
18
|
+
e3 && (F.value = V(e3.dataType) ? "number" : "text");
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
-
h(
|
|
21
|
-
} }),
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), u(() => U.value, (e3) => {
|
|
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
|
+
h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
|
|
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
|
+
let ee = false;
|
|
24
|
+
const te = window.localStorage.getItem("auth_source");
|
|
25
|
+
te && "dingtalk" === te && (ee = true);
|
|
26
|
+
let le = "";
|
|
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 = {};
|
|
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) => {
|
|
31
|
+
ae = e3;
|
|
32
|
+
}), u(() => G.value, (e3) => {
|
|
33
33
|
e3 = e3.trim();
|
|
34
|
-
const t2 =
|
|
35
|
-
t2 &&
|
|
34
|
+
const t2 = O(e3, ae);
|
|
35
|
+
t2 && q(L.pageContext, t2.scanSet, t2.params);
|
|
36
36
|
}));
|
|
37
|
-
const
|
|
38
|
-
function
|
|
39
|
-
return h(
|
|
37
|
+
const ue = X.style, ie = X.class, re = X.headerStyle, pe = X.titleExceedStyle;
|
|
38
|
+
function se(e3) {
|
|
39
|
+
return h(B, $, e3);
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
41
|
+
n(() => {
|
|
42
|
+
N.$on(U.value + "-scanDone", (e3) => {
|
|
43
|
+
se(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
44
|
+
}), o(() => {
|
|
45
45
|
var _a2;
|
|
46
|
-
const e3 =
|
|
47
|
-
S(e3,
|
|
46
|
+
const e3 = G.value;
|
|
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();
|
|
48
48
|
});
|
|
49
49
|
}), a(() => {
|
|
50
|
-
|
|
50
|
+
N.$off(U.value + "-scanDone");
|
|
51
51
|
});
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
if (ne ||
|
|
55
|
-
const e3 = { type: "scan", componentId:
|
|
56
|
-
|
|
57
|
-
} else if (
|
|
52
|
+
const ce = t(false);
|
|
53
|
+
function ve() {
|
|
54
|
+
if (ne || ee) {
|
|
55
|
+
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
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;
|
|
58
58
|
else {
|
|
59
|
-
const e3 = { type: "scan", componentId:
|
|
59
|
+
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
60
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
61
|
}
|
|
62
|
-
else
|
|
62
|
+
else ce.value = true;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
64
|
+
function fe(e3) {
|
|
65
|
+
ce.value = false, se(e3);
|
|
66
66
|
}
|
|
67
|
-
return
|
|
68
|
-
return b(
|
|
69
|
-
}, setValue:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
return J2({ getValue: function() {
|
|
68
|
+
return b(B, $);
|
|
69
|
+
}, setValue: se, scanClick: ve, addRequiredClass: function() {
|
|
70
|
+
W.value = z();
|
|
71
|
+
} }), (e3, t2) => {
|
|
72
|
+
const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
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) {
|
|
74
|
+
let t3 = b(B, $);
|
|
75
|
+
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
|
|
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"]);
|
|
75
77
|
};
|
|
76
78
|
} });
|
|
77
79
|
export {
|
|
78
|
-
|
|
80
|
+
J as default
|
|
79
81
|
};
|