super-page-runtime 2.3.34 → 2.3.35-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/anchor-util.js +43 -51
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +98 -96
- package/dist/es/components/runtime/utils/events/event-util.js +131 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +154 -138
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- 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 +94 -99
- 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.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.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +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 +68 -53
- 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 +37 -38
- 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 +31 -22
- 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 +14 -16
- 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 +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 +16 -15
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,78 +1,93 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as
|
|
2
|
-
import { getVariableValue as
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew as
|
|
6
|
-
import
|
|
7
|
-
import { $t as
|
|
8
|
-
import { addRequiredClassUtil as
|
|
9
|
-
import { getRelativeBaseUrl as
|
|
10
|
-
const
|
|
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, withCtx as m, createElementBlock as v, toDisplayString as c } 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 b, fileUploadDeleted as x } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import k from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as I } from "agilebuilder-ui";
|
|
6
|
+
import P from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as S } from "../../../../utils/i18n-util.js";
|
|
8
|
+
import { addRequiredClassUtil as N } from "../../../../utils/common-util.js";
|
|
9
|
+
import { getRelativeBaseUrl as T } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const j = e2, z = l(null), R = j.configure.runtime ? j.configure.runtime : {}, F = l(R.props ? R.props : {}), D = R.style, O = R.class, q = R.headerStyle, W = R.titleExceedStyle, $ = j.pageContext.entity ? j.pageContext.entity : {}, A = j.configure.props.base ? j.configure.props.base : {}, E = X(A.prop), U = X(A.propName);
|
|
13
|
+
let B = l({});
|
|
14
|
+
B.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", B.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", E && E.length > 1 && t(() => j.pageContext.entity[E[0]][E[1]], (e3) => {
|
|
15
|
+
V(g($, E));
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
function
|
|
17
|
+
const G = j.pageContext.code, H = l(E ? G + "__" + E.join("__") : null), J = g($, E), K = l(null), L = l(false), M = l([]), Q = l({});
|
|
18
|
+
function V(e3) {
|
|
19
19
|
if (e3) {
|
|
20
20
|
const l2 = e3.split(",");
|
|
21
21
|
if (l2.length > 0) {
|
|
22
|
-
const e4 =
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const e4 = T(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
|
|
23
|
+
k.post(e4, l2).then((e5) => {
|
|
24
|
+
M.value = [];
|
|
25
25
|
const t2 = [], o2 = {};
|
|
26
26
|
e5.forEach((e6) => {
|
|
27
27
|
o2[e6.uuid] = e6;
|
|
28
28
|
});
|
|
29
29
|
for (let e6 = 0; e6 < l2.length; e6++) {
|
|
30
|
-
const
|
|
31
|
-
t2.push(o2[
|
|
30
|
+
const i2 = l2[e6];
|
|
31
|
+
t2.push(o2[i2].fileName), M.value.push({ showName: o2[i2].fileName, serverPath: i2, fileSize: o2[i2].fileSize });
|
|
32
32
|
}
|
|
33
|
-
"input" ===
|
|
33
|
+
"input" === F.value.displayType && (Q.value.showName = t2.join(","), Q.value.serverPath = l2.join(","));
|
|
34
34
|
}).finally(() => {
|
|
35
|
-
|
|
35
|
+
L.value = true;
|
|
36
36
|
});
|
|
37
|
-
} else
|
|
38
|
-
} else
|
|
37
|
+
} else L.value = true;
|
|
38
|
+
} else M.value = [], Q.value = {}, L.value = true;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function X(e3) {
|
|
41
41
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
43
|
+
function Y(e3) {
|
|
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
46
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
47
|
+
function Z() {
|
|
48
|
+
if (j.pageContext.fileuploadInfo && j.configure.uuid) {
|
|
49
|
+
const e3 = j.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === j.configure.uuid);
|
|
50
|
+
-1 !== e3 && j.pageContext.fileuploadInfo.splice(e3, 1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function ee(e3) {
|
|
54
|
+
Z();
|
|
55
|
+
}
|
|
56
|
+
V(J);
|
|
57
|
+
const le = (e3, l2, t2) => {
|
|
58
|
+
var o2;
|
|
59
|
+
Z(), oe(), o2 = { response: e3, uploadFile: l2, uploadFiles: t2 }, w(j.pageContext, j.configure, o2);
|
|
60
|
+
}, te = (e3) => {
|
|
61
|
+
const l2 = (t2 = { file: e3 }, b(j.pageContext, j.configure, t2));
|
|
62
|
+
var t2;
|
|
63
|
+
(l2 || void 0 === l2) && (oe(), function(e4) {
|
|
64
|
+
x(j.pageContext, j.configure, e4);
|
|
65
|
+
}({ file: e3 }));
|
|
66
|
+
}, oe = () => {
|
|
52
67
|
const e3 = [], l2 = [];
|
|
53
|
-
if (
|
|
54
|
-
const e4 =
|
|
55
|
-
for (let l3 = 0; l3 < e4; l3++)
|
|
68
|
+
if (F.value.limit && M.value.length > F.value.limit) {
|
|
69
|
+
const e4 = M.value.length - F.value.limit;
|
|
70
|
+
for (let l3 = 0; l3 < e4; l3++) M.value.shift();
|
|
56
71
|
}
|
|
57
|
-
for (let t2 = 0; t2 <
|
|
58
|
-
|
|
59
|
-
},
|
|
72
|
+
for (let t2 = 0; t2 < M.value.length; t2++) e3.push(M.value[t2].showName), l2.push(M.value[t2].serverPath);
|
|
73
|
+
h(j.pageContext.entity, E, l2.join(",")), h(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (z.value = "");
|
|
74
|
+
}, ie = l(null), ae = l(null);
|
|
60
75
|
return o(() => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
const e3 =
|
|
65
|
-
|
|
76
|
+
P.$on(H.value + "-pickFileDone", (e3) => {
|
|
77
|
+
K.value.pickFileDone(e3);
|
|
78
|
+
}), i(() => {
|
|
79
|
+
const e3 = g($, E), l2 = { showName: g($, U), serverPath: e3 };
|
|
80
|
+
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 });
|
|
66
81
|
});
|
|
67
|
-
}),
|
|
68
|
-
|
|
69
|
-
}),
|
|
70
|
-
|
|
71
|
-
} }), (
|
|
72
|
-
const
|
|
73
|
-
return
|
|
82
|
+
}), a(() => {
|
|
83
|
+
P.$off(H.value + "-pickFileDone");
|
|
84
|
+
}), _2({ addRequiredClass: function() {
|
|
85
|
+
z.value = N();
|
|
86
|
+
} }), (e3, l2) => {
|
|
87
|
+
const t2 = n("el-form-item");
|
|
88
|
+
return F.value.tittleShow ? (s(), u(t2, { 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: p(f(D)) }, { label: m(() => [F.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: ae, style: p({ ...f(q), ...f(W) }) }, c(f(S)(F.value.title)), 5)) : r("", true)]), default: m(() => [L.value ? (s(), 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": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.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 ? (s(), 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": e3.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": le, "on-remove": te, "before-upload": Y, "on-error": ee, pageContext: e3.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);
|
|
74
89
|
};
|
|
75
90
|
} });
|
|
76
91
|
export {
|
|
77
|
-
|
|
92
|
+
_ as default
|
|
78
93
|
};
|
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
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = n("el-input-number"), o2 = n("el-form-item");
|
|
23
|
+
return i(), u(o2, { ref_key: "formItemRef", ref: W, required: U.value.required, class: s(p(E) + (z.value ? " " + z.value : "")), "label-width": U.value.labelWidth, style: r(p(D)) }, { label: m(() => [U.value.tittleShow ? (i(), c("div", { key: 0, ref_key: "titleRef", ref: G, style: r({ ...p(F), ...p(T) }) }, [U.value.prefixType ? (i(), u(j, { key: 0, pageContext: e3.pageContext, property: U.value }, null, 8, ["pageContext", "property"])) : (i(), c(v, { key: 1 }, [g(y(p(k)(U.value.title)), 1)], 64))], 4)) : d("", true)]), default: m(() => [f(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === U.value.state, readonly: "readonly" === U.value.state, controls: U.value.showButton, size: U.value.size, placeholder: U.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), precision: U.value.precision, step: U.value.step, min: U.value.min, max: U.value.max, onChange: t2[1] || (t2[1] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[2] || (t2[2] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[3] || (t2[3] = (t3) => p(R)(t3, e3.pageContext, e3.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
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 P } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import M from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as N } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
12
|
+
const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
|
|
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,66 +17,65 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
17
17
|
const e3 = w($, L.pageContext);
|
|
18
18
|
e3 && (F.value = V(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const A = t(
|
|
20
|
+
const A = t(D()), E = L.pageContext.code, 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
|
-
|
|
30
|
-
let ue = {};
|
|
27
|
+
le = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
28
|
+
const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
|
|
29
|
+
let ae = {};
|
|
31
30
|
((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
|
|
32
|
-
|
|
31
|
+
ae = e3;
|
|
33
32
|
}), u(() => W.value, (e3) => {
|
|
34
33
|
e3 = e3.trim();
|
|
35
|
-
const t2 = O(e3,
|
|
36
|
-
t2 &&
|
|
34
|
+
const t2 = O(e3, ae);
|
|
35
|
+
t2 && P(L.pageContext, t2.scanSet, t2.params);
|
|
37
36
|
}));
|
|
38
|
-
const
|
|
39
|
-
function
|
|
37
|
+
const ue = X.style, ie = X.class, re = X.headerStyle, se = X.titleExceedStyle;
|
|
38
|
+
function pe(e3) {
|
|
40
39
|
return h(B, $, e3);
|
|
41
40
|
}
|
|
42
41
|
n(() => {
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
M.$on(H.value + "-scanDone", (e3) => {
|
|
43
|
+
pe(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
45
44
|
}), o(() => {
|
|
46
45
|
var _a2;
|
|
47
46
|
const e3 = W.value;
|
|
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 }),
|
|
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 }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
|
|
49
48
|
});
|
|
50
49
|
}), a(() => {
|
|
51
|
-
|
|
50
|
+
M.$off(H.value + "-scanDone");
|
|
52
51
|
});
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
52
|
+
const ce = t(false);
|
|
53
|
+
function ve() {
|
|
54
|
+
if (ne || ee) {
|
|
56
55
|
const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
|
|
57
|
-
ee && (e3.type = "dingTalkScan"), window.parent.parent ?
|
|
58
|
-
} else if (A.value) if ("https:" === window.location.protocol)
|
|
56
|
+
ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
57
|
+
} else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
|
|
59
58
|
else {
|
|
60
59
|
const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
|
|
61
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
61
|
}
|
|
63
|
-
else
|
|
62
|
+
else ce.value = true;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
64
|
+
function fe(e3) {
|
|
65
|
+
ce.value = false, pe(e3);
|
|
67
66
|
}
|
|
68
|
-
return
|
|
67
|
+
return J2({ getValue: function() {
|
|
69
68
|
return b(B, $);
|
|
70
|
-
}, setValue:
|
|
71
|
-
U.value =
|
|
72
|
-
} }), (
|
|
73
|
-
const
|
|
74
|
-
return s(), r(
|
|
69
|
+
}, setValue: pe, scanClick: ve, addRequiredClass: function() {
|
|
70
|
+
U.value = z();
|
|
71
|
+
} }), (e3, t2) => {
|
|
72
|
+
const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
73
|
+
return s(), r(o2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(ie) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(re), ...v(se) }) }, [Y.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(N)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => W.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
|
|
75
74
|
let t3 = b(B, $);
|
|
76
|
-
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(
|
|
77
|
-
}(
|
|
75
|
+
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
|
|
76
|
+
}(e4)), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(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: t2[1] || (t2[1] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(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: t2[2] || (t2[2] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(W.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(N)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (s(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
78
77
|
};
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
J as default
|
|
82
81
|
};
|
|
@@ -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, 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,9 +8,7 @@ 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
|
|
12
|
-
N.value;
|
|
13
|
-
const G = l(() => {
|
|
11
|
+
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
|
|
14
12
|
let e3 = d(S, P);
|
|
15
13
|
if (B) if (N.value.hasOptions) {
|
|
16
14
|
let t2 = null;
|
|
@@ -28,9 +26,9 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
28
26
|
});
|
|
29
27
|
}), j2({ updateOptions: function(e3) {
|
|
30
28
|
W.value = e3 || [];
|
|
31
|
-
} }), (
|
|
32
|
-
const
|
|
33
|
-
return N.value.whetherTittle ? (s(),
|
|
29
|
+
} }), (e3, t2) => {
|
|
30
|
+
const l2 = u("el-form-item");
|
|
31
|
+
return N.value.whetherTittle ? (s(), i("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(), o(l2, { 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(), i("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: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("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(), o(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(), i("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(), o(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(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
|
|
34
32
|
};
|
|
35
33
|
} });
|
|
36
34
|
export {
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted 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 f, createVNode as c, 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
|
-
import { getVariableValue as
|
|
4
|
-
import { handleAfterInitEvent as
|
|
3
|
+
import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as x, handleEvent as b } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import { SuperIcon as _ } from "agilebuilder-ui";
|
|
7
|
+
import { analysisValue as h } from "agilebuilder-ui/src/utils/util.js";
|
|
8
|
+
const j = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
var _a;
|
|
10
|
+
const j2 = e2, R = y(j2.pageContext, j2.configure), T = j2.configure.runtime ? j2.configure.runtime : {}, w = T.style, V = T.class, I = T.headerStyle, P = t(T.props ? T.props : {}), S = t();
|
|
11
|
+
((_a = j2.configure.props) == null ? void 0 : _a.linkPage) && (S.value = j2.configure.props.linkPage);
|
|
12
|
+
let $ = P.value.formatting;
|
|
13
|
+
const q = j2.pageContext.entity ? j2.pageContext.entity : {}, D = l(() => {
|
|
14
|
+
var _a2;
|
|
15
|
+
let e3 = k(q, R);
|
|
16
|
+
if (e3 = null == e3 || null == e3 ? "" : e3, $) e3 = $.replace(/\${value}/g, e3);
|
|
17
|
+
else if (S.value && S.value.displayTextJudge && ((_a2 = S.value.dynamicTags) == null ? void 0 : _a2.length) > 0) {
|
|
18
|
+
const e4 = h(S.value.dynamicTags.join("-#-#"), q.data, q.request, q.context, j2.pageContext);
|
|
19
|
+
if (e4) return e4;
|
|
20
|
+
}
|
|
21
|
+
return e3;
|
|
13
22
|
});
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
let e3 =
|
|
17
|
-
return e3 = null == e3 || null == e3 ? "" : e3,
|
|
23
|
+
let J = P.value.tooltip, W = null;
|
|
24
|
+
J && (W = l(() => {
|
|
25
|
+
let e3 = k(q, R);
|
|
26
|
+
return e3 = null == e3 || null == e3 ? "" : e3, J.replace(/\${value}/g, e3);
|
|
18
27
|
}));
|
|
19
28
|
const z = t(null), A = t(null), B = t(null);
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
const e3 =
|
|
23
|
-
|
|
29
|
+
return i(() => {
|
|
30
|
+
n(() => {
|
|
31
|
+
const e3 = D.value;
|
|
32
|
+
x(e3, j2.pageContext, j2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
24
33
|
});
|
|
25
|
-
}), (
|
|
26
|
-
const
|
|
27
|
-
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: z, class: s(p(V)), "label-width": P.value.labelWidth, style: r(p(w)) }, { label: f(() => [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: f(() => [c(i2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === P.value.state, type: P.value.type, underline: P.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(b)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [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"]);
|
|
28
37
|
};
|
|
29
38
|
} });
|
|
30
39
|
export {
|
|
31
|
-
|
|
40
|
+
j as default
|
|
32
41
|
};
|
|
@@ -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
|
+
} }), (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: 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(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: g(() => [(s(true), d(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.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
|
-
|
|
162
|
+
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,
|
|
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,7 +118,6 @@ 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);
|
|
122
121
|
}), n(() => {
|
|
123
122
|
const e4 = se.value;
|
|
124
123
|
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 });
|
|
@@ -145,10 +144,10 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", di
|
|
|
145
144
|
N.value = I();
|
|
146
145
|
}, getSelectItemsTitle: Ae, getOptions: function() {
|
|
147
146
|
return pe.value;
|
|
148
|
-
} }), (
|
|
149
|
-
const
|
|
150
|
-
return s(), u(
|
|
151
|
-
}, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.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: 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: e3.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(i2, { 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(a2, { 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: l2[0] || (l2[0] = d(y(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => se.value = e4) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(t2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(o2, { 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(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e3.pageContext, e3.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(t2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["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 = b();
|
|
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)) }, { 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(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"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|