super-page-runtime 2.3.36-sit1 → 2.3.36
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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +37 -37
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- 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/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +10 -10
- 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 +5 -5
- 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 +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- 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 +35 -35
- 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 +11 -10
- 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 +7 -5
- 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 +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +5 -4
- 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 +16 -14
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +19 -18
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as i, onUnmounted as a, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as d, unref as f, withCtx as v, createElementBlock as m, toDisplayString as c } from "vue";
|
|
2
2
|
import { getVariableValue as g, setVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as
|
|
3
|
+
import { handleAfterInitEvent as y, fileUploadBeforeUpload as C, fileUploadUploaded as w, fileUploadBeforeDelete as x, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import k from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { FsUploadNew as I } from "agilebuilder-ui";
|
|
6
6
|
import P from "../../../../utils/eventBus.js";
|
|
@@ -42,13 +42,14 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
42
42
|
}
|
|
43
43
|
function Y(e3) {
|
|
44
44
|
j.pageContext.fileuploadInfo || (j.pageContext.fileuploadInfo = []);
|
|
45
|
-
return -1 === j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid) && j.pageContext.fileuploadInfo.push({ uuid: j.configure.uuid, label: S(F.value.title) }), C(e3);
|
|
45
|
+
return -1 === j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid) && j.pageContext.fileuploadInfo.push({ uuid: j.configure.uuid, label: S(F.value.title) }), j.pageContext.fileuploadInfo, C(e3);
|
|
46
46
|
}
|
|
47
47
|
function Z() {
|
|
48
|
-
if (j.pageContext.fileuploadInfo && j.configure.uuid) {
|
|
48
|
+
if (j.pageContext.fileuploadInfo, j.configure.uuid, j.pageContext.fileuploadInfo && j.configure.uuid) {
|
|
49
49
|
const e3 = j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid);
|
|
50
50
|
-1 !== e3 && j.pageContext.fileuploadInfo.splice(e3, 1);
|
|
51
51
|
}
|
|
52
|
+
j.pageContext.fileuploadInfo;
|
|
52
53
|
}
|
|
53
54
|
function ee(e3) {
|
|
54
55
|
Z();
|
|
@@ -58,10 +59,10 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
58
59
|
var o2;
|
|
59
60
|
Z(), oe(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(j.pageContext, j.configure, o2);
|
|
60
61
|
}, te = (e3) => {
|
|
61
|
-
const l2 = (t2 = { file: e3 },
|
|
62
|
+
const l2 = (t2 = { file: e3 }, x(j.pageContext, j.configure, t2));
|
|
62
63
|
var t2;
|
|
63
64
|
(l2 || void 0 === l2) && (oe(), function(e4) {
|
|
64
|
-
|
|
65
|
+
b(j.pageContext, j.configure, e4);
|
|
65
66
|
}({ file: e3 }));
|
|
66
67
|
}, oe = () => {
|
|
67
68
|
const e3 = [], l2 = [];
|
|
@@ -74,7 +75,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
74
75
|
}, ie = l(null), ae = l(null);
|
|
75
76
|
return o(() => {
|
|
76
77
|
P.$on(H.value + "-pickFileDone", (e3) => {
|
|
77
|
-
K.value.pickFileDone(e3);
|
|
78
|
+
H.value, K.value.pickFileDone(e3);
|
|
78
79
|
}), i(() => {
|
|
79
80
|
const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
|
|
80
81
|
y(l2, j.pageContext, j.configure, { formItemRef: ie.value, componentRef: K.value, titleRef: ae.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
|
|
@@ -83,9 +84,9 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
83
84
|
P.$off(H.value + "-pickFileDone");
|
|
84
85
|
}), _2({ addRequiredClass: function() {
|
|
85
86
|
z.value = N();
|
|
86
|
-
} }), (
|
|
87
|
-
const
|
|
88
|
-
return F.value.tittleShow ? (
|
|
87
|
+
} }), (l2, t2) => {
|
|
88
|
+
const o2 = n("el-form-item");
|
|
89
|
+
return F.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: ie, required: F.value.required, class: d(f(O) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: s(f(D)) }, { label: v(() => [F.value.tittleShow ? (p(), m("div", { key: 0, ref_key: "titleRef", ref: ae, style: s({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: v(() => [L.value ? (p(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, disabled: "disabled" === F.value.state, displayType: F.value.displayType, accept: F.value.accept, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "disabled-no-preview": F.value.disabledNoPreview, "disabled-no-download": F.value.disabledNoDownload, openCameraOrChoosePhoto: F.value.openCameraOrChoosePhoto, "sort-type": F.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e2.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
|
|
89
90
|
};
|
|
90
91
|
} });
|
|
91
92
|
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 P from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import D from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as J } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as M } 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(q()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
|
|
21
21
|
h(B, $, e3), null != e3 && "" !== e3 && (U.value = "");
|
|
22
22
|
} }), G = 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("Html5Plus") > 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(() => W.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, se = X.headerStyle, pe = X.titleExceedStyle;
|
|
39
|
+
function ce(e3) {
|
|
39
40
|
return h(B, $, e3);
|
|
40
41
|
}
|
|
41
42
|
n(() => {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
D.$on(H.value + "-scanDone", (e3) => {
|
|
44
|
+
H.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 = W.value;
|
|
47
|
-
S(e3, L.pageContext, L.configure, { formItemRef: G.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: G.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
|
+
D.$off(H.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: H.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: H.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
|
-
U.value =
|
|
71
|
-
} }), (
|
|
72
|
-
const
|
|
73
|
-
return s(), r(
|
|
70
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
71
|
+
U.value = M();
|
|
72
|
+
} }), (t2, l2) => {
|
|
73
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
74
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(re) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(se), ...v(pe) }) }, [Y.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(J)(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: W.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => W.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 ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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 ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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 ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(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 ? (s(), 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 ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), 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 n, nextTick as a, resolveComponent as u, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, 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 m } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
@@ -8,7 +8,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let P = x(R.pageContext, R.configure);
|
|
10
10
|
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
|
|
11
|
-
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType
|
|
11
|
+
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
|
|
12
|
+
N.value;
|
|
13
|
+
const G = l(() => {
|
|
12
14
|
let e3 = d(S, P);
|
|
13
15
|
if (B) if (N.value.hasOptions) {
|
|
14
16
|
let t2 = null;
|
|
@@ -26,9 +28,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
26
28
|
});
|
|
27
29
|
}), j2({ updateOptions: function(e3) {
|
|
28
30
|
W.value = e3 || [];
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return N.value.whetherTittle ? (s(),
|
|
31
|
+
} }), (t2, l2) => {
|
|
32
|
+
const n2 = u("el-form-item");
|
|
33
|
+
return N.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), i(n2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: l2[0] || (l2[0] = (t3) => f(C)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), i(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m(" " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), i(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("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: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), o("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
|
|
32
34
|
};
|
|
33
35
|
} });
|
|
34
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as i, nextTick as n, resolveComponent as a, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createVNode as f, createCommentVNode as g, createTextVNode as d, toDisplayString as m, createElementBlock as v } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleEvent as b } from "../../../../utils/events/event-util.js";
|
|
@@ -7,7 +7,9 @@ import { SuperIcon as _ } from "agilebuilder-ui";
|
|
|
7
7
|
import { analysisValue as h } from "agilebuilder-ui/src/utils/util";
|
|
8
8
|
const R = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
9
|
var _a;
|
|
10
|
-
const R2 = e2, T = y(R2.pageContext, R2.configure), j = R2.configure.runtime ? R2.configure.runtime : {}, w = j.style, V = j.class, I = j.headerStyle, P = t(j.props ? j.props : {})
|
|
10
|
+
const R2 = e2, T = y(R2.pageContext, R2.configure), j = R2.configure.runtime ? R2.configure.runtime : {}, w = j.style, V = j.class, I = j.headerStyle, P = t(j.props ? j.props : {});
|
|
11
|
+
P.value;
|
|
12
|
+
const S = t();
|
|
11
13
|
((_a = R2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = R2.configure.props.linkPage);
|
|
12
14
|
let $ = P.value.formatting;
|
|
13
15
|
const q = R2.pageContext.entity ? R2.pageContext.entity : {}, D = l(() => {
|
|
@@ -31,9 +33,9 @@ const R = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
31
33
|
const e3 = D.value;
|
|
32
34
|
x(e3, R2.pageContext, R2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: R2.pageContext.entity.data, pageData: R2.pageContext.entity.page });
|
|
33
35
|
});
|
|
34
|
-
}), (
|
|
35
|
-
const
|
|
36
|
-
return o(), u(
|
|
36
|
+
}), (t2, l2) => {
|
|
37
|
+
const i2 = a("el-link"), n2 = a("el-tooltip"), y2 = a("el-form-item");
|
|
38
|
+
return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(V)), "label-width": P.value.labelWidth, style: r(p(w)) }, { label: c(() => [P.value.tittleShow ? (o(), v("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(P.value.title)), 5)) : g("", true)]), default: c(() => [f(n2, { disabled: !p(W), content: p(W) }, { default: c(() => [f(i2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(b)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [S.value ? (o(), u(p(_), { key: 0, iconType: S.value.iconType, iconValue: S.value.icon }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + m(D.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
37
39
|
};
|
|
38
40
|
} });
|
|
39
41
|
export {
|
|
@@ -72,9 +72,9 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
72
72
|
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
73
73
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
74
74
|
}
|
|
75
|
-
} }), (
|
|
76
|
-
const
|
|
77
|
-
return s(), r(
|
|
75
|
+
} }), (t2, l2) => {
|
|
76
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), u2 = i("el-form-item");
|
|
77
|
+
return s(), r(u2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: p(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: f(c(W)) }, { label: g(() => [A.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: oe, style: f({ ...c(U), ...c($) }) }, b(c(q)(A.value.title)), 5)) : C("", true)]), default: g(() => [v(n2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: g(() => [(s(true), d(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: M.value }) }, { default: g(() => [y(b(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
78
78
|
};
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
@@ -159,7 +159,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
159
159
|
const l2 = le.root.getElementsByTagName("img");
|
|
160
160
|
for (const e6 of l2) e6.src === t4 && (e6.width = 300, e6.src = n2.url, e6.setAttribute("data-uuid", n2.uuid));
|
|
161
161
|
} catch (e5) {
|
|
162
|
-
Ee();
|
|
162
|
+
console.error("上传图片失败", e5), Ee();
|
|
163
163
|
} finally {
|
|
164
164
|
ae.value = false;
|
|
165
165
|
}
|
|
@@ -189,7 +189,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
189
189
|
return le ? le.root.innerHTML : "";
|
|
190
190
|
} }), (e3, t2) => {
|
|
191
191
|
const n2 = a("View"), l2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), y2 = a("el-form-item"), x2 = a("el-image-viewer"), k2 = a("el-dialog");
|
|
192
|
-
return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { type: "button", class: "toolbar-btn", onClick: Te, title: "预览" }, [c(l2, null, { default: g(() => [c(n2)]), _: 1 })]), h("button", { type: "button", class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(l2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
192
|
+
return u(), r(s, null, [c(y2, { required: X.value.required, class: m(v(Y) + (P.value ? " " + P.value : "")), "label-width": X.value.labelWidth, style: f(v(O)) }, { label: g(() => [X.value.tittleShow ? (u(), r("div", { key: 0, style: f({ ...v(J), ...v(Q) }) }, b(v(E)(X.value.title)), 5)) : p("", true)]), default: g(() => [h("div", { class: m(["richtext-wrapper", { "is-fullscreen": oe.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), h("div", N, [h("button", { type: "button", class: "toolbar-btn", onClick: Te, title: "预览" }, [c(l2, null, { default: g(() => [c(n2)]), _: 1 })]), h("button", { type: "button", class: "toolbar-btn", onClick: qe, title: oe.value ? "退出全屏" : "全屏编辑" }, [oe.value ? (u(), d(l2, { key: 1 }, { default: g(() => [c(i2)]), _: 1 })) : (u(), d(l2, { key: 0 }, { default: g(() => [c(o2)]), _: 1 }))], 8, R)]), h("div", _, [h("span", j, "字数:" + b(ie.value), 1)]), ae.value ? (u(), r("div", V, [...t2[2] || (t2[2] = [h("div", { class: "loading-spinner" }, null, -1), h("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 1 }, 8, ["required", "class", "label-width", "style"]), ge.value ? (u(), d(x2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
193
193
|
ge.value = false;
|
|
194
194
|
}), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(k2, { modelValue: re.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => re.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: g(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ue.value }, null, 8, $)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
195
195
|
};
|
|
@@ -118,6 +118,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
+
console.error("复制失败", e4);
|
|
121
122
|
}), n(() => {
|
|
122
123
|
const e4 = se.value;
|
|
123
124
|
V(e4, J.pageContext, J.configure, { formItemRef: we.value, componentRef: Se.value, titleRef: ke.value, value: e4, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page });
|
|
@@ -144,10 +145,10 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", di
|
|
|
144
145
|
N.value = I();
|
|
145
146
|
}, getSelectItemsTitle: Ae, getOptions: function() {
|
|
146
147
|
return pe.value;
|
|
147
|
-
} }), (
|
|
148
|
-
const
|
|
149
|
-
return s(), u(
|
|
150
|
-
}, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue":
|
|
148
|
+
} }), (l2, t2) => {
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), S2 = r("el-form-item");
|
|
150
|
+
return s(), u(S2, { ref_key: "formItemRef", ref: we, required: !!ae.value.required, class: c(f(le) + (N.value ? " " + N.value : "")), "label-width": ae.value.labelWidth, style: p(f(ee)) }, { label: v(() => [ae.value.tittleShow ? (s(), b("div", { key: 0, ref_key: "titleRef", ref: ke, style: p({ ...f(te), ...f(oe) }) }, [ae.value.prefixType ? (s(), u(M, { key: 0, pageContext: e2.pageContext, property: ae.value }, null, 8, ["pageContext", "property"])) : (s(), b(x, { key: 1 }, [w(_(f(D)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: v(() => [m("div", B, [g(i2, { ref_key: "componentRef", ref: Se, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ae.value.state, size: ae.value.size, clearable: ae.value.clearable, multiple: ae.value.multiple, "collapse-tags": ae.value.collapseTags, "collapse-tags-tooltip": ae.value.collapseTagsTooltip, filterable: ae.value.filterable, "allow-create": ae.value.allowCreate, placeholder: ae.value.placeholder, "remote-show-suffix": ae.value.remoteShowSuffix, remote: ae.value.remote, "remote-method": ae.value.remoteMethod, loading: fe.value, onKeydown: t2[0] || (t2[0] = d(y(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => se.value = e3) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(o2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(H)("superGrid.selectAll"), value: U, disabled: !(pe.value && pe.value.length > 0) }, null, 8, ["label", "disabled"])) : h("", true), (s(true), b(x, null, C(pe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e2.pageContext, e2.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ie) ? (s(), b("div", F, [m("span", null, _(l3.label), 1), m("span", G, _(l3._description_), 1)])) : (s(), b(x, { key: 1 }, [m("span", K, _(l3.label), 1), m("span", L, _(l3._description_), 1)], 64))], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(o2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
151
152
|
};
|
|
152
153
|
} });
|
|
153
154
|
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 {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), _2({ addRequiredClass: function() {
|
|
20
20
|
I.value = j();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -3,13 +3,13 @@ import C from "./error-render.vue.js";
|
|
|
3
3
|
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as h, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as y, packageFormRules as
|
|
6
|
+
import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
-
import { isWorkflowPage as T, getPropClassName as $, isNumber as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
12
|
-
import { checkPermission as
|
|
8
|
+
import { isWorkflowPage as T, getPropClassName as $, isNumber as H } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as N, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as S } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as R } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b;
|
|
@@ -17,8 +17,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == F2.configure.style && (F2.configure.style = {});
|
|
18
18
|
const k = y(F2.configure, F2.pageContext);
|
|
19
19
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = k);
|
|
20
|
-
const D =
|
|
21
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J),
|
|
20
|
+
const D = B(k || "true", F2.pageContext.systemCode), E = S(F2.pageContext, F2.configure), J = D && E;
|
|
21
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), w(F2.pageContext, F2.configure, J);
|
|
22
22
|
let L = o(null), W = o(true), q = o("");
|
|
23
23
|
if (F2.configure && F2.configure.props) {
|
|
24
24
|
let e3 = [];
|
|
@@ -26,7 +26,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (N(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -70,7 +70,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
70
70
|
const t2 = V.style[e3 + "_class"];
|
|
71
71
|
t2 && (Q.value += " " + t2);
|
|
72
72
|
}
|
|
73
|
-
const X =
|
|
73
|
+
const X = P();
|
|
74
74
|
function Y(e3) {
|
|
75
75
|
if (I.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
76
76
|
L.value = "show";
|
|
@@ -90,7 +90,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
90
90
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
91
91
|
if (o2 && o2.prop) {
|
|
92
92
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
93
|
+
e4 = _(e4), j(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
94
|
}
|
|
95
95
|
!function() {
|
|
96
96
|
if (!I.value) return;
|
|
@@ -118,14 +118,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
118
118
|
const o2 = e3.parentNode;
|
|
119
119
|
if (!e3 || !o2) return;
|
|
120
120
|
const t2 = e3.getBoundingClientRect();
|
|
121
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
121
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
122
|
+
window.innerHeight, t2.y;
|
|
123
|
+
let i2 = n2 + "";
|
|
122
124
|
if ("tabs" === F2.configure.name && F2.pageContext.isDialog && !R()) {
|
|
123
125
|
const o3 = e3.closest(".runtime-page-container");
|
|
124
126
|
if (o3) {
|
|
125
127
|
const e4 = o3.getBoundingClientRect(), s2 = t2.y - e4.y;
|
|
126
128
|
n2 = e4.height - s2 - 30, i2 = n2 + "px";
|
|
127
129
|
}
|
|
128
|
-
} else
|
|
130
|
+
} else H(n2) && (i2 = n2 + "px");
|
|
129
131
|
K.value.height = i2, K.value["overflow-y"] = "auto", K.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
130
132
|
}
|
|
131
133
|
i(() => {
|
|
@@ -144,7 +146,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
144
146
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
145
147
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
146
148
|
};
|
|
147
|
-
return (
|
|
149
|
+
return (o2, t2) => l(J) && l(O)(e2.configure) ? r((p(), a(c(z.value), { key: 0, ref: Y, style: f(K.value), class: g(Q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
148
150
|
} });
|
|
149
151
|
export {
|
|
150
152
|
F as default
|