super-page-designer 2.2.22 → 2.2.24

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 (48) hide show
  1. package/dist/es/components/design/utils/page-explore-util.js +10 -10
  2. package/dist/es/components/design/utils/page-permission-util.js +35 -33
  3. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
  4. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
  5. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
  6. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
  7. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
  9. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
  10. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
  11. package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
  12. package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
  13. package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
  14. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
  15. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
  17. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
  18. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
  21. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
  22. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
  26. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
  27. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
  28. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
  29. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
  30. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
  31. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
  32. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
  33. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
  34. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
  35. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
  36. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
  37. package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
  38. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
  39. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  40. package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
  41. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
  42. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
  43. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
  44. package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
  45. package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
  46. package/dist/es/stores/event-undo-redo-store.js +5 -2
  47. package/dist/es/style.css +13 -13
  48. package/package.json +3 -3
@@ -7,10 +7,10 @@ import { PageDimensions as O } from "../../utils/interfaces/page-design-types.js
7
7
  import { batchUpdatePermissions as k, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
8
8
  import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as w } from "../../utils/form-design-util.js";
9
9
  import { usePageContextStore as U } from "../../../../stores/page-store.js";
10
- import { getListCode as _ } from "super-page-runtime";
11
- import { getFormPropName as B } from "../../utils/page-helper-util.js";
12
- import { updateServiceInputs as I } from "../../utils/chart-design-util.js";
13
- const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
10
+ import { getListCode as T } from "super-page-runtime";
11
+ import { getFormPropName as _ } from "../../utils/page-helper-util.js";
12
+ import { updateServiceInputs as B } from "../../utils/chart-design-util.js";
13
+ const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
14
14
  var _a, _b, _c, _d;
15
15
  const q = U(), z = e2;
16
16
  if ("table" === z.configure.name && z.pageDesign.tableRuntimes && z.pageDesign.tableRuntimes[z.configure.uuid]) {
@@ -18,24 +18,32 @@ const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
18
18
  Object.assign(z.configure, i2), delete z.pageDesign.tableRuntimes[z.configure.uuid];
19
19
  }
20
20
  z.indexObj && z.indexObj.index++, null == z.configure.props && (z.configure.props = {}), null == z.configure.style && (z.configure.style = {});
