super-page-runtime 2.3.47-sit1 → 2.3.47
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 +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/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 +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +94 -93
- 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 +26 -26
- 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 +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- 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 +43 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- 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 +124 -124
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- 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.vue.js +1 -1
- 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 +11 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +27 -27
- 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 +18 -16
- package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -85
- package/package.json +2 -2
|
@@ -74,9 +74,9 @@ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
74
74
|
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
75
75
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
76
76
|
}
|
|
77
|
-
} }), (
|
|
78
|
-
const
|
|
79
|
-
return s(), r(
|
|
77
|
+
} }), (t2, l2) => {
|
|
78
|
+
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
79
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
80
80
|
};
|
|
81
81
|
} });
|
|
82
82
|
export {
|
|
@@ -2,7 +2,7 @@ import t from "./richtext-runtime.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
5
|
+
const r = e(t, [["__scopeId", "data-v-89783313"]]);
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
8
8
|
};
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { getSizeConfig as
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { getBaseUrl as
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as i, onBeforeUnmount as a, resolveComponent as l, createElementBlock as o, openBlock as u, Fragment as s, createVNode as c, createBlock as g, createCommentVNode as d, normalizeStyle as p, normalizeClass as m, unref as f, createSlots as h, withCtx as v, createElementVNode as x, toDisplayString as b } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as T, formatVariableValue as M, getVariableValue as R, setVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as C, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import w from "agilebuilder-ui/src/utils/request";
|
|
6
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { getBaseUrl as S, addRequiredClassUtil as A } from "../../../../utils/common-util.js";
|
|
8
|
+
import E from "quill";
|
|
9
9
|
import "quill/dist/quill.snow.css";
|
|
10
|
-
import { ElMessage as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
function
|
|
10
|
+
import { ElMessage as L } from "element-plus";
|
|
11
|
+
const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { class: "richtext-statusbar" }, I = { class: "word-count" }, _ = { key: 0, class: "upload-loading" }, U = ["innerHTML"], D = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
|
|
12
|
+
const W = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], j = E.import("attributors/style/size");
|
|
13
|
+
j.whitelist = W, E.register(j, true);
|
|
14
|
+
const z = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], V = E.import("attributors/style/font");
|
|
15
|
+
V.whitelist = z, E.register(V, true);
|
|
16
|
+
const $ = e2, O = t(""), G = $.pageContext.entity ? $.pageContext.entity : {}, K = y($.pageContext, $.configure), Y = $.configure.runtime ? $.configure.runtime : {}, J = Y.style, Q = Y.class, X = Y.headerStyle, Z = Y.titleExceedStyle, ee = t(Y.props ? Y.props : {});
|
|
17
|
+
let te = T($.pageContext, $.configure);
|
|
18
|
+
te && te.fixHeight && (J.height || (J.height = te.fixHeight + "px"));
|
|
19
|
+
let re = ee.value.value;
|
|
20
|
+
const ne = M($.pageContext, re), ie = t(null);
|
|
21
|
+
let ae = null;
|
|
22
|
+
const le = t(false), oe = t(0), ue = t(false), se = t(false), ce = t("");
|
|
23
|
+
let ge = null, de = ee.value.state;
|
|
24
|
+
function pe(e3) {
|
|
25
25
|
return "readonly" == e3 || "disabled" == e3;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
if (!(
|
|
30
|
-
const e3 =
|
|
27
|
+
const me = pe(de), fe = 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: W }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: z }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: me ? "" : ee.value.placeholder, readOnly: me });
|
|
28
|
+
function he() {
|
|
29
|
+
if (!(ae == null ? void 0 : ae.container)) return;
|
|
30
|
+
const e3 = ae.container.parentNode;
|
|
31
31
|
if (!e3) return;
|
|
32
|
-
const t2 = e3.getBoundingClientRect(),
|
|
33
|
-
let n2 = t2.height - (
|
|
34
|
-
n2 -= 24,
|
|
32
|
+
const t2 = e3.getBoundingClientRect(), r2 = ae.container.getBoundingClientRect();
|
|
33
|
+
let n2 = t2.height - (r2.top - t2.top);
|
|
34
|
+
n2 -= 24, ae.container.style.height = Math.max(n2, 100) + "px";
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
const e3 =
|
|
36
|
+
r(ee.value, () => {
|
|
37
|
+
const e3 = ee.value.state;
|
|
38
38
|
if (null != e3 && e3 !== de) {
|
|
39
39
|
de = e3;
|
|
40
|
-
const t2 =
|
|
41
|
-
|
|
40
|
+
const t2 = pe(de);
|
|
41
|
+
ae && (ae.enable(!t2), ae.root.dataset.placeholder = t2 ? "" : ee.value.placeholder);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
const ve = t([]),
|
|
45
|
-
let
|
|
46
|
-
function
|
|
44
|
+
const ve = t([]), xe = t(false), be = t(null), ye = t(null), Te = t(null);
|
|
45
|
+
let Me = null;
|
|
46
|
+
function Re(e3) {
|
|
47
47
|
const t2 = e3.match(/serverPath=([^&"]+)/);
|
|
48
48
|
return t2 ? t2[1] : "";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
if (!
|
|
50
|
+
function ke(e3) {
|
|
51
|
+
if (!ae) return;
|
|
52
52
|
const t2 = function(e4) {
|
|
53
53
|
if (!e4) return e4;
|
|
54
|
-
const t3 = new DOMParser().parseFromString(e4, "text/html"),
|
|
54
|
+
const t3 = new DOMParser().parseFromString(e4, "text/html"), r3 = $.pageContext.backendUrl, n2 = S(r3, $.pageContext.isTest);
|
|
55
55
|
t3.querySelectorAll("th").forEach((e5) => {
|
|
56
|
-
const
|
|
57
|
-
for (const t4 of Array.from(e5.attributes))
|
|
58
|
-
|
|
56
|
+
const r4 = t3.createElement("td");
|
|
57
|
+
for (const t4 of Array.from(e5.attributes)) r4.setAttribute(t4.name, t4.value);
|
|
58
|
+
r4.style.fontWeight = "bold", r4.innerHTML = e5.innerHTML, e5.replaceWith(r4);
|
|
59
59
|
}), t3.querySelectorAll("img[data-uuid]").forEach((e5) => {
|
|
60
|
-
const t4 = e5,
|
|
61
|
-
|
|
60
|
+
const t4 = e5, r4 = t4.getAttribute("data-uuid");
|
|
61
|
+
r4 && t4.setAttribute("src", `${n2}/common/fs-upload/download?serverPath=${r4}&isShowWatermark=false`);
|
|
62
62
|
});
|
|
63
|
-
let
|
|
64
|
-
return
|
|
65
|
-
}(e3),
|
|
66
|
-
|
|
67
|
-
if (!
|
|
68
|
-
|
|
63
|
+
let i2 = t3.body.innerHTML;
|
|
64
|
+
return i2 = i2.replace(/\t/g, " "), i2 = i2.replace(/ {2}/g, " "), i2;
|
|
65
|
+
}(e3), r2 = ae.clipboard.convertHTML(t2);
|
|
66
|
+
ae.setContents(r2.ops), i(() => {
|
|
67
|
+
if (!ae) return;
|
|
68
|
+
ae.root.querySelectorAll("img").forEach((e4) => {
|
|
69
69
|
if (!e4.getAttribute("data-uuid")) {
|
|
70
|
-
const t3 =
|
|
70
|
+
const t3 = Re(e4.src);
|
|
71
71
|
t3 && e4.setAttribute("data-uuid", t3);
|
|
72
72
|
}
|
|
73
|
-
}),
|
|
73
|
+
}), ae && ae.root.querySelectorAll("table").forEach((e4) => {
|
|
74
74
|
const t3 = e4.querySelector("tr");
|
|
75
75
|
t3 && t3.querySelectorAll("td").forEach((e5) => {
|
|
76
76
|
e5.querySelector("strong, b") && (e5.style.backgroundColor = "#f5f7fa");
|
|
@@ -78,92 +78,92 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
const Ce = { bold: "
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
!
|
|
81
|
+
const Ce = { 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") };
|
|
82
|
+
function Pe() {
|
|
83
|
+
le.value = !le.value, i(() => {
|
|
84
|
+
!le.value && (ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
87
|
+
function we() {
|
|
88
|
+
ae && (ce.value = ae.root.innerHTML, se.value = true);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
if (!
|
|
92
|
-
const e3 =
|
|
93
|
-
|
|
90
|
+
function qe() {
|
|
91
|
+
if (!ae) return void (oe.value = 0);
|
|
92
|
+
const e3 = ae.getText().trim();
|
|
93
|
+
oe.value = e3.length;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
if (!
|
|
97
|
-
const e3 =
|
|
95
|
+
function Se() {
|
|
96
|
+
if (!ae) return "";
|
|
97
|
+
const e3 = ae.root.cloneNode(true);
|
|
98
98
|
return e3.querySelectorAll("img[data-uuid]").forEach((e4) => {
|
|
99
99
|
e4.getAttribute("data-uuid") && e4.removeAttribute("src");
|
|
100
100
|
}), e3.innerHTML;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
102
|
+
function Ae() {
|
|
103
|
+
L.error({ message: q("superPageRuntimeMessage.richTextImageUploadFailed"), duration: 3e3 });
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
"Escape" === e3.key &&
|
|
107
|
-
(
|
|
105
|
+
function Ee(e3) {
|
|
106
|
+
"Escape" === e3.key && le.value && (le.value = false, i(() => {
|
|
107
|
+
(ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
|
|
108
108
|
}));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Le(e3) {
|
|
111
111
|
var _a;
|
|
112
|
-
|
|
112
|
+
ae && (null !== e3.relatedTarget && ((_a = ie.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || P(Se(), $.pageContext, $.configure, "change", { entity: G }));
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function He(e3) {
|
|
115
115
|
if ("img" === e3.target.localName) {
|
|
116
116
|
ve.value = [];
|
|
117
117
|
let t2 = e3.target.src;
|
|
118
|
-
ve.value.push(t2),
|
|
118
|
+
ve.value.push(t2), xe.value = true;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Fe(e3) {
|
|
122
122
|
const t2 = new FormData();
|
|
123
123
|
t2.append("file", e3);
|
|
124
|
-
const
|
|
125
|
-
return
|
|
124
|
+
const r2 = $.pageContext.backendUrl, n2 = S(r2, $.pageContext.isTest);
|
|
125
|
+
return w.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
const
|
|
131
|
-
for (;
|
|
132
|
-
return new File([
|
|
127
|
+
function Ne(e3, t2) {
|
|
128
|
+
const r2 = e3.split(","), n2 = r2[0].match(/:(.*?);/), i2 = n2 ? n2[1] : "image/png", a2 = atob(r2[1]);
|
|
129
|
+
let l2 = a2.length;
|
|
130
|
+
const o2 = new Uint8Array(l2);
|
|
131
|
+
for (; l2--; ) o2[l2] = a2.charCodeAt(l2);
|
|
132
|
+
return new File([o2], t2, { type: i2 });
|
|
133
133
|
}
|
|
134
134
|
return n(() => {
|
|
135
135
|
var _a;
|
|
136
|
-
|
|
136
|
+
ie.value && (ae = new E(ie.value, fe.value), ae.root.style.fontSize = "16px", function() {
|
|
137
137
|
var _a2, _b;
|
|
138
|
-
const e3 = (_b = (_a2 =
|
|
138
|
+
const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
139
139
|
if (!e3) return;
|
|
140
140
|
e3.querySelectorAll("button").forEach((e4) => {
|
|
141
141
|
const t2 = e4.className.match(/ql-([\w-]+)/);
|
|
142
142
|
if (t2) {
|
|
143
|
-
const
|
|
144
|
-
Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[
|
|
143
|
+
const r2 = t2[1], n2 = `${r2}[value="${e4.value}"]`;
|
|
144
|
+
Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[r2] && e4.setAttribute("data-tooltip", Ce[r2]);
|
|
145
145
|
}
|
|
146
146
|
}), e3.querySelectorAll(".ql-picker").forEach((e4) => {
|
|
147
147
|
const t2 = e4.className.match(/ql-(\w+)/);
|
|
148
148
|
if (t2) {
|
|
149
|
-
const
|
|
150
|
-
if (Ce[
|
|
149
|
+
const r2 = t2[1];
|
|
150
|
+
if (Ce[r2]) {
|
|
151
151
|
const t3 = e4.querySelector(".ql-picker-label");
|
|
152
|
-
t3 && t3.setAttribute("data-tooltip", Ce[
|
|
152
|
+
t3 && t3.setAttribute("data-tooltip", Ce[r2]);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
}(), function() {
|
|
157
157
|
var _a2, _b;
|
|
158
|
-
const e3 = (_b = (_a2 =
|
|
158
|
+
const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
159
159
|
e3 && e3.addEventListener("mousedown", (e4) => {
|
|
160
160
|
e4.preventDefault();
|
|
161
161
|
});
|
|
162
|
-
}(),
|
|
163
|
-
if (!
|
|
164
|
-
const t2 =
|
|
162
|
+
}(), ke(ne), (_a = ie.value) == null ? void 0 : _a.addEventListener("focusout", Le), ae.on("text-change", async function(e3) {
|
|
163
|
+
if (!ae) return;
|
|
164
|
+
const t2 = ae.root.getElementsByTagName("img");
|
|
165
165
|
for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
|
|
166
|
-
const t3 =
|
|
166
|
+
const t3 = Re(e4.src);
|
|
167
167
|
e4.setAttribute("data-uuid", t3);
|
|
168
168
|
}
|
|
169
169
|
if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
|
|
@@ -172,47 +172,47 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
172
172
|
const t4 = e4.image;
|
|
173
173
|
if (!t4.startsWith("data:image")) continue;
|
|
174
174
|
try {
|
|
175
|
-
|
|
176
|
-
const e5 =
|
|
177
|
-
if (!
|
|
178
|
-
const n2 =
|
|
179
|
-
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src =
|
|
175
|
+
ue.value = true;
|
|
176
|
+
const e5 = Ne(t4, "image.png"), r2 = await Fe(e5);
|
|
177
|
+
if (!ae) return;
|
|
178
|
+
const n2 = ae.root.getElementsByTagName("img");
|
|
179
|
+
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = r2.url, e6.setAttribute("data-uuid", r2.uuid));
|
|
180
180
|
} catch (e5) {
|
|
181
|
-
|
|
181
|
+
console.error("上传图片失败", e5), Ae();
|
|
182
182
|
} finally {
|
|
183
|
-
|
|
183
|
+
ue.value = false;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
!function() {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (!
|
|
191
|
-
const e4 =
|
|
192
|
-
|
|
188
|
+
ge && clearTimeout(ge);
|
|
189
|
+
ge = setTimeout(() => {
|
|
190
|
+
if (!ae) return;
|
|
191
|
+
const e4 = Se();
|
|
192
|
+
k(G, K, e4), e4 && (O.value = "");
|
|
193
193
|
}, 300);
|
|
194
|
-
}(),
|
|
195
|
-
}),
|
|
196
|
-
const e3 =
|
|
197
|
-
|
|
194
|
+
}(), qe();
|
|
195
|
+
}), qe(), Me = ae.container, Me.addEventListener("click", He), he(), i(() => {
|
|
196
|
+
const e3 = R(G, K);
|
|
197
|
+
C(e3, $.pageContext, $.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: Te.value, value: e3, entity: $.pageContext.entity.data, pageData: $.pageContext.entity.page });
|
|
198
198
|
}));
|
|
199
199
|
}), n(() => {
|
|
200
|
-
document.addEventListener("keydown",
|
|
201
|
-
}),
|
|
202
|
-
document.removeEventListener("keydown",
|
|
203
|
-
}),
|
|
204
|
-
O.value =
|
|
200
|
+
document.addEventListener("keydown", Ee);
|
|
201
|
+
}), a(() => {
|
|
202
|
+
document.removeEventListener("keydown", Ee), ge && clearTimeout(ge), ie.value && ie.value.removeEventListener("focusout", Le), Me && Me.removeEventListener("click", He);
|
|
203
|
+
}), D2({ addRequiredClass: function() {
|
|
204
|
+
O.value = A();
|
|
205
205
|
}, setContent: function(e3) {
|
|
206
|
-
|
|
206
|
+
ke(e3), qe();
|
|
207
207
|
}, getContent: function() {
|
|
208
|
-
return
|
|
208
|
+
return ae ? ae.root.innerHTML : "";
|
|
209
209
|
} }), (e3, t2) => {
|
|
210
|
-
const
|
|
211
|
-
return u(),
|
|
212
|
-
|
|
213
|
-
}), "url-list": ve.value }, null, 8, ["url-list"])) :
|
|
210
|
+
const r2 = l("View"), n2 = l("el-icon"), i2 = l("FullScreen"), a2 = l("Close"), y2 = l("el-form-item"), T2 = l("el-image-viewer"), M2 = l("el-dialog");
|
|
211
|
+
return u(), o(s, null, [c(y2, { required: ee.value.required, class: m(f(Q) + (O.value ? " " + O.value : "")), "label-width": ee.value.labelWidth, style: p(f(J)) }, h({ default: v(() => [x("div", { class: m(["richtext-wrapper", { "is-fullscreen": le.value }]) }, [x("div", { ref_key: "quillEditorRef", ref: ie, style: { width: "100%" } }, null, 512), x("div", H, [x("button", { type: "button", class: "toolbar-btn", onClick: we, title: f(q)("superPageRuntimeMessage.richTextPreview") }, [c(n2, null, { default: v(() => [c(r2)]), _: 1 })], 8, F), x("button", { type: "button", class: "toolbar-btn", onClick: Pe, title: le.value ? f(q)("superPageRuntimeMessage.richTextExitFullScreen") : f(q)("superPageRuntimeMessage.richTextFullScreenEdit") }, [le.value ? (u(), g(n2, { key: 1 }, { default: v(() => [c(a2)]), _: 1 })) : (u(), g(n2, { key: 0 }, { default: v(() => [c(i2)]), _: 1 }))], 8, N)]), x("div", B, [x("span", I, b(f(q)("superPageRuntimeMessage.richTextWordCount")) + ":" + b(oe.value), 1)]), ue.value ? (u(), o("div", _, [t2[2] || (t2[2] = x("div", { class: "loading-spinner" }, null, -1)), x("span", null, b(f(q)("superPageRuntimeMessage.richTextImageUploading")), 1)])) : d("", true)], 2)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: v(() => [x("div", { style: p({ ...f(X), ...f(Z) }), class: "amb-form-item-label" }, b(f(q)(ee.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), xe.value ? (u(), g(T2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
212
|
+
xe.value = false;
|
|
213
|
+
}), "url-list": ve.value }, null, 8, ["url-list"])) : d("", true), c(M2, { modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => se.value = e4), title: f(q)("superPageRuntimeMessage.richTextContentPreview"), width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: v(() => [x("div", { class: "richtext-preview-content ql-editor", innerHTML: ce.value }, null, 8, U)]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
214
214
|
};
|
|
215
215
|
} });
|
|
216
216
|
export {
|
|
217
|
-
|
|
217
|
+
D as default
|
|
218
218
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./select-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-dbb21bd8"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -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 r, createBlock as u, 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 re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
|
|
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
|
+
ue = 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 = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
62
|
const be = ne.value.monitorFields, xe = [];
|
|
63
63
|
if (be) {
|
|
@@ -118,6 +118,7 @@ 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);
|
|
121
122
|
}), n(() => {
|
|
122
123
|
const e4 = ce.value;
|
|
123
124
|
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 });
|
|
@@ -144,10 +145,10 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
144
145
|
X.value = z();
|
|
145
146
|
}, getSelectItemsTitle: je, getOptions: function() {
|
|
146
147
|
return fe.value;
|
|
147
|
-
} }), (
|
|
148
|
-
const
|
|
149
|
-
return s(),
|
|
150
|
-
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue":
|
|
148
|
+
} }), (l2, t2) => {
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
|
|
150
|
+
return s(), u(k2, { 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(n2, { 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(i2, { 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: t2[0] || (t2[0] = y(h(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ce.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), u(a2, { 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(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(re) }), onClick: (t3) => f(M)(l3.value, e2.pageContext, e2.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(re) ? (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(o2, { 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(), u(I, { key: 0, pageContext: e2.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"]);
|
|
151
152
|
};
|
|
152
153
|
} });
|
|
153
154
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = C();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 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
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./textarea-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-dcb86aec"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -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
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: 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(a2, { 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": l2[0] || (l2[0] = (e3) => B.value = e3), 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: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.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: e2.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 (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|