super-page-designer 2.2.90 → 2.2.91-sit11
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/design/index.d.ts +2 -1
- package/dist/es/components/design/utils/assemblys-config.js +6 -7
- package/dist/es/components/design/utils/common-util.d.ts +1 -0
- package/dist/es/components/design/utils/common-util.js +14 -9
- package/dist/es/components/design/utils/page-table-util.js +23 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +16 -16
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +27 -27
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +47 -47
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.d.ts +31 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +5 -108
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +111 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +7 -6
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +18 -18
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +46 -46
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +23 -23
- package/dist/es/index.d.ts +1 -2
- package/dist/es/index.js +2 -0
- package/dist/es/style.css +553 -239
- package/package.json +5 -5
- package/dist/es/components/design/index.js +0 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function y() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as default
|
|
4
28
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function y() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, crea
|
|
|
2
2
|
import { getUuidv4 as d } from "../../../../utils/common-util.js";
|
|
3
3
|
import p from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getModelOptionsByFields as m } from "../../../../utils/page-table-util.js";
|
|
5
|
-
const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, c = e({ __name: "parameter-table", props: { data: { type: Array, default: () => [] }, tableConfigure: { type: Object, default: () => [] } }, emits: ["dataChange"], setup(e2, { emit: c2 }) {
|
|
5
|
+
const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, c = e({ __name: "parameter-table", props: { data: { type: Array, default: () => [] }, tableConfigure: { type: Object, default: () => [] } }, emits: ["dataChange", "update:data"], setup(e2, { emit: c2 }) {
|
|
6
6
|
const f = e2, v = c2, g = l(null);
|
|
7
7
|
function b() {
|
|
8
8
|
f.tableConfigure && (g.value = m(f.tableConfigure.modelFields));
|
|
@@ -27,8 +27,8 @@ const s = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
27
27
|
return h.value = f.data, h.value && 0 != h.value.length || h.value.push({ uuid: d(), paramValue: "", paramName: "" }), a(() => h.value, (e3) => {
|
|
28
28
|
if (e3 && e3.length > 0) {
|
|
29
29
|
const l2 = e3.filter((e4) => "" !== e4.paramName);
|
|
30
|
-
v("dataChange", l2);
|
|
31
|
-
} else v("dataChange", []);
|
|
30
|
+
v("dataChange", l2), v("update:data", l2);
|
|
31
|
+
} else v("dataChange", []), v("update:data", []);
|
|
32
32
|
}, { deep: true }), (e3, l2) => {
|
|
33
33
|
const a2 = t("Top"), d2 = t("el-icon"), m2 = t("Bottom"), c3 = t("el-table-column"), f2 = t("el-input"), v2 = t("Plus"), b2 = t("Delete"), V = t("el-table");
|
|
34
34
|
return u(), o(V, { data: h.value, "row-key": "uuid", style: { width: "100%" } }, { default: r(() => [n(c3, { label: "", width: "32" }, { default: r((e4) => [i("div", s, [n(d2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e5) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as a, onMounted as u, resolveComponent as o, createElementBlock as d, openBlock as
|
|
2
|
-
import { Search as V, Close as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, onMounted as u, resolveComponent as o, createElementBlock as d, openBlock as i, Fragment as n, createVNode as p, withDirectives as t, createBlock as s, createCommentVNode as m, withCtx as g, createTextVNode as v, withModifiers as r, unref as b, renderList as c, vShow as f, toDisplayString as y } from "vue";
|
|
2
|
+
import { Search as V, Close as P } from "@element-plus/icons";
|
|
3
|
+
import j from "./linkpage-page-callback.vue.js";
|
|
4
4
|
import M from "../../common/common-select-page.vue.js";
|
|
5
5
|
import T from "./parameter-table.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getModelOptionsByFields as
|
|
6
|
+
import k from "../../common/common-variable-bind.vue.js";
|
|
7
|
+
import C from "./condition.vue.js";
|
|
8
|
+
import _ from "../../common/common-icon-bind.vue.js";
|
|
9
|
+
import h from "../../common/common-i18n-key-input.vue.js";
|
|
10
|
+
import { getModelOptionsByFields as O } from "../../../../utils/page-table-util.js";
|
|
11
11
|
const U = e({ __name: "suffixmodule", props: { configure: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true }, showDisplayConditions: { type: Boolean, default: true } }, setup(e2) {
|
|
12
12
|
const U2 = e2, D = l(null), w = l({});
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
!
|
|
16
|
-
const
|
|
17
|
-
|
|
13
|
+
let A;
|
|
14
|
+
const B = U2.pageDesign ? U2.pageDesign.pageType : null;
|
|
15
|
+
!B || "form" !== B && "list" !== B || (A = U2.pageDesign.modelFields);
|
|
16
|
+
const N = l(null);
|
|
17
|
+
A && A.length > 0 && (N.value = O(A));
|
|
18
18
|
const x = l(null);
|
|
19
|
-
U2.tableConfigure && (x.value =
|
|
19
|
+
U2.tableConfigure && (x.value = O(U2.tableConfigure.modelFields)), U2.isDialog ? w.value = U2.configure : (U2.configure.props.linkPage || (U2.configure.props.linkPage = {}), Array.isArray(U2.configure.props.linkPage) && U2.configure.props.linkPage.length > 0 && (w.value = U2.configure.props.linkPage[0]), w.value = U2.configure.props.linkPage), void 0 === w.value.linkType && (w.value.linkType = "page"), void 0 === w.value.isNewPage && (w.value.isNewPage = true), w.value.dynamicTags || (w.value.dynamicTags = []), w.value.buttonDisplayConditionsList || (w.value.buttonDisplayConditionsList = []), void 0 === w.value.alignCenter && (w.value.alignCenter = true);
|
|
20
20
|
const F = [{ label: "弹窗", value: "popup" }, { label: "新页签", value: "newTab" }, { label: "局部刷新", value: "refresh" }], W = [{ label: "弹窗", value: "popup" }, { label: "局部刷新", value: "refresh" }], L = [{ label: "弹框", value: "dialog" }, { label: "抽屉", value: "drawer" }], R = [{ label: "右到左", value: "rtl" }, { label: "左到右", value: "ltr" }, { label: "上到下", value: "ttb" }, { label: "下到上", value: "btt" }], z = l(null);
|
|
21
21
|
function E() {
|
|
22
22
|
U2.tableConfigure && z.value && z.value.changeTableFields(U2.tableConfigure.modelFields);
|
|
@@ -47,12 +47,12 @@ const U = e({ __name: "suffixmodule", props: { configure: {}, pageDesign: {}, ta
|
|
|
47
47
|
q.value = e3, w.value.dynamicTags.push(e3);
|
|
48
48
|
}
|
|
49
49
|
return (e3, l2) => {
|
|
50
|
-
const a2 = o("el-radio"), u2 = o("el-form-item"),
|
|
51
|
-
return
|
|
50
|
+
const a2 = o("el-radio"), u2 = o("el-form-item"), O2 = o("el-button"), U3 = o("el-input"), A2 = o("el-radio-group"), B2 = o("el-option"), E2 = o("el-select"), K = o("el-switch"), Q = o("el-tag"), X = o("el-divider");
|
|
51
|
+
return i(), d(n, null, [p(A2, { modelValue: w.value.linkType, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => w.value.linkType = e4) }, { default: g(() => [p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "" }, { default: g(() => l2[19] || (l2[19] = [v("无跳转 ")])), _: 1 })]), _: 1 }), p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "page" }, { default: g(() => l2[20] || (l2[20] = [v("跳转页面")])), _: 1 })]), default: g(() => [p(U3, { disabled: "page" != w.value.linkType, modelValue: w.value.jumpPageName, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => w.value.jumpPageName = e4), title: w.value.jumpPageCode, onClick: r(H, ["stop"]), readonly: "true" }, { append: g(() => [p(O2, { type: "default", disabled: "page" != w.value.linkType, icon: b(V), onClick: H, size: "small" }, null, 8, ["disabled", "icon"]), p(O2, { type: "default", disabled: "page" != w.value.linkType, icon: b(P), onClick: I, title: "Clear", size: "small" }, null, 8, ["disabled", "icon"])]), _: 1 }, 8, ["disabled", "modelValue", "title"])]), _: 1 }), p(u2, { class: "amb-design-attr-item", style: { width: "100%" } }, { label: g(() => [p(a2, { value: "url" }, { default: g(() => l2[21] || (l2[21] = [v("跳转地址")])), _: 1 })]), default: g(() => [p(U3, { disabled: "url" != w.value.linkType, modelValue: w.value.jumpAddress, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => w.value.jumpAddress = e4), clearable: "" }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), p(u2, { label: "打开方式", class: "amb-design-attr-item" }, { default: g(() => [p(E2, { modelValue: w.value.jumpPageOpenMode, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => w.value.jumpPageOpenMode = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(F, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), p(u2, { label: "移动端打开", class: "amb-design-attr-item" }, { default: g(() => [p(E2, { modelValue: w.value.jumpPageMobileOpenMode, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => w.value.jumpPageMobileOpenMode = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(W, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), t(p(u2, { label: "弹框方式", class: "amb-design-attr-item" }, { default: g(() => [p(E2, { modelValue: w.value.dialogType, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => w.value.dialogType = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(L, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "可拖拽", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.draggable, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => w.value.draggable = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, !("popup" != w.value.jumpPageOpenMode && "popup" != w.value.jumpPageMobileOpenMode || w.value.dialogType && "dialog" !== w.value.dialogType)]]), t(p(u2, { label: "显示位置", class: "amb-design-attr-item" }, { default: g(() => [p(E2, { modelValue: w.value.showPosition, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => w.value.showPosition = e4), clearable: "", placeholder: "请选择" }, { default: g(() => [(i(), d(n, null, c(R, (e4, l3) => p(B2, { key: l3, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[f, ("popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode) && w.value.dialogType && "drawer" === w.value.dialogType]]), t(p(u2, { label: "拖出可视区", title: "拖动范围可以超出可视区", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.overflow, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => w.value.overflow = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, !("popup" != w.value.jumpPageOpenMode && "popup" != w.value.jumpPageMobileOpenMode || w.value.dialogType && "dialog" !== w.value.dialogType)]]), t(p(u2, { label: "弹窗标题", class: "amb-design-attr-item" }, { default: g(() => [p(h, { modelValue: w.value.jumpPageTitle, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => w.value.jumpPageTitle = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "是否全屏", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.fullscreen, "onUpdate:modelValue": l2[10] || (l2[10] = (e4) => w.value.fullscreen = e4), disabled: !("dialog" === w.value.dialogType) }, null, 8, ["modelValue", "disabled"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "是否居中", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.alignCenter, "onUpdate:modelValue": l2[11] || (l2[11] = (e4) => w.value.alignCenter = e4), disabled: !("dialog" === w.value.dialogType) }, null, 8, ["modelValue", "disabled"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "弹窗宽度", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.jumpPageWidth, "onUpdate:modelValue": l2[12] || (l2[12] = (e4) => w.value.jumpPageWidth = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "弹窗高度", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.jumpPageHeight, "onUpdate:modelValue": l2[13] || (l2[13] = (e4) => w.value.jumpPageHeight = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "关闭事件", class: "amb-design-attr-item" }, { default: g(() => [p(U3, { modelValue: w.value.closeEvent, "onUpdate:modelValue": l2[14] || (l2[14] = (e4) => w.value.closeEvent = e4), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), t(p(u2, { label: "关闭后刷新", title: "关闭页面时是否刷新父页面", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.isRefreshWhenClosePopup, "onUpdate:modelValue": l2[15] || (l2[15] = (e4) => w.value.isRefreshWhenClosePopup = e4) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "popup" == w.value.jumpPageOpenMode || "popup" == w.value.jumpPageMobileOpenMode]]), e3.isButton && e3.showDisplayConditions ? (i(), s(u2, { key: 0, label: "显示判断", class: "amb-design-attr-item" }, { default: g(() => [p(C, { title: "显示判断", list: w.value.buttonDisplayConditionsList, ref_key: "conditionRef", ref: z }, null, 8, ["list"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 1, label: "显示文本", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.displayTextJudge, "onUpdate:modelValue": l2[16] || (l2[16] = (e4) => w.value.displayTextJudge = e4) }, null, 8, ["modelValue"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 2, label: "图标", class: "amb-design-attr-item" }, { default: g(() => [p(_, { iconType: w.value.iconType, iconValue: w.value.icon, "onUpdate:modelValue": l2[17] || (l2[17] = (e4, l3) => function(e5, l4) {
|
|
52
52
|
w.value.iconType = e5, w.value.icon = l4;
|
|
53
|
-
}(e4, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 })) :
|
|
53
|
+
}(e4, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 })) : m("", true), e3.isButton ? (i(), s(u2, { key: 3, label: "显示值", class: "amb-design-attr-item" }, { default: g(() => [p(k, { isTable: e3.configure.isTable, modelValue: q.value, dataModelOptions: N.value, objModelOptions: x.value, "onUpdate:modelValue": G }, null, 8, ["isTable", "modelValue", "dataModelOptions", "objModelOptions"])]), _: 1 })) : m("", true), (i(true), d(n, null, c(w.value.dynamicTags, (e4, l3) => (i(), s(Q, { key: l3, "disable-transitions": true, closable: "", onClose: (e5) => function(e6, l4) {
|
|
54
54
|
w.value.dynamicTags.splice(l4, 1);
|
|
55
|
-
}(0, l3) }, { default: g(() => [v(y(e4), 1)]), _: 2 }, 1032, ["onClose"]))), 128)), p(X, null, { default: g(() => l2[22] || (l2[22] = [v("附加参数")])), _: 1 }), e3.isButton ? (
|
|
55
|
+
}(0, l3) }, { default: g(() => [v(y(e4), 1)]), _: 2 }, 1032, ["onClose"]))), 128)), p(X, null, { default: g(() => l2[22] || (l2[22] = [v("附加参数")])), _: 1 }), e3.isButton ? (i(), s(u2, { key: 4, label: "自动拼接id", class: "amb-design-attr-item" }, { default: g(() => [p(K, { modelValue: w.value.isNeedId, "onUpdate:modelValue": l2[18] || (l2[18] = (e4) => w.value.isNeedId = e4) }, null, 8, ["modelValue"])]), _: 1 })) : m("", true), p(T, { data: w.value.jumpPageAdditional, tableConfigure: e3.tableConfigure, onDataChange: J }, null, 8, ["data", "tableConfigure"]), p(j, { linkPage: w.value }, null, 8, ["linkPage"]), p(M, { ref_key: "selectPageDialog", ref: D, onSelectPage: S, systemCode: e3.pageDesign.systemCode, systemVersion: e3.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as o, withCtx as i, createVNode as s, createElementVNode as
|
|
1
|
+
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as o, withCtx as i, createVNode as s, createElementVNode as r, createTextVNode as u, toDisplayString as p } from "vue";
|
|
2
2
|
import "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
|
-
import
|
|
4
|
+
import d from "../../common/common-attr-size.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "uuid";
|
|
7
7
|
import m from "../../common/common-i18n-key-input.vue.js";
|
|
@@ -11,8 +11,8 @@ const f = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { padding: "8p
|
|
|
11
11
|
} } }, setup(e2) {
|
|
12
12
|
const v2 = a([]);
|
|
13
13
|
return (a2, V) => {
|
|
14
|
-
const _ = l("el-form-item"), x = l("el-input"), h = l("el-radio"),
|
|
15
|
-
return o(), t(z, { "label-width": "80px", size: "small" }, { default: i(() => [s(w, { modelValue: v2.value, "onUpdate:modelValue": V[
|
|
14
|
+
const _ = l("el-form-item"), x = l("el-input"), h = l("el-radio"), U = l("el-radio-group"), j = l("el-collapse-item"), y = l("el-checkbox"), w = l("el-collapse"), z = l("el-form");
|
|
15
|
+
return o(), t(z, { "label-width": "80px", size: "small" }, { default: i(() => [s(w, { modelValue: v2.value, "onUpdate:modelValue": V[8] || (V[8] = (e3) => v2.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [s(j, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [r("div", f, [s(_, { label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [u(p(e2.configure.label) + "(" + p(e2.configure.name) + ") ", 1)]), _: 1 }), s(_, { label: "组件名", class: "amb-design-attr-item" }, { default: i(() => [s(x, { modelValue: e2.configure.props.base.name, "onUpdate:modelValue": V[0] || (V[0] = (a3) => e2.configure.props.base.name = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(_, { label: "绑定变量", class: "amb-design-attr-item" }, { default: i(() => [s(x, { modelValue: e2.configure.props.base.prop, "onUpdate:modelValue": V[1] || (V[1] = (a3) => e2.configure.props.base.prop = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(_, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [s(m, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V[2] || (V[2] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), s(_, { label: "标题宽度", class: "amb-design-attr-item" }, { default: i(() => [s(x, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V[3] || (V[3] = (a3) => e2.configure.props.base.titleWidth = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(_, { label: "标题显示", class: "amb-design-attr-item" }, { default: i(() => [s(U, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V[4] || (V[4] = (a3) => e2.configure.props.base.tittleShow = a3), class: "ml-4" }, { default: i(() => [s(h, { value: false }, { default: i(() => V[9] || (V[9] = [u("隐藏")])), _: 1 }), s(h, { value: true }, { default: i(() => V[10] || (V[10] = [u("显示")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(_, { label: "状态", class: "amb-design-attr-item" }, { default: i(() => [s(U, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V[5] || (V[5] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: i(() => [s(h, { value: "default" }, { default: i(() => V[11] || (V[11] = [u("普通")])), _: 1 }), s(h, { value: "disabled" }, { default: i(() => V[12] || (V[12] = [u("禁用")])), _: 1 }), s(h, { value: "hidden" }, { default: i(() => V[13] || (V[13] = [u("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(j, { title: "参数", name: "parameter", class: "amb-design-attr-group-header" }, { default: i(() => [r("div", g, [s(n, { data: e2.configure.props.parameter, "onUpdate:data": V[6] || (V[6] = (a3) => e2.configure.props.parameter = a3) }, null, 8, ["data"])])]), _: 1 }), s(j, { title: "校验", name: "verification", class: "amb-design-attr-group-header" }, { default: i(() => [r("div", b, [s(_, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [s(y, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V[7] || (V[7] = (a3) => e2.configure.props.verification.required = a3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), s(_, { class: "amb-design-attr-item", "label-width": "0" }, { default: i(() => [s(c, { pageDesign: e2.pageDesign, verification: e2.configure.props.verification }, null, 8, ["pageDesign", "verification"])]), _: 1 })])]), _: 1 }), s(d, { size: e2.configure.props.size }, null, 8, ["size"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
16
16
|
};
|
|
17
17
|
} });
|
|
18
18
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, createElementBlock as o, openBlock as r, createVNode as u, createElementVNode as n, unref as a, isRef as s, withDirectives as
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as o, openBlock as r, createVNode as u, createElementVNode as n, unref as a, isRef as s, withDirectives as i, vShow as c } from "vue";
|
|
2
2
|
import l from "./custom-attr-base.vue.js";
|
|
3
3
|
import m from "./custom-attr-style.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
4
|
+
import g from "../common/attr-header.vue.js";
|
|
5
|
+
import f from "./custom-attr-event.vue.js";
|
|
6
|
+
import p from "./custom-attr-advanced.vue.js";
|
|
7
|
+
const d = { class: "amb-design-attr-content" }, v = { class: "amb-design-attr-list" }, b = e({ __name: "custom-attr", props: { configure: { type: Object, default: () => ({ title: "Text", props: { type: "input-text" } }) }, pageDesign: { type: Object, default: () => ({}) } }, setup(e2) {
|
|
8
8
|
let b2 = t("base");
|
|
9
|
-
return (t2, j) => (r(), o("div",
|
|
9
|
+
return (t2, j) => (r(), o("div", d, [u(g, { modelValue: a(b2), "onUpdate:modelValue": j[0] || (j[0] = (e3) => s(b2) ? b2.value = e3 : b2 = e3) }, null, 8, ["modelValue"]), n("div", v, [i(u(l, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"]), [[c, "base" === a(b2)]]), i(u(m, { configure: e2.configure }, null, 8, ["configure"]), [[c, "style" === a(b2)]]), i(u(f, { configure: e2.configure }, null, 8, ["configure"]), [[c, "event" === a(b2)]]), i(u(p, { configure: e2.configure }, null, 8, ["configure"]), [[c, "advanced" == a(b2)]])])]));
|
|
10
10
|
} });
|
|
11
11
|
export {
|
|
12
12
|
b as default
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as r, withCtx as u, createElementVNode as s, createVNode as n, unref as
|
|
1
|
+
import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as r, withCtx as u, createElementVNode as s, createVNode as n, unref as i, createElementBlock as p, Fragment as d, renderList as m, withDirectives as c, vShow as f } from "vue";
|
|
2
2
|
import { Plus as b, Delete as g } from "@element-plus/icons-vue";
|
|
3
|
-
import { getUuidv4 as
|
|
4
|
-
import
|
|
3
|
+
import { getUuidv4 as v } from "../../../../utils/common-util.js";
|
|
4
|
+
import y from "../../common/common-variable-bind.vue.js";
|
|
5
5
|
const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-autoset", props: { configure: { type: Object, default: {} }, isTable: { type: Boolean } }, setup(e2) {
|
|
6
6
|
const w2 = e2;
|
|
7
7
|
w2.configure.props || (w2.configure.props = {}), w2.configure.props.base || (w2.configure.props.base = {}), w2.configure.props.base.otherFieldSets || (w2.configure.props.base.otherFieldSets = []);
|
|
8
8
|
const T = w2.configure.props.base, _ = T.otherFieldSets;
|
|
9
|
-
0 == _.length &&
|
|
9
|
+
0 == _.length && x(null);
|
|
10
10
|
const V = l(() => {
|
|
11
11
|
let e3 = w2.configure.props.base.treeType;
|
|
12
12
|
return e3 = e3 || "DeptUserTree", e3.includes("User") ? "user" : "dept";
|
|
13
|
-
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "
|
|
13
|
+
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
|
|
14
14
|
function C(e3) {
|
|
15
15
|
let l2 = -1;
|
|
16
16
|
const t2 = _.length;
|
|
@@ -20,26 +20,26 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
|
|
|
20
20
|
}
|
|
21
21
|
return l2;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function x(e3) {
|
|
24
24
|
let l2 = -1;
|
|
25
25
|
e3 && (l2 = C(e3));
|
|
26
|
-
const t2 = { uuid:
|
|
26
|
+
const t2 = { uuid: v(), source: "", target: "" };
|
|
27
27
|
_.splice(l2 + 1, 0, t2);
|
|
28
28
|
}
|
|
29
|
-
let
|
|
29
|
+
let D;
|
|
30
30
|
return t(() => {
|
|
31
|
-
|
|
31
|
+
D && clearTimeout(D);
|
|
32
32
|
}), (l2, t2) => {
|
|
33
|
-
const
|
|
34
|
-
return r(), o(S, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", h, [n(I, { data:
|
|
33
|
+
const v2 = a("el-option"), w3 = a("el-select"), U = a("el-table-column"), F = a("el-icon"), I = a("el-table"), S = a("el-collapse-item");
|
|
34
|
+
return r(), o(S, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", h, [n(I, { data: i(T).otherFieldSets }, { default: u(() => [n(U, { prop: "label", label: "字段", width: "90" }, { default: u((e3) => [n(w3, { size: "small", modelValue: e3.row.source, "onUpdate:modelValue": (l3) => e3.row.source = l3, title: e3.row.source, filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择" }, { default: u(() => [(r(), p(d, null, m(k, (e4) => c(n(v2, { key: e4.name, label: e4.name, value: e4.value }, null, 8, ["label", "value"]), [[f, e4.types.includes(V.value)]])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(U, { prop: "value", label: "设置到", width: "120" }, { default: u((l3) => [n(y, { isTable: e2.configure.isTable, modelValue: l3.row.target, paramTypes: ["data", "page"], "onUpdate:modelValue": (e3) => function(e4, l4) {
|
|
35
35
|
l4.target = e4;
|
|
36
|
-
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: u((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) =>
|
|
37
|
-
|
|
36
|
+
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: u((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => x(e3.row) }, { default: u(() => [n(i(b))]), _: 2 }, 1032, ["onClick"]), n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
37
|
+
D && clearTimeout(D);
|
|
38
38
|
let l4 = C(e4);
|
|
39
|
-
l4 > -1 && (_.splice(l4, 1), 0 == _.length && (
|
|
40
|
-
|
|
39
|
+
l4 > -1 && (_.splice(l4, 1), 0 == _.length && (D = setTimeout(function() {
|
|
40
|
+
x(null);
|
|
41
41
|
}, 10)));
|
|
42
|
-
}(e3.row) }, { default: u(() => [n(
|
|
42
|
+
}(e3.row) }, { default: u(() => [n(i(g))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./object-design.vue3.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = o(e, [["__scopeId", "data-v-309a3fe8"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s, createElementVNode as u, createVNode as r, withCtx as m, unref as p, isRef as d,
|
|
2
|
-
import { Search as
|
|
3
|
-
import { ElMessageBox as
|
|
4
|
-
import { getDesignConfByName as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, onMounted as a, onUnmounted as n, resolveComponent as o, createElementBlock as i, openBlock as s, createElementVNode as u, createVNode as r, withCtx as m, unref as p, isRef as d, toDisplayString as c, withDirectives as v, withModifiers as f, createTextVNode as g, vShow as b } from "vue";
|
|
2
|
+
import { Search as h } from "@element-plus/icons-vue";
|
|
3
|
+
import { ElMessageBox as w } from "element-plus";
|
|
4
|
+
import { getDesignConfByName as x } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import C from "../view/assemblys-container-explore.vue.js";
|
|
6
6
|
import { deepCopy as _ } from "../../../utils/common-util.js";
|
|
7
|
-
import
|
|
8
|
-
import { usePageContextStore as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
7
|
+
import y from "../../../utils/eventBus.js";
|
|
8
|
+
import { usePageContextStore as k } from "../../../../../stores/page-store.js";
|
|
9
|
+
const E = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, V = { style: { "padding-top": "10px" } }, j = ["title"], $ = ["title"], L = { key: 0 }, T = { key: 1 }, U = ["title"], z = ["title"], S = ["title"], B = e({ __name: "page-event-container", props: { configure: {}, configureObj: {}, editEvent: {} }, emits: ["add-event", "change-event"], setup(e2, { expose: B2, emit: I }) {
|
|
10
|
+
const N = k(), P = l(null), W = l(), D = l(false);
|
|
11
|
+
let F = l(["searchCollapse", "addCollapse", "unUseEventCollapse"]), O = l(null), R = l("");
|
|
12
|
+
const H = t(() => {
|
|
13
13
|
let e3 = "";
|
|
14
|
-
const l2 =
|
|
14
|
+
const l2 = O.value;
|
|
15
15
|
if ("page" === (l2 && "page" != l2.name ? l2.name : "page")) e3 = "页面";
|
|
16
16
|
else if (e3 = l2 && l2.label ? l2.label : "", l2 && l2.props && l2.props.base) {
|
|
17
17
|
const t2 = l2.props.base.title;
|
|
@@ -19,22 +19,22 @@ const V = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, j =
|
|
|
19
19
|
}
|
|
20
20
|
return e3;
|
|
21
21
|
});
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
let e3 =
|
|
22
|
+
let M = t(() => P.value && P.value.customEvents ? P.value.customEvents.filter((e3) => "customFunc" == e3.name) : []);
|
|
23
|
+
const q = t(() => {
|
|
24
|
+
let e3 = O.value ? O.value.name : null;
|
|
25
25
|
e3 = e3 || "page";
|
|
26
|
-
const l2 =
|
|
26
|
+
const l2 = O.value ? O.value.uuid : null;
|
|
27
27
|
let t2 = [];
|
|
28
28
|
const a2 = [];
|
|
29
|
-
if (
|
|
29
|
+
if (P.value && P.value.customEvents) for (let n3 of P.value.customEvents) "customFunc" != n3.name && ("page" !== e3 && n3.uuid !== l2 || (t2.push(n3), a2.includes(n3.name) || a2.push(n3.name)));
|
|
30
30
|
let n2 = null;
|
|
31
|
-
if (n2 = "page" == e3 ?
|
|
31
|
+
if (n2 = "page" == e3 ? P.value ? P.value.events : null : O.value ? O.value.events : null, n2) {
|
|
32
32
|
for (let l4 of n2) {
|
|
33
|
-
l4.componentUuid || (l4.componentUuid =
|
|
33
|
+
l4.componentUuid || (l4.componentUuid = O.value && O.value.uuid ? O.value.uuid : "page"), l4.componentLabel || (l4.componentLabel = "page" == e3 ? "页面" : O.value ? O.value.label : "");
|
|
34
34
|
let n3 = "";
|
|
35
|
-
|
|
35
|
+
O.value && O.value.props && O.value.props.base && (n3 = O.value.props.base.title), l4.title = n3, a2.includes(l4.name) || (t2.push(l4), a2.push(l4.name));
|
|
36
36
|
}
|
|
37
|
-
let l3 =
|
|
37
|
+
let l3 = x(e3);
|
|
38
38
|
const o2 = [];
|
|
39
39
|
if (l3 && l3.events && l3.events.length > 0) {
|
|
40
40
|
for (let e4 of l3.events) if (o2.push(e4.name), !a2.includes(e4.name)) {
|
|
@@ -49,46 +49,46 @@ const V = { class: "amb-design-assembly-content", ref: "ambPageEventList" }, j =
|
|
|
49
49
|
}
|
|
50
50
|
} else t2 = [];
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (R.value) {
|
|
53
53
|
const e4 = [];
|
|
54
|
-
for (let l3 of t2) (l3.name && l3.name.includes(
|
|
54
|
+
for (let l3 of t2) (l3.name && l3.name.includes(R.value) || l3.label && l3.label.includes(R.value)) && e4.push(l3);
|
|
55
55
|
return e4;
|
|
56
56
|
}
|
|
57
57
|
return t2;
|
|
58
|
-
}),
|
|
58
|
+
}), A = l([]);
|
|
59
|
+
function G(e3) {
|
|
60
|
+
P.value = e3, A.value = e3 && e3.items ? e3.items : [], Y(null, null);
|
|
61
|
+
}
|
|
59
62
|
function J(e3) {
|
|
60
|
-
|
|
63
|
+
w.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
64
|
+
y.$emit("clearEvent", e3);
|
|
65
|
+
});
|
|
61
66
|
}
|
|
62
67
|
function K(e3) {
|
|
63
|
-
|
|
64
|
-
k.$emit("clearEvent", e3);
|
|
65
|
-
});
|
|
68
|
+
y.$emit("editEvent", e3);
|
|
66
69
|
}
|
|
67
70
|
function Q(e3) {
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
function X(e3) {
|
|
71
|
-
k.$emit("editEvent", e3);
|
|
71
|
+
y.$emit("editEvent", e3);
|
|
72
72
|
}
|
|
73
|
-
let
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
let X;
|
|
74
|
+
function Y(e3, l2) {
|
|
75
|
+
O.value = l2, D.value = false;
|
|
76
76
|
}
|
|
77
77
|
return a(() => {
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
G(N.pageContext), W.value = window.innerHeight - 220;
|
|
79
|
+
}), y.$on("changePageDesign", () => {
|
|
80
|
+
G(N.pageContext);
|
|
81
|
+
}), y.$on("editComponentEvent", (e3) => {
|
|
82
|
+
X && clearTimeout(X), O.value = e3.configureObj, X = setTimeout(function() {
|
|
83
|
+
y.$emit("editEvent", e3.event);
|
|
84
84
|
}, 100);
|
|
85
85
|
}), n(() => {
|
|
86
|
-
|
|
87
|
-
}),
|
|
88
|
-
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"),
|
|
89
|
-
return s(), i("div",
|
|
86
|
+
X && clearTimeout(X), y.$off("changePageDesign"), y.$off("editComponentEvent");
|
|
87
|
+
}), B2({}), (e3, l2) => {
|
|
88
|
+
const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), w2 = o("el-table-column"), x2 = o("el-table"), _2 = o("el-collapse-item"), y2 = o("el-collapse");
|
|
89
|
+
return s(), i("div", E, [u("div", null, [u("div", V, [r(n2, { placement: "right", width: 300, visible: D.value, trigger: "manual" }, { reference: m(() => [r(a2, { size: "small", modelValue: H.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => H.value = e4), placeholder: "请选择组件", readonly: "", clearable: "", onClick: l2[2] || (l2[2] = (e4) => D.value = !D.value) }, { append: m(() => [r(t2, { type: "info", icon: p(h), circle: "", text: "", onClick: l2[0] || (l2[0] = (e4) => D.value = !D.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"])]), default: m(() => [r(C, { onSelectComponent: Y, treeMarginTop: "", headerSearchClass: "custom", designItems: A.value, selectWidget: e3.selectWidget }, null, 8, ["designItems", "selectWidget"])]), _: 1 }, 8, ["visible"])])]), u("div", null, [r(y2, { modelValue: p(F), "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => d(F) ? F.value = e4 : F = e4), style: { "margin-top": "10px" } }, { default: m(() => [r(_2, { class: "amb-assembly-collapse-header", name: "searchCollapse", title: "事件列表" }, { default: m(() => [u("div", null, [r(a2, { modelValue: p(R), "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => d(R) ? R.value = e4 : R = e4), placeholder: "名称/别名...", clearable: "", class: "input-with-select", style: { "margin-top": "10px", "margin-bottom": "10px" }, "suffix-icon": p(h) }, null, 8, ["modelValue", "suffix-icon"]), r(x2, { size: "small", data: q.value, style: { width: "100%" }, "max-height": W.value, "highlight-current-row": "", onRowClick: Q }, { default: m(() => [r(w2, { label: "名称", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.name }, c(e4.row.name), 9, j)]), _: 1 }), r(w2, { label: "别名", width: "60" }, { default: m((e4) => [u("span", { title: e4.row.label }, c(e4.row.label), 9, $)]), _: 1 }), r(w2, { label: "组件", width: "120", align: "left" }, { default: m((e4) => [e4.row.title || e4.row.componentLabel ? (s(), i("span", L, c(e4.row.title ? e4.row.title + "(" + e4.row.componentLabel + ")" : e4.row.componentLabel), 1)) : (s(), i("span", T, c(p(O) ? p(O).label : "页面"), 1))]), _: 1 }), r(w2, { label: "备注" }, { default: m((e4) => [u("span", { title: e4.row.remark }, c(e4.row.remark), 9, U)]), _: 1 }), r(w2, { fixed: "right", label: "", width: "40", align: "center" }, { default: m((e4) => [v(r(t2, { disabled: false === e4.row.isEdit, link: "", type: "danger", size: "small", onClick: f((l3) => J(e4.row), ["stop"]) }, { default: m(() => l2[5] || (l2[5] = [g("清除")])), _: 2 }, 1032, ["disabled", "onClick"]), [[b, e4.row.isStandard && e4.row.eventName || !e4.row.isStandard && e4.row.jsContent]])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])])]), _: 1 }), r(_2, { class: "amb-assembly-collapse-header", name: "addCollapse", title: "自定义方法" }, { default: m(() => [r(x2, { size: "small", data: p(M), "highlight-current-row": "", style: { width: "100%" }, "max-height": W.value, onRowClick: K }, { default: m(() => [r(w2, { prop: "label", label: "方法名", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.eventName }, c(e4.row.eventName), 9, z)]), _: 1 }), r(w2, { prop: "label", label: "描述" }, { default: m((e4) => [u("span", { title: e4.row.remark }, c(e4.row.remark), 9, S)]), _: 1 }), r(w2, { fixed: "right", label: "", width: "50", align: "center" }, { default: m((e4) => [r(t2, { disabled: e4.row.disable, link: "", type: "primary", size: "small", onClick: f((l3) => J(e4.row), ["stop"]) }, { default: m(() => l2[6] || (l2[6] = [g("清除")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])], 512);
|
|
90
90
|
};
|
|
91
91
|
} });
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
B as default
|
|
94
94
|
};
|