super-page-designer 2.2.89-sit9 → 2.2.91-sit2

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.
Files changed (24) hide show
  1. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  2. package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +1 -1
  3. package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +1 -1
  4. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +7 -0
  5. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +100 -5
  6. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  7. package/dist/es/components/design/views/assemblys/container/card/card-attr-base.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-base.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
  11. package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +1 -1
  12. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  13. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +1 -1
  15. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +1 -1
  17. package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
  18. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  19. package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +23 -23
  20. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  21. package/dist/es/style.css +14 -17
  22. package/package.json +3 -3
  23. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue3.js +0 -102
  24. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o,
2
2
  import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
3
3
  import "../../../../../../stores/page-store.js";
4
4
  /* empty css */
5
- import v from "../../common/common-icon-bind.vue2.js";
5
+ import v from "../../common/common-icon-bind.vue.js";
6
6
  import _ from "agilebuilder-ui/src/utils/request";
7
7
  import y from "../../common/common-function-code.vue.js";
8
8
  import "@element-plus/icons";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as u, openBlock as t, withCtx as i, createVNode as s, createElementVNode as n, createElementBlock as d, Fragment as p, renderList as r, unref as m, createTextVNode as c, withDirectives as f, vShow as b } from "vue";
2
2
  import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
3
- import V from "../../common/common-icon-bind.vue2.js";
3
+ import V from "../../common/common-icon-bind.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
5
  import _ from "agilebuilder-ui/src/utils/request";
6
6
  import y from "../../common/common-i18n-key-input.vue.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as u, withCtx as d, createVNode as n, createElementVNode as i, createElementBlock as s, Fragment as r, renderList as p, unref as m, createTextVNode as c, withDirectives as f, vShow as b, createCommentVNode as g } from "vue";
2
2
  import { getFormComponentOptions as _ } from "../../../../utils/assemblys-config.js";
3
- import V from "../../common/common-icon-bind.vue2.js";
3
+ import V from "../../common/common-icon-bind.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
5
  import y from "./print-template-select.vue.js";
6
6
  import x from "../../common/common-i18n-key-input.vue.js";
