super-page-runtime 2.3.40-sit1 → 2.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +104 -104
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- 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 +100 -95
- 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/common/task-informition-dialog.vue.js +7 -7
- 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.vue2.js +3 -3
- 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.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -37
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -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 +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
- 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 +10 -8
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +115 -114
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,82 +1,84 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
|
|
2
|
-
import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S,
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { handleFormEvent as
|
|
5
|
-
import { $t as
|
|
6
|
-
import { addRequiredClassUtil as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
let e3 = _(
|
|
2
|
+
import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
7
|
+
const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
|
|
8
|
+
const D = e2, E = t(null), M = D.pageContext.entity ? D.pageContext.entity : {};
|
|
9
|
+
let P = I(D.pageContext, D.configure);
|
|
10
|
+
const W = l({ get() {
|
|
11
|
+
let e3 = _(M, P);
|
|
12
12
|
return null != e3 && (e3 += ""), e3;
|
|
13
13
|
}, set(e3) {
|
|
14
|
-
k(
|
|
15
|
-
} }),
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
k(M, P, e3), null != e3 && (E.value = "");
|
|
15
|
+
} }), F = D.configure.runtime ? D.configure.runtime : {}, U = F.style, $ = F.class, A = F.headerStyle, B = F.titleExceedStyle, G = t(F.props ? F.props : {}), H = t(G.value.options ? G.value.options : []), J = S(D.pageContext, D.configure);
|
|
16
|
+
J.length > 0 && (H.value = J);
|
|
17
|
+
const K = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, L = K.optionValueSetType;
|
|
18
|
+
let N = [];
|
|
19
|
+
if ("dynamicData" == L || "dataTable" == L || "service" == L) {
|
|
20
|
+
if (K.autoSets) for (let e3 of K.autoSets) e3.source && N.push(e3);
|
|
21
|
+
} else "static" == L && R(D.pageContext, D.configure.uuid, H.value);
|
|
22
|
+
D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && N.push({ source: "label", target: D.configure.props.base.optionProp }), G.value.changeMethod = function(e3) {
|
|
23
|
+
if (N.length > 0) {
|
|
22
24
|
let t2 = null;
|
|
23
|
-
|
|
25
|
+
H.value && null != e3 && null != e3 && (t2 = H.value.filter((t3) => e3 === t3.value)), j(D.configure, D.pageContext, N, t2);
|
|
24
26
|
}
|
|
25
|
-
|
|
27
|
+
q(e3, D.pageContext, D.configure, "change");
|
|
26
28
|
};
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
+
const Q = G.value.monitorFields, X = [];
|
|
30
|
+
if (Q) {
|
|
29
31
|
const e3 = [];
|
|
30
|
-
for (let t2 of
|
|
32
|
+
for (let t2 of Q) if (t2.startsWith("${")) {
|
|
31
33
|
t2 = t2.substring(2, t2.length - 1);
|
|
32
34
|
const l2 = t2.split(".");
|
|
33
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (
|
|
35
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (X.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
34
36
|
}
|
|
35
|
-
for (let t2 of e3) o(
|
|
36
|
-
|
|
37
|
+
for (let t2 of e3) o(M[t2], () => {
|
|
38
|
+
le();
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
|
-
function
|
|
41
|
+
function Y() {
|
|
40
42
|
let e3 = "";
|
|
41
|
-
for (let t2 of
|
|
43
|
+
for (let t2 of X) e3 += "_" + _(M, t2);
|
|
42
44
|
return e3;
|
|
43
45
|
}
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
const e3 =
|
|
49
|
-
e3 !=
|
|
46
|
+
let Z = Y(), ee = false;
|
|
47
|
+
const te = G.value.optionconfigInfo ? G.value.optionconfigInfo : {};
|
|
48
|
+
function le() {
|
|
49
|
+
ee && clearTimeout(ee), ee = setTimeout(function() {
|
|
50
|
+
const e3 = Y();
|
|
51
|
+
e3 != Z && (Z = e3, T(D.pageContext, te, void 0).then((e4) => {
|
|
50
52
|
}));
|
|
51
53
|
}, 200);
|
|
52
54
|
}
|
|
53
55
|
n(() => {
|
|
54
|
-
|
|
56
|
+
ee && clearTimeout(ee);
|
|
55
57
|
});
|
|
56
|
-
const
|
|
58
|
+
const oe = t(null), ne = t(null), ae = t(null);
|
|
57
59
|
return a(() => {
|
|
58
60
|
u(() => {
|
|
59
|
-
const e3 =
|
|
60
|
-
|
|
61
|
+
const e3 = W.value;
|
|
62
|
+
V(e3, D.pageContext, D.configure, { formItemRef: oe.value, componentRef: ne.value, titleRef: ae.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
|
|
61
63
|
});
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
+
}), O2({ updateOptions: function(e3) {
|
|
65
|
+
H.value = e3 || [];
|
|
64
66
|
}, addRequiredClass: function() {
|
|
65
|
-
|
|
67
|
+
E.value = z();
|
|
66
68
|
}, getSelectItemsTitle: function() {
|
|
67
|
-
let e3 = _(
|
|
69
|
+
let e3 = _(M, P);
|
|
68
70
|
if (null == e3) return "";
|
|
69
71
|
if (e3 = String(e3), null != e3 && "" !== e3 && e3.length > 0) {
|
|
70
72
|
let t2 = "";
|
|
71
|
-
return
|
|
73
|
+
return H.value.length > 0 ? (H.value.forEach((l2) => {
|
|
72
74
|
l2.value === e3 && (t2 = t2 + l2.label + ",");
|
|
73
75
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
74
76
|
}
|
|
75
|
-
} }), (
|
|
76
|
-
const
|
|
77
|
-
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"]);
|
|
78
80
|
};
|
|
79
81
|
} });
|
|
80
82
|
export {
|
|
81
|
-
|
|
83
|
+
O as default
|
|
82
84
|
};
|
|
@@ -159,7 +159,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
159
159
|
const n2 = oe.root.getElementsByTagName("img");
|
|
160
160
|
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = l2.url, e6.setAttribute("data-uuid", l2.uuid));
|
|
161
161
|
} catch (e5) {
|
|
162
|
-
Ae();
|
|
162
|
+
console.error("上传图片失败", e5), Ae();
|
|
163
163
|
} finally {
|
|
164
164
|
re.value = false;
|
|
165
165
|
}
|
|
@@ -189,7 +189,7 @@ const R = { class: "toolbar-right-btns" }, _ = ["title"], j = { class: "richtext
|
|
|
189
189
|
return oe ? oe.root.innerHTML : "";
|
|
190
190
|
} }), (e3, t2) => {
|
|
191
191
|
const l2 = a("View"), n2 = a("el-icon"), o2 = a("FullScreen"), i2 = a("Close"), x2 = a("el-form-item"), k2 = a("el-image-viewer"), w2 = a("el-dialog");
|
|
192
|
-
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)]))) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
192
|
+
return u(), r(s, null, [c(x2, { required: Z.value.required, class: m(v(J) + (G.value ? " " + G.value : "")), "label-width": Z.value.labelWidth, style: f(v(Y)) }, g({ default: h(() => [b("div", { class: m(["richtext-wrapper", { "is-fullscreen": ie.value }]) }, [b("div", { ref_key: "quillEditorRef", ref: ne, style: { width: "100%" } }, null, 512), b("div", R, [b("button", { type: "button", class: "toolbar-btn", onClick: Se, title: "预览" }, [c(n2, null, { default: h(() => [c(l2)]), _: 1 })]), b("button", { type: "button", class: "toolbar-btn", onClick: Te, title: ie.value ? "退出全屏" : "全屏编辑" }, [ie.value ? (u(), d(n2, { key: 1 }, { default: h(() => [c(i2)]), _: 1 })) : (u(), d(n2, { key: 0 }, { default: h(() => [c(o2)]), _: 1 }))], 8, _)]), b("div", j, [b("span", V, "字数:" + y(ae.value), 1)]), re.value ? (u(), r("div", $, [...t2[2] || (t2[2] = [b("div", { class: "loading-spinner" }, null, -1), b("span", null, "图片上传中...", -1)])])) : p("", true)], 2)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: h(() => [b("div", { style: f({ ...v(Q), ...v(X) }), class: "amb-form-item-label" }, y(v(A)(Z.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), he.value ? (u(), d(k2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
193
193
|
he.value = false;
|
|
194
194
|
}), "url-list": ge.value }, null, 8, ["url-list"])) : p("", true), c(w2, { modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4), title: "内容预览", width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: h(() => [b("div", { class: "richtext-preview-content ql-editor", innerHTML: se.value }, null, 8, z)]), _: 1 }, 8, ["modelValue"])], 64);
|
|
195
195
|
};
|
|
@@ -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-ccac4657"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,155 +1,156 @@
|
|
|
1
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
|
-
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T,
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { handleFormEvent as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
import { CopyDocument as
|
|
9
|
-
import
|
|
10
|
-
import { ElMessage as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
const
|
|
13
|
-
const { t:
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
let e3 =
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
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
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import I from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as E } from "@element-plus/icons-vue";
|
|
9
|
+
import O from "clipboard";
|
|
10
|
+
import { ElMessage as W } from "element-plus";
|
|
11
|
+
import { useI18n as B } from "vue-i18n";
|
|
12
|
+
const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", display: "flex", "align-items": "center" } }, K = { key: 0, style: { display: "flex", "flex-direction": "column" } }, L = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = { style: { float: "left" } }, $ = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, H = "__amb_select_all__", J = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
|
|
13
|
+
const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
|
|
14
|
+
let ee = V(Q.pageContext, Q.configure);
|
|
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 re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
|
|
17
|
+
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
|
+
function pe() {
|
|
19
|
+
let e3 = P(Z, ee);
|
|
20
|
+
return null != e3 && (e3 = String(e3)), ne.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const l2 =
|
|
24
|
-
|
|
22
|
+
const ce = t({ get: () => pe(), set(e3) {
|
|
23
|
+
const l2 = pe();
|
|
24
|
+
ue = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
|
-
if (
|
|
27
|
-
const e4 = (
|
|
26
|
+
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
|
+
const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
28
28
|
t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
t2 = !!
|
|
30
|
+
if (ne.value.multiple) {
|
|
31
|
+
t2 = !!ne.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
|
|
32
32
|
}
|
|
33
|
-
void 0 === t2 && (t2 = null), k(
|
|
34
|
-
} }),
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
const
|
|
39
|
-
if ("dynamicData" ==
|
|
40
|
-
if ("remote" ==
|
|
33
|
+
void 0 === t2 && (t2 = null), k(Z, ee, t2), null != t2 && (X.value = "");
|
|
34
|
+
} }), fe = l(ne.value.options ? ne.value.options : []), ve = A(Q.pageContext, Q.configure);
|
|
35
|
+
ve.length > 0 && (fe.value = ve);
|
|
36
|
+
const ge = l(false), me = Q.configure.props && Q.configure.props.dataOrigin ? Q.configure.props.dataOrigin : {}, de = me.optionValueSetType;
|
|
37
|
+
let ye = [];
|
|
38
|
+
const he = ne.value.optionconfigInfo ? ne.value.optionconfigInfo : {};
|
|
39
|
+
if ("dynamicData" == de || "dataTable" == de || "service" == de) {
|
|
40
|
+
if ("remote" == me.filterType) {
|
|
41
41
|
let e3;
|
|
42
|
-
|
|
43
|
-
e3 !== l2 && (e3 = l2,
|
|
44
|
-
|
|
42
|
+
ne.value.filterable = true, ne.value.remote = true, ne.value.remoteShowSuffix = true, ne.value.remoteMethod = function(l2) {
|
|
43
|
+
e3 !== l2 && (e3 = l2, ge.value = true, T(Q.pageContext, he, l2).then((e4) => {
|
|
44
|
+
ge.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
|
|
46
|
+
ge.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
if (
|
|
51
|
-
}
|
|
52
|
-
|
|
50
|
+
if (me.autoSets) for (let e3 of me.autoSets) e3.source && ye.push(e3);
|
|
51
|
+
} else "static" == de && j(Q.pageContext, Q.configure.uuid, fe.value);
|
|
52
|
+
Q.configure && Q.configure.props && Q.configure.props.base && Q.configure.props.base.optionProp && ye.push({ source: "label", target: Q.configure.props.base.optionProp }), ne.value.changeMethod = function(e3) {
|
|
53
53
|
var _a;
|
|
54
54
|
let l2, t2 = null;
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
fe.value && null != e3 && null != e3 && (((_a = ne.value) == null ? void 0 : _a.multiple) && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H) && (e3 = e3.filter((e4) => e4 !== H)), t2 = fe.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
|
|
56
|
+
ye.length > 0 && R(Q.configure, Q.pageContext, ye, t2, [ne.value.prop]);
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options =
|
|
60
|
+
o2.options = fe.value, o2.oldValue = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const be = ne.value.monitorFields, xe = [];
|
|
63
|
+
if (be) {
|
|
64
64
|
const e3 = [];
|
|
65
|
-
for (let l2 of
|
|
65
|
+
for (let l2 of be) if (l2.startsWith("${")) {
|
|
66
66
|
l2 = l2.substring(2, l2.length - 1);
|
|
67
67
|
const t2 = l2.split(".");
|
|
68
|
-
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (
|
|
68
|
+
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (xe.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
|
|
69
69
|
}
|
|
70
|
-
for (let l2 of e3) o(
|
|
71
|
-
|
|
70
|
+
for (let l2 of e3) o(Z[l2], () => {
|
|
71
|
+
we();
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
let
|
|
75
|
-
function
|
|
76
|
-
|
|
74
|
+
let Ce = "", _e = false;
|
|
75
|
+
function we() {
|
|
76
|
+
_e && clearTimeout(_e), _e = setTimeout(function() {
|
|
77
77
|
const e3 = function() {
|
|
78
78
|
let e4 = [];
|
|
79
|
-
for (let l2 of
|
|
79
|
+
for (let l2 of xe) e4.push(P(Z, l2));
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
|
-
e3 !=
|
|
83
|
-
|
|
82
|
+
e3 != Ce && (Ce = e3, he.watchAttrValue = e3, T(Q.pageContext, he, void 0).then((e4) => {
|
|
83
|
+
ge.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
87
87
|
a(() => {
|
|
88
|
-
|
|
88
|
+
_e && clearTimeout(_e);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
const e3 =
|
|
90
|
+
let Se = false;
|
|
91
|
+
const ke = l(null), Ae = l(null), Te = l(null);
|
|
92
|
+
function je() {
|
|
93
|
+
const e3 = pe();
|
|
94
94
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
95
95
|
let l2 = "";
|
|
96
|
-
return "string" == typeof e3 ?
|
|
96
|
+
return "string" == typeof e3 ? fe.value.length > 0 ? fe.value.forEach((t2) => {
|
|
97
97
|
t2.value === e3 && (l2 = t2.label);
|
|
98
|
-
}) : l2 = e3 :
|
|
98
|
+
}) : l2 = e3 : fe.value.length > 0 ? (fe.value.forEach((t2) => {
|
|
99
99
|
e3.forEach((e4) => {
|
|
100
100
|
t2.value === e4 && (l2 = l2 + t2.label + ",");
|
|
101
101
|
});
|
|
102
102
|
}), l2 = l2.slice(0, l2.length - 1)) : l2 = e3.join(","), l2;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function Re(e3) {
|
|
106
|
+
Y.value = e3;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const e3 =
|
|
108
|
+
function Pe() {
|
|
109
|
+
const e3 = je();
|
|
110
110
|
e3 && navigator.clipboard && navigator.clipboard.writeText(e3).then(() => {
|
|
111
|
-
|
|
111
|
+
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
return i(() => {
|
|
115
|
-
const e3 = new
|
|
116
|
-
return
|
|
115
|
+
const e3 = new O("#" + se, { text: function() {
|
|
116
|
+
return je();
|
|
117
117
|
} });
|
|
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
|
-
const e4 =
|
|
123
|
-
|
|
123
|
+
const e4 = ce.value;
|
|
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 });
|
|
124
125
|
});
|
|
125
|
-
}),
|
|
126
|
-
if (
|
|
127
|
-
const e4 =
|
|
128
|
-
if (null != e4 && "" !== e4 &&
|
|
126
|
+
}), J2({ updateOptions: function(e3) {
|
|
127
|
+
if (fe.value = e3 || [], !Se) {
|
|
128
|
+
const e4 = pe();
|
|
129
|
+
if (null != e4 && "" !== e4 && fe.value.length > 0) {
|
|
129
130
|
let l2 = false;
|
|
130
|
-
for (let t2 of
|
|
131
|
+
for (let t2 of fe.value) if (t2.value == e4) {
|
|
131
132
|
l2 = true;
|
|
132
133
|
break;
|
|
133
134
|
}
|
|
134
135
|
if (!l2) {
|
|
135
|
-
for (let l3 of
|
|
136
|
-
|
|
136
|
+
for (let l3 of fe.value) if (l3.label == e4) {
|
|
137
|
+
ce.value = l3.value;
|
|
137
138
|
break;
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
|
-
|
|
143
|
+
Se = true;
|
|
143
144
|
}, addRequiredClass: function() {
|
|
144
|
-
|
|
145
|
-
}, getSelectItemsTitle:
|
|
146
|
-
return
|
|
147
|
-
} }), (
|
|
148
|
-
const
|
|
149
|
-
return s(), u(
|
|
150
|
-
}, ["stop"]), ["space"])), onChange:
|
|
145
|
+
X.value = z();
|
|
146
|
+
}, getSelectItemsTitle: je, getOptions: function() {
|
|
147
|
+
return fe.value;
|
|
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: 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 {
|
|
154
|
-
|
|
155
|
+
J as default
|
|
155
156
|
};
|
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 {
|
|
@@ -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: 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 {
|