super-page-runtime 2.3.37 → 2.3.38-sit2
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/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +37 -37
- package/dist/es/components/runtime/utils/events/validator-util.js +161 -164
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- 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 +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/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 +95 -100
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +9 -11
- 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 +0 -2
- 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.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +61 -61
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- 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/sub-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 +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +10 -11
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +90 -0
- 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 +57 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -6
- 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 +4 -5
- 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 +8 -10
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +6 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +38 -30
- 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 +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +18 -19
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +18 -18
- package/package.json +2 -2
|
@@ -14,9 +14,9 @@ const m = e({ __name: "divider-runtime", props: { pageContext: {}, configure: {}
|
|
|
14
14
|
const e3 = b.value;
|
|
15
15
|
v(e3, m2.pageContext, m2.configure, { componentRef: k.value, value: e3, entity: m2.pageContext.entity.data, pageData: m2.pageContext.entity.page });
|
|
16
16
|
});
|
|
17
|
-
}), (
|
|
18
|
-
const
|
|
19
|
-
return l(), u(
|
|
17
|
+
}), (e3, t2) => {
|
|
18
|
+
const n2 = i("el-divider");
|
|
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"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
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 s, normalizeStyle as p, normalizeClass as d, unref as f, createSlots as m, withCtx as v, createElementVNode as c, toDisplayString as g } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
-
import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadUploaded as
|
|
3
|
+
import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadUploaded as b, fileUploadBeforeDelete as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import I from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { FsUploadNew as P } from "agilebuilder-ui";
|
|
6
6
|
import S from "../../../../utils/eventBus.js";
|
|
@@ -42,14 +42,13 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
42
42
|
}
|
|
43
43
|
function Z(e3) {
|
|
44
44
|
z.pageContext.fileuploadInfo || (z.pageContext.fileuploadInfo = []);
|
|
45
|
-
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: N(D.value.title) }),
|
|
45
|
+
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: N(D.value.title) }), w(e3);
|
|
46
46
|
}
|
|
47
47
|
function ee() {
|
|
48
|
-
if (z.pageContext.fileuploadInfo
|
|
48
|
+
if (z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
49
49
|
const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
|
|
50
50
|
-1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
|
|
51
51
|
}
|
|
52
|
-
z.pageContext.fileuploadInfo;
|
|
53
52
|
}
|
|
54
53
|
function le(e3) {
|
|
55
54
|
ee();
|
|
@@ -57,9 +56,9 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
57
56
|
X(K);
|
|
58
57
|
const te = (e3, l2, t2) => {
|
|
59
58
|
var o2;
|
|
60
|
-
ee(), ie(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 },
|
|
59
|
+
ee(), ie(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, b(z.pageContext, z.configure, o2);
|
|
61
60
|
}, oe = (e3) => {
|
|
62
|
-
const l2 = (t2 = { file: e3 },
|
|
61
|
+
const l2 = (t2 = { file: e3 }, x(z.pageContext, z.configure, t2));
|
|
63
62
|
var t2;
|
|
64
63
|
(l2 || void 0 === l2) && (ie(), function(e4) {
|
|
65
64
|
k(z.pageContext, z.configure, e4);
|
|
@@ -75,7 +74,7 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
75
74
|
}, ae = l(null), ne = l(null);
|
|
76
75
|
return o(() => {
|
|
77
76
|
S.$on(J.value + "-pickFileDone", (e3) => {
|
|
78
|
-
|
|
77
|
+
L.value.pickFileDone(e3);
|
|
79
78
|
}), i(() => {
|
|
80
79
|
const e3 = h(A, U), l2 = { showName: h(A, B), serverPath: e3 };
|
|
81
80
|
C(l2, z.pageContext, z.configure, { formItemRef: ae.value, componentRef: L.value, titleRef: ne.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
@@ -84,9 +83,9 @@ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
84
83
|
S.$off(J.value + "-pickFileDone");
|
|
85
84
|
}), j2({ addRequiredClass: function() {
|
|
86
85
|
R.value = T();
|
|
87
|
-
} }), (
|
|
88
|
-
const
|
|
89
|
-
return D.value.tittleShow ? (
|
|
86
|
+
} }), (e3, l2) => {
|
|
87
|
+
const t2 = n("el-form-item");
|
|
88
|
+
return D.value.tittleShow ? (s(), u(t2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: d(f(q) + (R.value ? " " + R.value : "")), "label-width": D.value.labelWidth, style: p(f(O)) }, m({ default: v(() => [M.value ? (s(), u(f(P), { key: 0, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.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)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: v(() => [c("div", { ref_key: "titleRef", ref: ne, style: p({ ...f(W), ...f($) }), class: "amb-form-item-label" }, g(f(N)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : M.value ? (s(), u(f(P), { key: 1, ref_key: "fileUploadRef", ref: L, style: { width: "100%" }, disabled: "disabled" === D.value.state, displayType: D.value.displayType, accept: D.value.accept, multiple: D.value.multiple, placeholder: D.value.placeholder, limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "disabled-no-preview": D.value.disabledNoPreview, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": V.value, "file-list": Q.value, "system-code": e3.pageContext.systemCode, componentId: J.value, watermark: f(G), "on-success": te, "on-remove": oe, "before-upload": Z, "on-error": le, pageContext: e3.pageContext, "file-show-type": D.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);
|
|
90
89
|
};
|
|
91
90
|
} });
|
|
92
91
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as t, nextTick as o, onUnmounted as a, resolveComponent as i, createBlock as u, createCommentVNode as n, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as f, createSlots as d, withCtx as m, createElementVNode as c, toDisplayString as v } from "vue";
|
|
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 x, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import k from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsImageUpload as I } from "agilebuilder-ui";
|
|
6
|
+
import S from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as P } from "../../../../utils/i18n-util.js";
|
|
8
|
+
import { addRequiredClassUtil as j } from "../../../../utils/common-util.js";
|
|
9
|
+
import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
+
const N = e2, z = l(null), R = N.configure.runtime ? N.configure.runtime : {}, F = l(R.props ? R.props : {}), O = R.style, D = R.class, q = R.headerStyle, W = R.titleExceedStyle, $ = N.pageContext.entity ? N.pageContext.entity : {}, A = N.configure.props.base ? N.configure.props.base : {}, E = V(A.prop), U = V(A.propName);
|
|
13
|
+
let B = l({});
|
|
14
|
+
B.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", B.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "";
|
|
15
|
+
const G = N.pageContext.code, H = l(E ? G + "__" + E.join("__") : null), J = g($, E), K = l(null), L = l(false), M = l([]), Q = l({});
|
|
16
|
+
function V(e3) {
|
|
17
|
+
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
18
|
+
}
|
|
19
|
+
function X(e3) {
|
|
20
|
+
N.pageContext.fileuploadInfo || (N.pageContext.fileuploadInfo = []);
|
|
21
|
+
return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: P(F.value.title) }), C(e3);
|
|
22
|
+
}
|
|
23
|
+
function Y() {
|
|
24
|
+
if (N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
25
|
+
const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
|
|
26
|
+
-1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function Z(e3) {
|
|
30
|
+
Y();
|
|
31
|
+
}
|
|
32
|
+
!function(e3) {
|
|
33
|
+
if (e3) {
|
|
34
|
+
const l2 = e3.split(",");
|
|
35
|
+
if (l2.length > 0) {
|
|
36
|
+
const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
|
|
37
|
+
k.post(e4, l2).then((e5) => {
|
|
38
|
+
M.value = [];
|
|
39
|
+
const t2 = [], o2 = {};
|
|
40
|
+
e5.forEach((e6) => {
|
|
41
|
+
o2[e6.uuid] = e6;
|
|
42
|
+
});
|
|
43
|
+
for (let e6 = 0; e6 < l2.length; e6++) {
|
|
44
|
+
const a2 = l2[e6];
|
|
45
|
+
t2.push(o2[a2].fileName), M.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
|
|
46
|
+
}
|
|
47
|
+
"input" === F.value.displayType && (Q.value.showName = t2.join(","), Q.value.serverPath = l2.join(","));
|
|
48
|
+
}).finally(() => {
|
|
49
|
+
L.value = true;
|
|
50
|
+
});
|
|
51
|
+
} else L.value = true;
|
|
52
|
+
} else M.value = [], Q.value = {}, L.value = true;
|
|
53
|
+
}(J);
|
|
54
|
+
const ee = (e3, l2, t2) => {
|
|
55
|
+
var o2;
|
|
56
|
+
Y(), te(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(N.pageContext, N.configure, o2);
|
|
57
|
+
}, le = (e3) => {
|
|
58
|
+
const l2 = (t2 = { file: e3 }, x(N.pageContext, N.configure, t2));
|
|
59
|
+
var t2;
|
|
60
|
+
(l2 || void 0 === l2) && (te(), function(e4) {
|
|
61
|
+
b(N.pageContext, N.configure, e4);
|
|
62
|
+
}({ file: e3 }));
|
|
63
|
+
}, te = () => {
|
|
64
|
+
const e3 = [], l2 = [];
|
|
65
|
+
if (F.value.limit && M.value.length > F.value.limit) {
|
|
66
|
+
const e4 = M.value.length - F.value.limit;
|
|
67
|
+
for (let l3 = 0; l3 < e4; l3++) M.value.shift();
|
|
68
|
+
}
|
|
69
|
+
for (let t2 = 0; t2 < M.value.length; t2++) e3.push(M.value[t2].showName), l2.push(M.value[t2].serverPath);
|
|
70
|
+
h(N.pageContext.entity, E, l2.join(",")), h(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (z.value = "");
|
|
71
|
+
}, oe = l(null), ae = l(null);
|
|
72
|
+
return t(() => {
|
|
73
|
+
S.$on(H.value + "-pickFileDone", (e3) => {
|
|
74
|
+
K.value.pickFileDone(e3);
|
|
75
|
+
}), o(() => {
|
|
76
|
+
const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
|
|
77
|
+
y(l2, N.pageContext, N.configure, { formItemRef: oe.value, componentRef: K.value, titleRef: ae.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
78
|
+
});
|
|
79
|
+
}), a(() => {
|
|
80
|
+
S.$off(H.value + "-pickFileDone");
|
|
81
|
+
}), _2({ addRequiredClass: function() {
|
|
82
|
+
z.value = j();
|
|
83
|
+
} }), (e3, l2) => {
|
|
84
|
+
const t2 = i("el-form-item");
|
|
85
|
+
return F.value.tittleShow ? (r(), u(t2, { key: 0, ref_key: "formItemRef", ref: oe, required: F.value.required, class: p(f(D) + (z.value ? " " + z.value : "")), "label-width": F.value.labelWidth, style: s(f(O)) }, d({ default: m(() => [L.value ? (r(), u(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: F.value.accept && Object.keys(F.value.accept).length > 0 ? F.value.accept : "image/*", disabled: "disabled" === F.value.state, displayType: F.value.displayType, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "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": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": ee, "on-remove": le, "before-upload": X, "on-error": Z, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : n("", true)]), _: 2 }, [F.value.tittleShow ? { name: "label", fn: m(() => [c("div", { ref_key: "titleRef", ref: ae, style: s({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(P)(F.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), u(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: F.value.accept, disabled: "disabled" === F.value.state, displayType: F.value.displayType, multiple: F.value.multiple, placeholder: F.value.placeholder, limit: F.value.limit, "limit-file-size": F.value.limitFileSize, "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": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": ee, "on-remove": le, "before-upload": X, "on-error": Z, pageContext: e3.pageContext, "file-show-type": F.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : n("", true);
|
|
86
|
+
};
|
|
87
|
+
} });
|
|
88
|
+
export {
|
|
89
|
+
_ as default
|
|
90
|
+
};
|
package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js
CHANGED
|
@@ -18,9 +18,9 @@ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
18
18
|
});
|
|
19
19
|
}), w2({ addRequiredClass: function() {
|
|
20
20
|
S.value = q();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return i(), u(
|
|
21
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
23
|
+
return i(), u(o2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: W.value.placeholder, modelValue: I.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => I.value = e4), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: t2[1] || (t2[1] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(j)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["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
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
|
|
2
2
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
5
|
-
import { handleFormEvent as
|
|
6
|
-
import { formatScanRuleSets as O, analysisScanValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
12
|
-
const
|
|
3
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleFormEvent as j, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import z from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as J } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
|
|
12
|
+
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
const e3 =
|
|
18
|
-
e3 && (
|
|
14
|
+
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
|
|
15
|
+
let E = V(F.pageContext, F.configure);
|
|
16
|
+
if (F.pageContext.modelFieldsMap) {
|
|
17
|
+
const e3 = w(E, F.pageContext);
|
|
18
|
+
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
b(
|
|
22
|
-
} }),
|
|
20
|
+
const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
|
+
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
+
} }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
23
|
let te = false;
|
|
24
|
-
|
|
25
|
-
le && "dingtalk" === le && (te = true);
|
|
24
|
+
N() && (te = true);
|
|
26
25
|
let ne = "";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}), u(() => G.value, (e3) => {
|
|
26
|
+
ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
27
|
+
const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
|
|
28
|
+
let ue = {};
|
|
29
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
|
|
30
|
+
ue = e3;
|
|
31
|
+
}), u(() => K.value, (e3) => {
|
|
34
32
|
e3 = e3.trim();
|
|
35
|
-
const
|
|
36
|
-
|
|
33
|
+
const l2 = P(e3, ue);
|
|
34
|
+
l2 && q(F.pageContext, l2.scanSet, l2.params);
|
|
37
35
|
}));
|
|
38
|
-
const
|
|
39
|
-
function
|
|
40
|
-
return b(
|
|
36
|
+
const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
|
|
37
|
+
function ce(e3) {
|
|
38
|
+
return b($, E, e3);
|
|
41
39
|
}
|
|
42
40
|
n(() => {
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
z.$on(W.value + "-scanDone", (e3) => {
|
|
42
|
+
ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
45
43
|
}), o(() => {
|
|
46
44
|
var _a2;
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
45
|
+
const e3 = K.value;
|
|
46
|
+
S(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
49
47
|
});
|
|
50
48
|
}), a(() => {
|
|
51
|
-
|
|
49
|
+
z.$off(W.value + "-scanDone");
|
|
52
50
|
});
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
56
|
-
const e3 = { type: "scan", componentId:
|
|
57
|
-
te && (e3.type = "dingTalkScan"), window.parent.parent ?
|
|
58
|
-
} else if (
|
|
51
|
+
const ve = l(false);
|
|
52
|
+
function fe() {
|
|
53
|
+
if (oe || te) {
|
|
54
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
55
|
+
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
+
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
59
57
|
else {
|
|
60
|
-
const e3 = { type: "scan", componentId:
|
|
58
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
61
59
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
60
|
}
|
|
63
|
-
else
|
|
61
|
+
else ve.value = true;
|
|
64
62
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
63
|
+
function me(e3) {
|
|
64
|
+
ve.value = false, ce(e3);
|
|
67
65
|
}
|
|
68
|
-
return
|
|
69
|
-
return _(
|
|
70
|
-
}, setValue:
|
|
71
|
-
|
|
72
|
-
} }), (
|
|
73
|
-
const
|
|
74
|
-
return s(), r(
|
|
75
|
-
let
|
|
76
|
-
null !=
|
|
77
|
-
}(
|
|
66
|
+
return B2({ getValue: function() {
|
|
67
|
+
return _($, E);
|
|
68
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
69
|
+
G.value = L();
|
|
70
|
+
} }), (e3, l2) => {
|
|
71
|
+
const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
72
|
+
return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: m(() => [y(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
|
|
73
|
+
let l3 = _($, E);
|
|
74
|
+
null != l3 && (l3 = l3.trim()), b($, E, l3), j(e5, F.pageContext, F.configure, "blur");
|
|
75
|
+
}(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: m(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: me })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(D, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
78
76
|
};
|
|
79
77
|
} });
|
|
80
78
|
export {
|
|
81
|
-
|
|
79
|
+
B as default
|
|
82
80
|
};
|
|
@@ -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 i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as h, formatValueByType as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as w } from "agilebuilder-ui";
|
|
@@ -8,9 +8,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
|
|
9
9
|
let q = x(S.pageContext, S.configure);
|
|
10
10
|
const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
|
|
11
|
-
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType
|
|
12
|
-
W.value;
|
|
13
|
-
const H = l(() => {
|
|
11
|
+
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType, H = l(() => {
|
|
14
12
|
let e3 = h(P, q);
|
|
15
13
|
if (G) if (W.value.hasOptions) {
|
|
16
14
|
let t2 = null;
|
|
@@ -28,9 +26,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
28
26
|
});
|
|
29
27
|
}), R2({ updateOptions: function(e3) {
|
|
30
28
|
B.value = e3 || [];
|
|
31
|
-
} }), (
|
|
32
|
-
const
|
|
33
|
-
return W.value.whetherTittle ? (s(),
|
|
29
|
+
} }), (e3, t2) => {
|
|
30
|
+
const l2 = u("el-form-item");
|
|
31
|
+
return W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(W.value.title), 1)], 6)) : W.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(w), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d(" " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(w), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(W.value.suffixTxt), 7)) : m("", true)]));
|
|
34
32
|
};
|
|
35
33
|
} });
|
|
36
34
|
export {
|
|
@@ -7,9 +7,7 @@ import { SuperIcon as h } from "agilebuilder-ui";
|
|
|
7
7
|
import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
|
|
8
8
|
const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
9
|
var _a;
|
|
10
|
-
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {});
|
|
11
|
-
S.value;
|
|
12
|
-
const $ = t();
|
|
10
|
+
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {}), $ = t();
|
|
13
11
|
((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
|
|
14
12
|
let q = S.value.formatting;
|
|
15
13
|
const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
|
|
@@ -33,9 +31,9 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
33
31
|
const e3 = J.value;
|
|
34
32
|
x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
|
|
35
33
|
});
|
|
36
|
-
}), (
|
|
37
|
-
const
|
|
38
|
-
return o(), u(
|
|
34
|
+
}), (e3, t2) => {
|
|
35
|
+
const l2 = a("el-link"), i2 = a("el-tooltip"), n2 = a("el-form-item");
|
|
36
|
+
return o(), u(n2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(i2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
39
37
|
};
|
|
40
38
|
} });
|
|
41
39
|
export {
|
|
@@ -72,9 +72,9 @@ const z = 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
|
+
} }), (e3, t2) => {
|
|
76
|
+
const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
|
|
77
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: le, required: B.value.required, class: p(c(U) + (D.value ? " " + D.value : "")), "label-width": B.value.labelWidth, style: f(c(F)) }, g({ default: v(() => [d(o2, { ref_key: "componentRef", ref: oe, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: v(() => [(s(true), m(h, null, b(G.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ne, style: f({ ...c($), ...c(A) }), class: "amb-form-item-label" }, C(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
78
78
|
};
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
@@ -159,7 +159,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
159
159
|
const n2 = oe.root.getElementsByTagName("img");
|
|
160
160
|
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
|
|
161
161
|
} catch (e5) {
|
|
162
|
-
|
|
162
|
+
Ae();
|
|
163
163
|
} finally {
|
|
164
164
|
re.value = false;
|
|
165
165
|
}
|
|
@@ -189,7 +189,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
189
189
|
return oe ? oe.root.innerHTML : "";
|
|
190
190
|
} }), (e3, t2) => {
|
|
191
191
|
const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), k2 = a("el-image-viewer"), w2 = a("el-dialog");
|
|
192
|
-
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $,
|
|
192
|
+
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
193
193
|
he.value = false;
|
|
194
194
|
}), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
195
195
|
};
|
|
@@ -118,7 +118,6 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
-
console.error("复制失败", e4);
|
|
122
121
|
}), n(() => {
|
|
123
122
|
const e4 = pe.value;
|
|
124
123
|
M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -145,10 +144,10 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
145
144
|
Q.value = q();
|
|
146
145
|
}, getSelectItemsTitle: Te, getOptions: function() {
|
|
147
146
|
return ce.value;
|
|
148
|
-
} }), (
|
|
149
|
-
const
|
|
150
|
-
return s(), u(
|
|
151
|
-
}, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue":
|
|
147
|
+
} }), (e3, l2) => {
|
|
148
|
+
const t2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), i2 = r("el-popover"), n2 = r("el-form-item");
|
|
149
|
+
return s(), u(n2, { ref_key: "formItemRef", ref: Se, required: !!ie.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ie.value.labelWidth, style: p(f(le)) }, v({ default: g(() => [m(i2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", F, [m(a2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ie.value.state, size: ie.value.size, clearable: ie.value.clearable, multiple: ie.value.multiple, "collapse-tags": ie.value.collapseTags, "collapse-tags-tooltip": ie.value.collapseTagsTooltip, filterable: ie.value.filterable, "allow-create": ie.value.allowCreate, placeholder: ie.value.placeholder, "remote-show-suffix": ie.value.remoteShowSuffix, remote: ie.value.remote, "remote-method": ie.value.remoteMethod, loading: ve.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => pe.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(o2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e3.pageContext, e3.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ne) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, w(l3._description_), 1)], 64))], 64)) : b("", 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: g(() => [d("span", B, [m(t2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ie.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }), class: "amb-form-item-label" }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e3.pageContext, property: ie.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(I)(ie.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
152
151
|
};
|
|
153
152
|
} });
|
|
154
153
|
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({}), (e3, t2) => (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)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.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 = C();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (e3, t2) => {
|
|
30
|
+
const l2 = i("el-switch"), a2 = i("el-form-item");
|
|
31
|
+
return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(l2, { 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": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|