super-page-runtime 2.2.0 → 2.2.1
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +65 -69
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +171 -182
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
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 r, resolveComponent as o,
|
|
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";
|
|
@@ -19,16 +19,14 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
19
19
|
}
|
|
20
20
|
const W = a(null), $ = a(null), E = a(null);
|
|
21
21
|
function O(e3, a2) {
|
|
22
|
-
if (!e3)
|
|
22
|
+
if (!e3) return e3;
|
|
23
|
+
if (a2) try {
|
|
24
|
+
const l2 = j(e3);
|
|
25
|
+
let t2 = null;
|
|
26
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
27
|
+
} catch (a3) {
|
|
23
28
|
return e3;
|
|
24
|
-
|
|
25
|
-
try {
|
|
26
|
-
const l2 = j(e3);
|
|
27
|
-
let t2 = null;
|
|
28
|
-
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
29
|
-
} catch (a3) {
|
|
30
|
-
return e3;
|
|
31
|
-
}
|
|
29
|
+
}
|
|
32
30
|
return e3;
|
|
33
31
|
}
|
|
34
32
|
if (l(() => {
|
|
@@ -62,14 +60,13 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
62
60
|
let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
|
|
63
61
|
if (a2) {
|
|
64
62
|
Array.isArray(a2) || (a2 = [a2]), H.value || (H.value = []);
|
|
65
|
-
for (let e4 of a2)
|
|
66
|
-
e4.text && e4.value && H.value.push(e4);
|
|
63
|
+
for (let e4 of a2) e4.text && e4.value && H.value.push(e4);
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
}
|
|
70
67
|
return (e3, a2) => {
|
|
71
68
|
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
72
|
-
return
|
|
69
|
+
return n(), u(r2, { ref_key: "formItemRef", ref: W, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: i({ ...s(D), ...s(S) }) }, [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: $, "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: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.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: $, 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: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.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"]);
|
|
73
70
|
};
|
|
74
71
|
} });
|
|
75
72
|
export {
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import
|
|
5
|
-
import { $t as
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const k2 = e2, S = k2.pageContext.entity ? k2.pageContext.entity : {};
|
|
14
|
-
S.data || (S.data = {});
|
|
15
|
-
const j = S.data;
|
|
16
|
-
let R = y(k2.pageContext, k2.configure);
|
|
17
|
-
const _ = R.length > 0 ? R[R.length - 1] : k2.configure.uuid, T = k2.configure.runtime ? k2.configure.runtime : {}, q = t(T.props ? T.props : {}), w = T.style, z = T.class, I = T.headerStyle, F = T.titleExceedStyle, D = t(null), E = t(null), O = t(null);
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as a, computed as o, resolveComponent as i, createBlock as u, openBlock as n, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as f, createVNode as g, createElementBlock as m, createCommentVNode as d, Fragment as c, createTextVNode as v, toDisplayString as y } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { handleAfterInitEvent as C, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import b from "../common/title-suffix-element.vue.js";
|
|
5
|
+
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { setVariableValue as S, getVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
|
+
const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
|
|
9
|
+
j.data || (j.data = {});
|
|
10
|
+
const T = j.data, w = j.page;
|
|
11
|
+
let z = x(_2.pageContext, _2.configure);
|
|
12
|
+
const q = z.length > 0 ? z[z.length - 1] : _2.configure.uuid, I = _2.configure.runtime ? _2.configure.runtime : {}, F = t(I.props ? I.props : {}), M = I.style, D = I.class, E = I.headerStyle, O = I.titleExceedStyle, V = t(null), W = t(null), A = t(null);
|
|
18
13
|
l(() => {
|
|
19
|
-
|
|
20
|
-
const e3 =
|
|
21
|
-
|
|
14
|
+
a(() => {
|
|
15
|
+
const e3 = T ? T[q] : null;
|
|
16
|
+
C(e3, _2.pageContext, _2.configure, { formItemRef: V.value, componentRef: W.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
22
17
|
});
|
|
23
18
|
});
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
const B = o({ get: () => R(j, z), set(e3) {
|
|
20
|
+
S(j, z, e3);
|
|
21
|
+
} }), G = F.value.autoSetFields ? F.value.autoSetFields : [];
|
|
22
|
+
function H(e3, t2) {
|
|
23
|
+
e3 === q && h(t2, _2.pageContext, _2.configure, "change");
|
|
27
24
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
25
|
+
function J() {
|
|
26
|
+
h(null, _2.pageContext, _2.configure, "click");
|
|
30
27
|
}
|
|
31
28
|
return (e3, t2) => {
|
|
32
|
-
const l2 =
|
|
33
|
-
return
|
|
29
|
+
const l2 = i("OrganizationInput"), a2 = i("el-form-item");
|
|
30
|
+
return n(), u(a2, { ref_key: "formItemRef", ref: V, required: F.value.required, class: p(s(D)), "label-width": F.value.labelWidth, style: r(s(M)) }, { label: f(() => [F.value.tittleShow ? (n(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...s(E), ...s(O) }) }, [F.value.prefixType ? (n(), u(b, { key: 0, pageContext: e3.pageContext, property: F.value }, null, 8, ["pageContext", "property"])) : (n(), m(c, { key: 1 }, [v(y(s(k)(F.value.title)), 1)], 64))], 4)) : d("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" == F.value.state, multiple: F.value.multiple, treeType: F.value.treeType, value: B.value, models: s(T), pageModels: s(w), fields: s(G), size: F.value.size, separator: F.value.separator, onSetValue: H, onShowTree: J }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
34
31
|
};
|
|
35
32
|
} });
|
|
36
33
|
export {
|
|
37
|
-
|
|
34
|
+
_ as default
|
|
38
35
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as r, resolveComponent as i, createBlock as u, openBlock as l, unref as a, withCtx as p, createElementVNode as s, normalizeStyle as c, toDisplayString as d } from "vue";
|
|
2
2
|
import { formatVariableValue as f } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as v, handleFormEvent as g } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
5
5
|
const m2 = e2, y = m2.configure.runtime ? m2.configure.runtime : {}, x = y.headerStyle, C = t(y.props ? y.props : {});
|
|
6
6
|
let _ = C.value.value;
|
|
7
7
|
const b = n(() => {
|
|
8
|
-
if (!_)
|
|
9
|
-
return "";
|
|
8
|
+
if (!_) return "";
|
|
10
9
|
const e3 = f(m2.pageContext, _);
|
|
11
10
|
return null == e3 || null == e3 ? "" : e3;
|
|
12
11
|
}), k = t(null);
|
|
@@ -17,7 +16,7 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
|
|
|
17
16
|
});
|
|
18
17
|
}), (e3, t2) => {
|
|
19
18
|
const n2 = i("el-divider");
|
|
20
|
-
return
|
|
19
|
+
return l(), u(n2, { ref_key: "componentRef", ref: k, direction: C.value.direction, "border-style": C.value.borderType, "content-position": C.value.titlePosition, onClick: t2[0] || (t2[0] = (t3) => a(g)(t3, e3.pageContext, e3.configure, "click")) }, { default: p(() => [s("div", { style: c(a(x)) }, d(b.value), 5)]), _: 1 }, 8, ["direction", "border-style", "content-position"]);
|
|
21
20
|
};
|
|
22
21
|
} });
|
|
23
22
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as i, resolveComponent as a,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as i, resolveComponent as a, createBlock as s, openBlock as n, normalizeStyle as p, normalizeClass as u, unref as r, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, toDisplayString as v } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import x from "agilebuilder-ui/src/utils/request";
|
|
@@ -33,8 +33,7 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
33
33
|
J();
|
|
34
34
|
}, J = () => {
|
|
35
35
|
const e3 = [], t2 = [];
|
|
36
|
-
for (let l2 = 0; l2 < W.value.length; l2++)
|
|
37
|
-
e3.push(W.value[l2].showName), t2.push(W.value[l2].serverPath);
|
|
36
|
+
for (let l2 = 0; l2 < W.value.length; l2++) e3.push(W.value[l2].showName), t2.push(W.value[l2].serverPath);
|
|
38
37
|
y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
|
|
39
38
|
}, K = t(null), L = t(null);
|
|
40
39
|
return l(() => {
|
|
@@ -48,7 +47,7 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
48
47
|
k.$off(D.value + "-pickFileDone");
|
|
49
48
|
}), (e3, t2) => {
|
|
50
49
|
const l2 = a("el-form-item");
|
|
51
|
-
return j.value.tittleShow ? (
|
|
50
|
+
return j.value.tittleShow ? (n(), s(l2, { key: 0, ref_key: "formItemRef", ref: K, required: j.value.required, class: u(r(T)), "label-width": j.value.labelWidth, style: p(r(R)) }, { label: m(() => [j.value.tittleShow ? (n(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...r(z), ...r(I) }) }, v(r(_)(j.value.title)), 5)) : d("", true)]), default: m(() => [f(r(b), { 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": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (n(), s(r(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": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"]));
|
|
52
51
|
};
|
|
53
52
|
} });
|
|
54
53
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as a, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, computed as t, ref as l, onMounted as o, nextTick as a, resolveComponent as n, createBlock as u, openBlock as r, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as m, createVNode as f, createElementBlock as c, createCommentVNode as d, Fragment as g, createTextVNode as v, toDisplayString as y } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import {
|
|
3
|
+
import { setVariableValue as C, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as b, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import R from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const j = e({ __name: "input-number-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
8
|
const j2 = e2, w = j2.pageContext.entity ? j2.pageContext.entity : {};
|
|
9
9
|
let q = x(j2.pageContext, j2.configure);
|
|
10
|
-
const z = t({ get: () =>
|
|
11
|
-
|
|
10
|
+
const z = t({ get: () => h(w, q), set(e3) {
|
|
11
|
+
C(w, q, e3);
|
|
12
12
|
} }), S = j2.configure.runtime ? j2.configure.runtime : {}, V = S.style, B = S.class, I = S.headerStyle, D = S.titleExceedStyle, E = l(S.props ? S.props : {}), F = l(null), T = l(null), U = l(null);
|
|
13
13
|
return o(() => {
|
|
14
14
|
a(() => {
|
|
@@ -17,7 +17,7 @@ const j = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
17
17
|
});
|
|
18
18
|
}), (e3, t2) => {
|
|
19
19
|
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
20
|
-
return
|
|
20
|
+
return r(), u(o2, { ref_key: "formItemRef", ref: F, required: E.value.required, class: p(s(B)), "label-width": E.value.labelWidth, style: i(s(V)) }, { label: m(() => [E.value.tittleShow ? (r(), c("div", { key: 0, ref_key: "titleRef", ref: U, style: i({ ...s(I), ...s(D) }) }, [E.value.prefixType ? (r(), u(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), c(g, { key: 1 }, [v(y(s(_)(E.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(l2, { ref_key: "componentRef", ref: T, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, controls: E.value.showButton, size: E.value.size, placeholder: E.value.placeholder, modelValue: z.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => z.value = e4), precision: E.value.precision, step: E.value.step, min: E.value.min, max: E.value.max, onChange: t2[1] || (t2[1] = (t3) => s(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => s(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => s(k)(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
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, watch as a, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as m, createSlots as g, 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
|
-
import {
|
|
4
|
+
import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleAfterInitEvent as b, handleFormEvent as w } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { formatScanRuleSets as _, analysisScanValue as j, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import S from "../common/title-suffix-element.vue.js";
|
|
@@ -12,8 +12,8 @@ const D = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
12
12
|
var _a, _b, _c;
|
|
13
13
|
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {};
|
|
14
14
|
let N = k(L.pageContext, L.configure);
|
|
15
|
-
const O = l(P()), $ = L.pageContext.code, A = l(N && N.length > 0 ? $ + "__" + N.join("__") : null), E = n({ get: () =>
|
|
16
|
-
e3 = e3.trim(),
|
|
15
|
+
const O = l(P()), $ = L.pageContext.code, A = l(N && N.length > 0 ? $ + "__" + N.join("__") : null), E = n({ get: () => h(B, N), set(e3) {
|
|
16
|
+
e3 = e3.trim(), V(B, N, e3);
|
|
17
17
|
} }), F = l(null), J = l(null), M = l(null);
|
|
18
18
|
o(() => {
|
|
19
19
|
q.$on(A.value + "-scanDone", (e3) => {
|
|
@@ -38,23 +38,22 @@ const D = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
}));
|
|
39
39
|
const Y = U.style, Z = U.class, ee = U.headerStyle, le = U.titleExceedStyle;
|
|
40
40
|
function ne(e3) {
|
|
41
|
-
return
|
|
41
|
+
return V(B, N, e3);
|
|
42
42
|
}
|
|
43
43
|
const oe = l(false);
|
|
44
44
|
function ue(e3) {
|
|
45
45
|
oe.value = false, ne(e3);
|
|
46
46
|
}
|
|
47
47
|
return D2({ getValue: function() {
|
|
48
|
-
return
|
|
48
|
+
return h(B, N);
|
|
49
49
|
}, setValue: ne }), (e3, l2) => {
|
|
50
50
|
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
|
|
51
|
-
return
|
|
51
|
+
return c(), r(u2, { ref_key: "formItemRef", ref: F, required: !!W.value.required, class: s(v(Z)), "label-width": W.value.labelWidth, style: p(v(Y)) }, { label: f(() => [W.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: M, style: p({ ...v(ee), ...v(le) }) }, [W.value.prefixType ? (c(), r(S, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(W.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: J, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, size: W.value.size, clearable: W.value.clearable, placeholder: W.value.placeholder, maxlength: W.value.maxLength, "show-word-limit": W.value.showInputNum, modelValue: E.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => E.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, g({ _: 2 }, ["outer" != W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prefix", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.preText)), 1)]), key: "0" } : void 0, "outer" == W.value.iconPosition && (W.value.preIconType && W.value.preIconValue || W.value.preText) ? { name: "prepend", fn: f(() => [W.value.preIconType && W.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.preText)), 1)]), key: "1" } : void 0, "outer" != W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "suffix", fn: f(() => [W.value.sufIconType && W.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.sufText)), 1)]), key: "2" } : void 0, Q.value || "outer" == W.value.iconPosition && (W.value.sufIconType && W.value.sufIconValue || W.value.sufText) ? { name: "append", fn: f(() => [Q.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
|
|
52
52
|
if (K) {
|
|
53
53
|
const e5 = { type: "scan", componentId: A.value, systemCode: L.pageContext.systemCode };
|
|
54
54
|
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
55
|
-
} else
|
|
56
|
-
|
|
57
|
-
}()) })) : x("", true), W.value.sufIconType && W.value.sufIconValue ? (r(), c(s(T), { key: 1, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => s(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : x("", true), g(" " + d(s(z)(W.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), oe.value ? (r(), c(o2, { key: 0, onClose: ue })) : x("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
55
|
+
} else oe.value = true;
|
|
56
|
+
}()) })) : m("", true), W.value.sufIconType && W.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(w)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(z)(W.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), oe.value ? (c(), r(o2, { key: 0, onClose: ue })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
58
57
|
};
|
|
59
58
|
} });
|
|
60
59
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n,
|
|
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";
|
|
@@ -9,15 +9,13 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
9
9
|
let P = d(R.pageContext, R.configure);
|
|
10
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
11
|
let e3 = m(S, P);
|
|
12
|
-
if (G)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} else
|
|
20
|
-
e3 = h(e3, G, A.value);
|
|
12
|
+
if (G) if (A.value.hasOptions) {
|
|
13
|
+
let t2 = null;
|
|
14
|
+
B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
15
|
+
} else if ("custom" === G) {
|
|
16
|
+
const t2 = w(R.pageContext, A.value.formatFunc);
|
|
17
|
+
t2 && (e3 = t2.apply(t2, [{ pageContext: R.pageContext, configureObj: R.configure, value: e3 }]));
|
|
18
|
+
} else e3 = h(e3, G, A.value);
|
|
21
19
|
return e3 = null == e3 ? "" : e3, e3;
|
|
22
20
|
}), J = t(null), K = t(null), L = t(null);
|
|
23
21
|
return u(() => {
|
|
@@ -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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
|
|
@@ -23,7 +23,7 @@ const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
23
23
|
});
|
|
24
24
|
}), (e3, t2) => {
|
|
25
25
|
const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
|
|
26
|
-
return
|
|
26
|
+
return o(), u(a2, { 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(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.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
27
|
};
|
|
28
28
|
} });
|
|
29
29
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, createBlock as l, openBlock as a, normalizeStyle as u, normalizeClass as f, unref as s, withCtx as i, createElementVNode as m } from "vue";
|
|
2
2
|
import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
|
|
3
3
|
const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
|
|
@@ -8,7 +8,7 @@ const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure
|
|
|
8
8
|
});
|
|
9
9
|
}), (e3, t2) => {
|
|
10
10
|
const n2 = r("el-form-item");
|
|
11
|
-
return
|
|
11
|
+
return a(), l(n2, { ref_key: "formItemRef", ref: v, class: f(s(d)), style: u(s(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
12
12
|
};
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, watch as l, onMounted as n, nextTick as a, resolveComponent as u,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, watch as l, onMounted as n, nextTick as a, resolveComponent as u, createBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as f, withCtx as c, createVNode as g, createElementBlock as d, Fragment as v, renderList as m, createTextVNode as h, toDisplayString as y, createCommentVNode as b } from "vue";
|
|
2
|
+
import { setVariableValue as C, getVariableValue as x, getOptionDatasFromPage as k, autoSetAfterSelect as _, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as S } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as I } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as T } from "../../../../utils/i18n-util.js";
|
|
@@ -7,17 +7,15 @@ const V = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
7
7
|
const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
|
|
8
8
|
let z = S(q.pageContext, q.configure);
|
|
9
9
|
const O = t({ get() {
|
|
10
|
-
let e3 =
|
|
10
|
+
let e3 = x(w, z);
|
|
11
11
|
return null != e3 && (e3 += ""), e3;
|
|
12
12
|
}, set(e3) {
|
|
13
|
-
|
|
13
|
+
C(w, z, e3);
|
|
14
14
|
} }), D = q.configure.runtime ? q.configure.runtime : {}, M = D.style, P = D.class, W = D.headerStyle, E = D.titleExceedStyle, F = o(D.props ? D.props : {}), U = o(F.value.options ? F.value.options : []), $ = k(q.pageContext, q.configure);
|
|
15
15
|
$.length > 0 && (U.value = $);
|
|
16
16
|
const A = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = A.optionValueSetType;
|
|
17
17
|
let G = [];
|
|
18
|
-
if (("dynamicData" == B || "dataTable" == B || "service" == B) && A.autoSets)
|
|
19
|
-
for (let e3 of A.autoSets)
|
|
20
|
-
e3.source && G.push(e3);
|
|
18
|
+
if (("dynamicData" == B || "dataTable" == B || "service" == B) && A.autoSets) for (let e3 of A.autoSets) e3.source && G.push(e3);
|
|
21
19
|
q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
|
|
22
20
|
if (G.length > 0) {
|
|
23
21
|
let t2 = null;
|
|
@@ -28,21 +26,18 @@ const V = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
28
26
|
const H = F.value.monitorFields, J = [];
|
|
29
27
|
if (H) {
|
|
30
28
|
const e3 = [];
|
|
31
|
-
for (let t2 of H)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
X();
|
|
40
|
-
});
|
|
29
|
+
for (let t2 of H) if (t2.startsWith("${")) {
|
|
30
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
31
|
+
const o2 = t2.split(".");
|
|
32
|
+
"page" !== o2[0] && "task" !== o2[0] && "data" !== o2[0] || (J.push(o2), e3.includes(o2[0]) || e3.push(o2[0]));
|
|
33
|
+
}
|
|
34
|
+
for (let t2 of e3) l(w[t2], () => {
|
|
35
|
+
X();
|
|
36
|
+
});
|
|
41
37
|
}
|
|
42
38
|
function K() {
|
|
43
39
|
let e3 = "";
|
|
44
|
-
for (let t2 of J)
|
|
45
|
-
e3 += "_" + C(w, t2);
|
|
40
|
+
for (let t2 of J) e3 += "_" + x(w, t2);
|
|
46
41
|
return e3;
|
|
47
42
|
}
|
|
48
43
|
let L = K(), N = false;
|
|
@@ -64,7 +59,7 @@ const V = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
64
59
|
U.value = e3 || [];
|
|
65
60
|
} }), (e3, t2) => {
|
|
66
61
|
const o2 = u("el-radio"), l2 = u("el-radio-group"), n2 = u("el-form-item");
|
|
67
|
-
return
|
|
62
|
+
return r(), i(n2, { ref_key: "formItemRef", ref: Y, required: F.value.required, class: p(f(P)), "label-width": F.value.labelWidth, style: s(f(M)) }, { label: c(() => [F.value.tittleShow ? (r(), d("div", { key: 0, ref_key: "titleRef", ref: ee, style: s({ ...f(W), ...f(E) }) }, y(f(T)(F.value.title)), 5)) : b("", true)]), default: c(() => [g(l2, { ref_key: "componentRef", ref: Z, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(r(true), d(v, null, m(U.value, (t3) => (r(), i(o2, { key: t3.value, label: t3.value, onClick: (o3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: O.value }) }, { default: c(() => [h(y(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
68
63
|
};
|
|
69
64
|
} });
|
|
70
65
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, resolveComponent as r,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, 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,8 +40,7 @@ const R = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
|
|
|
40
40
|
}
|
|
41
41
|
function ee(e3, t2) {
|
|
42
42
|
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], i2 = atob(l2[1]), o2 = i2.length, r2 = new Uint8Array(o2);
|
|
43
|
-
for (; o2--; )
|
|
44
|
-
r2[o2] = i2.charCodeAt(o2);
|
|
43
|
+
for (; o2--; ) r2[o2] = i2.charCodeAt(o2);
|
|
45
44
|
return new File([r2], t2, { type: n2 });
|
|
46
45
|
}
|
|
47
46
|
return n(() => {
|
|
@@ -49,27 +48,23 @@ const R = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
|
|
|
49
48
|
I = new w(z.value, K.value);
|
|
50
49
|
const e3 = I.clipboard.convertHTML(W);
|
|
51
50
|
I.setContents(e3.ops), (_a = z.value) == null ? void 0 : _a.addEventListener("focusout", Z), I.on("text-change", async function(e4, t2, l2) {
|
|
52
|
-
if (e4.ops && e4.ops.length > 0)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
i2.src === e5 && (i2.src = t5.url + "&jwt=" + E());
|
|
68
|
-
}
|
|
69
|
-
}).catch((e6) => {
|
|
70
|
-
});
|
|
71
|
-
}
|
|
51
|
+
if (e4.ops && e4.ops.length > 0) for (let t3 = 0; t3 < e4.ops.length; t3++) {
|
|
52
|
+
const l3 = e4.ops[t3];
|
|
53
|
+
if (l3.insert && l3.insert.image) {
|
|
54
|
+
const e5 = l3.insert.image;
|
|
55
|
+
if (!e5.startsWith("data:image")) return;
|
|
56
|
+
const t4 = ee(e5, "image.png");
|
|
57
|
+
await $(t4).then((t5) => {
|
|
58
|
+
if (!I) return;
|
|
59
|
+
const l4 = I.root.getElementsByTagName("img");
|
|
60
|
+
if (l4 && l4.length > 0) for (let n2 = 0; n2 < l4.length; n2++) {
|
|
61
|
+
const i2 = l4[n2];
|
|
62
|
+
i2.src === e5 && (i2.src = t5.url + "&jwt=" + E());
|
|
63
|
+
}
|
|
64
|
+
}).catch((e6) => {
|
|
65
|
+
});
|
|
72
66
|
}
|
|
67
|
+
}
|
|
73
68
|
b(_, B, I.root.innerHTML);
|
|
74
69
|
});
|
|
75
70
|
I.container.addEventListener("click", function(e4) {
|
|
@@ -92,9 +87,9 @@ const R = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
|
|
|
92
87
|
z.value && z.value.removeEventListener("focusout", Z);
|
|
93
88
|
}), (e3, t2) => {
|
|
94
89
|
const l2 = r("el-form-item"), n2 = r("el-image-viewer");
|
|
95
|
-
return
|
|
90
|
+
return u(), a(s, null, [F.value.tittleShow ? (u(), c(l2, { key: 0, required: F.value.required, class: g(m(N)), "label-width": F.value.labelWidth, style: d(m(M)) }, { label: f(() => [F.value.tittleShow ? (u(), a("div", { key: 0, style: d({ ...m(A), ...m(D) }) }, h(m(j)(F.value.title)), 5)) : p("", true)]), default: f(() => [v("div", R, [v("div", { ref_key: "quillEditorRef", ref: z, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : p("", true), Q.value ? (u(), c(n2, { key: 1, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
96
91
|
Q.value = false;
|
|
97
|
-
}), "url-list": P.value }, null, 8, ["url-list"])) :
|
|
92
|
+
}), "url-list": P.value }, null, 8, ["url-list"])) : p("", true)], 64);
|
|
98
93
|
};
|
|
99
94
|
} });
|
|
100
95
|
export {
|