super-page-runtime 2.3.14-sit4 → 2.3.15-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/events/event-util.js +26 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +140 -91
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +64 -55
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +164 -152
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +3 -2
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t,
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
h.value = e3;
|
|
8
|
-
}
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as s, createElementBlock as l, openBlock as o, createVNode as a, withCtx as n, createElementVNode as r, createTextVNode as u, toDisplayString as i } from "vue";
|
|
2
|
+
import { ElMessage as m } from "element-plus";
|
|
3
|
+
import { useI18n as p } from "vue-i18n";
|
|
4
|
+
import d from "./remove-signer-table.vue.js";
|
|
5
|
+
const c = { class: "dialog-footer" }, v = e({ __name: "remove-signer-dialog", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: v2 }) {
|
|
6
|
+
const { t: g } = p(), f = v2, k = t([]), y = t(null);
|
|
9
7
|
function R() {
|
|
10
|
-
0 !==
|
|
8
|
+
k.value = y.value.getSelections(), 0 !== k.value.length ? f("result", k.value) : m({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
|
|
11
9
|
}
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return [];
|
|
16
|
-
}();
|
|
17
|
-
}), (e3, t2) => {
|
|
18
|
-
const l2 = a("el-table-column"), p2 = a("el-table"), m2 = a("el-button"), g3 = a("el-dialog");
|
|
19
|
-
return o(), s("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => b("open")), onOpend: t2[2] || (t2[2] = (e4) => b("opend")), onClose: t2[3] || (t2[3] = (e4) => b("close")), onClosed: t2[4] || (t2[4] = (e4) => b("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: R }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { type: "default", onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: y.value, border: "", style: { width: "100%" }, onSelect: k }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
10
|
+
return (t2, m2) => {
|
|
11
|
+
const p2 = s("el-button"), v3 = s("el-dialog");
|
|
12
|
+
return o(), l("div", null, [a(v3, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: m2[1] || (m2[1] = (e3) => f("open")), onOpend: m2[2] || (m2[2] = (e3) => f("opend")), onClose: m2[3] || (m2[3] = (e3) => f("close")), onClosed: m2[4] || (m2[4] = (e3) => f("closed")) }, { footer: n(() => [r("div", c, [a(p2, { type: "primary", onClick: R }, { default: n(() => [u(i(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(p2, { type: "default", onClick: m2[0] || (m2[0] = (e3) => t2.$emit("close")) }, { default: n(() => [u(i(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: n(() => [a(d, { ref_key: "removeTableRef", ref: y, taskId: e2.taskId, activeTasks: e2.activeTasks }, null, 8, ["taskId", "activeTasks"])]), _: 1 }, 8, ["title"])]);
|
|
20
13
|
};
|
|
21
14
|
} });
|
|
22
15
|
export {
|
|
23
|
-
|
|
16
|
+
v as default
|
|
24
17
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare function getSelections(): any[];
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
taskId: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
activeTasks: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
}>, {
|
|
12
|
+
getSelections: typeof getSelections;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
taskId: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
18
|
+
activeTasks: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {
|
|
23
|
+
taskId: number;
|
|
24
|
+
activeTasks: unknown[];
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as r, openBlock as s, withCtx as n, createVNode as u } from "vue";
|
|
2
|
+
import "element-plus";
|
|
3
|
+
import { useI18n as o } from "vue-i18n";
|
|
4
|
+
const i = e({ __name: "remove-signer-table", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, setup(e2, { expose: i2 }) {
|
|
5
|
+
const { t: p } = o(), c = e2, m = t([]), d = t([]);
|
|
6
|
+
function b(e3) {
|
|
7
|
+
m.value = e3;
|
|
8
|
+
}
|
|
9
|
+
return a(() => {
|
|
10
|
+
d.value = function() {
|
|
11
|
+
if (c.activeTasks && c.taskId) return c.activeTasks.filter((e3) => c.taskId !== e3.taskId);
|
|
12
|
+
return [];
|
|
13
|
+
}();
|
|
14
|
+
}), i2({ getSelections: function() {
|
|
15
|
+
return m.value;
|
|
16
|
+
} }), (e3, t2) => {
|
|
17
|
+
const a2 = l("el-table-column"), o2 = l("el-table");
|
|
18
|
+
return s(), r(o2, { data: d.value, border: "", style: { width: "100%" }, onSelect: b, onSelectAll: b }, { default: n(() => [u(a2, { type: "selection", width: "55" }), u(a2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), u(a2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), u(a2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"]);
|
|
19
|
+
};
|
|
20
|
+
} });
|
|
21
|
+
export {
|
|
22
|
+
i as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
taskId: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
transactorInfo: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
close: (...args: any[]) => void;
|
|
12
|
+
result: (...args: any[]) => void;
|
|
13
|
+
open: (...args: any[]) => void;
|
|
14
|
+
opend: (...args: any[]) => void;
|
|
15
|
+
closed: (...args: any[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
taskId: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
transactorInfo: {
|
|
22
|
+
type: ArrayConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
onClose?: (...args: any[]) => any;
|
|
27
|
+
onResult?: (...args: any[]) => any;
|
|
28
|
+
onOpen?: (...args: any[]) => any;
|
|
29
|
+
onOpend?: (...args: any[]) => any;
|
|
30
|
+
onClosed?: (...args: any[]) => any;
|
|
31
|
+
}>, {
|
|
32
|
+
taskId: number;
|
|
33
|
+
transactorInfo: unknown[];
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as a, createElementBlock as s, openBlock as r, createVNode as o, withCtx as n, createCommentVNode as l, createElementVNode as u, toDisplayString as c, createBlock as i, createTextVNode as m } from "vue";
|
|
2
|
+
import { ElMessage as d } from "element-plus";
|
|
3
|
+
import p from "./remove-signer-table.vue.js";
|
|
4
|
+
import { useI18n as g } from "vue-i18n";
|
|
5
|
+
const f = { key: 0 }, v = { style: { color: "red" } }, k = { key: 1 }, y = { style: { color: "red" } }, I = { key: 2 }, M = { style: { color: "red" } }, b = { key: 3 }, R = { class: "dialog-footer" }, P = e({ __name: "remove-transactor-dialog", props: { taskId: { type: Number, default: null }, transactorInfo: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: P2 }) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const { t: $ } = g(), h = e2, T = P2, N = t([]), _ = t(null), C = t([]);
|
|
8
|
+
function w() {
|
|
9
|
+
N.value = _.value.getSelections(), 0 !== N.value.length ? T("result", N.value) : d({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverTransactors") });
|
|
10
|
+
}
|
|
11
|
+
return C.value = ((_a = h.transactorInfo) == null ? void 0 : _a.removeTransactors) ? (_b = h.transactorInfo) == null ? void 0 : _b.removeTransactors : [], (t2, d2) => {
|
|
12
|
+
const g2 = a("el-button"), P3 = a("el-dialog");
|
|
13
|
+
return r(), s("div", null, [o(P3, { "model-value": "", title: t2.$t("superPageRuntimeMessage.delTransactor"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: d2[1] || (d2[1] = (e3) => T("open")), onOpend: d2[2] || (d2[2] = (e3) => T("opend")), onClose: d2[3] || (d2[3] = (e3) => T("close")), onClosed: d2[4] || (d2[4] = (e3) => T("closed")) }, { footer: n(() => [u("div", R, [e2.transactorInfo.transactorNumber > 1 ? (r(), i(g2, { key: 0, type: "primary", onClick: w }, { default: n(() => [m(c(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 })) : l("", true), o(g2, { type: "default", onClick: d2[0] || (d2[0] = (e3) => t2.$emit("close")) }, { default: n(() => [m(c(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: n(() => [e2.transactorInfo.hasActiveSubProcess ? (r(), s("div", f, [u("span", v, c(t2.$t("superPageRuntimeMessage.taskMeaage1")), 1)])) : l("", true), 0 === e2.transactorInfo.transactorNumber ? (r(), s("div", k, [u("span", y, c(t2.$t("superPageRuntimeMessage.taskMeaage2")), 1)])) : l("", true), 1 === e2.transactorInfo.transactorNumber ? (r(), s("div", I, [u("span", M, c(t2.$t("superPageRuntimeMessage.taskMeaage3")), 1), u("span", null, c(t2.$t("superPageRuntimeMessage.handledBy")) + ":" + c(e2.transactorInfo.transactorName), 1)])) : l("", true), e2.transactorInfo.transactorNumber > 1 ? (r(), s("div", b, [o(p, { ref_key: "removeTableRef", ref: _, taskId: e2.taskId, activeTasks: C.value }, null, 8, ["taskId", "activeTasks"])])) : l("", true)]), _: 1 }, 8, ["title"])]);
|
|
14
|
+
};
|
|
15
|
+
} });
|
|
16
|
+
export {
|
|
17
|
+
P as default
|
|
18
|
+
};
|
|
@@ -1,97 +1,106 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as
|
|
2
|
-
import { setVariableValue as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, createElementBlock as d, Fragment as h, renderList as y, createCommentVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
|
|
2
|
+
import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as k, getVariableValue as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as A } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import V from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
7
|
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
import { CopyDocument as I } from "@element-plus/icons-vue";
|
|
9
|
+
import M from "clipboard";
|
|
10
|
+
const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, P = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, W = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: W2 }) {
|
|
11
|
+
const B = e2, E = t(null), F = B.pageContext.entity ? B.pageContext.entity : {};
|
|
12
|
+
let L = A(B.pageContext, B.configure);
|
|
13
|
+
const U = B.configure.runtime ? B.configure.runtime : {}, $ = U.style, G = U.class, H = U.headerStyle, J = U.titleExceedStyle, K = t(U.props ? U.props : {});
|
|
14
|
+
let N = [];
|
|
15
|
+
const Q = "copyBtn_" + B.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
16
|
+
function X() {
|
|
17
|
+
let e3 = T(F, L);
|
|
18
|
+
return null != e3 && (e3 = String(e3)), K.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
16
19
|
}
|
|
17
|
-
const
|
|
18
|
-
const t2 =
|
|
19
|
-
|
|
20
|
+
const Y = l({ get: () => X(), set(e3) {
|
|
21
|
+
const t2 = X();
|
|
22
|
+
N = Array.isArray(t2) ? [...t2] : t2;
|
|
20
23
|
let l2 = e3;
|
|
21
|
-
if (
|
|
22
|
-
l2 = !!
|
|
24
|
+
if (K.value.multiple) {
|
|
25
|
+
l2 = !!K.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
} }),
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
const
|
|
30
|
-
if ("dynamicData" ==
|
|
31
|
-
if ("remote" ==
|
|
27
|
+
_(F, L, l2), null != l2 && (E.value = "");
|
|
28
|
+
} }), Z = t(K.value.options ? K.value.options : []), ee = w(B.pageContext, B.configure);
|
|
29
|
+
ee.length > 0 && (Z.value = ee);
|
|
30
|
+
const te = t(false), le = B.configure.props && B.configure.props.dataOrigin ? B.configure.props.dataOrigin : {}, oe = le.optionValueSetType;
|
|
31
|
+
let ae = [];
|
|
32
|
+
const ue = K.value.optionconfigInfo ? K.value.optionconfigInfo : {};
|
|
33
|
+
if ("dynamicData" == oe || "dataTable" == oe || "service" == oe) {
|
|
34
|
+
if ("remote" == le.filterType) {
|
|
32
35
|
let e3;
|
|
33
|
-
|
|
34
|
-
e3 !== t2 && (e3 = t2,
|
|
35
|
-
|
|
36
|
+
K.value.filterable = true, K.value.remote = true, K.value.remoteShowSuffix = true, K.value.remoteMethod = function(t2) {
|
|
37
|
+
e3 !== t2 && (e3 = t2, te.value = true, S(B.pageContext, ue, t2).then((e4) => {
|
|
38
|
+
te.value = false;
|
|
36
39
|
}).then((e4) => {
|
|
37
|
-
|
|
40
|
+
te.value = false;
|
|
38
41
|
}));
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
|
-
if (
|
|
44
|
+
if (le.autoSets) for (let e3 of le.autoSets) e3.source && ae.push(e3);
|
|
42
45
|
}
|
|
43
|
-
|
|
46
|
+
B.configure && B.configure.props && B.configure.props.base && B.configure.props.base.optionProp && ae.push({ source: "label", target: B.configure.props.base.optionProp }), K.value.changeMethod = function(e3) {
|
|
44
47
|
let t2, l2 = null;
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
Z.value && null != e3 && null != e3 && (l2 = Z.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
49
|
+
ae.length > 0 && k(B.configure, B.pageContext, ae, l2, [K.value.prop]);
|
|
47
50
|
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
48
51
|
let o2 = {};
|
|
49
52
|
t2 && (o2.extendParams = t2);
|
|
50
|
-
o2.options =
|
|
53
|
+
o2.options = Z.value, o2.oldValue = N, j(e3, B.pageContext, B.configure, "change", o2);
|
|
51
54
|
};
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
55
|
+
const ne = K.value.monitorFields, re = [];
|
|
56
|
+
if (ne) {
|
|
54
57
|
const e3 = [];
|
|
55
|
-
for (let t2 of
|
|
58
|
+
for (let t2 of ne) if (t2.startsWith("${")) {
|
|
56
59
|
t2 = t2.substring(2, t2.length - 1);
|
|
57
60
|
const l2 = t2.split(".");
|
|
58
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (
|
|
61
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (re.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
59
62
|
}
|
|
60
|
-
for (let t2 of e3) o(
|
|
61
|
-
|
|
63
|
+
for (let t2 of e3) o(F[t2], () => {
|
|
64
|
+
pe();
|
|
62
65
|
});
|
|
63
66
|
}
|
|
64
|
-
let
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
+
let ie = "", se = false;
|
|
68
|
+
function pe() {
|
|
69
|
+
se && clearTimeout(se), se = setTimeout(function() {
|
|
67
70
|
const e3 = function() {
|
|
68
71
|
let e4 = [];
|
|
69
|
-
for (let t2 of
|
|
72
|
+
for (let t2 of re) e4.push(T(F, t2));
|
|
70
73
|
return e4.join(",");
|
|
71
74
|
}();
|
|
72
|
-
e3 !=
|
|
73
|
-
|
|
75
|
+
e3 != ie && (ie = e3, ue.watchAttrValue = e3, S(B.pageContext, ue, void 0).then((e4) => {
|
|
76
|
+
te.value = false;
|
|
74
77
|
}));
|
|
75
78
|
}, 200);
|
|
76
79
|
}
|
|
77
80
|
a(() => {
|
|
78
|
-
|
|
81
|
+
se && clearTimeout(se);
|
|
79
82
|
});
|
|
80
|
-
const
|
|
83
|
+
const ce = t(null), fe = t(null), ve = t(null);
|
|
81
84
|
return u(() => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
const e3 = new M("#" + Q, { text: function() {
|
|
86
|
+
var _a;
|
|
87
|
+
return (_a = fe.value) == null ? void 0 : _a.selectedLabel;
|
|
88
|
+
} });
|
|
89
|
+
e3.on("success", () => {
|
|
90
|
+
}), e3.on("error", (e4) => {
|
|
91
|
+
}), n(() => {
|
|
92
|
+
const e4 = Y.value;
|
|
93
|
+
R(e4, B.pageContext, B.configure, { formItemRef: ce.value, componentRef: fe.value, titleRef: ve.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
|
|
85
94
|
});
|
|
86
|
-
}),
|
|
87
|
-
|
|
95
|
+
}), W2({ updateOptions: function(e3) {
|
|
96
|
+
Z.value = e3 || [];
|
|
88
97
|
}, addRequiredClass: function() {
|
|
89
|
-
|
|
98
|
+
E.value = z();
|
|
90
99
|
} }), (e3, t2) => {
|
|
91
|
-
const l2 = r("el-
|
|
92
|
-
return s(),
|
|
100
|
+
const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
|
|
101
|
+
return s(), i(n2, { ref_key: "formItemRef", ref: ce, required: !!K.value.required, class: c(f(G) + (E.value ? " " + E.value : "")), "label-width": K.value.labelWidth, style: p(f($)) }, { label: v(() => [K.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: ve, style: p({ ...f(H), ...f(J) }) }, [K.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: K.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(q)(K.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: fe, style: { width: "100%" }, disabled: "disabled" === K.value.state, size: K.value.size, clearable: K.value.clearable, multiple: K.value.multiple, "collapse-tags": K.value.collapseTags, "collapse-tags-tooltip": K.value.collapseTagsTooltip, filterable: K.value.filterable, "allow-create": K.value.allowCreate, placeholder: K.value.placeholder, "remote-show-suffix": K.value.remoteShowSuffix, remote: K.value.remote, "remote-method": K.value.remoteMethod, loading: te.value, onChange: K.value.changeMethod, modelValue: Y.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => Y.value = e4) }, { default: v(() => [(s(true), d(h, null, y(Z.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: Y.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", P, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "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", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Q }, { default: v(() => [g(f(I))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
93
102
|
};
|
|
94
103
|
} });
|
|
95
104
|
export {
|
|
96
|
-
|
|
105
|
+
W as default
|
|
97
106
|
};
|