super-page-runtime 2.3.49 → 2.3.50-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/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +129 -127
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +0 -8
- package/dist/es/components/runtime/utils/events/standard-event.js +227 -223
- package/dist/es/components/runtime/utils/events/validator-util.js +206 -209
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- 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/common/home-chart-condition-render.vue.js +8 -8
- 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 +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +4 -4
- 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 +1 -1
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +11 -7
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +17 -17
- 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 +22 -22
- 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 +6 -8
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- 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 +41 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +141 -124
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- 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 +9 -11
- 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.vue2.js +3 -3
- 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 +6 -7
- package/dist/es/components/runtime/views/super-page.vue2.js +98 -99
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +127 -75
- package/package.json +2 -2
|
@@ -1,76 +1,79 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { getSizeConfig as
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, watch as i, onMounted as r, nextTick as a, onBeforeUnmount as n, resolveComponent as l, createElementBlock as o, openBlock as s, Fragment as u, createVNode as c, createBlock as g, createCommentVNode as d, normalizeStyle as p, normalizeClass as m, unref as f, createSlots as h, withCtx as v, Teleport as x, createElementVNode as b, toDisplayString as y } from "vue";
|
|
2
|
+
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as C, formatVariableValue as M, getVariableValue as w, setVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as k, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import S from "agilebuilder-ui/src/utils/request";
|
|
6
6
|
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
-
import { getBaseUrl as
|
|
8
|
-
import
|
|
7
|
+
import { getBaseUrl as A, addRequiredClassUtil as E } from "../../../../utils/common-util.js";
|
|
8
|
+
import H from "quill";
|
|
9
9
|
import "quill/dist/quill.snow.css";
|
|
10
10
|
import { ElMessage as L } from "element-plus";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
|
|
11
|
+
import { CopyDocument as F } from "@element-plus/icons-vue";
|
|
12
|
+
const N = { class: "toolbar-right-btns" }, B = ["title"], I = ["title"], _ = ["title"], U = { class: "richtext-statusbar" }, $ = { class: "word-count" }, D = { key: 0, class: "upload-loading" }, W = { class: "richtext-preview-header" }, j = { class: "richtext-preview-title" }, z = ["innerHTML"], V = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
13
|
+
const O = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], G = H.import("attributors/style/size");
|
|
14
|
+
G.whitelist = O, H.register(G, true);
|
|
15
|
+
const K = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], Y = H.import("attributors/style/font");
|
|
16
|
+
Y.whitelist = K, H.register(Y, true);
|
|
17
|
+
const J = e2, Q = t(""), X = J.pageContext.entity ? J.pageContext.entity : {}, Z = T(J.pageContext, J.configure), ee = J.configure.runtime ? J.configure.runtime : {}, te = ee.style, ie = ee.class, re = ee.headerStyle, ae = ee.titleExceedStyle, ne = t(ee.props ? ee.props : {});
|
|
18
|
+
let le = C(J.pageContext, J.configure);
|
|
19
|
+
const oe = !(!le || !le.maxHeight), se = oe ? /^\d+(\.\d+)?$/.test(String(le.maxHeight).trim()) ? Number(le.maxHeight) + "px" : String(le.maxHeight) : "", ue = oe && le.fixHeight ? /^\d+(\.\d+)?$/.test(String(le.fixHeight).trim()) ? Number(le.fixHeight) + "px" : String(le.fixHeight) : "";
|
|
20
|
+
oe ? te.height = "" : le && le.fixHeight && (te.height || (te.height = le.fixHeight + "px"));
|
|
21
|
+
let ce = ne.value.value;
|
|
22
|
+
const ge = M(J.pageContext, ce), de = t(null);
|
|
23
|
+
let pe = null;
|
|
24
|
+
const me = t(false), fe = t(0), he = t(false), ve = t(false), xe = t("");
|
|
25
|
+
let be = null, ye = ne.value.state;
|
|
26
|
+
function Te(e3) {
|
|
25
27
|
return "readonly" == e3 || "disabled" == e3;
|
|
26
28
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
if (
|
|
30
|
-
|
|
29
|
+
const Ce = Te(ye), Me = t(Ce), we = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: O }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: K }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: Ce ? "" : ne.value.placeholder, readOnly: Ce });
|
|
30
|
+
function Re() {
|
|
31
|
+
if (oe && !me.value) return;
|
|
32
|
+
if (!(pe == null ? void 0 : pe.container)) return;
|
|
33
|
+
const e3 = pe.container.parentNode;
|
|
31
34
|
if (!e3) return;
|
|
32
|
-
const t2 = e3.getBoundingClientRect(),
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
+
const t2 = e3.getBoundingClientRect(), i2 = pe.container.getBoundingClientRect();
|
|
36
|
+
let r2 = t2.height - (i2.top - t2.top);
|
|
37
|
+
r2 -= 24, pe.container.style.height = Math.max(r2, 100) + "px";
|
|
35
38
|
}
|
|
36
|
-
|
|
37
|
-
const e3 =
|
|
38
|
-
if (null != e3 && e3 !==
|
|
39
|
-
|
|
40
|
-
const t2 =
|
|
41
|
-
|
|
39
|
+
i(ne.value, () => {
|
|
40
|
+
const e3 = ne.value.state;
|
|
41
|
+
if (null != e3 && e3 !== ye) {
|
|
42
|
+
ye = e3;
|
|
43
|
+
const t2 = Te(ye);
|
|
44
|
+
Me.value = t2, pe && (pe.enable(!t2), pe.root.dataset.placeholder = t2 ? "" : ne.value.placeholder);
|
|
42
45
|
}
|
|
43
46
|
});
|
|
44
|
-
const
|
|
45
|
-
let
|
|
46
|
-
function
|
|
47
|
+
const ke = t([]), Pe = t(false), Se = t(null), qe = t(null), Ae = t(null);
|
|
48
|
+
let Ee = null;
|
|
49
|
+
function He(e3) {
|
|
47
50
|
const t2 = e3.match(/serverPath=([^&"]+)/);
|
|
48
51
|
return t2 ? t2[1] : "";
|
|
49
52
|
}
|
|
50
|
-
function
|
|
51
|
-
if (!
|
|
53
|
+
function Le(e3) {
|
|
54
|
+
if (!pe) return;
|
|
52
55
|
const t2 = function(e4) {
|
|
53
56
|
if (!e4) return e4;
|
|
54
|
-
const t3 = new DOMParser().parseFromString(e4, "text/html"),
|
|
57
|
+
const t3 = new DOMParser().parseFromString(e4, "text/html"), i3 = J.pageContext.backendUrl, r2 = A(i3, J.pageContext.isTest);
|
|
55
58
|
t3.querySelectorAll("th").forEach((e5) => {
|
|
56
|
-
const
|
|
57
|
-
for (const t4 of Array.from(e5.attributes))
|
|
58
|
-
|
|
59
|
+
const i4 = t3.createElement("td");
|
|
60
|
+
for (const t4 of Array.from(e5.attributes)) i4.setAttribute(t4.name, t4.value);
|
|
61
|
+
i4.style.fontWeight = "bold", i4.innerHTML = e5.innerHTML, e5.replaceWith(i4);
|
|
59
62
|
}), t3.querySelectorAll("img[data-uuid]").forEach((e5) => {
|
|
60
|
-
const t4 = e5,
|
|
61
|
-
|
|
63
|
+
const t4 = e5, i4 = t4.getAttribute("data-uuid");
|
|
64
|
+
i4 && t4.setAttribute("src", `${r2}/common/fs-upload/download?serverPath=${i4}&isShowWatermark=false`);
|
|
62
65
|
});
|
|
63
|
-
let
|
|
64
|
-
return
|
|
65
|
-
}(e3),
|
|
66
|
-
|
|
67
|
-
if (!
|
|
68
|
-
|
|
66
|
+
let a2 = t3.body.innerHTML;
|
|
67
|
+
return a2 = a2.replace(/\t/g, " "), a2 = a2.replace(/ {2}/g, " "), a2;
|
|
68
|
+
}(e3), i2 = pe.clipboard.convertHTML(t2);
|
|
69
|
+
pe.setContents(i2.ops), a(() => {
|
|
70
|
+
if (!pe) return;
|
|
71
|
+
pe.root.querySelectorAll("img").forEach((e4) => {
|
|
69
72
|
if (!e4.getAttribute("data-uuid")) {
|
|
70
|
-
const t3 =
|
|
73
|
+
const t3 = He(e4.src);
|
|
71
74
|
t3 && e4.setAttribute("data-uuid", t3);
|
|
72
75
|
}
|
|
73
|
-
}),
|
|
76
|
+
}), pe && pe.root.querySelectorAll("table").forEach((e4) => {
|
|
74
77
|
const t3 = e4.querySelector("tr");
|
|
75
78
|
t3 && t3.querySelectorAll("td").forEach((e5) => {
|
|
76
79
|
e5.querySelector("strong, b") && (e5.style.backgroundColor = "#f5f7fa");
|
|
@@ -78,92 +81,106 @@ const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { c
|
|
|
78
81
|
});
|
|
79
82
|
});
|
|
80
83
|
}
|
|
81
|
-
const
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
!
|
|
84
|
+
const Fe = { bold: q("superPageRuntimeMessage.richTextBold"), italic: q("superPageRuntimeMessage.richTextItalic"), underline: q("superPageRuntimeMessage.richTextUnderline"), strike: q("superPageRuntimeMessage.richTextStrike"), blockquote: q("superPageRuntimeMessage.richTextBlockquote"), "code-block": q("superPageRuntimeMessage.richTextCodeBlock"), 'list[value="ordered"]': q("superPageRuntimeMessage.richTextOrderedList"), 'list[value="bullet"]': q("superPageRuntimeMessage.richTextBulletList"), 'script[value="sub"]': q("superPageRuntimeMessage.richTextSubscript"), 'script[value="super"]': q("superPageRuntimeMessage.richTextSuperscript"), 'indent[value="-1"]': q("superPageRuntimeMessage.richTextIndentDecrease"), 'indent[value="+1"]': q("superPageRuntimeMessage.richTextIndentIncrease"), 'direction[value="rtl"]': q("superPageRuntimeMessage.richTextTextDirection"), size: q("superPageRuntimeMessage.richTextFontSize"), header: q("superPageRuntimeMessage.richTextHeader"), color: q("superPageRuntimeMessage.richTextFontColor"), background: q("superPageRuntimeMessage.richTextBackgroundColor"), font: q("superPageRuntimeMessage.richTextFontFamily"), align: q("superPageRuntimeMessage.richTextAlign"), clean: q("superPageRuntimeMessage.richTextClean"), link: q("superPageRuntimeMessage.richTextLink"), image: q("superPageRuntimeMessage.richTextImage") };
|
|
85
|
+
function Ne() {
|
|
86
|
+
me.value = !me.value, a(() => {
|
|
87
|
+
!me.value && (pe == null ? void 0 : pe.container) && (pe.container.style.height = ""), Re();
|
|
85
88
|
});
|
|
86
89
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
90
|
+
function Be() {
|
|
91
|
+
pe && (xe.value = pe.root.innerHTML, ve.value = true);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
if (!
|
|
92
|
-
const e3 =
|
|
93
|
-
|
|
93
|
+
async function Ie() {
|
|
94
|
+
if (!pe) return;
|
|
95
|
+
const e3 = pe.root.innerHTML, t2 = pe.getText().replace(/\n$/, "");
|
|
96
|
+
try {
|
|
97
|
+
if (navigator.clipboard && "undefined" != typeof ClipboardItem) await navigator.clipboard.write([new ClipboardItem({ "text/html": new Blob([e3], { type: "text/html" }), "text/plain": new Blob([t2], { type: "text/plain" }) })]);
|
|
98
|
+
else {
|
|
99
|
+
if (!navigator.clipboard) throw new Error("Clipboard API unavailable");
|
|
100
|
+
await navigator.clipboard.writeText(t2);
|
|
101
|
+
}
|
|
102
|
+
L({ message: q("superPageRuntimeMessage.richTextCopySuccess"), type: "success", customClass: "richtext-copy-message" });
|
|
103
|
+
} catch (e4) {
|
|
104
|
+
L({ message: q("superPageRuntimeMessage.richTextCopyFailed"), type: "error", customClass: "richtext-copy-message" });
|
|
105
|
+
}
|
|
94
106
|
}
|
|
95
|
-
function
|
|
96
|
-
if (!
|
|
97
|
-
const e3 =
|
|
107
|
+
function _e() {
|
|
108
|
+
if (!pe) return void (fe.value = 0);
|
|
109
|
+
const e3 = pe.getText().trim();
|
|
110
|
+
fe.value = e3.length;
|
|
111
|
+
}
|
|
112
|
+
function Ue() {
|
|
113
|
+
if (!pe) return "";
|
|
114
|
+
const e3 = pe.root.cloneNode(true);
|
|
98
115
|
return e3.querySelectorAll("img[data-uuid]").forEach((e4) => {
|
|
99
116
|
e4.getAttribute("data-uuid") && e4.removeAttribute("src");
|
|
100
117
|
}), e3.innerHTML;
|
|
101
118
|
}
|
|
102
|
-
function
|
|
119
|
+
function $e() {
|
|
103
120
|
L.error({ message: q("superPageRuntimeMessage.richTextImageUploadFailed"), duration: 3e3 });
|
|
104
121
|
}
|
|
105
|
-
function
|
|
106
|
-
"Escape" === e3.key &&
|
|
107
|
-
(
|
|
122
|
+
function De(e3) {
|
|
123
|
+
"Escape" === e3.key && me.value && (me.value = false, a(() => {
|
|
124
|
+
(pe == null ? void 0 : pe.container) && (pe.container.style.height = ""), Re();
|
|
108
125
|
}));
|
|
109
126
|
}
|
|
110
|
-
function
|
|
127
|
+
function We(e3) {
|
|
111
128
|
var _a;
|
|
112
|
-
|
|
129
|
+
pe && (null !== e3.relatedTarget && ((_a = de.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || P(Ue(), J.pageContext, J.configure, "change", { entity: X }));
|
|
113
130
|
}
|
|
114
|
-
function
|
|
131
|
+
function je(e3) {
|
|
115
132
|
if ("img" === e3.target.localName) {
|
|
116
|
-
|
|
133
|
+
ke.value = [];
|
|
117
134
|
let t2 = e3.target.src;
|
|
118
|
-
|
|
135
|
+
ke.value.push(t2), Pe.value = true;
|
|
119
136
|
}
|
|
120
137
|
}
|
|
121
|
-
function
|
|
138
|
+
function ze(e3) {
|
|
122
139
|
const t2 = new FormData();
|
|
123
140
|
t2.append("file", e3);
|
|
124
|
-
const
|
|
125
|
-
return
|
|
141
|
+
const i2 = J.pageContext.backendUrl, r2 = A(i2, J.pageContext.isTest);
|
|
142
|
+
return S.post(r2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
126
143
|
}
|
|
127
|
-
function
|
|
128
|
-
const
|
|
129
|
-
let l2 =
|
|
144
|
+
function Ve(e3, t2) {
|
|
145
|
+
const i2 = e3.split(","), r2 = i2[0].match(/:(.*?);/), a2 = r2 ? r2[1] : "image/png", n2 = atob(i2[1]);
|
|
146
|
+
let l2 = n2.length;
|
|
130
147
|
const o2 = new Uint8Array(l2);
|
|
131
|
-
for (; l2--; ) o2[l2] =
|
|
132
|
-
return new File([o2], t2, { type:
|
|
148
|
+
for (; l2--; ) o2[l2] = n2.charCodeAt(l2);
|
|
149
|
+
return new File([o2], t2, { type: a2 });
|
|
133
150
|
}
|
|
134
|
-
return
|
|
151
|
+
return r(() => {
|
|
135
152
|
var _a;
|
|
136
|
-
|
|
153
|
+
de.value && (pe = new H(de.value, we.value), pe.root.style.fontSize = "16px", function() {
|
|
137
154
|
var _a2, _b;
|
|
138
|
-
const e3 = (_b = (_a2 =
|
|
155
|
+
const e3 = (_b = (_a2 = de.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
139
156
|
if (!e3) return;
|
|
140
157
|
e3.querySelectorAll("button").forEach((e4) => {
|
|
141
158
|
const t2 = e4.className.match(/ql-([\w-]+)/);
|
|
142
159
|
if (t2) {
|
|
143
|
-
const
|
|
144
|
-
|
|
160
|
+
const i2 = t2[1], r2 = `${i2}[value="${e4.value}"]`;
|
|
161
|
+
Fe[r2] ? e4.setAttribute("data-tooltip", Fe[r2]) : Fe[i2] && e4.setAttribute("data-tooltip", Fe[i2]);
|
|
145
162
|
}
|
|
146
163
|
}), e3.querySelectorAll(".ql-picker").forEach((e4) => {
|
|
147
164
|
const t2 = e4.className.match(/ql-(\w+)/);
|
|
148
165
|
if (t2) {
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
166
|
+
const i2 = t2[1];
|
|
167
|
+
if (Fe[i2]) {
|
|
151
168
|
const t3 = e4.querySelector(".ql-picker-label");
|
|
152
|
-
t3 && t3.setAttribute("data-tooltip",
|
|
169
|
+
t3 && t3.setAttribute("data-tooltip", Fe[i2]);
|
|
153
170
|
}
|
|
154
171
|
}
|
|
155
172
|
});
|
|
156
173
|
}(), function() {
|
|
157
174
|
var _a2, _b;
|
|
158
|
-
const e3 = (_b = (_a2 =
|
|
175
|
+
const e3 = (_b = (_a2 = de.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
159
176
|
e3 && e3.addEventListener("mousedown", (e4) => {
|
|
160
177
|
e4.preventDefault();
|
|
161
178
|
});
|
|
162
|
-
}(),
|
|
163
|
-
if (!
|
|
164
|
-
const t2 =
|
|
179
|
+
}(), Le(ge), (_a = de.value) == null ? void 0 : _a.addEventListener("focusout", We), pe.on("text-change", async function(e3) {
|
|
180
|
+
if (!pe) return;
|
|
181
|
+
const t2 = pe.root.getElementsByTagName("img");
|
|
165
182
|
for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
|
|
166
|
-
const t3 =
|
|
183
|
+
const t3 = He(e4.src);
|
|
167
184
|
e4.setAttribute("data-uuid", t3);
|
|
168
185
|
}
|
|
169
186
|
if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
|
|
@@ -172,47 +189,47 @@ const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { c
|
|
|
172
189
|
const t4 = e4.image;
|
|
173
190
|
if (!t4.startsWith("data:image")) continue;
|
|
174
191
|
try {
|
|
175
|
-
|
|
176
|
-
const e5 =
|
|
177
|
-
if (!
|
|
178
|
-
const
|
|
179
|
-
for (const e6 of
|
|
192
|
+
he.value = true;
|
|
193
|
+
const e5 = Ve(t4, "image.png"), i2 = await ze(e5);
|
|
194
|
+
if (!pe) return;
|
|
195
|
+
const r2 = pe.root.getElementsByTagName("img");
|
|
196
|
+
for (const e6 of r2) e6.src === t4 && (e6.width = 300, e6.src = i2.url, e6.setAttribute("data-uuid", i2.uuid));
|
|
180
197
|
} catch (e5) {
|
|
181
|
-
|
|
198
|
+
$e();
|
|
182
199
|
} finally {
|
|
183
|
-
|
|
200
|
+
he.value = false;
|
|
184
201
|
}
|
|
185
202
|
}
|
|
186
203
|
}
|
|
187
204
|
!function() {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (!
|
|
191
|
-
const e4 =
|
|
192
|
-
|
|
205
|
+
be && clearTimeout(be);
|
|
206
|
+
be = setTimeout(() => {
|
|
207
|
+
if (!pe) return;
|
|
208
|
+
const e4 = Ue();
|
|
209
|
+
R(X, Z, e4), e4 && (Q.value = "");
|
|
193
210
|
}, 300);
|
|
194
|
-
}(),
|
|
195
|
-
}),
|
|
196
|
-
const e3 =
|
|
197
|
-
|
|
211
|
+
}(), _e();
|
|
212
|
+
}), _e(), Ee = pe.container, Ee.addEventListener("click", je), Re(), a(() => {
|
|
213
|
+
const e3 = w(X, Z);
|
|
214
|
+
k(e3, J.pageContext, J.configure, { formItemRef: Se.value, componentRef: qe.value, titleRef: Ae.value, value: e3, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page });
|
|
198
215
|
}));
|
|
216
|
+
}), r(() => {
|
|
217
|
+
document.addEventListener("keydown", De);
|
|
199
218
|
}), n(() => {
|
|
200
|
-
document.
|
|
201
|
-
}),
|
|
202
|
-
|
|
203
|
-
}), D2({ addRequiredClass: function() {
|
|
204
|
-
O.value = A();
|
|
219
|
+
document.removeEventListener("keydown", De), be && clearTimeout(be), de.value && de.value.removeEventListener("focusout", We), Ee && Ee.removeEventListener("click", je);
|
|
220
|
+
}), V2({ addRequiredClass: function() {
|
|
221
|
+
Q.value = E();
|
|
205
222
|
}, setContent: function(e3) {
|
|
206
|
-
|
|
223
|
+
Le(e3), _e();
|
|
207
224
|
}, getContent: function() {
|
|
208
|
-
return
|
|
225
|
+
return pe ? pe.root.innerHTML : "";
|
|
209
226
|
} }), (e3, t2) => {
|
|
210
|
-
const
|
|
211
|
-
return
|
|
212
|
-
|
|
213
|
-
}), "url-list":
|
|
227
|
+
const i2 = l("el-icon"), r2 = l("View"), a2 = l("FullScreen"), n2 = l("Close"), T2 = l("el-form-item"), C2 = l("el-image-viewer"), M2 = l("el-button"), w2 = l("el-dialog");
|
|
228
|
+
return s(), o(u, null, [c(T2, { required: ne.value.required, class: m(f(ie) + (Q.value ? " " + Q.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, h({ default: v(() => [(s(), g(x, { to: "body", disabled: !me.value }, [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": me.value, "is-max-height": oe && !me.value, "is-readonly": Me.value }]), style: p(oe && !me.value ? { minHeight: f(ue) || void 0, maxHeight: f(se) } : void 0) }, [b("div", { ref_key: "quillEditorRef", ref: de, class: "richtext-editor-host", style: { width: "100%" } }, null, 512), b("div", N, [b("button", { type: "button", class: "toolbar-btn", onClick: Ie, title: f(q)("superPageRuntimeMessage.richTextCopy") }, [c(i2, null, { default: v(() => [c(f(F))]), _: 1 })], 8, B), b("button", { type: "button", class: "toolbar-btn", onClick: Be, title: f(q)("superPageRuntimeMessage.richTextPreview") }, [c(i2, null, { default: v(() => [c(r2)]), _: 1 })], 8, I), b("button", { type: "button", class: "toolbar-btn", onClick: Ne, title: me.value ? f(q)("superPageRuntimeMessage.richTextExitFullScreen") : f(q)("superPageRuntimeMessage.richTextFullScreenEdit") }, [me.value ? (s(), g(i2, { key: 1 }, { default: v(() => [c(n2)]), _: 1 })) : (s(), g(i2, { key: 0 }, { default: v(() => [c(a2)]), _: 1 }))], 8, _)]), b("div", U, [b("span", $, y(f(q)("superPageRuntimeMessage.richTextWordCount")) + ":" + y(fe.value), 1)]), he.value ? (s(), o("div", D, [t2[2] || (t2[2] = b("div", { class: "loading-spinner" }, null, -1)), b("span", null, y(f(q)("superPageRuntimeMessage.richTextImageUploading")), 1)])) : d("", true)], 6)], 8, ["disabled"]))]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: v(() => [b("div", { style: p({ ...f(re), ...f(ae) }), class: "amb-form-item-label" }, y(f(q)(ne.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), Pe.value ? (s(), g(C2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
229
|
+
Pe.value = false;
|
|
230
|
+
}), "url-list": ke.value }, null, 8, ["url-list"])) : d("", true), c(w2, { modelValue: ve.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ve.value = e4), width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { header: v(() => [b("div", W, [b("span", j, y(f(q)("superPageRuntimeMessage.richTextContentPreview")), 1), c(M2, { link: "", type: "primary", onClick: Ie }, { default: v(() => [c(i2, null, { default: v(() => [c(f(F))]), _: 1 }), b("span", null, y(f(q)("superPageRuntimeMessage.richTextCopy")), 1)]), _: 1 })])]), default: v(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: xe.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
214
231
|
};
|
|
215
232
|
} });
|
|
216
233
|
export {
|
|
217
|
-
|
|
234
|
+
V as default
|
|
218
235
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as u, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, putToOptionSourceMap as j, autoSetAfterSelect as R, getVariableValue as P } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
|
|
@@ -13,7 +13,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
13
13
|
const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
|
|
14
14
|
let ee = V(Q.pageContext, Q.configure);
|
|
15
15
|
const le = Q.configure.runtime ? Q.configure.runtime : {}, te = le.style, oe = le.class, ae = le.headerStyle, ie = le.titleExceedStyle, ne = l(le.props ? le.props : {});
|
|
16
|
-
let
|
|
16
|
+
let ue = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), re = [];
|
|
17
17
|
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function pe() {
|
|
19
19
|
let e3 = P(Z, ee);
|
|
@@ -21,7 +21,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
21
21
|
}
|
|
22
22
|
const ce = t({ get: () => pe(), set(e3) {
|
|
23
23
|
const l2 = pe();
|
|
24
|
-
|
|
24
|
+
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
26
|
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
27
|
const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
@@ -57,7 +57,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options = fe.value, o2.oldValue =
|
|
60
|
+
o2.options = fe.value, o2.oldValue = re, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
62
|
const be = ne.value.monitorFields, xe = [];
|
|
63
63
|
if (be) {
|
|
@@ -118,7 +118,6 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
-
console.error("复制失败", e4);
|
|
122
121
|
}), n(() => {
|
|
123
122
|
const e4 = ce.value;
|
|
124
123
|
D(e4, Q.pageContext, Q.configure, { formItemRef: ke.value, componentRef: Ae.value, titleRef: Te.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
|
|
@@ -145,10 +144,10 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
145
144
|
X.value = z();
|
|
146
145
|
}, getSelectItemsTitle: je, getOptions: function() {
|
|
147
146
|
return fe.value;
|
|
148
|
-
} }), (
|
|
149
|
-
const
|
|
150
|
-
return s(),
|
|
151
|
-
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue":
|
|
147
|
+
} }), (e3, l2) => {
|
|
148
|
+
const t2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), i2 = u("el-popover"), n2 = u("el-form-item");
|
|
149
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, 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", G, [m(a2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: f(q)(ne.value.placeholder), "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => ce.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), r(o2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), r(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ue) }), onClick: (t3) => f(M)(l3.value, e3.pageContext, e3.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ue) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, 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", F, [m(t2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), r(I, { key: 0, pageContext: e3.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.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 {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (e3, t2) => {
|
|
28
|
+
const l2 = o("el-tag"), a2 = o("el-form-item");
|
|
29
|
+
return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e6 = C(D, A);
|
|
32
|
+
null == e6 && (e6 = []);
|
|
33
|
+
const l3 = Array.isArray(e6);
|
|
34
|
+
l3 || (e6 = (e6 + "").split(","));
|
|
35
|
+
const a4 = e6.indexOf(t3.value);
|
|
36
|
+
a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e5, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: m(j)(E.value.placeholder), modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (e3, o2) => {
|
|
77
|
+
const t2 = i("permission");
|
|
78
|
+
return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|