super-page-designer 2.2.89-sit9 → 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 +1 -1
- 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 +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +19 -19
- 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 +7 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +111 -5
- package/dist/es/components/design/views/assemblys/container/card/card-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.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 +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +1 -1
- 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 +4 -4
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +18 -18
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +1 -1
- 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 +17 -20
- package/package.json +5 -5
- package/dist/es/components/design/index.js +0 -4
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue3.js +0 -102
|
@@ -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
|
};
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as o, nextTick as l, resolveComponent as a, resolveDirective as n, createElementBlock as i, openBlock as s, Fragment as r, createElementVNode as p, createVNode as c, withDirectives as u, createBlock as d, unref as m, withCtx as g, createTextVNode as f } from "vue";
|
|
2
|
-
import { Plus as
|
|
2
|
+
import { Plus as v, Delete as y, Refresh as b } from "@element-plus/icons";
|
|
3
3
|
import w from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { ElMessageBox as h, ElMessage as C, ElLoading as k } from "element-plus";
|
|
5
|
-
const S = { style: { padding: "0 0 10px 0" } },
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
e3.SYSTEM_CODE =
|
|
10
|
-
} }, statementDto: {}, initSearchForm:
|
|
5
|
+
const S = { style: { padding: "0 0 10px 0" } }, E = e({ __name: "i18n-setting-enabled", props: { systemCode: { type: String, default: "" } }, emits: ["close"], setup(e2, { expose: E2, emit: T }) {
|
|
6
|
+
const A = e2, _ = window.$vueApp.config.globalProperties.baseAPI, N = t([]), P = t(), x = t(false), D = [{ leftBracket: "(", propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: A.systemCode, joinSign: "or" }, { propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: "common", rightBracket: ")", joinSign: "and" }], R = function(e3, t2) {
|
|
7
|
+
N.value = e3;
|
|
8
|
+
}, B = { initSearch: true, dynamicServiceName: "languagePackageDynamicValueServiceImpl", lineEditOptions: { aftersaveIsCreateRow: false, beforeSave: function(e3) {
|
|
9
|
+
e3.SYSTEM_CODE = A.systemCode;
|
|
10
|
+
} }, statementDto: {}, initSearchForm: D, renderRow: {}, isSql: true, operations: { operation: [{ onClick: G, eventName: "lineEditUpdate", props: { title: "修改", isPermission: true, type: "primary", size: "small", elementType: "el-button", label: "修改", code: "lineEditUpdate" } }, { onClick: I, eventName: "lineEditSave", isShow: U, props: { title: "保存", type: "primary", size: "small", elementType: "el-button", label: "保存" } }, { onClick: z, eventName: "lineEditDelete", props: { title: "删除", type: "danger", size: "small", elementType: "el-button", label: "删除" } }, { onClick: $, eventName: "restoreEdit", props: { title: "取消编辑", type: "primary", size: "small", elementType: "el-button", label: "取消编辑", code: "restoreEdit" } }] }, pageHeight: 0.45 * window.innerHeight };
|
|
11
11
|
function I(e3, t2, o2, l2, a2) {
|
|
12
|
-
|
|
12
|
+
P.value.saveRow(a2);
|
|
13
13
|
}
|
|
14
14
|
function z(e3, t2, o2, l2, a2) {
|
|
15
15
|
h.confirm("确认删除", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
16
16
|
w.delete(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-package", { data: [o2.id] }).then((e4) => {
|
|
17
|
-
C.success({ message: "删除成功", showClose: true }),
|
|
17
|
+
C.success({ message: "删除成功", showClose: true }), P.value.refresh();
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
function $(e3, t2, o2, l2, a2) {
|
|
22
|
-
|
|
22
|
+
P.value.restoreRow(a2);
|
|
23
23
|
}
|
|
24
24
|
function G(e3, t2, o2, l2, a2) {
|
|
25
|
-
|
|
25
|
+
P.value.editRow(a2);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function U(e3, t2, o2, l2, a2) {
|
|
28
28
|
return !!o2.$editing;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function V() {
|
|
31
|
+
P.value.createRow();
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
if (!
|
|
35
|
-
let e3 =
|
|
33
|
+
function j() {
|
|
34
|
+
if (!N.value || 0 === N.value.length) return void C.warning({ message: "请选择要删除的数据", showClose: true });
|
|
35
|
+
let e3 = N.value.map((e4) => e4.id);
|
|
36
36
|
w.delete(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-package", { data: e3 }).then((e4) => {
|
|
37
|
-
C.success({ message: "删除成功", showClose: true }),
|
|
37
|
+
C.success({ message: "删除成功", showClose: true }), P.value.refresh();
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function q() {
|
|
41
41
|
const e3 = k.service({ fullscreen: true, lock: true, text: "更新中", background: "rgba(0, 0, 0, 0.7)" });
|
|
42
42
|
w.delete().then((t2) => {
|
|
43
43
|
e3.close(), C.success({ message: "更新完毕", showClose: true });
|
|
@@ -47,14 +47,14 @@ const S = { style: { padding: "0 0 10px 0" } }, T = e({ __name: "i18n-setting-en
|
|
|
47
47
|
}
|
|
48
48
|
return o(() => {
|
|
49
49
|
l(() => {
|
|
50
|
-
|
|
50
|
+
P.value.refresh();
|
|
51
51
|
});
|
|
52
52
|
}), o(() => {
|
|
53
|
-
}),
|
|
53
|
+
}), E2({}), (e3, t2) => {
|
|
54
54
|
const o2 = a("el-button"), l2 = a("super-grid"), w2 = n("loading");
|
|
55
|
-
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled:
|
|
55
|
+
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: x.value, icon: m(v), type: "primary", onClick: V }, { default: g(() => t2[0] || (t2[0] = [f(" 新建 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, x.value]]), u((s(), d(o2, { disabled: x.value, icon: m(y), type: "danger", onClick: j }, { default: g(() => t2[1] || (t2[1] = [f(" 删除 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, x.value]]), u((s(), d(o2, { type: "default", align: "left", class: "button--default", icon: m(b), onClick: q }, { default: g(() => t2[2] || (t2[2] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[w2, x.value]])]), c(l2, { style: { width: "100%" }, ref_key: "grid", ref: P, url: m(_) + "/bs/language-package/list", options: B, code: "BS_LANGUAGE_PACKAGE", onSelect: R, onSelectAll: R }, null, 8, ["url"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
E as default
|
|
60
60
|
};
|
package/dist/es/index.d.ts
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { default as default2 } from "./components/design/views/design/page-design.vue.js";
|
|
4
|
+
import { default as default3 } from "./components/design/views/assemblys/common/common-icon-bind.vue.js";
|
|
4
5
|
export {
|
|
6
|
+
default3 as CommonIconBind,
|
|
5
7
|
default2 as Design
|
|
6
8
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -830,7 +830,7 @@ fieldset.amb-design-item-selected {
|
|
|
830
830
|
content: "\e605";
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
.amb-object-design-ref[data-v-
|
|
833
|
+
.amb-object-design-ref[data-v-309a3fe8] .el-table td.el-table__cell > .cell {
|
|
834
834
|
padding-left: 2px;
|
|
835
835
|
padding-right: 2px;
|
|
836
836
|
}.runtime-page-container[data-v-f796b484] {
|
|
@@ -930,25 +930,25 @@ fieldset.amb-design-item-selected {
|
|
|
930
930
|
}
|
|
931
931
|
._amb-page-container_1k9lg_1 ._amb-page-container-header_1k9lg_6 ~ ._amb-page-container-main_1k9lg_9 {
|
|
932
932
|
height: calc(100vh - 60px);
|
|
933
|
-
}.amb-component-popover-icon-list-view[data-v-
|
|
933
|
+
}.amb-component-popover-icon-list-view[data-v-6bf149f9] {
|
|
934
934
|
display: flex;
|
|
935
935
|
flex-direction: column;
|
|
936
936
|
gap: 10px;
|
|
937
937
|
overflow: hidden;
|
|
938
938
|
height: 300px;
|
|
939
939
|
}
|
|
940
|
-
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-
|
|
940
|
+
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-6bf149f9] {
|
|
941
941
|
flex: 1 1 auto;
|
|
942
942
|
overflow: auto;
|
|
943
943
|
}
|
|
944
|
-
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-
|
|
944
|
+
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-6bf149f9] {
|
|
945
945
|
display: grid;
|
|
946
946
|
grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
|
|
947
947
|
grid-gap: 15px;
|
|
948
948
|
padding: 0;
|
|
949
949
|
list-style: none;
|
|
950
950
|
}
|
|
951
|
-
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-
|
|
951
|
+
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-6bf149f9] {
|
|
952
952
|
position: relative;
|
|
953
953
|
width: 40px;
|
|
954
954
|
height: 40px;
|
|
@@ -960,14 +960,14 @@ fieldset.amb-design-item-selected {
|
|
|
960
960
|
border-radius: 5px;
|
|
961
961
|
line-height: 1;
|
|
962
962
|
}
|
|
963
|
-
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-
|
|
963
|
+
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-6bf149f9] {
|
|
964
964
|
width: 24px;
|
|
965
965
|
height: 24px;
|
|
966
966
|
}
|
|
967
|
-
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-
|
|
967
|
+
.amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-6bf149f9]:hover {
|
|
968
968
|
background-color: var(--el-menu-active-color);
|
|
969
969
|
color: var(--el-color-white);
|
|
970
|
-
}.runtime-page-container-tabs-view[data-v-
|
|
970
|
+
}.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane {
|
|
971
971
|
display: flex;
|
|
972
972
|
flex-direction: row;
|
|
973
973
|
align-items: flex-start;
|
|
@@ -975,16 +975,16 @@ fieldset.amb-design-item-selected {
|
|
|
975
975
|
flex-wrap: wrap;
|
|
976
976
|
gap: var(--runtime-page-container-view-gap, 15px);
|
|
977
977
|
}
|
|
978
|
-
.runtime-page-container-tabs-view[data-v-
|
|
978
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div {
|
|
979
979
|
width: 100%;
|
|
980
980
|
}
|
|
981
|
-
.runtime-page-container-tabs-view[data-v-
|
|
981
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
|
|
982
982
|
width: auto;
|
|
983
983
|
}
|
|
984
|
-
.runtime-page-container-tabs-view[data-v-
|
|
984
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
|
|
985
985
|
width: auto;
|
|
986
986
|
}
|
|
987
|
-
.runtime-page-container-tabs-view[data-v-
|
|
987
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
|
|
988
988
|
display: flex;
|
|
989
989
|
flex-direction: row;
|
|
990
990
|
align-items: flex-start;
|
|
@@ -992,16 +992,13 @@ fieldset.amb-design-item-selected {
|
|
|
992
992
|
flex-wrap: wrap;
|
|
993
993
|
gap: var(--runtime-page-container-view-gap, 15px);
|
|
994
994
|
}
|
|
995
|
-
.runtime-page-container-tabs-view[data-v-
|
|
995
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
|
|
996
996
|
width: 100%;
|
|
997
997
|
}
|
|
998
|
-
.runtime-page-container-tabs-view[data-v-
|
|
998
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
|
|
999
999
|
width: auto;
|
|
1000
1000
|
}
|
|
1001
|
-
.runtime-page-container-tabs-view[data-v-
|
|
1002
|
-
width: auto;
|
|
1003
|
-
}
|
|
1004
|
-
.runtime-page-container-tabs-view[data-v-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
|
|
1001
|
+
.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
|
|
1005
1002
|
width: auto;
|
|
1006
1003
|
}.yx-card-box-view-main[data-v-65a008af] > .el-card__header {
|
|
1007
1004
|
position: relative;
|
|
@@ -10933,7 +10930,7 @@ li[data-v-e50b5e57] {
|
|
|
10933
10930
|
color: #7b7b7b;
|
|
10934
10931
|
}
|
|
10935
10932
|
|
|
10936
|
-
.seleteSort[data-v-
|
|
10933
|
+
.seleteSort[data-v-e95dace8] {
|
|
10937
10934
|
border-radius: 5px;
|
|
10938
10935
|
border: 1px solid rgba(88, 147, 239);
|
|
10939
10936
|
}
|
|
@@ -10984,7 +10981,7 @@ li[data-v-d06d5717] {
|
|
|
10984
10981
|
width: 100%
|
|
10985
10982
|
}
|
|
10986
10983
|
|
|
10987
|
-
.seleteSort[data-v-
|
|
10984
|
+
.seleteSort[data-v-4b6ce1f3] {
|
|
10988
10985
|
border-radius: 5px;
|
|
10989
10986
|
border: 1px solid rgba(88, 147, 239);
|
|
10990
10987
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.91-sit11",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.33-sit3",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.2.
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
43
|
+
"service-flow-designer": "2.2.91-sit10",
|
|
44
|
+
"super-page-runtime": "2.2.91-sit9",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue-echarts": "^6.6.9",
|
|
53
53
|
"vue-router": "^4.3.0",
|
|
54
54
|
"vuex": "^4.1.0",
|
|
55
|
-
"workflow-editor": "0.0.
|
|
55
|
+
"workflow-editor": "0.0.56-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as a, resolveComponent as o, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as v, unref as p, createElementVNode as r, Fragment as d, renderList as m, normalizeClass as f, withDirectives as g, vShow as y, createCommentVNode as b, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
|
|
2
|
-
import { Close as k, Check as x, Search as I, Plus as V, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
|
|
3
|
-
import * as L from "@element-plus/icons";
|
|
4
|
-
import O from "agilebuilder-ui/src/utils/request";
|
|
5
|
-
const U = { key: 0 }, $ = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], E = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, P = { key: 2 }, j = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, S = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
const M = q2, B = e2, R = l([{ value: "ElementUI", label: "ElementUI", dataList: [] }, { value: "ambIcon", label: "Amb图标库", dataList: [] }, { value: "custom", label: "自定义", dataList: [] }]);
|
|
8
|
-
l(false);
|
|
9
|
-
const D = l(1), F = l(B.iconType ?? ((_b = (_a = R.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), G = l("");
|
|
10
|
-
G.value = B.iconValue;
|
|
11
|
-
const H = l({}), J = l(""), K = l(), Q = l(false), W = a(() => {
|
|
12
|
-
var _a2;
|
|
13
|
-
const e3 = (_a2 = R.value) == null ? void 0 : _a2.find((e4) => e4.value === F.value);
|
|
14
|
-
return (e3 == null ? void 0 : e3.dataList) ?? [];
|
|
15
|
-
}), X = a(() => {
|
|
16
|
-
let e3 = W.value ?? [];
|
|
17
|
-
return J.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
|
|
18
|
-
var _a2;
|
|
19
|
-
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(J.value.toLowerCase());
|
|
20
|
-
}))), e3.slice(0, 50 * D.value);
|
|
21
|
-
}), Y = () => {
|
|
22
|
-
D.value++;
|
|
23
|
-
};
|
|
24
|
-
async function Z() {
|
|
25
|
-
Q.value = true;
|
|
26
|
-
try {
|
|
27
|
-
const e3 = (await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 })).data ?? [], l2 = [];
|
|
28
|
-
for (let a2 of e3) l2.push({ value: a2.iconName, label: a2.iconName });
|
|
29
|
-
H.value.customOptions = l2, R.value[R.value.findIndex((e4) => "custom" === e4.value)].dataList = tempOptionsxs;
|
|
30
|
-
} catch (e3) {
|
|
31
|
-
}
|
|
32
|
-
Q.value = false;
|
|
33
|
-
}
|
|
34
|
-
function ee(e3) {
|
|
35
|
-
var l2;
|
|
36
|
-
D.value = 1, e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3, "ElementUI" === (l2 = F.value) ? R.value[R.value.findIndex((e4) => "ElementUI" === e4.value)].dataList = H.value.elementUIOptions : "custom" === l2 ? Z() : ["ambIcon"].includes(l2) && async function() {
|
|
37
|
-
var _a2, _b2, _c;
|
|
38
|
-
try {
|
|
39
|
-
Q.value = true;
|
|
40
|
-
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
41
|
-
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
|
|
42
|
-
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: a2, glyphs: o2 = [], font_family: n2 } = l3;
|
|
43
|
-
R.value[R.value.findIndex((e5) => "ambIcon" === e5.value)].dataList = o2.map((e5) => ({ label: e5.name, value: `${a2}${e5.font_class}` }));
|
|
44
|
-
} catch (e4) {
|
|
45
|
-
}
|
|
46
|
-
Q.value = false;
|
|
47
|
-
}();
|
|
48
|
-
}
|
|
49
|
-
function le() {
|
|
50
|
-
var _a2, _b2;
|
|
51
|
-
(_b2 = (_a2 = K.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
|
|
52
|
-
}
|
|
53
|
-
function ae() {
|
|
54
|
-
G.value = "", M("update:modelValue", "", ""), K.value.hide();
|
|
55
|
-
}
|
|
56
|
-
function oe() {
|
|
57
|
-
if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
|
|
58
|
-
const e3 = H.value.customOptions || [];
|
|
59
|
-
let l2 = false;
|
|
60
|
-
for (let a3 of e3) if (a3.value === J.value) {
|
|
61
|
-
l2 = true;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
F.value = "custom", G.value = J.value;
|
|
65
|
-
const a2 = J.value;
|
|
66
|
-
if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
|
|
67
|
-
const e4 = { iconName: a2 };
|
|
68
|
-
O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
69
|
-
"custom" == F.value && Z();
|
|
70
|
-
}).catch((e5) => {
|
|
71
|
-
ElMessage.warning("保存图标失败!");
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function ne() {
|
|
76
|
-
_(() => {
|
|
77
|
-
!function() {
|
|
78
|
-
if (!H.value.elementUIOptions) {
|
|
79
|
-
if (!window.temp_Icon_Options) {
|
|
80
|
-
const e3 = [];
|
|
81
|
-
for (const [l2, a2] of Object.entries(L)) e3.push({ value: l2, label: l2, component: a2 });
|
|
82
|
-
e3.sort(function(e4, l2) {
|
|
83
|
-
const a2 = e4.value, o2 = l2.value;
|
|
84
|
-
return a2.localeCompare(o2);
|
|
85
|
-
}), window.temp_Icon_Options = e3;
|
|
86
|
-
}
|
|
87
|
-
H.value.elementUIOptions = window.temp_Icon_Options;
|
|
88
|
-
}
|
|
89
|
-
}(), ee(F.value);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return l(), (l2, a2) => {
|
|
93
|
-
const _2 = o("el-icon"), L2 = o("el-input"), O2 = o("el-button"), q3 = o("el-tooltip"), B2 = o("el-scrollbar"), D2 = o("el-col"), H2 = o("el-empty"), Z2 = o("el-tag"), te = o("SuperIcon"), ue = o("el-row"), ie = o("el-popover"), ce = n("loading"), se = n("infinite-scroll");
|
|
94
|
-
return e2.showLabel ? (i(), t("span", U, c(G.value), 1)) : (i(), u(ie, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(L2, { readonly: "", size: "small", onClick: ne, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: s(() => [g(v(_2, { style: { cursor: "pointer" }, onClick: h(ae, ["stop"]) }, { default: s(() => [v(p(A))]), _: 1 }, 512), [[y, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [v(ue, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: p(k), onClick: le }, null, 8, ["icon"])]), _: 1 }), v(D2, { span: 8 }, { default: s(() => [r("div", $, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, m(R.value, (e3) => (i(), t("div", { class: f(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ee(e3.value) }, [v(_2, null, { default: s(() => [g(v(p(x), null, null, 512), [[y, e3.value == F.value]])]), _: 2 }, 1024), r("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), v(D2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [F.value ? b("", true) : (i(), u(H2, { key: 0, description: "请选择类型", "image-size": 80 })), F.value ? (i(), t("div", E, [v(L2, { modelValue: J.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J.value = e3), placeholder: "搜索", size: "default", "prefix-icon": p(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(F.value) && J.value && !X.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: p(V), onClick: oe }, null, 8, ["icon"])]), _: 1 })) : b("", true)])) : b("", true), ["custom"].includes(F.value) ? (i(), t("div", P, [v(_2, null, { default: s(() => [v(p(C))]), _: 1 }), a2[4] || (a2[4] = r("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[5] || (a2[5] = w(" ")), v(q3, null, { content: s(() => a2[2] || (a2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), r("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(Z2, { type: "primary" }, { default: s(() => a2[3] || (a2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : b("", true), F.value ? g((i(), t("div", j, [X.value.length || Q.value ? b("", true) : (i(), u(H2, { key: 0, description: "没有相关图标", "image-size": 80 })), r("div", S, [(i(true), t(d, null, m(X.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [r("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
|
|
95
|
-
return a3 = e3, G.value = a3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
|
|
96
|
-
var a3;
|
|
97
|
-
} }, [v(te, { iconType: F.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, Q.value], [se, Y]]) : b("", true), F.value ? (i(), t("div", N, c(X.value.length) + " / " + c(W.value.length), 1)) : b("", true)]), _: 1 })]), _: 1 })]), _: 1 }, 512));
|
|
98
|
-
};
|
|
99
|
-
} });
|
|
100
|
-
export {
|
|
101
|
-
q as default
|
|
102
|
-
};
|