21
- const H = q.getModelField(B((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
21
+ const H = q.getModelField(_((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
22
+ if (z.pageDesign && z.configure && "table" == z.configure.name) {
23
+ if (z.configure.uuid) {
24
+ z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []);
25
+ const e3 = setTimeout(() => {
26
+ var _a2, _b2, _c2, _d2;
27
+ ((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
28
+ }, 500);
29
+ i(() => {
30
+ var _a2, _b2, _c2, _d2;
31
+ const i2 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
32
+ null != i2 && i2 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(i2, 1));
33
+ const n2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
34
+ z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[n2] && delete z.pageDesign.listCodesMap[n2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid], e3 && clearTimeout(e3);
35
+ });
36
+ }
37
+ n(() => z.configure.code, (e3) => {
38
+ A(e3);
39
+ });
40
+ }
22
41
  function A(e3) {
23
42
  z.pageDesign.listCodesMap || (z.pageDesign.listCodesMap = {});
24
- const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
43
+ const i2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
25
44
  i2 && (z.pageDesign.listCodesMap[i2] = e3 || i2);
26
45
  }
27
- z.pageDesign && z.configure && "table" == z.configure.name && (z.configure.uuid && (z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []), setTimeout(() => {
28
- var _a2, _b2, _c2, _d2;
29
- ((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
30
- }, 500), i(() => {
31
- var _a2, _b2, _c2, _d2;
32
- const e3 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
33
- null != e3 && e3 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(e3, 1));
34
- const i2 = _(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
35
- z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[i2] && delete z.pageDesign.listCodesMap[i2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid];
36
- })), n(() => z.configure.code, (e3) => {
37
- A(e3);
38
- })), z.configure.events && z.pageDesign && (n(z.configure.events, (e3) => {
46
+ z.configure.events && z.pageDesign && (n(z.configure.events, (e3) => {
39
47
  k(z.configure, z.pageDesign);
40
48
  const i2 = z.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
41
49
  z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.events = i2;
@@ -49,7 +57,7 @@ const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
49
57
  e4.name && e4.value && (i2[e4.name] = e4.value);
50
58
  }), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
51
59
  }, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
52
- I(z.configure, e3);
60
+ B(z.configure, e3);
53
61
  }, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
54
62
  let E = z.indexObj.index;
55
63
  const N = R2, F = o({});
@@ -124,7 +132,7 @@ const T = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
124
132
  z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, N("onSelectWidget", E, z.configure));
125
133
  }), (e3, i2) => {
126
134
  const n2 = t("el-icon");
127
- return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(L.value), ref_key: "thisRef", ref: G }, [(u(), c(f(F.value), { style: a([K.value, Q.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", T, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
135
+ return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(L.value), ref_key: "thisRef", ref: G }, [(u(), c(f(F.value), { style: a([K.value, Q.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
128
136
  };
129
137
  } });
130
138
  export {
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, ref as o, resolveComponent as l, createBlock as i, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, unref as u, createElementBlock as a, toDisplayString as p, Fragment as m, renderList as c, createCommentVNode as d } from "vue";
2
- import { Top as f, Bottom as g, Plus as w, Delete as y } from "@element-plus/icons-vue";
3
- import { getUuidv4 as b } from "../../../utils/common-util.js";
4
- import { getFunctionTypes as C } from "../../../utils/page-permission-util.js";
5
- import { FuncType as _ } from "super-page-runtime";
6
- import x from "../common/page-permission-select.vue.js";
7
- const k = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, h = ["title"], v = { key: 1 }, V = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: V2 }) {
8
- const U = e2, T = C();
1
+ import { defineComponent as e, ref as o, onUnmounted as l, resolveComponent as i, createBlock as t, openBlock as n, withCtx as r, createElementVNode as s, createVNode as u, unref as a, createElementBlock as p, toDisplayString as m, Fragment as c, renderList as d, createCommentVNode as f } from "vue";
2
+ import { Top as g, Bottom as w, Plus as y, Delete as b } from "@element-plus/icons-vue";
3
+ import { getUuidv4 as C } from "../../../utils/common-util.js";
4
+ import { getFunctionTypes as _ } from "../../../utils/page-permission-util.js";
5
+ import { FuncType as x } from "super-page-runtime";
6
+ import k from "../common/page-permission-select.vue.js";
7
+ const P = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, v = ["title"], V = { key: 1 }, T = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: T2 }) {
8
+ const U = e2, j = _();
9
9
  U.configure.pagePermissions || (U.configure.pagePermissions = []);
10
- const j = o([]);
11
- function z(e3) {
10
+ const z = o([]);
11
+ function D(e3) {
12
12
  let o2 = -1;
13
13
  const l2 = U.configure.pagePermissions.length;
14
14
  for (let i2 = 0; i2 < l2; i2++) if (U.configure.pagePermissions[i2].uuid == e3.uuid) {
@@ -17,40 +17,44 @@ const k = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { "text-align"
17
17
  }
18
18
  return o2;
19
19
  }
20
- function D(e3) {
20
+ function O(e3) {
21
21
  let o2 = -1;
22
- e3 && (o2 = z(e3));
23
- const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: _.AUTHORIZED, uuid: b() };
22
+ e3 && (o2 = D(e3));
23
+ const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: x.AUTHORIZED, uuid: C() };
24
24
  U.configure.pagePermissions.splice(o2 + 1, 0, l2);
25
25
  }
26
- return V2({ updateSourceFields: function(e3) {
27
- j.value = e3 || [];
26
+ let A;
27
+ return l(() => {
28
+ A && clearTimeout(A);
29
+ }), T2({ updateSourceFields: function(e3) {
30
+ z.value = e3 || [];
28
31
  } }), (e3, o2) => {
29
- const b2 = l("el-icon"), C2 = l("el-table-column"), _2 = l("el-input"), V3 = l("el-option"), j2 = l("el-select"), O = l("el-table"), A = l("el-collapse-item");
30
- return t(), i(A, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", k, [s(O, { data: e3.configure.pagePermissions }, { default: n(() => [s(C2, { label: "", width: "32" }, { default: n((e4) => [r("div", P, [s(b2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
31
- let o4 = z(e5);
32
+ const l2 = i("el-icon"), C2 = i("el-table-column"), _2 = i("el-input"), x2 = i("el-option"), T3 = i("el-select"), z2 = i("el-table"), E = i("el-collapse-item");
33
+ return n(), t(E, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", P, [u(z2, { data: e3.configure.pagePermissions }, { default: r(() => [u(C2, { label: "", width: "32" }, { default: r((e4) => [s("div", h, [u(l2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
34
+ let o4 = D(e5);
32
35
  if (o4 < 1) return;
33
- const l2 = U.configure.pagePermissions;
34
- [l2[o4 - 1], l2[o4]] = [l2[o4], l2[o4 - 1]];
35
- }(e4.row) }, { default: n(() => [s(u(f))]), _: 2 }, 1032, ["onClick"]), s(b2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
36
- let o4 = z(e5);
37
- const l2 = U.configure.pagePermissions;
38
- -1 != o4 && l2.length != o4 + 1 && ([l2[o4], l2[o4 + 1]] = [l2[o4 + 1], l2[o4]]);
39
- }(e4.row) }, { default: n(() => [s(u(g))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), s(C2, { prop: "simpleCode", label: "简码", width: "65" }, { default: n((o3) => ["auto" == o3.row.source ? (t(), a("span", { key: 0, title: o3.row.simpleCode }, p(o3.row.simpleCode), 9, h)) : (t(), a("span", v, [s(x, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l2, i2) => function(e5, o4, l3, i3) {
36
+ const l3 = U.configure.pagePermissions;
37
+ [l3[o4 - 1], l3[o4]] = [l3[o4], l3[o4 - 1]];
38
+ }(e4.row) }, { default: r(() => [u(a(g))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
39
+ let o4 = D(e5);
40
+ const l3 = U.configure.pagePermissions;
41
+ -1 != o4 && l3.length != o4 + 1 && ([l3[o4], l3[o4 + 1]] = [l3[o4 + 1], l3[o4]]);
42
+ }(e4.row) }, { default: r(() => [u(a(w))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), u(C2, { prop: "simpleCode", label: "简码", width: "65" }, { default: r((o3) => ["auto" == o3.row.source ? (n(), p("span", { key: 0, title: o3.row.simpleCode }, m(o3.row.simpleCode), 9, v)) : (n(), p("span", V, [u(k, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l3, i2) => function(e5, o4, l4, i3) {
40
43
  if (i3) {
41
44
  if (o4) {
42
- for (let l4 of U.configure.pagePermissions) if (l4.simpleCode == o4 && l4.type == e5 && l4.uuid != i3.uuid) return void alert("已经存在相同的权限!");
45
+ for (let l5 of U.configure.pagePermissions) if (l5.simpleCode == o4 && l5.type == e5 && l5.uuid != i3.uuid) return void alert("已经存在相同的权限!");
43
46
  }
44
- i3.type = e5, i3.simpleCode = o4, o4 && !l3 || (i3.name = l3);
47
+ i3.type = e5, i3.simpleCode = o4, o4 && !l4 || (i3.name = l4);
45
48
  }
46
- }(e4, l2, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), s(C2, { prop: "name", label: "名称", width: "70" }, { default: n((e4) => [s(_2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), s(C2, { prop: "funcType", label: "类型", width: "60" }, { default: n((e4) => [s(j2, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: n(() => [(t(true), a(m, null, c(u(T), (e5) => (t(), i(V3, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), s(C2, { label: "操作", width: "60" }, { default: n((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => D(e4.row) }, { default: n(() => [s(u(w))]), _: 2 }, 1032, ["onClick"]), "auto" != e4.row.source ? (t(), i(b2, { key: 0, size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
47
- let o4 = z(e5);
48
- o4 > -1 && (U.configure.pagePermissions.splice(o4, 1), 0 == U.configure.pagePermissions.length && setTimeout(function() {
49
- D(null);
50
- }, 10));
51
- }(e4.row) }, { default: n(() => [s(u(y))]), _: 2 }, 1032, ["onClick"])) : d("", true)]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
49
+ }(e4, l3, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), u(C2, { prop: "name", label: "名称", width: "70" }, { default: r((e4) => [u(_2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(C2, { prop: "funcType", label: "类型", width: "60" }, { default: r((e4) => [u(T3, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: r(() => [(n(true), p(c, null, d(a(j), (e5) => (n(), t(x2, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(C2, { label: "操作", width: "60" }, { default: r((e4) => [u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => O(e4.row) }, { default: r(() => [u(a(y))]), _: 2 }, 1032, ["onClick"]), "auto" != e4.row.source ? (n(), t(l2, { key: 0, size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
50
+ A && clearTimeout(A);
51
+ let o4 = D(e5);
52
+ o4 > -1 && (U.configure.pagePermissions.splice(o4, 1), 0 == U.configure.pagePermissions.length && (A = setTimeout(function() {
53
+ O(null);
54
+ }, 10)));
55
+ }(e4.row) }, { default: r(() => [u(a(b))]), _: 2 }, 1032, ["onClick"])) : f("", true)]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
52
56
  };
53
57
  } });
54
58
  export {
55
- V as default
59
+ T as default
56
60
  };
@@ -1,7 +1,7 @@
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
- const r = e(o, [["__scopeId", "data-v-52b49f1c"]]);
4
+ const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,22 +1,25 @@
1
- import { defineComponent as e, ref as t, onMounted as o, resolveComponent as n, createElementBlock as l, openBlock as a, createElementVNode as i, createVNode as r, createTextVNode as s, withCtx as u, unref as c, normalizeStyle as f } from "vue";
2
- import { useLocalStorage as p } from "@vueuse/core";
3
- import { Search as d, MagicStick as m } from "@element-plus/icons-vue";
4
- import { EditorView as g, basicSetup as v } from "codemirror";
5
- import { javascriptLanguage as w, javascript as y } from "@codemirror/lang-javascript";
6
- import { EditorState as b } from "@codemirror/state";
1
+ import { defineComponent as e, ref as t, onMounted as o, onUnmounted as n, resolveComponent as l, createElementBlock as a, openBlock as i, createElementVNode as r, createVNode as u, createTextVNode as s, withCtx as c, unref as f, normalizeStyle as p } from "vue";
2
+ import { useLocalStorage as d } from "@vueuse/core";
3
+ import { Search as m, MagicStick as g } from "@element-plus/icons-vue";
4
+ import { EditorView as v, basicSetup as w } from "codemirror";
5
+ import { javascriptLanguage as y, javascript as b } from "@codemirror/lang-javascript";
6
+ import { EditorState as h } from "@codemirror/state";
7
7
  import "@codemirror/autocomplete";
8
8
  import "@codemirror/language";
9
- import { openSearchPanel as h } from "@codemirror/search";
10
- import _ from "js-beautify";
11
- const x = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, C = { style: { color: "#909399", "font-size": "14px" } }, $ = { key: 0 }, P = { key: 1 }, U = { class: "editorTool" }, k = e({ __name: "config", props: { eventForm: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(e2, { expose: k2, emit: F }) {
12
- const S = e2;
9
+ import { openSearchPanel as _ } from "@codemirror/search";
10
+ import x from "js-beautify";
11
+ const C = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, $ = { style: { color: "#909399", "font-size": "14px" } }, P = { key: 0 }, U = { key: 1 }, k = { class: "editorTool" }, F = e({ __name: "config", props: { eventForm: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(e2, { expose: F2, emit: S }) {
12
+ const j = e2;
13
13
  t(false);
14
- const j = t({ theme: "default", fontSize: 14, searchOpen: false }), z = t(null), V = t(null), E = t(null), D = t({ backgroundColor: "#fff", color: "#333", border: "1px solid #ddd", overflow: "auto" });
14
+ const z = t({ theme: "default", fontSize: 14, searchOpen: false }), V = t(null), E = t(null), D = t(null), O = t({ backgroundColor: "#fff", color: "#333", border: "1px solid #ddd", overflow: "auto" });
15
+ let T;
15
16
  o(() => {
16
- let e3 = p("editorStyle", "").value;
17
- e3 && (e3 = JSON.parse(e3), j.value.theme = e3.theme || "default", j.value.fontSize = e3.fontSize || 14), T();
17
+ let e3 = d("editorStyle", "").value;
18
+ e3 && (e3 = JSON.parse(e3), z.value.theme = e3.theme || "default", z.value.fontSize = e3.fontSize || 14), R();
19
+ }), n(() => {
20
+ T && clearTimeout(T);
18
21
  });
19
- const O = w.data.of({ autocomplete: function(e3) {
22
+ const B = y.data.of({ autocomplete: function(e3) {
20
23
  let t2 = e3.matchBefore(/\w*|window\.\$PageUtil\.|window\.|logicContext\./);
21
24
  if (t2) {
22
25
  if ("window." === (t2 == null ? void 0 : t2.text)) return { from: t2.from, options: [{ label: "window.$PageUtil", type: "property", info: "页面工具方法" }, { label: "window.$message", type: "property", info: "提示信息" }, { label: "window.$http()", type: "property", info: "接口调用" }] };
@@ -26,44 +29,44 @@ const x = { style: { padding: "8px 16px", margin: "10px 0px", "background-color"
26
29
  }
27
30
  return null;
28
31
  } });
29
- function B() {
30
- p("editorStyle", j.value).value = j.value, z.value && (z.value && z.value.destroy(), T());
31
- }
32
32
  function L() {
33
- const e3 = g.theme({}), t2 = g.theme({ ".cm-content, .cm-gutter": { minHeight: "400px" }, "&": { fontSize: j.value.fontSize + "px" } });
34
- return b.create({ doc: S.eventForm.jsContent, extensions: [b.tabSize.of(16), v, y(), O, e3, t2, g.updateListener.of(function(e4) {
35
- S.eventForm.jsContent = e4.state.doc.toString();
33
+ d("editorStyle", z.value).value = z.value, V.value && (V.value && V.value.destroy(), R());
34
+ }
35
+ function H() {
36
+ const e3 = v.theme({}), t2 = v.theme({ ".cm-content, .cm-gutter": { minHeight: "400px" }, "&": { fontSize: z.value.fontSize + "px" } });
37
+ return h.create({ doc: j.eventForm.jsContent, extensions: [h.tabSize.of(16), w, b(), B, e3, t2, v.updateListener.of(function(e4) {
38
+ j.eventForm.jsContent = e4.state.doc.toString();
36
39
  })] });
37
40
  }
38
- function T() {
39
- const e3 = L();
40
- z.value = new g({ state: e3, parent: document.getElementById("cf-codemirror") || void 0 });
41
+ function R() {
42
+ const e3 = H();
43
+ V.value = new v({ state: e3, parent: document.getElementById("cf-codemirror") || void 0 });
41
44
  }
42
- function H() {
43
- if (z.value) {
44
- z.value.focus(), h(z.value) && z.value.update([]);
45
+ function q() {
46
+ if (V.value) {
47
+ V.value.focus(), _(V.value) && V.value.update([]);
45
48
  }
46
49
  }
47
- function R() {
48
- if (z.value) {
49
- const e3 = _.js(S.eventForm.jsContent, { indent_level: 0, indent_size: 2, space_in_empty_paren: false, max_preserve_newlines: 2, preserve_newlines: true, jslint_happy: false, keep_array_indentation: false, keep_function_indentation: false, space_before_conditional: true, break_chained_methods: false, eval_code: false, unescape_strings: false, wrap_line_length: 0, end_with_newline: false });
50
- z.value.dispatch({ changes: { from: 0, to: S.eventForm.jsContent.length, insert: e3 } });
50
+ function G() {
51
+ if (V.value) {
52
+ const e3 = x.js(j.eventForm.jsContent, { indent_level: 0, indent_size: 2, space_in_empty_paren: false, max_preserve_newlines: 2, preserve_newlines: true, jslint_happy: false, keep_array_indentation: false, keep_function_indentation: false, space_before_conditional: true, break_chained_methods: false, eval_code: false, unescape_strings: false, wrap_line_length: 0, end_with_newline: false });
53
+ V.value.dispatch({ changes: { from: 0, to: j.eventForm.jsContent.length, insert: e3 } });
51
54
  }
52
55
  }
53
- return k2({ resize: function() {
54
- V.value && setTimeout(() => {
55
- const e3 = V.value.getBoundingClientRect(), t2 = window.innerHeight - e3.y - 30 + "px";
56
- z.value && z.value.dom && (z.value.dom.style.height = t2);
57
- }, 10);
56
+ return F2({ resize: function() {
57
+ T && clearTimeout(T), E.value && (T = setTimeout(() => {
58
+ const e3 = E.value.getBoundingClientRect(), t2 = window.innerHeight - e3.y - 30 + "px";
59
+ V.value && V.value.dom && (V.value.dom.style.height = t2);
60
+ }, 10));
58
61
  }, updateJsContent: function(e3) {
59
62
  var _a;
60
- const t2 = S.eventForm.jsContent ? S.eventForm.jsContent : "";
61
- e3 && S.eventForm && (e3.jsContent || (e3.jsContent = ""), Object.assign(S.eventForm, e3), (_a = z.value) == null ? void 0 : _a.dispatch({ changes: { from: 0, to: t2.length, insert: S.eventForm.jsContent } }));
63
+ const t2 = j.eventForm.jsContent ? j.eventForm.jsContent : "";
64
+ e3 && j.eventForm && (e3.jsContent || (e3.jsContent = ""), Object.assign(j.eventForm, e3), (_a = V.value) == null ? void 0 : _a.dispatch({ changes: { from: 0, to: t2.length, insert: j.eventForm.jsContent } }));
62
65
  } }), (t2, o2) => {
63
- const p2 = n("el-input"), g2 = n("el-option"), v2 = n("el-select"), w2 = n("el-tooltip"), y2 = n("el-icon");
64
- return a(), l("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: E }, [i("div", x, [i("span", C, [o2[6] || (o2[6] = s(" function ")), "customFunc" === e2.eventForm.name ? (a(), l("span", $, [o2[3] || (o2[3] = s(" ( ")), o2[4] || (o2[4] = i("span", { class: "is_req" }, [i("span", { class: "cell--span required__label" })], -1)), r(p2, { size: "small", modelValue: e2.eventForm.funcParam, "onUpdate:modelValue": o2[0] || (o2[0] = (t3) => e2.eventForm.funcParam = t3), style: { width: "300px" }, title: "方法参数" }, null, 8, ["modelValue"]), o2[5] || (o2[5] = s(" ) "))])) : (a(), l("span", P, " ( params ) ")), o2[7] || (o2[7] = s("{ "))]), i("span", U, [r(w2, { class: "box-item", effect: "dark", content: "切换主题", placement: "top" }, { default: u(() => [r(v2, { class: "editorOption", onChange: B, modelValue: j.value.theme, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => j.value.theme = e3), placeholder: "", size: "small", style: { width: "120px" } }, { default: u(() => [r(g2, { label: "默认", value: "default" }), r(g2, { label: "VScodeDark", value: "vscodeDark" }), r(g2, { label: "Dracula", value: "dracula" }), r(g2, { label: "GithubLight", value: "githubLight" }), r(g2, { label: "GithubDark", value: "githubDark" }), r(g2, { label: "Eclipse", value: "eclipse" }), r(g2, { label: "XcodeLight", value: "xcodeLight" }), r(g2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(w2, { class: "box-item", effect: "dark", content: "切换字体大小", placement: "top" }, { default: u(() => [r(v2, { class: "editorOption", modelValue: j.value.fontSize, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => j.value.fontSize = e3), placeholder: "", onChange: B, size: "small", style: { width: "80px" } }, { default: u(() => [r(g2, { label: "12", value: 12 }), r(g2, { label: "14", value: 14 }), r(g2, { label: "16", value: 16 }), r(g2, { label: "18", value: 18 }), r(g2, { label: "20", value: 20 }), r(g2, { label: "22", value: 22 }), r(g2, { label: "24", value: 24 }), r(g2, { label: "26", value: 26 }), r(g2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), r(w2, { class: "box-item", effect: "dark", content: "打开搜索", placement: "top" }, { default: u(() => [r(y2, { class: "editorOption", onClick: H }, { default: u(() => [r(c(d))]), _: 1 })]), _: 1 }), r(w2, { class: "box-item", effect: "dark", content: "格式化代码", placement: "top" }, { default: u(() => [r(y2, { class: "editorOption", onClick: R }, { default: u(() => [r(c(m))]), _: 1 })]), _: 1 })]), i("div", { style: f(D.value), id: "cf-codemirror", ref_key: "codemirrorRef", ref: V }, null, 4), o2[8] || (o2[8] = i("span", { style: { color: "gray" } }, " }", -1))], 512);
66
+ const n2 = l("el-input"), d2 = l("el-option"), v2 = l("el-select"), w2 = l("el-tooltip"), y2 = l("el-icon");
67
+ return i(), a("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: D }, [r("div", C, [r("span", $, [o2[6] || (o2[6] = s(" function ")), "customFunc" === e2.eventForm.name ? (i(), a("span", P, [o2[3] || (o2[3] = s(" ( ")), o2[4] || (o2[4] = r("span", { class: "is_req" }, [r("span", { class: "cell--span required__label" })], -1)), u(n2, { size: "small", modelValue: e2.eventForm.funcParam, "onUpdate:modelValue": o2[0] || (o2[0] = (t3) => e2.eventForm.funcParam = t3), style: { width: "300px" }, title: "方法参数" }, null, 8, ["modelValue"]), o2[5] || (o2[5] = s(" ) "))])) : (i(), a("span", U, " ( params ) ")), o2[7] || (o2[7] = s("{ "))]), r("span", k, [u(w2, { class: "box-item", effect: "dark", content: "切换主题", placement: "top" }, { default: c(() => [u(v2, { class: "editorOption", onChange: L, modelValue: z.value.theme, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => z.value.theme = e3), placeholder: "", size: "small", style: { width: "120px" } }, { default: c(() => [u(d2, { label: "默认", value: "default" }), u(d2, { label: "VScodeDark", value: "vscodeDark" }), u(d2, { label: "Dracula", value: "dracula" }), u(d2, { label: "GithubLight", value: "githubLight" }), u(d2, { label: "GithubDark", value: "githubDark" }), u(d2, { label: "Eclipse", value: "eclipse" }), u(d2, { label: "XcodeLight", value: "xcodeLight" }), u(d2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { class: "box-item", effect: "dark", content: "切换字体大小", placement: "top" }, { default: c(() => [u(v2, { class: "editorOption", modelValue: z.value.fontSize, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => z.value.fontSize = e3), placeholder: "", onChange: L, size: "small", style: { width: "80px" } }, { default: c(() => [u(d2, { label: "12", value: 12 }), u(d2, { label: "14", value: 14 }), u(d2, { label: "16", value: 16 }), u(d2, { label: "18", value: 18 }), u(d2, { label: "20", value: 20 }), u(d2, { label: "22", value: 22 }), u(d2, { label: "24", value: 24 }), u(d2, { label: "26", value: 26 }), u(d2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), u(w2, { class: "box-item", effect: "dark", content: "打开搜索", placement: "top" }, { default: c(() => [u(y2, { class: "editorOption", onClick: q }, { default: c(() => [u(f(m))]), _: 1 })]), _: 1 }), u(w2, { class: "box-item", effect: "dark", content: "格式化代码", placement: "top" }, { default: c(() => [u(y2, { class: "editorOption", onClick: G }, { default: c(() => [u(f(g))]), _: 1 })]), _: 1 })]), r("div", { style: p(O.value), id: "cf-codemirror", ref_key: "codemirrorRef", ref: E }, null, 4), o2[8] || (o2[8] = r("span", { style: { color: "gray" } }, " }", -1))], 512);
65
68
  };
66
69
  } });
67
70
  export {
68
- k as default
71
+ F as default
69
72
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as e, ref as l, computed as t, onMounted as a, resolveComponent as n, createElementBlock as o, openBlock as i, normalizeStyle 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 h } from "vue";
2
- import { Search as b } 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 y from "../view/assemblys-container-explore.vue.js";
6
- import { deepCopy as C } from "../../../utils/common-util.js";
7
- import _ from "../../../utils/eventBus.js";
8
- import { usePageContextStore as k } from "../../../../../stores/page-store.js";
9
- const E = { style: { "padding-top": "10px" } }, V = ["title"], j = ["title"], L = { key: 0 }, U = { key: 1 }, $ = ["title"], z = ["title"], S = ["title"], T = e({ __name: "page-event-container", props: { configure: {}, configureObj: {}, editEvent: {} }, emits: ["add-event", "change-event"], setup(e2, { expose: T2, emit: B }) {
10
- const I = k(), N = l(null), W = l(), F = l(false);
11
- let H = l(["searchCollapse", "addCollapse", "unUseEventCollapse"]), O = l(null), P = l("");
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, normalizeStyle as u, createElementVNode as r, createVNode as m, withCtx as p, unref as d, isRef as c, toDisplayString as v, withDirectives as f, withModifiers as g, createTextVNode as h, vShow as b } from "vue";
2
+ import { Search as w } from "@element-plus/icons-vue";
3
+ import { ElMessageBox as x } from "element-plus";
4
+ import { getDesignConfByName as y } from "../../../utils/assemblys-config.js";
5
+ import C from "../view/assemblys-container-explore.vue.js";
6
+ import { deepCopy as _ } from "../../../utils/common-util.js";
7
+ import k from "../../../utils/eventBus.js";
8
+ import { usePageContextStore as E } from "../../../../../stores/page-store.js";
9
+ const 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 = E(), P = l(null), W = l(), D = l(false);
11
+ let F = l(["searchCollapse", "addCollapse", "unUseEventCollapse"]), H = l(null), O = l("");
12
12
  const R = t(() => {
13
13
  let e3 = "";
14
- const l2 = O.value;
14
+ const l2 = H.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,26 +19,26 @@ const E = { style: { "padding-top": "10px" } }, V = ["title"], j = ["title"], L
19
19
  }
20
20
  return e3;
21
21
  });
22
- let D = t(() => N.value && N.value.customEvents ? N.value.customEvents.filter((e3) => "customFunc" == e3.name) : []);
23
- const M = t(() => {
24
- let e3 = O.value ? O.value.name : null;
22
+ let M = t(() => P.value && P.value.customEvents ? P.value.customEvents.filter((e3) => "customFunc" == e3.name) : []);
23
+ const q = t(() => {
24
+ let e3 = H.value ? H.value.name : null;
25
25
  e3 = e3 || "page";
26
- const l2 = O.value ? O.value.uuid : null;
26
+ const l2 = H.value ? H.value.uuid : null;
27
27
  let t2 = [];
28
28
  const a2 = [];
29
- if (N.value && N.value.customEvents) for (let n3 of N.value.customEvents) "customFunc" != n3.name && ("page" !== e3 && n3.uuid !== l2 || (t2.push(n3), a2.includes(n3.name) || a2.push(n3.name)));
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 ? N.value ? N.value.events : null : O.value ? O.value.events : null, n2) {
31
+ if (n2 = "page" == e3 ? P.value ? P.value.events : null : H.value ? H.value.events : null, n2) {
32
32
  for (let l4 of n2) {
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 : "");
33
+ l4.componentUuid || (l4.componentUuid = H.value && H.value.uuid ? H.value.uuid : "page"), l4.componentLabel || (l4.componentLabel = "page" == e3 ? "页面" : H.value ? H.value.label : "");
34
34
  let n3 = "";
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));
35
+ H.value && H.value.props && H.value.props.base && (n3 = H.value.props.base.title), l4.title = n3, a2.includes(l4.name) || (t2.push(l4), a2.push(l4.name));
36
36
  }
37
- let l3 = x(e3);
37
+ let l3 = y(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)) {
41
- const l4 = C(e4);
41
+ const l4 = _(e4);
42
42
  t2.push(l4), n2.push(l4), a2.push(e4.name);
43
43
  }
44
44
  if ("page" !== e3) {
@@ -49,43 +49,46 @@ const E = { style: { "padding-top": "10px" } }, V = ["title"], j = ["title"], L
49
49
  }
50
50
  } else t2 = [];
51
51
  }
52
- if (P.value) {
52
+ if (O.value) {
53
53
  const e4 = [];
54
- for (let l3 of t2) (l3.name && l3.name.includes(P.value) || l3.label && l3.label.includes(P.value)) && e4.push(l3);
54
+ for (let l3 of t2) (l3.name && l3.name.includes(O.value) || l3.label && l3.label.includes(O.value)) && e4.push(l3);
55
55
  return e4;
56
56
  }
57
57
  return t2;
58
- }), q = l([]), A = l(), G = t(() => ({ height: A.value + "px" }));
59
- function J(e3) {
60
- N.value = e3, q.value = e3 && e3.items ? e3.items : [], Y(null, null);
61
- }
58
+ }), A = l([]), G = l(), J = t(() => ({ height: G.value + "px" }));
62
59
  function K(e3) {
63
- w.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
64
- _.$emit("clearEvent", e3);
65
- });
60
+ P.value = e3, A.value = e3 && e3.items ? e3.items : [], ee(null, null);
66
61
  }
67
62
  function Q(e3) {
68
- _.$emit("editEvent", e3);
63
+ x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
64
+ k.$emit("clearEvent", e3);
65
+ });
69
66
  }
70
67
  function X(e3) {
71
- _.$emit("editEvent", e3);
68
+ k.$emit("editEvent", e3);
69
+ }
70
+ function Y(e3) {
71
+ k.$emit("editEvent", e3);
72
72
  }
73
- function Y(e3, l2) {
74
- O.value = l2, F.value = false;
73
+ let Z;
74
+ function ee(e3, l2) {
75
+ H.value = l2, D.value = false;
75
76
  }
76
77
  return a(() => {
77
- J(I.pageContext), A.value = window.innerHeight, W.value = window.innerHeight - 220;
78
- }), _.$on("changePageDesign", () => {
79
- J(I.pageContext);
80
- }), _.$on("editComponentEvent", (e3) => {
81
- O.value = e3.configureObj, setTimeout(function() {
82
- _.$emit("editEvent", e3.event);
78
+ K(N.pageContext), G.value = window.innerHeight, W.value = window.innerHeight - 220;
79
+ }), k.$on("changePageDesign", () => {
80
+ K(N.pageContext);
81
+ }), k.$on("editComponentEvent", (e3) => {
82
+ Z && clearTimeout(Z), H.value = e3.configureObj, Z = setTimeout(function() {
83
+ k.$emit("editEvent", e3.event);
83
84
  }, 100);
84
- }), T2({}), (e3, l2) => {
85
- const t2 = n("el-button"), a2 = n("el-input"), w2 = n("el-popover"), x2 = n("el-table-column"), C2 = n("el-table"), _2 = n("el-collapse-item"), k2 = n("el-collapse");
86
- return i(), o("div", { class: "amb-design-assembly-content", ref: "ambPageEventList", style: s(G.value) }, [u("div", null, [u("div", E, [r(w2, { placement: "right", width: 300, visible: F.value, trigger: "manual" }, { reference: m(() => [r(a2, { size: "small", modelValue: R.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => R.value = e4), placeholder: "请选择组件", readonly: "", clearable: "", onClick: l2[2] || (l2[2] = (e4) => F.value = !F.value) }, { append: m(() => [r(t2, { type: "info", icon: p(b), circle: "", text: "", onClick: l2[0] || (l2[0] = (e4) => F.value = !F.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"])]), default: m(() => [r(y, { onSelectComponent: Y, treeMarginTop: "", headerSearchClass: "custom", designItems: q.value, selectWidget: e3.selectWidget }, null, 8, ["designItems", "selectWidget"])]), _: 1 }, 8, ["visible"])])]), u("div", null, [r(k2, { modelValue: p(H), "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => d(H) ? H.value = e4 : H = e4), style: { "margin-top": "10px" } }, { default: m(() => [r(_2, { class: "amb-assembly-collapse-header", name: "searchCollapse", title: "事件列表" }, { default: m(() => [u("div", { style: s("max-height:" + W.value + "px") }, [r(a2, { modelValue: p(P), "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => d(P) ? P.value = e4 : P = e4), placeholder: "名称/别名...", clearable: "", class: "input-with-select", style: { "margin-top": "10px", "margin-bottom": "10px" }, "suffix-icon": p(b) }, null, 8, ["modelValue", "suffix-icon"]), r(C2, { size: "small", data: M.value, style: { width: "100%" }, "max-height": W.value, "highlight-current-row": "", onRowClick: X }, { default: m(() => [r(x2, { label: "名称", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.name }, c(e4.row.name), 9, V)]), _: 1 }), r(x2, { label: "别名", width: "60" }, { default: m((e4) => [u("span", { title: e4.row.label }, c(e4.row.label), 9, j)]), _: 1 }), r(x2, { label: "组件", width: "120", align: "left" }, { default: m((e4) => [e4.row.title || e4.row.componentLabel ? (i(), o("span", L, c(e4.row.title ? e4.row.title + "(" + e4.row.componentLabel + ")" : e4.row.componentLabel), 1)) : (i(), o("span", U, c(p(O) ? p(O).label : "页面"), 1))]), _: 1 }), r(x2, { label: "备注" }, { default: m((e4) => [u("span", { title: e4.row.remark }, c(e4.row.remark), 9, $)]), _: 1 }), r(x2, { 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) => K(e4.row), ["stop"]) }, { default: m(() => l2[5] || (l2[5] = [g("清除")])), _: 2 }, 1032, ["disabled", "onClick"]), [[h, e4.row.isStandard && e4.row.eventName || !e4.row.isStandard && e4.row.jsContent]])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])], 4)]), _: 1 }), r(_2, { class: "amb-assembly-collapse-header", name: "addCollapse", title: "自定义方法" }, { default: m(() => [r(C2, { size: "small", data: p(D), "highlight-current-row": "", style: { width: "100%" }, "max-height": W.value, onRowClick: Q }, { default: m(() => [r(x2, { prop: "label", label: "方法名", width: "90" }, { default: m((e4) => [u("span", { title: e4.row.eventName }, c(e4.row.eventName), 9, z)]), _: 1 }), r(x2, { prop: "label", label: "描述" }, { default: m((e4) => [u("span", { title: e4.row.remark }, c(e4.row.remark), 9, S)]), _: 1 }), r(x2, { fixed: "right", label: "", width: "50", align: "center" }, { default: m((e4) => [r(t2, { disabled: e4.row.disable, link: "", type: "primary", size: "small", onClick: f((l3) => K(e4.row), ["stop"]) }, { default: m(() => l2[6] || (l2[6] = [g("清除")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])], 4);
85
+ }), n(() => {
86
+ Z && clearTimeout(Z), k.$off("changePageDesign"), k.$off("editComponentEvent");
87
+ }), B2({}), (e3, l2) => {
88
+ const t2 = o("el-button"), a2 = o("el-input"), n2 = o("el-popover"), x2 = o("el-table-column"), y2 = o("el-table"), _2 = o("el-collapse-item"), k2 = o("el-collapse");
89
+ return s(), i("div", { class: "amb-design-assembly-content", ref: "ambPageEventList", style: u(J.value) }, [r("div", null, [r("div", V, [m(n2, { placement: "right", width: 300, visible: D.value, trigger: "manual" }, { reference: p(() => [m(a2, { size: "small", modelValue: R.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => R.value = e4), placeholder: "请选择组件", readonly: "", clearable: "", onClick: l2[2] || (l2[2] = (e4) => D.value = !D.value) }, { append: p(() => [m(t2, { type: "info", icon: d(w), circle: "", text: "", onClick: l2[0] || (l2[0] = (e4) => D.value = !D.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"])]), default: p(() => [m(C, { onSelectComponent: ee, treeMarginTop: "", headerSearchClass: "custom", designItems: A.value, selectWidget: e3.selectWidget }, null, 8, ["designItems", "selectWidget"])]), _: 1 }, 8, ["visible"])])]), r("div", null, [m(k2, { modelValue: d(F), "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => c(F) ? F.value = e4 : F = e4), style: { "margin-top": "10px" } }, { default: p(() => [m(_2, { class: "amb-assembly-collapse-header", name: "searchCollapse", title: "事件列表" }, { default: p(() => [r("div", { style: u("max-height:" + W.value + "px") }, [m(a2, { modelValue: d(O), "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => c(O) ? O.value = e4 : O = e4), placeholder: "名称/别名...", clearable: "", class: "input-with-select", style: { "margin-top": "10px", "margin-bottom": "10px" }, "suffix-icon": d(w) }, null, 8, ["modelValue", "suffix-icon"]), m(y2, { size: "small", data: q.value, style: { width: "100%" }, "max-height": W.value, "highlight-current-row": "", onRowClick: Y }, { default: p(() => [m(x2, { label: "名称", width: "90" }, { default: p((e4) => [r("span", { title: e4.row.name }, v(e4.row.name), 9, j)]), _: 1 }), m(x2, { label: "别名", width: "60" }, { default: p((e4) => [r("span", { title: e4.row.label }, v(e4.row.label), 9, $)]), _: 1 }), m(x2, { label: "组件", width: "120", align: "left" }, { default: p((e4) => [e4.row.title || e4.row.componentLabel ? (s(), i("span", L, v(e4.row.title ? e4.row.title + "(" + e4.row.componentLabel + ")" : e4.row.componentLabel), 1)) : (s(), i("span", T, v(d(H) ? d(H).label : "页面"), 1))]), _: 1 }), m(x2, { label: "备注" }, { default: p((e4) => [r("span", { title: e4.row.remark }, v(e4.row.remark), 9, U)]), _: 1 }), m(x2, { fixed: "right", label: "", width: "40", align: "center" }, { default: p((e4) => [f(m(t2, { disabled: false === e4.row.isEdit, link: "", type: "danger", size: "small", onClick: g((l3) => Q(e4.row), ["stop"]) }, { default: p(() => l2[5] || (l2[5] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"]), [[b, e4.row.isStandard && e4.row.eventName || !e4.row.isStandard && e4.row.jsContent]])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])], 4)]), _: 1 }), m(_2, { class: "amb-assembly-collapse-header", name: "addCollapse", title: "自定义方法" }, { default: p(() => [m(y2, { size: "small", data: d(M), "highlight-current-row": "", style: { width: "100%" }, "max-height": W.value, onRowClick: X }, { default: p(() => [m(x2, { prop: "label", label: "方法名", width: "90" }, { default: p((e4) => [r("span", { title: e4.row.eventName }, v(e4.row.eventName), 9, z)]), _: 1 }), m(x2, { prop: "label", label: "描述" }, { default: p((e4) => [r("span", { title: e4.row.remark }, v(e4.row.remark), 9, S)]), _: 1 }), m(x2, { fixed: "right", label: "", width: "50", align: "center" }, { default: p((e4) => [m(t2, { disabled: e4.row.disable, link: "", type: "primary", size: "small", onClick: g((l3) => Q(e4.row), ["stop"]) }, { default: p(() => l2[6] || (l2[6] = [h("清除")])), _: 2 }, 1032, ["disabled", "onClick"])]), _: 1 })]), _: 1 }, 8, ["data", "max-height"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])], 4);
87
90
  };
88
91
  } });
89
92
  export {
90
- T as default
93
+ B as default
91
94
  };