@@ -0,0 +1,7 @@
1
+ import o from "./common-icon-bind.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = e(o, [["__scopeId", "data-v-055e1bd3"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -1,7 +1,102 @@
1
- import o from "./common-icon-bind.vue3.js";
2
- /* empty css */
3
- import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = e(o, [["__scopeId", "data-v-d953af54"]]);
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, withDirectives as p, unref as r, createElementVNode as m, Fragment as d, renderList as f, normalizeClass as g, vShow as b, createCommentVNode as y, createTextVNode as h, withModifiers as w, 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 O from "@element-plus/icons";
4
+ import U from "agilebuilder-ui/src/utils/request";
5
+ const $ = { key: 0 }, z = { class: "amb-component-popover-left-menu-main" }, E = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, S = { key: 2 }, j = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, L = { class: "amb-component-popover-icon-grid" }, N = ["onClick"], T = { 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([]), D = l([]), F = l([]), G = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "custom", label: "自定义" }]);
8
+ l(false);
9
+ const H = l(1), J = l(B.iconType ?? ((_b = (_a = G.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), K = l("");
10
+ K.value = B.iconValue;
11
+ const Q = l({}), W = l(""), X = l(), Y = l(false), Z = a(() => ["ElementUI"].includes(J.value) ? R.value : ["ambIcon"].includes(J.value) ? D.value : F.value), ee = a(() => {
12
+ let e3 = Z.value ?? [];
13
+ return W.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
14
+ var _a2;
15
+ return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(W.value.toLowerCase());
16
+ }))), e3.slice(0, 50 * H.value);
17
+ }), le = () => {
18
+ ee.value.length > 0 && !Y.value && Z.value.length > ee.value.length && !W.value && H.value++;
19
+ };
20
+ const ae = async () => {
21
+ if (!(F.value.length > 0)) {
22
+ try {
23
+ Y.value = true;
24
+ const e3 = await U.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], a2 = [];
25
+ for (let e4 of l2) a2.push({ value: e4.iconName, label: e4.iconName });
26
+ Q.value.customOptions = a2, F.value = a2;
27
+ } catch (e3) {
28
+ }
29
+ Y.value = false;
30
+ }
31
+ };
32
+ function oe(e3) {
33
+ var l2;
34
+ H.value = 1, J.value = e3, "ElementUI" === (l2 = J.value) ? R.value = Q.value.elementUIOptions : "custom" === l2 ? ae() : ["ambIcon"].includes(l2) && (async () => {
35
+ var _a2, _b2, _c;
36
+ if (!(D.value.length > 0)) {
37
+ try {
38
+ Y.value = true;
39
+ let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
40
+ ((_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`);
41
+ const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: a2, glyphs: o2 = [] } = l3 ?? {};
42
+ D.value = o2.map((e5) => ({ label: e5.name, value: `${a2}${e5.font_class}` }));
43
+ } catch (e4) {
44
+ }
45
+ Y.value = false;
46
+ }
47
+ })();
48
+ }
49
+ function ne() {
50
+ var _a2, _b2;
51
+ (_b2 = (_a2 = X.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
52
+ }
53
+ function te() {
54
+ K.value = "", M("update:modelValue", "", ""), X.value.hide();
55
+ }
56
+ function ue() {
57
+ if (W.value = W.value.trim(), !W.value) return void ElMessage.warning("请输入图标名!");
58
+ const e3 = Q.value.customOptions || [];
59
+ let l2 = false;
60
+ for (let a3 of e3) if (a3.value === W.value) {
61
+ l2 = true;
62
+ break;
63
+ }
64
+ J.value = "custom", K.value = W.value;
65
+ const a2 = W.value;
66
+ if (W.value = "", M("update:modelValue", J.value, K.value), X.value.hide(), !l2) {
67
+ const e4 = { iconName: a2 };
68
+ U.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
69
+ "custom" == J.value && ae();
70
+ }).catch((e5) => {
71
+ ElMessage.warning("保存图标失败!");
72
+ });
73
+ }
74
+ }
75
+ function ie() {
76
+ _(() => {
77
+ !function() {
78
+ if (!Q.value.elementUIOptions) {
79
+ if (!window.temp_Icon_Options) {
80
+ const e3 = [];
81
+ for (const [l2, a2] of Object.entries(O)) 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
+ Q.value.elementUIOptions = window.temp_Icon_Options;
88
+ }
89
+ }(), oe(J.value);
90
+ });
91
+ }
92
+ return l(), (l2, a2) => {
93
+ const _2 = o("el-icon"), O2 = o("el-input"), U2 = o("el-button"), q3 = o("el-tooltip"), B2 = o("el-scrollbar"), R2 = o("el-col"), D2 = o("el-empty"), F2 = o("el-tag"), H2 = o("SuperIcon"), Q2 = o("el-row"), ae2 = o("el-popover"), ce = n("infinite-scroll"), se = n("loading");
94
+ return e2.showLabel ? (i(), t("span", $, c(K.value), 1)) : (i(), u(ae2, { key: 1, ref_key: "popoverRef", ref: X, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(O2, { readonly: "", size: "small", onClick: ie, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => K.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: w(te, ["stop"]) }, { default: s(() => [v(r(A))]), _: 1 }, 512), [[b, K.value]])]), _: 1 }, 8, ["modelValue"])]), default: s(() => [v(Q2, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(U2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: ne }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", z, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(G.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == J.value ? "is-active" : ""]), onClick: (l3) => oe(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(x), null, null, 512), [[b, e3.value == J.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, E))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [J.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), J.value ? (i(), t("div", P, [v(O2, { modelValue: W.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => W.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(I), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(J.value) && W.value && !ee.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(U2, { type: "primary", circle: "", icon: r(V), onClick: ue }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(J.value) ? (i(), t("div", S, [v(_2, null, { default: s(() => [v(r(C))]), _: 1 }), a2[4] || (a2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[5] || (a2[5] = h("   ")), v(q3, null, { content: s(() => a2[2] || (a2[2] = [h(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), h(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => a2[3] || (a2[3] = [h("更多")])), _: 1 })]), _: 1 })])) : y("", true), J.value ? p((i(), t("div", j, [ee.value.length || Y.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", L, [(i(true), t(d, null, f(ee.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
95
+ return a3 = e3, K.value = a3.value, M("update:modelValue", J.value, K.value), void X.value.hide();
96
+ var a3;
97
+ } }, [v(H2, { iconType: J.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, N)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, le]]) : y("", true), J.value ? (i(), t("div", T, c(ee.value.length) + " / " + c(Z.value.length), 1)) : y("", true)]), _: 1 })), [[se, Y.value]])]), _: 1 })]), _: 1 }, 512));
98
+ };
99
+ } });
5
100
  export {
6
- i as default
101
+ q as default
7
102
  };
@@ -1,4 +1,4 @@
1
- import o from "./common-variable-bind.vue3.js";
1
+ import o from "./common-variable-bind.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-3324003e"]]);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as i, createVNode as t, createElementVNode as n, withDirectives as p, createCommentVNode as r, createTextVNode as c, toDisplayString as s, vShow as d, unref as m } from "vue";
2
2
  import f from "../../common/common-attr-size.vue.js";
3
3
  import g from "../../common/common-function-code.vue.js";
4
- import b from "../../common/common-icon-bind.vue2.js";
4
+ import b from "../../common/common-icon-bind.vue.js";
5
5
  import V from "../../common/common-i18n-key-input.vue.js";
6
6
  import { Close as v, Check as x } from "@element-plus/icons-vue";
7
7
  const y = { style: { padding: "8px 0px 0px 0px" } }, _ = e({ __name: "card-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t, openBlock as i, withCtx as n, createVNode as a, createElementVNode as u, createTextVNode as r, toDisplayString as d, unref as c, createElementBlock as m, Fragment as p, renderList as s } from "vue";
2
2
  import { Top as f, Bottom as g, Plus as x, Delete as b } from "@element-plus/icons-vue";
3
3
  import V from "../../common/common-attr-size.vue.js";
4
- import _ from "../../common/common-icon-bind.vue2.js";
4
+ import _ from "../../common/common-icon-bind.vue.js";
5
5
  import y from "../../common/common-function-code.vue.js";
6
6
  import h from "../../common/common-i18n-key-input.vue.js";
7
7
  const w = { style: { padding: "8px 0px 0px 0px" } }, v = { style: { padding: "8px 0px 0px 0px" }, ref: "panels" }, k = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, z = e({ __name: "collapse-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as t
2
2
  import { Top as s, Bottom as g, Plus as b, Delete as x, Close as V, Check as _ } from "@element-plus/icons-vue";
3
3
  import y from "../../common/common-attr-size.vue.js";
4
4
  import v from "../../common/common-function-code.vue.js";
5
- import h from "../../common/common-icon-bind.vue2.js";
5
+ import h from "../../common/common-icon-bind.vue.js";
6
6
  import w from "../../common/common-i18n-key-input.vue.js";
7
7
  const U = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" }, ref: "panels" }, z = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, C = e({ __name: "tabs-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
8
8
  } } }, setup(e2) {
@@ -1,7 +1,7 @@
1
1
  import e from "./tabs-design.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = t(e, [["__scopeId", "data-v-eca0c768"]]);
4
+ const s = t(e, [["__scopeId", "data-v-f64cf23d"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as i, createVNode as d, createBlock as o, createCommentVNode as s, withCtx as n, createTextVNode as m } from "vue";
2
- import f from "../../common/common-icon-bind.vue2.js";
2
+ import f from "../../common/common-icon-bind.vue.js";
3
3
  const c = e({ __name: "formatting-icon-label", props: { setting: { type: Object, default: {} }, showEvent: { type: Boolean, default: true } }, setup(e2) {
4
4
  const c2 = e2, v = l({});
5
5
  return v.value = c2.setting, v.value.isTag || (v.value.isTag = false), (l2, c3) => {
@@ -11,7 +11,7 @@ import T from "../component/variate-select.vue.js";
11
11
  import "@element-plus/icons";
12
12
  import "agilebuilder-ui/src/utils/request";
13
13
  import { queryTableFields as S, tableResetConfigIndo as H } from "../../../../utils/page-table-util.js";
14
- /* empty css */
14
+ /* empty css */
15
15
  import N from "../../common/common-i18n-key-input.vue.js";
16
16
  import j from "../../form/common/hyperlink-mult-config.vue.js";
17
17
  import q from "../../common/common-function-code.vue.js";
@@ -4,7 +4,7 @@ import b from "../component/data-origin-tree.vue.js";
4
4
  import g from "../../form/common/data-linkage.vue.js";
5
5
  import y from "../../common/common-attr-size.vue.js";
6
6
  import V from "../../common/common-variable-bind.vue.js";
7
- import _ from "../../common/common-icon-bind.vue2.js";
7
+ import _ from "../../common/common-icon-bind.vue.js";
8
8
  import v from "./tree-attr-context-menu.vue.js";
9
9
  import { Search as h, Close as k, InfoFilled as x } from "@element-plus/icons-vue";
10
10
  import C from "../../common/common-select-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, resolveComponent as u, createBlock as l, openBlock as a, withCtx as f, createElementVNode as o, createVNode as p, withDirectives as i, createTextVNode as t, vShow as r } from "vue";
2
- import n from "../../common/common-icon-bind.vue2.js";
2
+ import n from "../../common/common-icon-bind.vue.js";
3
3
  import "@element-plus/icons";
4
4
  import s from "../../common/common-i18n-key-input.vue.js";
5
5
  const m = { style: { padding: "8px 0px 0px 0px" } }, d = e({ __name: "pre-suffix", props: { preSuffix: { type: Object, required: true, default: () => {
@@ -5,7 +5,7 @@ import M from "../../common/common-select-page.vue.js";
5
5
  import T from "./parameter-table.vue.js";
6
6
  import C from "../../common/common-variable-bind.vue.js";
7
7
  import _ from "./condition.vue.js";
8
- import k from "../../common/common-icon-bind.vue2.js";
8
+ import k from "../../common/common-icon-bind.vue.js";
9
9
  import O from "../../common/common-i18n-key-input.vue.js";
10
10
  import { getModelOptionsByFields as h } 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) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as n, createElementVNode as r, createTextVNode as m, toDisplayString as c } from "vue";
2
2
  import d from "../../common/common-attr-size.vue.js";
3
3
  import s from "../../common/common-function-code.vue.js";
4
- import p from "../../common/common-icon-bind.vue2.js";
4
+ import p from "../../common/common-icon-bind.vue.js";
5
5
  import f from "../../common/common-i18n-key-input.vue.js";
6
6
  const g = { style: { padding: "8px 0px 0px 0px" } }, b = e({ __name: "separatelabel-attr-base", props: { configure: { type: Object, default: {} }, pageDesign: { type: Object, default: () => {
7
7
  } } }, setup(e2) {
@@ -1,5 +1,5 @@
1
1
  import o from "./config.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue2.js";
3
+ import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
@@ -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 y, Delete as b, Refresh as v } from "@element-plus/icons";
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" } }, T = e({ __name: "i18n-setting-enabled", props: { systemCode: { type: String, default: "" } }, emits: ["close"], setup(e2, { expose: T2, emit: A }) {
6
- const E = e2, _ = window.$vueApp.config.globalProperties.baseAPI, P = t([]), x = t(), N = t(false), R = [{ leftBracket: "(", propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: E.systemCode, joinSign: "or" }, { propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: "common", rightBracket: ")", joinSign: "and" }], B = function(e3, t2) {
7
- P.value = e3;
8
- }, D = { initSearch: true, dynamicServiceName: "languagePackageDynamicValueServiceImpl", lineEditOptions: { aftersaveIsCreateRow: false, beforeSave: function(e3) {
9
- e3.SYSTEM_CODE = E.systemCode;
10
- } }, statementDto: {}, initSearchForm: R, renderRow: {}, isSql: true, operations: { operation: [{ onClick: G, props: { title: "修改", isPermission: true, type: "primary", size: "small", elementType: "el-button", label: "修改", code: "lineEditUpdate" } }, { onClick: I, isShow: V, props: { title: "保存", type: "primary", size: "small", elementType: "el-button", label: "保存" } }, { onClick: z, props: { title: "删除", type: "danger", size: "small", elementType: "el-button", label: "删除" } }, { onClick: $, props: { title: "取消编辑", type: "primary", size: "small", elementType: "el-button", label: "取消编辑", code: "restoreEdit" } }] }, pageHeight: 0.45 * window.innerHeight };
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
- x.value.saveRow(a2);
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 }), x.value.refresh();
17
+ C.success({ message: "删除成功", showClose: true }), P.value.refresh();
18
18
  });
19
19
  });
20
20
  }
21
21
  function $(e3, t2, o2, l2, a2) {
22
- x.value.restoreRow(a2);
22
+ P.value.restoreRow(a2);
23
23
  }
24
24
  function G(e3, t2, o2, l2, a2) {
25
- x.value.editRow(a2);
25
+ P.value.editRow(a2);
26
26
  }
27
- function V(e3, t2, o2, l2, a2) {
27
+ function U(e3, t2, o2, l2, a2) {
28
28
  return !!o2.$editing;
29
29
  }
30
- function j() {
31
- x.value.createRow();
30
+ function V() {
31
+ P.value.createRow();
32
32
  }
33
- function q() {
34
- if (!P.value || 0 === P.value.length) return void C.warning({ message: "请选择要删除的数据", showClose: true });
35
- let e3 = P.value.map((e4) => e4.id);
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 }), x.value.refresh();
37
+ C.success({ message: "删除成功", showClose: true }), P.value.refresh();
38
38
  });
39
39
  }
40
- function H() {
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
- x.value.refresh();
50
+ P.value.refresh();
51
51
  });
52
52
  }), o(() => {
53
- }), T2({}), (e3, t2) => {
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: N.value, icon: m(y), type: "primary", onClick: j }, { default: g(() => t2[0] || (t2[0] = [f(" 新建 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { disabled: N.value, icon: m(b), type: "danger", onClick: q }, { default: g(() => t2[1] || (t2[1] = [f(" 删除 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { type: "default", align: "left", class: "button--default", icon: m(v), onClick: H }, { default: g(() => t2[2] || (t2[2] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[w2, N.value]])]), c(l2, { style: { width: "100%" }, ref_key: "grid", ref: x, url: m(_) + "/bs/language-package/list", options: D, code: "BS_LANGUAGE_PACKAGE", onSelect: B, onSelectAll: B }, null, 8, ["url"])], 64);
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
- T as default
59
+ E as default
60
60
  };
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- /* empty css */
19
+ /* empty css */
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";
package/dist/es/style.css CHANGED
@@ -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-d953af54] {
933
+ }.amb-component-popover-icon-list-view[data-v-055e1bd3] {
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-d953af54] {
940
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-055e1bd3] {
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-d953af54] {
944
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-055e1bd3] {
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-d953af54] {
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-055e1bd3] {
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-d953af54] {
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-055e1bd3] {
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-d953af54]:hover {
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-055e1bd3]: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-eca0c768] > .el-tabs__content > .el-tab-pane {
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-eca0c768] > .el-tabs__content > .el-tab-pane > div {
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-eca0c768] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
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-eca0c768] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
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-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
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-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
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-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[draggable] {
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-eca0c768] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.89-sit9",
3
+ "version": "2.2.91-sit2",
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.30-sit3",
32
+ "agilebuilder-ui": "1.1.33-sit1",
33
33
  "echarts": "^5.5.0",
34
34
  "element-plus": "^2.6.1",
35
35
  "font-awesome": "^4.7.0",
@@ -41,7 +41,7 @@
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
43
  "service-flow-designer": "2.2.89-sit2",
44
- "super-page-runtime": "2.2.89-sit8",
44
+ "super-page-runtime": "2.2.91-sit1",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",
@@ -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
- };