super-page-runtime 2.3.33 → 2.3.34
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +18 -18
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +708 -720
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +124 -127
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +62 -62
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -40
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -52
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +182 -182
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as a, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as f, unref as d, withCtx as m, resolveDynamicComponent as g, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import { updateFormItemEditState as
|
|
6
|
-
import { getListCode as
|
|
7
|
-
import { getComponentRef as
|
|
5
|
+
import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as _ } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
8
8
|
import { getAdditionalParamMap as w } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as E } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import F from "../../../../utils/eventBus.js";
|
|
11
11
|
import { functions as S } from "../../../../utils/api/page-expose-util.js";
|
|
12
|
-
const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" },
|
|
13
|
-
const
|
|
14
|
-
x(
|
|
15
|
-
} }),
|
|
12
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
13
|
+
const O = e2, z = O.pageContext.entity ? O.pageContext.entity : {}, G = C(O.pageContext, O.configure), H = t({ get: () => y(z, G), set(e3) {
|
|
14
|
+
x(z, G, e3);
|
|
15
|
+
} }), P = O.configure.runtime ? O.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
|
|
16
16
|
let t2 = {};
|
|
17
17
|
if (e3) for (let o2 in e3) {
|
|
18
18
|
const n2 = e3[o2];
|
|
19
|
-
t2[o2] = b(
|
|
19
|
+
t2[o2] = b(O.pageContext, n2);
|
|
20
20
|
}
|
|
21
21
|
return t2;
|
|
22
|
-
}(
|
|
23
|
-
function
|
|
24
|
-
j(
|
|
22
|
+
}(P.customParams ? P.customParams : {}), K = w(O.pageContext), L = o(O.configure.props && O.configure.props.base ? O.configure.props.base.name : null);
|
|
23
|
+
function M(e3, t2) {
|
|
24
|
+
j(z, e3, t2);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
S.isHasFieldAuthPermission(
|
|
26
|
+
function N(e3) {
|
|
27
|
+
S.isHasFieldAuthPermission(O.configure) ? V(O.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
|
|
28
28
|
}
|
|
29
29
|
function Q() {
|
|
30
|
-
const e3 =
|
|
30
|
+
const e3 = O.pageContext.tableUuids;
|
|
31
31
|
e3 && e3.forEach((e4) => {
|
|
32
|
-
const t2 =
|
|
32
|
+
const t2 = _(O.pageContext.code, O.pageContext.version, O.configure.uuid), o2 = D(O.pageContext, e4);
|
|
33
33
|
o2 && o2.restoreGridEdit(t2);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
const T =
|
|
36
|
+
O.configure.props.verification.custom && O.configure.props.verification.custom.enabled && (O.pageContext.customValidatorUuids || (O.pageContext.customValidatorUuids = []), O.pageContext.customValidatorUuids.push(O.configure.uuid));
|
|
37
|
+
const T = O.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
|
|
38
38
|
function te(e3) {
|
|
39
|
-
k(
|
|
39
|
+
k(H.value, O.pageContext, O.configure, e3);
|
|
40
40
|
}
|
|
41
41
|
return n(() => {
|
|
42
42
|
F.$on(X.value + "-scanDone", (e3) => {
|
|
43
43
|
const t2 = e3.result;
|
|
44
|
-
x(
|
|
44
|
+
x(z, G, t2);
|
|
45
45
|
}), F.$on(X.value + "-pickFileDone", (e3) => {
|
|
46
|
-
|
|
46
|
+
X.value, Y.value.pickFileDone(e3);
|
|
47
47
|
}), a(() => {
|
|
48
|
-
const e3 =
|
|
49
|
-
R(e3,
|
|
48
|
+
const e3 = H.value;
|
|
49
|
+
R(e3, O.pageContext, O.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
|
|
50
50
|
});
|
|
51
51
|
}), i(() => {
|
|
52
52
|
F.$off(X.value + "-scanDone"), F.$off(X.value + "-pickFileDone");
|
|
53
|
-
}),
|
|
53
|
+
}), $2({ getCustomRef: function() {
|
|
54
54
|
return Y.value;
|
|
55
55
|
}, invokeCustomFunction: function(e3, ...t2) {
|
|
56
56
|
if (Y.value && "function" == typeof Y.value[e3]) return Y.value[e3](...t2);
|
|
@@ -61,9 +61,9 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, q = { key: 1, st
|
|
|
61
61
|
requiredClass.value = addRequiredClassUtil();
|
|
62
62
|
} }), (t2, o2) => {
|
|
63
63
|
const n2 = u("el-form-item");
|
|
64
|
-
return
|
|
64
|
+
return W.value.tittleShow ? (p(), l(n2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: f(d(A)), "label-width": W.value.labelWidth, style: c(d(I)) }, { label: m(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...d(B) }) }, v(d(E)(W.value.title)), 5)) : s("", true)]), default: m(() => [L.value ? (p(), r("div", U, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: d(h)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => H.value = e3), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: o2[1] || (o2[1] = (t3) => d(k)(H.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", q, [(p(), l(g(L.value), { ref_key: "customRef", ref: Y, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: d(h)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": d(J), modelValue: H.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => H.value = e3), disabled: "disabled" === W.value.state, "additional-param-map": d(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: o2[3] || (o2[3] = (t3) => d(k)(H.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
65
65
|
};
|
|
66
66
|
} });
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
$ as default
|
|
69
69
|
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as s, createBlock as r, createCommentVNode as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as s, createBlock as r, createCommentVNode as u, openBlock as n, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as g, fileUploadBeforeUpload as w } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import C from "agilebuilder-ui/src/utils/request";
|
|
@@ -9,12 +9,12 @@ import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
|
9
9
|
import { getRelativeBaseUrl as S } from "agilebuilder-ui/src/utils/common-util";
|
|
10
10
|
const N = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
|
|
11
11
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
12
|
-
const T = e2, _ = l(null), j = T.configure.runtime ? T.configure.runtime : {}, z = l(j.props ? j.props : {}),
|
|
12
|
+
const T = e2, _ = l(null), j = T.configure.runtime ? T.configure.runtime : {}, z = l(j.props ? j.props : {}), R = j.style, I = j.class, D = j.headerStyle, O = j.titleExceedStyle, q = T.pageContext.entity ? T.pageContext.entity : {}, F = T.configure.props.base ? T.configure.props.base : {}, W = M(F.prop), $ = M(F.propName);
|
|
13
13
|
let A = l({});
|
|
14
14
|
A.value.isShowWatermark = void 0 === ((_b = (_a = T.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = T.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", A.value.content = ((_e = (_d = T.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = T.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => T.pageContext.entity[W[0]][W[1]], (e3) => {
|
|
15
|
-
L(h(
|
|
15
|
+
L(h(q, W));
|
|
16
16
|
});
|
|
17
|
-
const E = T.pageContext.code, U = l(W ? E + "__" + W.join("__") : null), B = h(
|
|
17
|
+
const E = T.pageContext.code, U = l(W ? E + "__" + W.join("__") : null), B = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
|
|
18
18
|
function L(e3) {
|
|
19
19
|
if (e3) {
|
|
20
20
|
const l2 = e3.split(",");
|
|
@@ -59,9 +59,9 @@ const N = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
59
59
|
}, Z = l(null), ee = l(null);
|
|
60
60
|
return o(() => {
|
|
61
61
|
k.$on(U.value + "-pickFileDone", (e3) => {
|
|
62
|
-
|
|
62
|
+
U.value, G.value.pickFileDone(e3);
|
|
63
63
|
}), a(() => {
|
|
64
|
-
const e3 = h(
|
|
64
|
+
const e3 = h(q, W), l2 = { showName: h(q, $), serverPath: e3 };
|
|
65
65
|
g(l2, T.pageContext, T.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
67
|
}), i(() => {
|
|
@@ -70,7 +70,7 @@ const N = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
70
70
|
_.value = P();
|
|
71
71
|
} }), (l2, t2) => {
|
|
72
72
|
const o2 = s("el-form-item");
|
|
73
|
-
return z.value.tittleShow ? (
|
|
73
|
+
return z.value.tittleShow ? (n(), r(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: z.value.required, class: d(m(I) + (_.value ? " " + _.value : "")), "label-width": z.value.labelWidth, style: p(m(R)) }, { label: v(() => [z.value.tittleShow ? (n(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(D), ...m(O) }) }, c(m(x)(z.value.title)), 5)) : u("", true)]), default: v(() => [H.value ? (n(), r(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === z.value.state, displayType: z.value.displayType, accept: z.value.accept, multiple: z.value.multiple, placeholder: z.value.placeholder, limit: z.value.limit, "limit-file-size": z.value.limitFileSize, "disabled-no-preview": z.value.disabledNoPreview, "disabled-no-download": z.value.disabledNoDownload, openCameraOrChoosePhoto: z.value.openCameraOrChoosePhoto, "sort-type": z.value.sortType, "file-info": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: U.value, watermark: m(A), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.pageContext, "file-show-type": z.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"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (n(), r(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === z.value.state, displayType: z.value.displayType, accept: z.value.accept, multiple: z.value.multiple, placeholder: z.value.placeholder, limit: z.value.limit, "limit-file-size": z.value.limitFileSize, "disabled-no-preview": z.value.disabledNoPreview, "disabled-no-download": z.value.disabledNoDownload, openCameraOrChoosePhoto: z.value.openCameraOrChoosePhoto, "sort-type": z.value.sortType, "file-info": K.value, "file-list": J.value, "system-code": e2.pageContext.systemCode, componentId: U.value, watermark: m(A), "on-success": V, "on-remove": X, "before-upload": Q, pageContext: e2.pageContext, "file-show-type": z.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"])) : u("", true);
|
|
74
74
|
};
|
|
75
75
|
} });
|
|
76
76
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { getModelFieldFromPageContext as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, 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, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
|
|
2
|
+
import { SuperIcon as T } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
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
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import P from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import D from "../../../../utils/eventBus.js";
|
|
10
10
|
import { $t as J } from "../../../../utils/i18n-util.js";
|
|
11
11
|
import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
|
|
12
12
|
const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
13
13
|
var _a, _b, _c;
|
|
14
|
-
const L = e2,
|
|
15
|
-
let
|
|
14
|
+
const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
|
|
15
|
+
let $ = k(L.pageContext, L.configure);
|
|
16
16
|
if (L.pageContext.modelFieldsMap) {
|
|
17
|
-
const e3 =
|
|
18
|
-
e3 && (
|
|
17
|
+
const e3 = w($, L.pageContext);
|
|
18
|
+
e3 && (F.value = V(e3.dataType) ? "number" : "text");
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
h(
|
|
22
|
-
} }),
|
|
20
|
+
const A = t(q()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
|
|
21
|
+
h(B, $, e3), null != e3 && "" !== e3 && (U.value = "");
|
|
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
|
-
const
|
|
25
|
-
|
|
26
|
-
let
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
const
|
|
24
|
+
const te = window.localStorage.getItem("auth_source");
|
|
25
|
+
te && "dingtalk" === te && (ee = true);
|
|
26
|
+
let le = "";
|
|
27
|
+
const ne = navigator.userAgent;
|
|
28
|
+
le = ne.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
29
|
+
const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
|
|
30
30
|
let ue = {};
|
|
31
31
|
((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
|
|
32
32
|
ue = e3;
|
|
33
|
-
}), u(() =>
|
|
33
|
+
}), u(() => W.value, (e3) => {
|
|
34
34
|
e3 = e3.trim();
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const t2 = O(e3, ue);
|
|
36
|
+
t2 && N(L.pageContext, t2.scanSet, t2.params);
|
|
37
37
|
}));
|
|
38
|
-
const ie = X.style, re = X.class, se = X.headerStyle,
|
|
39
|
-
function
|
|
40
|
-
return h(
|
|
38
|
+
const ie = X.style, re = X.class, se = X.headerStyle, pe = X.titleExceedStyle;
|
|
39
|
+
function ce(e3) {
|
|
40
|
+
return h(B, $, e3);
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}),
|
|
42
|
+
n(() => {
|
|
43
|
+
D.$on(H.value + "-scanDone", (e3) => {
|
|
44
|
+
H.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
45
|
+
}), o(() => {
|
|
46
46
|
var _a2;
|
|
47
|
-
const e3 =
|
|
48
|
-
S(e3, L.pageContext, L.configure, { formItemRef:
|
|
49
|
-
})
|
|
47
|
+
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 }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
49
|
+
});
|
|
50
50
|
}), a(() => {
|
|
51
|
-
|
|
51
|
+
D.$off(H.value + "-scanDone");
|
|
52
52
|
});
|
|
53
|
-
const ve =
|
|
53
|
+
const ve = t(false);
|
|
54
54
|
function fe() {
|
|
55
|
-
if (
|
|
56
|
-
const e3 = { type: "scan", componentId:
|
|
57
|
-
ee && (e3.type = "dingTalkScan"), window.parent.parent ? (
|
|
58
|
-
} else if (
|
|
55
|
+
if (oe || ee) {
|
|
56
|
+
const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
|
|
57
|
+
ee && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
58
|
+
} else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
59
59
|
else {
|
|
60
|
-
const e3 = { type: "scan", componentId:
|
|
60
|
+
const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
|
|
61
61
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
62
|
}
|
|
63
63
|
else ve.value = true;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
ve.value = false,
|
|
65
|
+
function ye(e3) {
|
|
66
|
+
ve.value = false, ce(e3);
|
|
67
67
|
}
|
|
68
68
|
return z2({ getValue: function() {
|
|
69
|
-
return b(
|
|
70
|
-
}, setValue:
|
|
71
|
-
|
|
72
|
-
} }), (
|
|
73
|
-
const
|
|
74
|
-
return s(), r(a2, { ref_key: "formItemRef", ref:
|
|
75
|
-
let
|
|
76
|
-
null !=
|
|
77
|
-
}(e3)), onFocus:
|
|
69
|
+
return b(B, $);
|
|
70
|
+
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
71
|
+
U.value = M();
|
|
72
|
+
} }), (t2, l2) => {
|
|
73
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
74
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(re) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(se), ...v(pe) }) }, [Y.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(J)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => W.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
|
|
75
|
+
let t3 = b(B, $);
|
|
76
|
+
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
|
|
77
|
+
}(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
78
78
|
};
|
|
79
79
|
} });
|
|
80
80
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { getVariableValue as
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
5
|
import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
|
-
const R = e2,
|
|
9
|
-
let
|
|
8
|
+
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
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
11
|
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType;
|
|
12
|
-
|
|
12
|
+
N.value;
|
|
13
13
|
const G = l(() => {
|
|
14
|
-
let e3 =
|
|
14
|
+
let e3 = d(S, P);
|
|
15
15
|
if (B) if (N.value.hasOptions) {
|
|
16
16
|
let t2 = null;
|
|
17
17
|
W.value && (t2 = W.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
-
|
|
8
|
+
S.value;
|
|
9
9
|
let $ = S.value.formatting;
|
|
10
|
-
const D = _2.pageContext.entity ? _2.pageContext.entity : {},
|
|
10
|
+
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
11
11
|
let e3 = b(D, h);
|
|
12
12
|
return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
|
|
13
13
|
});
|
|
14
|
-
let
|
|
15
|
-
|
|
14
|
+
let W = S.value.tooltip, q = null;
|
|
15
|
+
W && (q = l(() => {
|
|
16
16
|
let e3 = b(D, h);
|
|
17
|
-
return e3 = null == e3 || null == e3 ? "" : e3,
|
|
17
|
+
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
18
18
|
}));
|
|
19
|
-
const
|
|
19
|
+
const z = t(null), A = t(null), B = t(null);
|
|
20
20
|
return n(() => {
|
|
21
21
|
a(() => {
|
|
22
|
-
const e3 =
|
|
23
|
-
k(e3, _2.pageContext, _2.configure, { formItemRef:
|
|
22
|
+
const e3 = V.value;
|
|
23
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
24
24
|
});
|
|
25
25
|
}), (t2, l2) => {
|
|
26
26
|
const n2 = i("el-link"), a2 = i("el-tooltip"), y2 = i("el-form-item");
|
|
27
|
-
return o(), u(y2, { ref_key: "formItemRef", ref:
|
|
27
|
+
return o(), u(y2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(a2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(n2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(x)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
28
28
|
};
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
@@ -47,7 +47,6 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
47
47
|
Y && clearTimeout(Y), Y = setTimeout(function() {
|
|
48
48
|
const e3 = Q();
|
|
49
49
|
e3 != X && (X = e3, R(z.pageContext, Z, void 0).then((e4) => {
|
|
50
|
-
console.log("查询失败!", e4);
|
|
51
50
|
}));
|
|
52
51
|
}, 200);
|
|
53
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, watch as n, onMounted as l, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as d, createCommentVNode as p, normalizeStyle as f, normalizeClass as m, unref as v, withCtx as g, createElementVNode as h, toDisplayString as b } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getSizeConfig as x, formatVariableValue as
|
|
3
|
+
import { getSizeConfig as x, formatVariableValue as k, getVariableValue as w, setVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as q, handleFormEvent as T } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import S from "agilebuilder-ui/src/utils/request";
|
|
6
6
|
import { $t as E } from "../../../../utils/i18n-util.js";
|
|
@@ -17,7 +17,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
17
17
|
let Z = x(W.pageContext, W.configure);
|
|
18
18
|
Z && Z.fixHeight && (O.height || (O.height = Z.fixHeight + "px"));
|
|
19
19
|
let ee = X.value.value;
|
|
20
|
-
const te =
|
|
20
|
+
const te = k(W.pageContext, ee), ne = t(null);
|
|
21
21
|
let le = null;
|
|
22
22
|
const oe = t(false), ie = t(0), ae = t(false), re = t(false), ue = t("");
|
|
23
23
|
let se = null, ce = X.value.state;
|
|
@@ -43,15 +43,15 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
43
43
|
});
|
|
44
44
|
const ve = t([]), ge = t(false), he = t(null), be = t(null), ye = t(null);
|
|
45
45
|
let xe = null;
|
|
46
|
-
function
|
|
46
|
+
function ke(e3) {
|
|
47
47
|
const t2 = e3.match(/serverPath=([^&"]+)/);
|
|
48
48
|
return t2 ? t2[1] : "";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function we(e3) {
|
|
51
51
|
if (!le) return;
|
|
52
52
|
const t2 = function(e4) {
|
|
53
53
|
let t3 = e4.replace(/<img data-uuid="(.*?)"/g, (e5, t4) => {
|
|
54
|
-
const n3 =
|
|
54
|
+
const n3 = ke(t4), l2 = W.pageContext.backendUrl;
|
|
55
55
|
return `<img src="${A(l2, W.pageContext.isTest)}/common/fs-upload/download?serverPath=${n3}&isShowWatermark=false" data-uuid="${n3}"`;
|
|
56
56
|
});
|
|
57
57
|
return t3 = t3.replace(/\t/g, " "), t3 = t3.replace(/ {2}/g, " "), t3;
|
|
@@ -60,7 +60,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
60
60
|
if (!le) return;
|
|
61
61
|
le.root.querySelectorAll("img").forEach((e4) => {
|
|
62
62
|
if (!e4.getAttribute("data-uuid")) {
|
|
63
|
-
const t3 =
|
|
63
|
+
const t3 = ke(e4.src);
|
|
64
64
|
e4.setAttribute("data-uuid", t3);
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -81,7 +81,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
81
81
|
ie.value = e3.length;
|
|
82
82
|
}
|
|
83
83
|
function Ee() {
|
|
84
|
-
|
|
84
|
+
M.error({ message: "图片上传失败,请重试", duration: 3e3 });
|
|
85
85
|
}
|
|
86
86
|
function Ae(e3) {
|
|
87
87
|
"Escape" === e3.key && oe.value && (oe.value = false, o(() => {
|
|
@@ -140,11 +140,11 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
140
140
|
e3 && e3.addEventListener("mousedown", (e4) => {
|
|
141
141
|
e4.preventDefault();
|
|
142
142
|
});
|
|
143
|
-
}(),
|
|
143
|
+
}(), we(te), (_a = ne.value) == null ? void 0 : _a.addEventListener("focusout", Le), le.on("text-change", async function(e3) {
|
|
144
144
|
if (!le) return;
|
|
145
145
|
const t2 = le.root.getElementsByTagName("img");
|
|
146
146
|
for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
|
|
147
|
-
const t3 =
|
|
147
|
+
const t3 = ke(e4.src);
|
|
148
148
|
e4.setAttribute("data-uuid", t3);
|
|
149
149
|
}
|
|
150
150
|
if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
|
|
@@ -174,7 +174,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
174
174
|
}, 300);
|
|
175
175
|
}(), Se();
|
|
176
176
|
}), Se(), xe = le.container, xe.addEventListener("click", He), me(), o(() => {
|
|
177
|
-
const e3 =
|
|
177
|
+
const e3 = w(G, I);
|
|
178
178
|
q(e3, W.pageContext, W.configure, { formItemRef: he.value, componentRef: be.value, titleRef: ye.value, value: e3, entity: W.pageContext.entity.data, pageData: W.pageContext.entity.page });
|
|
179
179
|
}));
|
|
180
180
|
}), l(() => {
|
|
@@ -184,14 +184,14 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
184
184
|
}), z2({ addRequiredClass: function() {
|
|
185
185
|
P.value = L();
|
|
186
186
|
}, setContent: function(e3) {
|
|
187
|
-
|
|
187
|
+
we(e3), Se();
|
|
188
188
|
}, getContent: function() {
|
|
189
189
|
return le ? le.root.innerHTML : "";
|
|
190
190
|
} }), (e3, t2) => {
|
|
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"),
|
|
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
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
|
-
}), "url-list": ve.value }, null, 8, ["url-list"])) : p("", true), c(
|
|
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
|
};
|
|
196
196
|
} });
|
|
197
197
|
export {
|