super-page-designer 2.3.16-sit3-design1 → 2.3.17-sit1-design1

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 (29) hide show
  1. package/dist/es/assets/images/data/file.png.js +4 -0
  2. package/dist/es/assets/images/data/folder.png.js +4 -0
  3. package/dist/es/components/design/utils/ucr-element-filter.d.ts +2 -0
  4. package/dist/es/components/design/utils/ucr-element-filter.js +11 -0
  5. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +7 -7
  6. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  7. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +11 -11
  8. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/object-design.vue3.js +66 -66
  11. package/dist/es/components/design/views/design/page-design.vue.d.ts +9 -0
  12. package/dist/es/components/design/views/design/page-design.vue2.js +42 -42
  13. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +11 -10
  14. package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +16 -2
  15. package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +8 -8
  16. package/dist/es/components/design/views/design/view/assemblys-container-list.vue.d.ts +16 -2
  17. package/dist/es/components/design/views/design/view/assemblys-container-list.vue.js +23 -20
  18. package/dist/es/components/design/views/design/view/assemblys-container.vue.js +11 -12
  19. package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.d.ts +38 -0
  20. package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.js +7 -0
  21. package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js +111 -0
  22. package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.d.ts +6 -0
  23. package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.js +27 -0
  24. package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
  25. package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
  26. package/dist/es/components/design/views/design/view/page-switch.vue2.js +34 -30
  27. package/dist/es/components/design/views/design/view/view-design-display.vue.js +13 -13
  28. package/dist/es/style.css +33 -5
  29. package/package.json +5 -5
@@ -1,44 +1,44 @@
1
- import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createElementBlock as s, openBlock as t, createElementVNode as i, createCommentVNode as n, createVNode as u, withCtx as r, createBlock as v, normalizeClass as p, withDirectives as c, vShow as f, unref as d } from "vue";
1
+ import { defineComponent as e, ref as l, watch as o, resolveComponent as s, createElementBlock as a, openBlock as t, createElementVNode as i, createCommentVNode as n, createVNode as u, withCtx as r, createBlock as v, normalizeClass as p, withDirectives as c, vShow as d, unref as f } from "vue";
2
2
  import m from "./view/view-design.vue.js";
3
3
  import { initComponentRefState as g } from "../../utils/page-helper-util.js";
4
4
  import { getTableNameByTableUuid as w, queryTableFields as k, changeFeieldToMap as y } from "../../utils/page-table-util.js";
5
5
  import { addPermission as b, delPermission as h } from "../../utils/page-permission-util.js";
6
6
  import { usePageContextStore as C } from "../../../../stores/page-store.js";
7
- import S from "service-flow-designer";
8
- import { getHighestVersionDefinition as V } from "../../utils/page-design-util.js";
9
- import { getPageConf as j } from "../../utils/assemblys-config.js";
10
- import { fetchPageDesignData as _ } from "../../utils/page-service-util.js";
11
- import { ElMessage as D, ElLoading as M } from "element-plus";
12
- import W from "./view/page-switch.vue.js";
13
- import { undoRedo as I } from "../../../../stores/undo-redo-store.js";
14
- import x from "./page-event/page-event-view.vue.js";
15
- import B from "../../utils/eventBus.js";
7
+ import D from "service-flow-designer";
8
+ import { getHighestVersionDefinition as S } from "../../utils/page-design-util.js";
9
+ import { getPageConf as V } from "../../utils/assemblys-config.js";
10
+ import { fetchPageDesignData as j } from "../../utils/page-service-util.js";
11
+ import { ElMessage as _, ElLoading as I } from "element-plus";
12
+ import M from "./view/page-switch.vue.js";
13
+ import { undoRedo as W } from "../../../../stores/undo-redo-store.js";
14
+ import B from "./page-event/page-event-view.vue.js";
15
+ import x from "../../utils/eventBus.js";
16
16
  import { v4 as J } from "uuid";
