super-page-runtime 2.3.13-sit3 → 2.3.13
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/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +186 -157
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/page-init-util.js +5 -2
- package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
- 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/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +25 -24
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +3 -3
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 r, 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 { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
@@ -8,24 +8,24 @@ import Y from "dayjs";
|
|
|
8
8
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
10
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,
|
|
12
|
-
let
|
|
13
|
-
if (S.pageContext.modelFieldsMap &&
|
|
14
|
-
const e3 = C(
|
|
11
|
+
const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, $ = A.class, I = A.headerStyle, M = A.titleExceedStyle, B = a(A.props ? A.props : {});
|
|
12
|
+
let N = h(S.pageContext, S.configure, B.value.prop);
|
|
13
|
+
if (S.pageContext.modelFieldsMap && N && N.length > 0 && "data" === N[0]) {
|
|
14
|
+
const e3 = C(N, S.pageContext);
|
|
15
15
|
e3 && function(e4) {
|
|
16
16
|
const a2 = e4.dataType;
|
|
17
|
-
k(a2) && ("year" ===
|
|
17
|
+
k(a2) && ("year" === B.value.dateType && "YYYY" === B.value.valueFormat || "month" === B.value.dateType && "YYYY-MM" === B.value.valueFormat) && (B.value.valueFormat = "x");
|
|
18
18
|
}(e3);
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
let e3 =
|
|
20
|
+
let U = null, W = false;
|
|
21
|
+
if (B.value.dateType && B.value.dateType.includes("range")) {
|
|
22
|
+
W = true;
|
|
23
|
+
let e3 = B.value.prop2;
|
|
24
24
|
e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
|
|
25
25
|
const a2 = x(q, e3, null);
|
|
26
|
-
if (e3 = e3.substring(2, e3.length - 1),
|
|
27
|
-
const e4 = x(q,
|
|
28
|
-
b(q,
|
|
26
|
+
if (e3 = e3.substring(2, e3.length - 1), U = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && B.value.defaultValue2) {
|
|
27
|
+
const e4 = x(q, B.value.defaultValue2);
|
|
28
|
+
b(q, U, e4);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
const E = a(null), O = a(null), G = a(null);
|
|
@@ -38,7 +38,7 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
let t2 = null;
|
|
39
39
|
return t2 = "x" === a2 ? l2.toDate().getTime() : Y(e3).format(a2), t2;
|
|
40
40
|
} catch (a3) {
|
|
41
|
-
return e3;
|
|
41
|
+
return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${B.value.valueFormat}`), e3;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return e3;
|
|
@@ -48,28 +48,28 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
48
48
|
const e3 = J.value;
|
|
49
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 });
|
|
50
50
|
});
|
|
51
|
-
}),
|
|
52
|
-
const e3 = F(q,
|
|
53
|
-
e3 !== a2 && b(q,
|
|
51
|
+
}), N) {
|
|
52
|
+
const e3 = F(q, N), a2 = H(e3, B.value.valueFormat);
|
|
53
|
+
e3 !== a2 && b(q, N, a2);
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
const e3 = F(q,
|
|
57
|
-
e3 !== a2 && b(q,
|
|
55
|
+
if (U) {
|
|
56
|
+
const e3 = F(q, U), a2 = H(e3, B.value.valueFormat);
|
|
57
|
+
e3 !== a2 && b(q, U, a2);
|
|
58
58
|
}
|
|
59
59
|
const J = o({ get() {
|
|
60
|
-
if (
|
|
60
|
+
if (W) {
|
|
61
61
|
const e3 = [];
|
|
62
|
-
let a2 = F(q,
|
|
63
|
-
e3.push(H(a2,
|
|
64
|
-
let l2 = F(q,
|
|
65
|
-
return e3.push(H(l2,
|
|
62
|
+
let a2 = F(q, N);
|
|
63
|
+
e3.push(H(a2, B.value.valueFormat));
|
|
64
|
+
let l2 = F(q, U);
|
|
65
|
+
return e3.push(H(l2, B.value.valueFormat)), e3;
|
|
66
66
|
}
|
|
67
|
-
return H(F(q,
|
|
67
|
+
return H(F(q, N), B.value.valueFormat);
|
|
68
68
|
}, set(e3) {
|
|
69
|
-
|
|
70
|
-
} }), K = a(y(
|
|
71
|
-
if (
|
|
72
|
-
const e3 = V(S.pageContext,
|
|
69
|
+
W ? Array.isArray(e3) ? (b(q, N, e3[0]), b(q, U, e3[1]), w.value = "") : null === e3 && (b(q, N, null), b(q, U, null)) : (b(q, N, e3), null != e3 && (w.value = ""));
|
|
70
|
+
} }), K = a(y(B.value.dateScopeDetails, B.value.sourceType, B.value.dateType));
|
|
71
|
+
if (B.value.shortcutsFunc) {
|
|
72
|
+
const e3 = V(S.pageContext, B.value.shortcutsFunc);
|
|
73
73
|
if (e3) {
|
|
74
74
|
let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
|
|
75
75
|
if (a2) {
|
|
@@ -80,9 +80,9 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
80
80
|
}
|
|
81
81
|
return P2({ addRequiredClass: function() {
|
|
82
82
|
w.value = z();
|
|
83
|
-
} }), (
|
|
84
|
-
const
|
|
85
|
-
return n(),
|
|
83
|
+
} }), (a2, l2) => {
|
|
84
|
+
const t2 = r("el-time-picker"), o2 = r("el-date-picker"), h2 = r("el-form-item");
|
|
85
|
+
return n(), u(h2, { ref_key: "formItemRef", ref: E, required: B.value.required, class: p(s($) + (w.value ? " " + w.value : "")), "label-width": B.value.labelWidth, style: i(s(D)) }, { label: c(() => [B.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(I), ...s(M) }) }, [B.value.prefixType ? (n(), u(R, { key: 0, pageContext: e2.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(B.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == B.value.dateType || "timerange" == B.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == B.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: B.value.clearable, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, "unlink-panels": true, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => J.value = e3), shortcuts: K.value, type: B.value.dateType, onChange: l2[1] || (l2[1] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(o2, { key: 1, ref_key: "componentRef", ref: O, clearable: B.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === B.value.state, readonly: "readonly" === B.value.state, size: B.value.size, placeholder: B.value.placeholder, "start-placeholder": B.value.placeholder, "end-placeholder": B.value.endPlaceholder ? B.value.endPlaceholder : B.value.placeholder, format: B.value.format, "value-format": B.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => J.value = e3), shortcuts: K.value, type: B.value.dateType, onChange: l2[8] || (l2[8] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => s(j)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => s(j)(a3, e2.pageContext, e2.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"]);
|
|
86
86
|
};
|
|
87
87
|
} });
|
|
88
88
|
export {
|
|
@@ -45,9 +45,9 @@ const T = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {
|
|
|
45
45
|
}
|
|
46
46
|
return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = j(P[P.length - 1].model)), T2({ addRequiredClass: function() {
|
|
47
47
|
w.value = I();
|
|
48
|
-
} }), (
|
|
49
|
-
const
|
|
50
|
-
return u(), a(
|
|
48
|
+
} }), (t2, l2) => {
|
|
49
|
+
const o2 = p("OrganizationInput"), n2 = p("el-form-item");
|
|
50
|
+
return u(), a(n2, { ref_key: "formItemRef", ref: J, required: W.value.required, class: s(d(B) + (w.value ? " " + w.value : "")), "label-width": W.value.labelWidth, style: r(d(A)) }, { label: f(() => [W.value.tittleShow ? (u(), m("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [W.value.prefixType ? (u(), a(F, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (u(), m(v, { key: 1 }, [y(x(d(b)(W.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(o2, { ref_key: "componentRef", ref: K, disabled: "disabled" == W.value.state, multiple: W.value.multiple, treeType: W.value.treeType, value: N.value, models: d(O), departmentInfo: z.value, limitFilterColumn: W.value.limitFilterColumn, pageModels: d($), fields: d(P), size: W.value.size, separator: W.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
51
51
|
};
|
|
52
52
|
} });
|
|
53
53
|
export {
|
|
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
|
|
|
14
14
|
const e3 = b.value;
|
|
15
15
|
v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
|
|
16
16
|
});
|
|
17
|
-
}), (
|
|
18
|
-
const
|
|
19
|
-
return l(), u(
|
|
17
|
+
}), (t2, n2) => {
|
|
18
|
+
const o2 = i("el-divider");
|
|
19
|
+
return l(), u(o2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: n2[0] || (n2[0] = (t3) => a(g)(t3, e2.pageContext, e2.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -56,7 +56,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
56
56
|
}, Z = l(null), ee = l(null);
|
|
57
57
|
return a(() => {
|
|
58
58
|
k.$on(E.value + "-pickFileDone", (e3) => {
|
|
59
|
-
G.value.pickFileDone(e3);
|
|
59
|
+
E.value, G.value.pickFileDone(e3);
|
|
60
60
|
}), o(() => {
|
|
61
61
|
const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
|
|
62
62
|
g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -65,9 +65,9 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
65
65
|
k.$off(E.value + "-pickFileDone");
|
|
66
66
|
}), j2({ addRequiredClass: function() {
|
|
67
67
|
S.value = P();
|
|
68
|
-
} }), (
|
|
69
|
-
const
|
|
70
|
-
return T.value.tittleShow ? (u(), s(
|
|
68
|
+
} }), (l2, t2) => {
|
|
69
|
+
const a2 = n("el-form-item");
|
|
70
|
+
return T.value.tittleShow ? (u(), s(a2, { key: 0, ref_key: "formItemRef", ref: Z, required: T.value.required, class: d(m(D) + (S.value ? " " + S.value : "")), "label-width": T.value.labelWidth, style: p(m(z)) }, { label: v(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(I), ...m(O) }) }, c(m(x)(T.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, 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": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.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", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, 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": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.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", "watermark", "pageContext"])) : r("", true);
|
|
71
71
|
};
|
|
72
72
|
} });
|
|
73
73
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -18,9 +18,9 @@ const q = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return i(), u(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const o2 = n("el-input-number"), a2 = n("el-form-item");
|
|
23
|
+
return i(), u(a2, { 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: e2.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(o2, { 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": l2[0] || (l2[0] = (e3) => B.value = e3), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: l2[1] || (l2[1] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(R)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -3,13 +3,13 @@ import { SuperIcon as T } from "agilebuilder-ui";
|
|
|
3
3
|
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
12
|
-
const
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import J from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
12
|
+
const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
|
|
15
15
|
let $ = k(L.pageContext, L.configure);
|
|
@@ -17,65 +17,66 @@ const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
17
17
|
const e3 = w($, L.pageContext);
|
|
18
18
|
e3 && (F.value = V(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const A = t(
|
|
20
|
+
const A = t(D()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
|
|
21
21
|
h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
|
|
22
22
|
} }), H = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
|
|
23
23
|
let ee = false;
|
|
24
24
|
const te = window.localStorage.getItem("auth_source");
|
|
25
25
|
te && "dingtalk" === te && (ee = true);
|
|
26
26
|
let le = "";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const ne = navigator.userAgent;
|
|
28
|
+
le = ne.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
29
|
+
const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
|
|
30
|
+
let ue = {};
|
|
30
31
|
((_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
|
-
|
|
32
|
+
ue = e3;
|
|
32
33
|
}), u(() => G.value, (e3) => {
|
|
33
34
|
e3 = e3.trim();
|
|
34
|
-
const t2 = O(e3,
|
|
35
|
-
t2 &&
|
|
35
|
+
const t2 = O(e3, ue);
|
|
36
|
+
t2 && N(L.pageContext, t2.scanSet, t2.params);
|
|
36
37
|
}));
|
|
37
|
-
const
|
|
38
|
-
function
|
|
38
|
+
const ie = X.style, re = X.class, pe = X.headerStyle, se = X.titleExceedStyle;
|
|
39
|
+
function ce(e3) {
|
|
39
40
|
return h(B, $, e3);
|
|
40
41
|
}
|
|
41
42
|
n(() => {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
J.$on(U.value + "-scanDone", (e3) => {
|
|
44
|
+
U.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
44
45
|
}), o(() => {
|
|
45
46
|
var _a2;
|
|
46
47
|
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 }),
|
|
48
|
+
S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
48
49
|
});
|
|
49
50
|
}), a(() => {
|
|
50
|
-
|
|
51
|
+
J.$off(U.value + "-scanDone");
|
|
51
52
|
});
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
53
|
+
const ve = t(false);
|
|
54
|
+
function fe() {
|
|
55
|
+
if (oe || ee) {
|
|
55
56
|
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)
|
|
57
|
+
ee && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
58
|
+
} else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
58
59
|
else {
|
|
59
60
|
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
60
61
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
62
|
}
|
|
62
|
-
else
|
|
63
|
+
else ve.value = true;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
65
|
+
function ye(e3) {
|
|
66
|
+
ve.value = false, ce(e3);
|
|
66
67
|
}
|
|
67
|
-
return
|
|
68
|
+
return z2({ getValue: function() {
|
|
68
69
|
return b(B, $);
|
|
69
|
-
}, setValue:
|
|
70
|
-
W.value =
|
|
71
|
-
} }), (
|
|
72
|
-
const
|
|
73
|
-
return p(), r(
|
|
70
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
71
|
+
W.value = P();
|
|
72
|
+
} }), (t2, l2) => {
|
|
73
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
74
|
+
return p(), r(a2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(pe), ...v(se) }) }, [Y.value.prefixType ? (p(), r(q, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(M)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { 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": l2[5] || (l2[5] = (e3) => G.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
|
|
74
75
|
let t3 = b(B, $);
|
|
75
|
-
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(
|
|
76
|
-
}(
|
|
76
|
+
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
|
|
77
|
+
}(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.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: l2[0] || (l2[0] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(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: l2[1] || (l2[1] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(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: l2[2] || (l2[2] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : 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: l2[4] || (l2[4] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
77
78
|
};
|
|
78
79
|
} });
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
z as default
|
|
81
82
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 s, normalizeStyle as p, 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";
|
|
@@ -7,7 +7,9 @@ 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
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
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
|
|
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
|
+
A.value;
|
|
12
|
+
const H = l(() => {
|
|
11
13
|
let e3 = m(S, P);
|
|
12
14
|
if (G) if (A.value.hasOptions) {
|
|
13
15
|
let t2 = null;
|
|
@@ -25,9 +27,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
25
27
|
});
|
|
26
28
|
}), j2({ updateOptions: function(e3) {
|
|
27
29
|
B.value = e3 || [];
|
|
28
|
-
} }), (
|
|
29
|
-
const
|
|
30
|
-
return A.value.whetherTittle ? (
|
|
30
|
+
} }), (t2, l2) => {
|
|
31
|
+
const u2 = n("el-form-item");
|
|
32
|
+
return A.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), o(u2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: p(f(O)) }, { label: y(() => [A.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...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: l2[0] || (l2[0] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), 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 ? (s(), 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 ? (s(), 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"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(C)(t3, e2.pageContext, e2.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 ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
31
33
|
};
|
|
32
34
|
} });
|
|
33
35
|
export {
|
|
@@ -5,6 +5,7 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
|
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
+
S.value;
|
|
8
9
|
let $ = S.value.formatting;
|
|
9
10
|
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
10
11
|
let e3 = b(D, h);
|
|
@@ -21,9 +22,9 @@ const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
21
22
|
const e3 = V.value;
|
|
22
23
|
k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
23
24
|
});
|
|
24
|
-
}), (
|
|
25
|
-
const
|
|
26
|
-
return o(), u(
|
|
25
|
+
}), (t2, l2) => {
|
|
26
|
+
const n2 = i("el-link"), a2 = i("el-tooltip"), y2 = i("el-form-item");
|
|
27
|
+
return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(a2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(n2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(x)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
27
28
|
};
|
|
28
29
|
} });
|
|
29
30
|
export {
|
|
@@ -63,9 +63,9 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
63
63
|
B.value = e3 || [];
|
|
64
64
|
}, addRequiredClass: function() {
|
|
65
65
|
O.value = V();
|
|
66
|
-
} }), (
|
|
67
|
-
const
|
|
68
|
-
return s(), r(
|
|
66
|
+
} }), (t2, l2) => {
|
|
67
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
68
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: f(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: p(c(E)) }, { label: g(() => [A.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: oe, style: p({ ...c(U), ...c($) }) }, C(c(I)(A.value.title)), 5)) : b("", true)]), default: g(() => [d(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => P.value = e3) }, { default: g(() => [(s(true), v(m, null, h(B.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e2.pageContext, e2.configure, "click", { values: P.value }) }, { default: g(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
69
69
|
};
|
|
70
70
|
} });
|
|
71
71
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as r, createElementBlock as a, openBlock as u, Fragment as s, createBlock as c, createCommentVNode as p, normalizeStyle as d, normalizeClass as g, unref as m, withCtx as f, createElementVNode as v, toDisplayString as h } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { formatVariableValue as y, setVariableValue as b, getVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import w from "quill";
|
|
@@ -40,16 +40,16 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
|
|
|
40
40
|
X.value.push(t2), Y.value = true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function oe(e3) {
|
|
44
44
|
const t2 = new FormData();
|
|
45
45
|
t2.append("file", e3);
|
|
46
46
|
const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
|
|
47
47
|
return T.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1],
|
|
51
|
-
for (;
|
|
52
|
-
return new File([
|
|
49
|
+
function ie(e3, t2) {
|
|
50
|
+
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length, r2 = new Uint8Array(i2);
|
|
51
|
+
for (; i2--; ) r2[i2] = o2.charCodeAt(i2);
|
|
52
|
+
return new File([r2], t2, { type: n2 });
|
|
53
53
|
}
|
|
54
54
|
return n(() => {
|
|
55
55
|
var _a;
|
|
@@ -61,15 +61,16 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
|
|
|
61
61
|
if (l3.insert && l3.insert.image) {
|
|
62
62
|
const e5 = l3.insert.image;
|
|
63
63
|
if (!e5.startsWith("data:image")) return;
|
|
64
|
-
const t4 =
|
|
65
|
-
await
|
|
64
|
+
const t4 = ie(e5, "image.png");
|
|
65
|
+
await oe(t4).then((t5) => {
|
|
66
66
|
if (!J) return;
|
|
67
67
|
const l4 = J.root.getElementsByTagName("img");
|
|
68
68
|
if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const o2 = l4[n3];
|
|
70
|
+
o2.src === e5 && (o2.src = t5.url + "&jwt=" + L());
|
|
71
71
|
}
|
|
72
72
|
}).catch((e6) => {
|
|
73
|
+
console.error(e6, "上传图片失败");
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
76
|
}
|
|
@@ -81,17 +82,17 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
|
|
|
81
82
|
let l2 = e4.height - (t2.top - e4.top);
|
|
82
83
|
l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
|
|
83
84
|
}
|
|
84
|
-
}(),
|
|
85
|
+
}(), o(() => {
|
|
85
86
|
const e4 = C(M, N);
|
|
86
87
|
k(e4, B.pageContext, B.configure, { formItemRef: Z.value, componentRef: $.value, titleRef: ee.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
|
|
87
88
|
});
|
|
88
|
-
}),
|
|
89
|
+
}), i(() => {
|
|
89
90
|
G.value && G.value.removeEventListener("focusout", le), te && te.removeEventListener("click", ne);
|
|
90
91
|
}), _2({ addRequiredClass: function() {
|
|
91
92
|
H.value = j();
|
|
92
93
|
} }), (e3, t2) => {
|
|
93
|
-
const l2 =
|
|
94
|
-
return u(),
|
|
94
|
+
const l2 = r("el-form-item"), n2 = r("el-image-viewer");
|
|
95
|
+
return u(), a(s, null, [z.value.tittleShow ? (u(), c(l2, { key: 0, required: z.value.required, class: g(m(F) + (H.value ? " " + H.value : "")), "label-width": z.value.labelWidth, style: d(m(D)) }, { label: f(() => [z.value.tittleShow ? (u(), a("div", { key: 0, style: d({ ...m(U), ...m(W) }) }, h(m(E)(z.value.title)), 5)) : p("", true)]), default: f(() => [v("div", S, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : p("", true), Y.value ? (u(), c(n2, { key: 1, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
95
96
|
Y.value = false;
|
|
96
97
|
}), "url-list": X.value }, null, 8, ["url-list"])) : p("", true)], 64);
|
|
97
98
|
};
|
|
@@ -87,9 +87,9 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
|
|
|
87
87
|
N.value = e3 || [];
|
|
88
88
|
}, addRequiredClass: function() {
|
|
89
89
|
D.value = z();
|
|
90
|
-
} }), (
|
|
91
|
-
const
|
|
92
|
-
return s(), n(
|
|
90
|
+
} }), (t2, l2) => {
|
|
91
|
+
const o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-form-item");
|
|
92
|
+
return s(), n(u2, { ref_key: "formItemRef", ref: re, required: !!H.value.required, class: f(c($) + (D.value ? " " + D.value : "")), "label-width": H.value.labelWidth, style: p(c(U)) }, { label: v(() => [H.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: se, style: p({ ...c(B), ...c(G) }) }, [H.value.prefixType ? (s(), n(V, { key: 0, pageContext: e2.pageContext, property: H.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(q)(H.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(a2, { ref_key: "componentRef", ref: ne, style: { width: "100%" }, disabled: "disabled" === H.value.state, size: H.value.size, clearable: H.value.clearable, multiple: H.value.multiple, "collapse-tags": H.value.collapseTags, "collapse-tags-tooltip": H.value.collapseTagsTooltip, filterable: H.value.filterable, "allow-create": H.value.allowCreate, placeholder: H.value.placeholder, "remote-show-suffix": H.value.remoteShowSuffix, remote: H.value.remote, "remote-method": H.value.remoteMethod, loading: X.value, onChange: H.value.changeMethod, modelValue: L.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => L.value = e3) }, { default: v(() => [(s(true), m(d, null, h(N.value, (t3) => (s(), n(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(j)(t3.value, e2.pageContext, e2.configure, "click", { values: L.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
93
93
|
};
|
|
94
94
|
} });
|
|
95
95
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = b();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|