17
- const P = { class: "amb-page-container" }, T = { class: "amb-page-container-header-page" }, $ = { class: "amb-page-container-header" }, N = { class: "amb-page-container-header-type" }, R = { key: 0, class: "amb-page-container-main" }, A = e({ __name: "page-design", props: { pageId: { type: Number, default: null } }, setup(e2) {
18
- const A2 = I(), E = e2, F = l(null), G = l(null), O = l(), z = C(), q = l("page"), L = l(null), U = l(null), H = l(null), K = l(false), Q = l(true), X = l(0);
17
+ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-header-page" }, $ = { class: "amb-page-container-header" }, N = { class: "amb-page-container-header-type" }, R = { key: 0, class: "amb-page-container-main" }, A = e({ __name: "page-design", props: { pageId: { type: Number, default: null }, ucrDesign: { type: Boolean, default: false } }, setup(e2) {
18
+ const A2 = W(), E = e2, F = l(null), G = l(null), O = l(), z = C(), q = l("page"), L = l(null), U = l(null), H = l(null), K = l(false), Q = l(true), X = l(0);
19
19
  let Y = l(null);
20
20
  const Z = l(null);
21
21
  function ee() {
22
22
  q.value = "front", O.value && O.value.resize && O.value.resize();
23
23
  }
24
24
  function le(e3) {
25
- const l2 = j();
25
+ const l2 = V();
26
26
  return e3 ? Object.assign(l2, e3) : l2.systemCode || (l2.systemCode = "iqc", l2.systemVersion = 1), l2;
27
27
  }
28
28
  function oe(e3) {
29
29
  let l2;
30
- g(e3);
31
- const a2 = e3 == null ? void 0 : e3.tableUuids;
32
- a2 && a2.length > 0 && (l2 = a2[0]);
33
- const s2 = w(e3, l2);
34
- if (s2) {
30
+ e3.ucrDesign = E.ucrDesign, g(e3);
31
+ const s2 = e3 == null ? void 0 : e3.tableUuids;
32
+ s2 && s2.length > 0 && (l2 = s2[0]);
33
+ const a2 = w(e3, l2);
34
+ if (a2) {
35
35
  const l3 = e3.tableSysCode ? e3.tableSysCode : e3.systemCode, o2 = e3.tableSysVersion ? e3.tableSysVersion : e3.systemVersion;
36
- k(l3, o2, s2).then((l4) => {
36
+ k(l3, o2, a2).then((l4) => {
37
37
  e3.modelFields = l4, e3.modelFieldsMap = y(e3.modelFieldsMap, l4), z.setPageContext(e3);
38
38
  });
39
39
  }
40
40
  Y.value = e3.systemVersion, z.setPageContext(e3), o(() => e3, (e4) => {
41
- se();
41
+ ae();
42
42
  }, { deep: true }), o(e3.events, (l3) => {
43
43
  if (e3.runtime || (e3.runtime = {}), e3.events) {
44
44
  const l4 = e3.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
@@ -50,34 +50,34 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
50
50
  ue(e3);
51
51
  }, { immediate: true }), e3.props && o(() => e3.props.activeWorkflow, () => {
52
52
  ue(e3);
53
- }, { immediate: true }), B.$emit("changePageDesign"), function() {
54
- ae("_isMobile", { level: 0, code: J(), name: "_isMobile", alias: "是否是移动端", type: "string", defaultValue: "", items: [], $editing: false });
55
- ae("_isMobileApp", { level: 0, code: J(), name: "_isMobileApp", alias: "是否是移动端APP", type: "string", defaultValue: "", items: [], $editing: false });
56
- ae("_isMobileBrowser", { level: 0, code: J(), name: "_isMobileBrowser", alias: "是否是移动端浏览器", type: "string", defaultValue: "", items: [], $editing: false });
53
+ }, { immediate: true }), x.$emit("changePageDesign"), function() {
54
+ se("_isMobile", { level: 0, code: J(), name: "_isMobile", alias: "是否是移动端", type: "string", defaultValue: "", items: [], $editing: false });
55
+ se("_isMobileApp", { level: 0, code: J(), name: "_isMobileApp", alias: "是否是移动端APP", type: "string", defaultValue: "", items: [], $editing: false });
56
+ se("_isMobileBrowser", { level: 0, code: J(), name: "_isMobileBrowser", alias: "是否是移动端浏览器", type: "string", defaultValue: "", items: [], $editing: false });
57
57
  }();
58
58
  }
59
- function ae(e3, l2) {
59
+ function se(e3, l2) {
60
60
  var _a;
61
61
  const o2 = (_a = F.value.variables) == null ? void 0 : _a.filter((l3) => l3.name && l3.name === e3);
62
62
  o2 && 0 !== o2.length || (F.value.variables || (F.value.variables = []), F.value.variables.push(l2));
63
63
  }
64
- B.$on("editComponentEvent", () => {
64
+ x.$on("editComponentEvent", () => {
65
65
  ee();
66
- }), E.pageId ? _(E.pageId).then((e3) => {
66
+ }), E.pageId ? j(E.pageId).then((e3) => {
67
67
  if (e3 && e3.designJson) {
68
68
  const l2 = e3.designJson, o2 = le(JSON.parse(l2));
69
69
  o2.id = E.pageId, F.value = o2, oe(F.value);
70
70
  } else F.value = le(null), oe(F.value);
71
- }) : (F.value = le(null), oe(F.value));
72
- let se = /* @__PURE__ */ function(e3, l2) {
71
+ }) : E.ucrDesign || (F.value = le(null), oe(F.value));
72
+ let ae = /* @__PURE__ */ function(e3, l2) {
73
73
  let o2 = null;
74
74
  return function() {
75
- let a2 = arguments;
75
+ let s2 = arguments;
76
76
  o2 && clearTimeout(o2);
77
- let s2 = !o2;
77
+ let a2 = !o2;
78
78
  o2 = setTimeout(() => {
79
79
  o2 = null;
80
- }, l2), s2 && e3.apply(this, a2);
80
+ }, l2), a2 && e3.apply(this, s2);
81
81
  };
82
82
  }(() => {
83
83
  A2.addSnapshot(F.value);
@@ -100,7 +100,7 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
100
100
  b(e3, "gets", "", "-1"), o2.push("gets");
101
101
  (e3.props ? e3.props : {}).activeWorkflow && (b(e3, "workflowGets", "", "-1"), o2.push("workflowGets"));
102
102
  }
103
- for (let a2 of l2) o2.includes(a2) || h(e3, a2, "-1");
103
+ for (let s2 of l2) o2.includes(s2) || h(e3, s2, "-1");
104
104
  }
105
105
  function re(e3) {
106
106
  U.value = e3.code, H.value = e3.definitionVersion, L.value = e3.id;
@@ -109,28 +109,28 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
109
109
  if (!Q.value) return;
110
110
  let e3, l2;
111
111
  F.value.props.activeWorkflow && F.value.props.workflowSource && "link" === F.value.props.workflowSource ? (l2 = F.value.props.linkWorkflowCode, e3 = F.value.props.linkWorkflowVersion) : F.value.props.activeWorkflow && F.value.props.workflowSource && "create" === F.value.props.workflowSource && (l2 = F.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !H.value || U.value !== l2 || H.value !== e3 ? (K.value = false, Q.value = false, function(e4, l3) {
112
- V(e4, l3, Y.value).then((e5) => {
112
+ S(e4, l3, Y.value).then((e5) => {
113
113
  re(e5), q.value = "workflow", K.value = true;
114
114
  }).finally(() => {
115
115
  Q.value = true;
116
116
  });
117
- }(l2, e3)) : q.value = "workflow" : D({ type: "warning", showClose: true, message: "请在页面设计/属性/工作流中先绑定流程" });
117
+ }(l2, e3)) : q.value = "workflow" : _({ type: "warning", showClose: true, message: "请在页面设计/属性/工作流中先绑定流程" });
118
118
  }
119
119
  function pe(e3) {
120
- const l2 = M.service({ lock: true, text: "切换中,请稍后..." });
121
- _(e3).then((o2) => {
120
+ const l2 = I.service({ lock: true, text: "加载中,请稍后..." });
121
+ j(e3).then((o2) => {
122
122
  if (X.value++, l2.close(), o2 && o2.designJson) {
123
- const l3 = o2.designJson, a2 = le(JSON.parse(l3));
124
- a2.id = e3, F.value = a2, F.value.items || (F.value.items = []), F.value.props || (F.value.props = {}), oe(F.value);
123
+ const l3 = o2.designJson, s2 = le(JSON.parse(l3));
124
+ s2.id = e3, F.value = s2, F.value.items || (F.value.items = []), F.value.props || (F.value.props = {}), oe(F.value);
125
125
  } else F.value = le(null), oe(F.value);
126
126
  });
127
127
  }
128
128
  function ce(e3) {
129
129
  e3 && e3.system && (Z.value = e3.system), Z.value && z.setEnableI18n(Z.value.enableI18n);
130
130
  }
131
- return (e3, l2) => {
132
- const o2 = a("el-col"), g2 = a("el-row"), w2 = a("workflow-editor");
133
- return t(), s("div", P, [i("div", T, [u(g2, null, { default: r(() => [u(o2, { span: 23 }, { default: r(() => [F.value && F.value.code ? (t(), v(W, { key: 0, pageDesign: F.value, onChangePage: pe, onInitLoaded: ce }, null, 8, ["pageDesign"])) : n("", true)]), _: 1 })]), _: 1 })]), i("div", $, [i("div", N, [i("label", { class: p({ selected: "page" === q.value }), onClick: l2[0] || (l2[0] = (e4) => q.value = "page") }, "页面设计", 2), i("label", { class: p({ selected: "front" === q.value }), onClick: l2[1] || (l2[1] = (e4) => ee()) }, "页面逻辑", 2), i("label", { class: p({ selected: "workflow" === q.value }), onClick: l2[2] || (l2[2] = (e4) => ve()) }, "工作流设计", 2), i("label", { class: p({ selected: "service" === q.value }), onClick: l2[3] || (l2[3] = (e4) => q.value = "service") }, "服务编排", 2)])]), F.value ? (t(), s("div", R, [c((t(), v(m, { ref_key: "ViewDesignRef", ref: G, key: X.value, configure: F.value, system: Z.value, onRegain: ie, onRevocation: te }, null, 8, ["configure", "system"])), [[f, "page" === q.value]]), K.value ? c((t(), v(w2, { key: 0, id: L.value, code: F.value.workflowCode, version: F.value.workflowVersion, "system-code": F.value.systemCode, "system-publish-version": F.value.systemVersion, "page-code": F.value.code, onBack: e3.goBack, onChangeDefVersion: ne }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[f, "workflow" === q.value]]) : n("", true), "service" === q.value ? (t(), v(d(S), { key: 1, pageContext: F.value }, null, 8, ["pageContext"])) : n("", true), c(u(x, { ref_key: "pageEventContainerRef", ref: O, configure: F.value }, null, 8, ["configure"]), [[f, "front" === q.value]])])) : n("", true)]);
131
+ return (l2, o2) => {
132
+ const g2 = s("el-col"), w2 = s("el-row"), k2 = s("workflow-editor");
133
+ return t(), a("div", P, [i("div", T, [u(w2, null, { default: r(() => [u(g2, { span: 23 }, { default: r(() => [F.value && F.value.code || e2.ucrDesign ? (t(), v(M, { key: 0, pageId: e2.pageId, pageDesign: F.value, ucrDesign: e2.ucrDesign, onChangePage: pe, onInitLoaded: ce }, null, 8, ["pageId", "pageDesign", "ucrDesign"])) : n("", true)]), _: 1 })]), _: 1 })]), i("div", $, [i("div", N, [i("label", { class: p({ selected: "page" === q.value }), onClick: o2[0] || (o2[0] = (e3) => q.value = "page") }, "页面设计", 2), i("label", { class: p({ selected: "front" === q.value }), onClick: o2[1] || (o2[1] = (e3) => ee()) }, "页面逻辑", 2), e2.ucrDesign ? n("", true) : (t(), a("label", { key: 0, class: p({ selected: "workflow" === q.value }), onClick: o2[2] || (o2[2] = (e3) => ve()) }, " 工作流设计 ", 2)), i("label", { class: p({ selected: "service" === q.value }), onClick: o2[3] || (o2[3] = (e3) => q.value = "service") }, "服务编排", 2)])]), F.value ? (t(), a("div", R, [c((t(), v(m, { ref_key: "ViewDesignRef", ref: G, key: X.value, configure: F.value, system: Z.value, onRegain: ie, onRevocation: te }, null, 8, ["configure", "system"])), [[d, "page" === q.value]]), K.value ? c((t(), v(k2, { key: 0, id: L.value, code: F.value.workflowCode, version: F.value.workflowVersion, "system-code": F.value.systemCode, "system-publish-version": F.value.systemVersion, "page-code": F.value.code, onBack: l2.goBack, onChangeDefVersion: ne }, null, 8, ["id", "code", "version", "system-code", "system-publish-version", "page-code", "onBack"])), [[d, "workflow" === q.value]]) : n("", true), "service" === q.value ? (t(), v(f(D), { key: 1, pageContext: F.value }, null, 8, ["pageContext"])) : n("", true), c(u(B, { ref_key: "pageEventContainerRef", ref: O, configure: F.value }, null, 8, ["configure"]), [[d, "front" === q.value]])])) : n("", true)]);
134
134
  };
135
135
  } });
136
136
  export {
@@ -7,17 +7,18 @@ import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
7
7
  import { undoRedo as T } from "../../../../../stores/event-undo-redo-store.js";
8
8
  import U from "../../../utils/eventBus.js";
9
9
  const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none", "margin-bottom": "10px" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } }, w = { class: "amb-design-tool-item", style: { "padding-right": "10px" } }, N = { style: { display: "flex", gap: "15px", padding: "0 20px" } }, B = { class: "codemirror", style: { "margin-left": "20px", "margin-top": "-10px" } }, J = e({ __name: "page-event-content", props: { eventForm: {}, configure: {}, customEvent: {}, handleType: {} }, emits: ["changeSelectEvent", "addEvent", "changeSelectStandardEvent"], setup(e2, { expose: J2, emit: A }) {
10
+ var _a;
10
11
  const L = e2, O = T(), P = _(), Z = t(null), I = t();
11
- let q = t();
12
- const R = E;
13
- let H = L.customEvent;
14
- const D = t({ jsContent: "" }), G = t({ jsContent: "" }), K = t(0), M = t(-1), Q = t();
12
+ let q = t(), R = null;
13
+ R = ((_a = L.configure) == null ? void 0 : _a.ucrDesign) ? E.filter((e3) => "chart" === e3.type) : E;
14
+ let D = L.customEvent;
15
+ const H = t({ jsContent: "" }), G = t({ jsContent: "" }), K = t(0), M = t(-1), Q = t();
15
16
  function W() {
16
17
  let e3 = false;
17
18
  G.value && G.value.standardValues && G.value.standardValues.includes("true") && (e3 = true), G.value && (G.value.isStandard = e3);
18
19
  }
19
20
  function X() {
20
- const e3 = D.value ? JSON.stringify(D.value) : null, t2 = G.value ? JSON.stringify(G.value) : null;
21
+ const e3 = H.value ? JSON.stringify(H.value) : null, t2 = G.value ? JSON.stringify(G.value) : null;
21
22
  e3 && e3 !== t2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
22
23
  false !== te() && Y();
23
24
  }).catch((e4) => {
@@ -29,7 +30,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
29
30
  e3.uuid = V(), ee(e3);
30
31
  }
31
32
  function ee(e3) {
32
- e3 = e3 || {}, D.value = e3, G.value = k(e3), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), O.clearSnapshot(), O.addSnapshot(G), K.value = 1, M.value = 0;
33
+ e3 = e3 || {}, H.value = e3, G.value = k(e3), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), O.clearSnapshot(), O.addSnapshot(G), K.value = 1, M.value = 0;
33
34
  }
34
35
  function te() {
35
36
  if (!G.value) return x.confirm("编辑对象不存在,不需要保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
@@ -78,8 +79,8 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
78
79
  e4 > -1 && (t3.events[e4] = a2);
79
80
  }
80
81
  }
81
- } else Object.assign(D.value, n2), e3.customEvents.push(D.value);
82
- D.value = n2, G.value = k(n2), h({ message: "暂存成功!", type: "success" });
82
+ } else Object.assign(H.value, n2), e3.customEvents.push(H.value);
83
+ H.value = n2, G.value = k(n2), h({ message: "暂存成功!", type: "success" });
83
84
  }
84
85
  function ne() {
85
86
  x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
@@ -125,7 +126,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
125
126
  let t2 = false;
126
127
  if (G.value && ("customFunc" == e3.name ? G.value.uuid == e3.uuid && (t2 = true) : G.value.componentUuid == e3.componentUuid && e3.name == G.value.name && (t2 = true)), t2) return;
127
128
  null == e3.jsContent && (e3.jsContent = ""), null == e3.isStandard && (e3.isStandard = false, e3.standardValues = []), e3.isStandard && !e3.standardValues && (e3.standardValues = ["true"]);
128
- const n2 = D.value ? JSON.stringify(D.value) : null, a2 = G.value ? JSON.stringify(G.value) : null;
129
+ const n2 = H.value ? JSON.stringify(H.value) : null, a2 = G.value ? JSON.stringify(G.value) : null;
129
130
  n2 && n2 !== a2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
130
131
  false !== te() && ee(e3);
131
132
  }).catch((t3) => {
@@ -154,7 +155,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
154
155
  Z.value && Z.value.resize && Z.value.resize();
155
156
  } }), (e3, t2) => {
156
157
  const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"), V2 = u("el-form-item"), k2 = u("el-checkbox"), _2 = u("el-checkbox-group"), T2 = u("el-option"), U2 = u("el-option-group"), J3 = u("el-select"), A2 = u("el-form");
157
- return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick: X }, [r(a2, { size: 18 }, { default: c(() => [r(n2)]), _: 1 }), t2[5] || (t2[5] = i("label", null, "添加自定义方法", -1))]), r(l2, { direction: "vertical" }), m(i("label", j, null, 512), [[d, M.value < 1]]), m(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: re }, t2[6] || (t2[6] = [i("span", { class: "iconfont icon-chexiaozuo", style: { "font-size": "20px" }, title: "撤销" }, null, -1)]), 512), [[d, M.value > 0]]), m(i("label", { class: "amb-page-type", onClick: me }, t2[7] || (t2[7] = [i("span", { class: "iconfont icon-chexiaoyou", style: { "font-size": "20px" }, title: "恢复" }, null, -1)]), 512), [[d, M.value > -1 && M.value + 1 < K.value]])]), m(i("div", w, [i("label", { class: "amb-page-type", onClick: t2[0] || (t2[0] = (e4) => te()) }, [r(a2, { size: 18 }, { default: c(() => [r(x2)]), _: 1 }), t2[8] || (t2[8] = i("label", null, "确定", -1))]), r(l2, { direction: "vertical" }), i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: ne }, [r(a2, { size: 18 }, { default: c(() => [r(h2)]), _: 1 }), t2[9] || (t2[9] = i("label", null, "清除", -1))])], 512), [[d, G.value.name]])]), r(A2, { class: "amb-design-board", style: { "padding-top": "20px" }, ref_key: "formRef", ref: Q, size: "small", model: v(H), "inline-message": "", "label-width": "80px" }, { default: c(() => [i("div", N, [r(V2, { label: "名称", "label-width": "auto", style: { "min-width": "280px" }, required: "customFunc" == G.value.name }, { default: c(() => [m(r(E2, { type: "primary" }, { default: c(() => [p(f(G.value.title ? G.value.title + (G.value.componentLabel ? "(" + G.value.componentLabel + ")" : "") : G.value.componentLabel) + "." + f(G.value.name), 1)]), _: 1 }, 512), [[d, G.value.name && "customFunc" != G.value.name]]), m(r(S2, { modelValue: G.value.eventName, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => G.value.eventName = e4), title: "自定义方法名" }, null, 8, ["modelValue"]), [[d, "customFunc" == G.value.name]])]), _: 1 }, 8, ["required"]), m(r(_2, { modelValue: G.value.standardValues, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value.standardValues = e4), onChange: W }, { default: c(() => [r(k2, { value: "true", label: "标准功能" })]), _: 1 }, 8, ["modelValue"]), [[d, "customFunc" != G.value.name]]), m(r(J3, { disabled: !G.value.isStandard, modelValue: G.value.eventName, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => G.value.eventName = e4), placeholder: "请选择", filterable: "", style: { width: "240px", "margin-left": "10px" } }, { default: c(() => [(s(true), o(g, null, b(v(R), (e4) => (s(), y(U2, { key: e4.label, label: e4.label }, { default: c(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(T2, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["label"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue"]), [[d, "customFunc" != G.value.name]]), r(V2, { label: "描述", "label-width": "auto", style: { flex: "1 1 auto" } }, { default: c(() => [r(S2, { modelValue: G.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => G.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), m(i("div", B, [r(C, { eventForm: G.value, ref_key: "editorRef", ref: Z }, null, 8, ["eventForm"])], 512), [[d, "customFunc" == G.value.name || "customFunc" != G.value.name && !G.value.isStandard]])]), _: 1 }, 8, ["model"])]);
158
+ return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick: X }, [r(a2, { size: 18 }, { default: c(() => [r(n2)]), _: 1 }), t2[5] || (t2[5] = i("label", null, "添加自定义方法", -1))]), r(l2, { direction: "vertical" }), m(i("label", j, null, 512), [[d, M.value < 1]]), m(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: re }, t2[6] || (t2[6] = [i("span", { class: "iconfont icon-chexiaozuo", style: { "font-size": "20px" }, title: "撤销" }, null, -1)]), 512), [[d, M.value > 0]]), m(i("label", { class: "amb-page-type", onClick: me }, t2[7] || (t2[7] = [i("span", { class: "iconfont icon-chexiaoyou", style: { "font-size": "20px" }, title: "恢复" }, null, -1)]), 512), [[d, M.value > -1 && M.value + 1 < K.value]])]), m(i("div", w, [i("label", { class: "amb-page-type", onClick: t2[0] || (t2[0] = (e4) => te()) }, [r(a2, { size: 18 }, { default: c(() => [r(x2)]), _: 1 }), t2[8] || (t2[8] = i("label", null, "确定", -1))]), r(l2, { direction: "vertical" }), i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: ne }, [r(a2, { size: 18 }, { default: c(() => [r(h2)]), _: 1 }), t2[9] || (t2[9] = i("label", null, "清除", -1))])], 512), [[d, G.value.name]])]), r(A2, { class: "amb-design-board", style: { "padding-top": "20px" }, ref_key: "formRef", ref: Q, size: "small", model: v(D), "inline-message": "", "label-width": "80px" }, { default: c(() => [i("div", N, [r(V2, { label: "名称", "label-width": "auto", style: { "min-width": "280px" }, required: "customFunc" == G.value.name }, { default: c(() => [m(r(E2, { type: "primary" }, { default: c(() => [p(f(G.value.title ? G.value.title + (G.value.componentLabel ? "(" + G.value.componentLabel + ")" : "") : G.value.componentLabel) + "." + f(G.value.name), 1)]), _: 1 }, 512), [[d, G.value.name && "customFunc" != G.value.name]]), m(r(S2, { modelValue: G.value.eventName, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => G.value.eventName = e4), title: "自定义方法名" }, null, 8, ["modelValue"]), [[d, "customFunc" == G.value.name]])]), _: 1 }, 8, ["required"]), m(r(_2, { modelValue: G.value.standardValues, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value.standardValues = e4), onChange: W }, { default: c(() => [r(k2, { value: "true", label: "标准功能" })]), _: 1 }, 8, ["modelValue"]), [[d, "customFunc" != G.value.name]]), m(r(J3, { disabled: !G.value.isStandard, modelValue: G.value.eventName, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => G.value.eventName = e4), placeholder: "请选择", filterable: "", style: { width: "240px", "margin-left": "10px" } }, { default: c(() => [(s(true), o(g, null, b(v(R), (e4) => (s(), y(U2, { key: e4.label, label: e4.label }, { default: c(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(T2, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["label"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue"]), [[d, "customFunc" != G.value.name]]), r(V2, { label: "描述", "label-width": "auto", style: { flex: "1 1 auto" } }, { default: c(() => [r(S2, { modelValue: G.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => G.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), m(i("div", B, [r(C, { eventForm: G.value, ref_key: "editorRef", ref: Z }, null, 8, ["eventForm"])], 512), [[d, "customFunc" == G.value.name || "customFunc" != G.value.name && !G.value.isStandard]])]), _: 1 }, 8, ["model"])]);
158
159
  };
159
160
  } });
160
161
  export {
@@ -1,8 +1,22 @@
1
+ import { PageDesign } from '../../../utils/interfaces/page-design-types';
2
+
3
+ interface MyProps {
4
+ configure: PageDesign;
5
+ }
1
6
  /**
2
7
  * 重新设置尺寸
3
8
  */
4
9
  declare function resize(): void;
5
- declare const _default: import('vue').DefineComponent<{}, {
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {
6
11
  resize: typeof resize;
7
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
13
  export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as n, resolveComponent as t, createBlock as o, openBlock as r, withCtx as a, createVNode as u } from "vue";
1
+ import { defineComponent as e, ref as n, resolveComponent as o, createBlock as r, openBlock as t, withCtx as a, createVNode as u } from "vue";
2
2
  import i from "./page-event-container.vue.js";
3
- import l from "./page-event-content.vue.js";
4
- import c from "../view/components/el-aside-expand-component.vue.js";
5
- const f = e({ __name: "page-event-view", setup(e2, { expose: f2 }) {
3
+ import c from "./page-event-content.vue.js";
4
+ import f from "../view/components/el-aside-expand-component.vue.js";
5
+ const l = e({ __name: "page-event-view", props: { configure: {} }, setup(e2, { expose: l2 }) {
6
6
  const s = n(null);
7
- return f2({ resize: function() {
7
+ return l2({ resize: function() {
8
8
  s.value && s.value.resize && s.value.resize();
9
9
  } }), (e3, n2) => {
10
- const f3 = t("el-main"), m = t("el-container");
11
- return r(), o(m, { class: "amb-container" }, { default: a(() => [u(c, null, { default: a(() => [u(i, { ref: "pageEventContainerRef", configure: e3.configure }, null, 8, ["configure"])]), _: 1 }), u(f3, { class: "amb-container-main" }, { default: a(() => [u(l, { configure: {}, eventForm: {}, ref_key: "contentRef", ref: s }, null, 512)]), _: 1 })]), _: 1 });
10
+ const l3 = o("el-main"), m = o("el-container");
11
+ return t(), r(m, { class: "amb-container" }, { default: a(() => [u(f, null, { default: a(() => [u(i, { ref: "pageEventContainerRef", configure: e3.configure }, null, 8, ["configure"])]), _: 1 }), u(l3, { class: "amb-container-main" }, { default: a(() => [u(c, { configure: e3.configure, eventForm: {}, ref_key: "contentRef", ref: s }, null, 8, ["configure"])]), _: 1 })]), _: 1 });
12
12
  };
13
13
  } });
14
14
  export {
15
- f as default
15
+ l as default
16
16
  };
@@ -1,8 +1,22 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ import { PageDesign } from '../../../utils/interfaces/page-design-types';
2
+
3
+ interface MyProps {
4
+ configure: PageDesign;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
7
  handleMoveEnd: (...args: any[]) => void;
3
8
  handleMoveStart: (...args: any[]) => void;
4
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{
5
10
  onHandleMoveEnd?: (...args: any[]) => any;
6
11
  onHandleMoveStart?: (...args: any[]) => any;
7
12
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
13
  export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -1,50 +1,53 @@
1
- import { defineComponent as e, ref as l, computed as a, resolveComponent as t, createElementBlock as s, openBlock as n, createElementVNode as o, createVNode as u, unref as m, withCtx as i, Fragment as r, renderList as d, createBlock as c, createTextVNode as p, toDisplayString as f, reactive as v } from "vue";
1
+ import { defineComponent as e, ref as l, computed as a, resolveComponent as t, createElementBlock as s, openBlock as n, createElementVNode as o, createVNode as u, unref as i, withCtx as m, Fragment as r, renderList as c, createBlock as d, createTextVNode as p, toDisplayString as f, reactive as v } from "vue";
2
2
  import { Search as b, HelpFilled as h } from "@element-plus/icons";
3
3
  import { assemblyGroups as g } from "../../../utils/assemblys-config.js";
4
4
  import { deepCopy as y, getUuidv4 as x } from "../../../utils/common-util.js";
5
- import { VueDraggable as V } from "vue-draggable-plus";
6
- const _ = { class: "amb-assembly-header-search" }, w = ["src"], k = ["title"], U = ["src"], C = e({ __name: "assemblys-container-list", emits: ["handleMoveEnd", "handleMoveEnd", "handleMoveStart"], setup(e2, { emit: C2 }) {
7
- const O = l(""), M = l(""), j = l([]);
8
- j.value.length = 0;
9
- const E = l([]);
5
+ import { ucrExcludeElements as V, filterUcrElements as _ } from "../../../utils/ucr-element-filter.js";
6
+ import { VueDraggable as w } from "vue-draggable-plus";
7
+ const k = { class: "amb-assembly-header-search" }, U = ["src"], C = ["title"], O = ["src"], j = e({ __name: "assemblys-container-list", props: { configure: {} }, emits: ["handleMoveEnd", "handleMoveEnd", "handleMoveStart"], setup(e2, { emit: j2 }) {
8
+ var _a;
9
+ const M = e2, D = l(""), E = l(""), S = l([]);
10
+ S.value.length = 0;
11
+ const I = l([]);
10
12
  for (let e3 in g) {
11
13
  let l2 = g[e3];
12
- j.value.push(l2.name), E.value.push({ name: l2.name, label: l2.label });
14
+ S.value.push(l2.name), ((_a = M.configure) == null ? void 0 : _a.ucrDesign) && V.includes(l2.name) || I.value.push({ name: l2.name, label: l2.label });
13
15
  }
14
- const S = a(() => {
15
- if (O.value || M.value) {
16
- j.value.length = 0;
16
+ const q = a(() => {
17
+ var _a2;
18
+ if (D.value || E.value) {
19
+ S.value.length = 0;
17
20
  const e3 = [];
18
21
  for (let l2 = 0; l2 < g.length; l2++) {
19
22
  let a2 = g[l2];
20
- if (O.value) {
23
+ if (D.value) {
21
24
  let e4 = a2.name, l3 = a2.label;
22
- if (e4 && -1 == e4.indexOf(O.value) && l3 && -1 == l3.indexOf(O.value)) continue;
25
+ if (e4 && -1 == e4.indexOf(D.value) && l3 && -1 == l3.indexOf(D.value)) continue;
23
26
  }
24
27
  let t2 = a2.items, s2 = [];
25
- if (M.value) for (let e4 = 0; e4 < t2.length; e4++) {
28
+ if (E.value) for (let e4 = 0; e4 < t2.length; e4++) {
26
29
  let l3 = t2[e4], a3 = l3.name, n2 = l3.label;
27
- a3 && -1 == a3.indexOf(M.value) && n2 && -1 == n2.indexOf(M.value) || s2.push(l3);
30
+ a3 && -1 == a3.indexOf(E.value) && n2 && -1 == n2.indexOf(E.value) || s2.push(l3);
28
31
  }
29
32
  else s2 = t2;
30
33
  if (s2.length > 0) {
31
34
  let l3 = { name: a2.name, label: a2.label, icon: a2.icon, items: s2 };
32
- e3.push(l3), j.value.push(l3.name);
35
+ e3.push(l3), S.value.push(l3.name);
33
36
  }
34
37
  }
35
38
  return e3;
36
39
  }
37
- return g;
40
+ return ((_a2 = M.configure) == null ? void 0 : _a2.ucrDesign) ? _(g) : g;
38
41
  });
39
- function I(e3) {
42
+ function z(e3) {
40
43
  const l2 = v(y(e3));
41
44
  return delete l2.designComponent, delete l2.attrComponent, delete l2.renderComponent, l2.props || (l2.props = {}), l2.uuid = x(), l2.items && l2.items.length > 0 && (l2.items = l2.items.map((e4) => (e4.uuid || (e4.uuid = x()), e4))), l2.props.isInit = true, l2;
42
45
  }
43
46
  return (e3, l2) => {
44
- const a2 = t("el-option"), v2 = t("el-select"), g2 = t("el-input"), y2 = t("el-icon"), x2 = t("el-col"), C3 = t("el-row"), q = t("el-collapse-item"), z = t("el-collapse");
45
- return n(), s("div", null, [o("div", _, [u(g2, { modelValue: M.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => M.value = e4), style: { height: "36px" }, placeholder: "Search...", clearable: "", class: "input-with-select", "suffix-icon": m(b) }, { prepend: i(() => [u(v2, { class: "amb-assembly-search-select", style: { width: "90px" }, clearable: "", modelValue: O.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => O.value = e4), placeholder: "全部" }, { default: i(() => [(n(true), s(r, null, d(E.value, (e4) => (n(), c(a2, { label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue", "suffix-icon"])]), u(z, { modelValue: j.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => j.value = e4), style: { "margin-top": "45px" } }, { default: i(() => [(n(true), s(r, null, d(S.value, (e4, l3) => (n(), c(q, { class: "amb-assembly-collapse-header", name: e4.name }, { title: i(() => [e4.icon ? (n(), s("img", { key: 0, class: "amb-assembly-group-img", src: e4.icon }, null, 8, w)) : (n(), c(y2, { key: 1, style: { width: "16px", height: "16px", color: "#5893ef" } }, { default: i(() => [u(m(h))]), _: 1 })), p("   " + f(e4.label), 1)]), default: i(() => [u(C3, { gutter: 14 }, { default: i(() => [u(m(V), { group: { name: "amb-assembly-item", pull: "clone", put: false, revertClone: true }, modelValue: e4.items, "onUpdate:modelValue": (l4) => e4.items = l4, "force-fallback": true, sort: false, animation: 300, style: { width: "100%" }, clone: I, "fallback-class": true, class: "el-row" }, { default: i(() => [(n(true), s(r, null, d(e4.items, (e5, l4) => (n(), c(x2, { span: 8 }, { default: i(() => [o("div", { class: "amb-assembly-item", title: e5.name }, [o("div", null, [e5.icon ? (n(), s("img", { key: 0, class: "amb-assembly-item-img", src: e5.icon }, null, 8, U)) : (n(), c(y2, { key: 1, style: { width: "16px", height: "16px", color: "#5893ef" } }, { default: i(() => [u(m(h))]), _: 1 }))]), p(" " + f(e5.label), 1)], 8, k)]), _: 2 }, 1024))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue"])]);
47
+ const a2 = t("el-option"), v2 = t("el-select"), g2 = t("el-input"), y2 = t("el-icon"), x2 = t("el-col"), V2 = t("el-row"), _2 = t("el-collapse-item"), j3 = t("el-collapse");
48
+ return n(), s("div", null, [o("div", k, [u(g2, { modelValue: E.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => E.value = e4), style: { height: "36px" }, placeholder: "Search...", clearable: "", class: "input-with-select", "suffix-icon": i(b) }, { prepend: m(() => [u(v2, { class: "amb-assembly-search-select", style: { width: "90px" }, clearable: "", modelValue: D.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => D.value = e4), placeholder: "全部" }, { default: m(() => [(n(true), s(r, null, c(I.value, (e4) => (n(), d(a2, { label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue", "suffix-icon"])]), u(j3, { modelValue: S.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => S.value = e4), style: { "margin-top": "45px" } }, { default: m(() => [(n(true), s(r, null, c(q.value, (e4, l3) => (n(), d(_2, { class: "amb-assembly-collapse-header", name: e4.name }, { title: m(() => [e4.icon ? (n(), s("img", { key: 0, class: "amb-assembly-group-img", src: e4.icon }, null, 8, U)) : (n(), d(y2, { key: 1, style: { width: "16px", height: "16px", color: "#5893ef" } }, { default: m(() => [u(i(h))]), _: 1 })), p("   " + f(e4.label), 1)]), default: m(() => [u(V2, { gutter: 14 }, { default: m(() => [u(i(w), { group: { name: "amb-assembly-item", pull: "clone", put: false, revertClone: true }, modelValue: e4.items, "onUpdate:modelValue": (l4) => e4.items = l4, "force-fallback": true, sort: false, animation: 300, style: { width: "100%" }, clone: z, "fallback-class": true, class: "el-row" }, { default: m(() => [(n(true), s(r, null, c(e4.items, (e5, l4) => (n(), d(x2, { span: 8 }, { default: m(() => [o("div", { class: "amb-assembly-item", title: e5.name }, [o("div", null, [e5.icon ? (n(), s("img", { key: 0, class: "amb-assembly-item-img", src: e5.icon }, null, 8, O)) : (n(), d(y2, { key: 1, style: { width: "16px", height: "16px", color: "#5893ef" } }, { default: m(() => [u(i(h))]), _: 1 }))]), p(" " + f(e5.label), 1)], 8, C)]), _: 2 }, 1024))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue"])]);
46
49
  };
47
50
  } });
48
51
  export {
49
- C as default
52
+ j as default
50
53
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, ref as l, createElementBlock as s, openBlock as t, createElementVNode as a, normalizeClass as n, withDirectives as u, createVNode as i, vShow as o } from "vue";
1
+ import { defineComponent as e, ref as l, createElementBlock as s, openBlock as t, createElementVNode as a, normalizeClass as n, withDirectives as i, createVNode as u, unref as o, vShow as c } from "vue";
2
2
  import m from "./assemblys-container-list.vue.js";
3
- import c from "./assemblys-container-explore.vue.js";
3
+ import r from "./assemblys-container-explore.vue.js";
4
4
  import v from "./assemblys-container-template.vue.js";
5
5
  import "@element-plus/icons-vue";
6
6
  import "element-plus";
@@ -8,18 +8,17 @@ import "../../../utils/assemblys-config.js";
8
8
  import "uuid";
9
9
  import "../../../utils/eventBus.js";
10
10
  import "../../../../../stores/page-store.js";
11
- const r = { class: "amb-design-assembly-content" }, d = { class: "amb-assembly-header" }, p = { class: "amb-assembly-header-type" }, b = { class: "amb-design-assembly-list" }, g = e({ __name: "assemblys-container", props: { designItems: Array, selectWidget: Object, configure: Object }, emits: ["onSelectWidget", "addEvent", "changeEvent", "onSelectEvent"], setup(e2, { expose: g2, emit: y }) {
12
- const f = y;
13
- e2.configure;
14
- const j = l("selected"), W = l(""), x = l(""), E = l("");
15
- function I(e3) {
16
- "assembly" == e3 ? (j.value = "selected", W.value = "", x.value = "", E.value = "") : "pageEvent" == e3 ? (W.value = "", j.value = "", x.value = "", E.value = "selected") : "explorer" == e3 ? (W.value = "selected", j.value = "", x.value = "", E.value = "") : (W.value = "", j.value = "", x.value = "selected", E.value = "");
11
+ const d = { class: "amb-design-assembly-content" }, p = { class: "amb-assembly-header" }, b = { class: "amb-assembly-header-type" }, g = { class: "amb-design-assembly-list" }, y = e({ __name: "assemblys-container", props: { designItems: Array, selectWidget: Object, configure: Object }, emits: ["onSelectWidget", "addEvent", "changeEvent", "onSelectEvent"], setup(e2, { expose: y2, emit: f }) {
12
+ const j = f, W = e2.configure;
13
+ const x = l("selected"), E = l(""), I = l(""), S = l("");
14
+ function h(e3) {
15
+ "assembly" == e3 ? (x.value = "selected", E.value = "", I.value = "", S.value = "") : "pageEvent" == e3 ? (E.value = "", x.value = "", I.value = "", S.value = "selected") : "explorer" == e3 ? (E.value = "selected", x.value = "", I.value = "", S.value = "") : (E.value = "", x.value = "", I.value = "selected", S.value = "");
17
16
  }
18
- function S(e3, l2) {
19
- f("onSelectWidget", e3, l2);
17
+ function k(e3, l2) {
18
+ j("onSelectWidget", e3, l2);
20
19
  }
21
- return l(null), l(null), g2({ selAsselbyType: "assembly" }), (l2, g3) => (t(), s("div", r, [a("div", d, [a("div", p, [a("label", { class: n(j.value), onClick: g3[0] || (g3[0] = (e3) => I("assembly")) }, "组件", 2), a("label", { class: n(W.value), onClick: g3[1] || (g3[1] = (e3) => I("explorer")) }, "大纲", 2), a("label", { class: n(x.value), onClick: g3[2] || (g3[2] = (e3) => I("template")) }, "模板库", 2)])]), a("div", b, [u(i(m, null, null, 512), [[o, j.value]]), u(i(c, { onOnSelectWidget: S, designItems: e2.designItems, selectWidget: e2.selectWidget }, null, 8, ["designItems", "selectWidget"]), [[o, W.value]]), u(i(v, null, null, 512), [[o, x.value]])])]));
20
+ return l(null), l(null), y2({ selAsselbyType: "assembly" }), (l2, y3) => (t(), s("div", d, [a("div", p, [a("div", b, [a("label", { class: n(x.value), onClick: y3[0] || (y3[0] = (e3) => h("assembly")) }, "组件", 2), a("label", { class: n(E.value), onClick: y3[1] || (y3[1] = (e3) => h("explorer")) }, "大纲", 2), a("label", { class: n(I.value), onClick: y3[2] || (y3[2] = (e3) => h("template")) }, "模板库", 2)])]), a("div", g, [i(u(m, { configure: o(W) }, null, 8, ["configure"]), [[c, x.value]]), i(u(r, { onOnSelectWidget: k, designItems: e2.designItems, selectWidget: e2.selectWidget }, null, 8, ["designItems", "selectWidget"]), [[c, E.value]]), i(u(v, null, null, 512), [[c, I.value]])])]));
22
21
  } });
23
22
  export {
24
- g as default
23
+ y as default
25
24
  };
@@ -0,0 +1,38 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ pageId: {
3
+ type: NumberConstructor;
4
+ default: any;
5
+ };
6
+ pageDesign: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ ucrDesign: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "change-page": (...args: any[]) => void;
16
+ "init-loaded": (...args: any[]) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ pageId: {
19
+ type: NumberConstructor;
20
+ default: any;
21
+ };
22
+ pageDesign: {
23
+ type: ObjectConstructor;
24
+ default: () => {};
25
+ };
26
+ ucrDesign: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>> & Readonly<{
31
+ "onChange-page"?: (...args: any[]) => any;
32
+ "onInit-loaded"?: (...args: any[]) => any;
33
+ }>, {
34
+ pageDesign: Record<string, any>;
35
+ ucrDesign: boolean;
36
+ pageId: number;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import e from "./index.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = o(e, [["__scopeId", "data-v-d6244281"]]);
5
+ export {
6
+ r as default
7
+ };