ss-component-new 1.1.271 → 1.1.272

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 (95) hide show
  1. package/dist/{array-CAAZj70g.cjs → array-CLTWBAVq.cjs} +1 -1
  2. package/dist/{array-BfnpXiM-.js → array-DHMn8Sqh.js} +2 -2
  3. package/dist/{cloneDeep-SOoqD36w.js → cloneDeep-BLw3bkUW.js} +1 -1
  4. package/dist/{cloneDeep-CHtsEohg.cjs → cloneDeep-BpPx58Vo.cjs} +1 -1
  5. package/dist/icons/svg/Left.svg +1 -0
  6. package/dist/icons/svg/Right.svg +1 -0
  7. package/dist/{index-BiSiEi_V.js → index--5V-NDNH.js} +756 -729
  8. package/dist/{index-D1gy0J05.js → index--V9Pc4sz.js} +3 -3
  9. package/dist/{index-Uhv08fCW.cjs → index-4LjUTtFX.cjs} +1 -1
  10. package/dist/{index-Cn49cw0q.js → index-5FulNaqr.js} +3 -3
  11. package/dist/index-9V7_3PmP.js +782 -0
  12. package/dist/{index-LVzE8vfl.cjs → index-9cYqnVXd.cjs} +1 -1
  13. package/dist/{index--1AcPtxr.cjs → index-9loJpkpw.cjs} +1 -1
  14. package/dist/{index-DPLoeqeZ.cjs → index-A-lUDvj2.cjs} +1 -1
  15. package/dist/{index-BrpCYKbJ.js → index-AgbveyO3.js} +3 -3
  16. package/dist/{index-DZiAN8C7.cjs → index-B2pDOeMQ.cjs} +1 -1
  17. package/dist/index-B75Nvl2F.cjs +1 -0
  18. package/dist/{index-BU_jy_oC.js → index-B8EQvXDE.js} +4 -4
  19. package/dist/{index--Lkq8v3T.js → index-BFfPgA2b.js} +8 -8
  20. package/dist/{index-Dp_b_DSL.cjs → index-BM2mpdwS.cjs} +1 -1
  21. package/dist/{index-KLWVgTQ4.cjs → index-BMyAU0O-.cjs} +1 -1
  22. package/dist/index-BOM94_u6.cjs +1 -0
  23. package/dist/{index-BtJs7zPy.cjs → index-BQY541on.cjs} +1 -1
  24. package/dist/{index-H5uD67Jw.js → index-BSgy8kJ1.js} +8 -8
  25. package/dist/{index-Bv6C9j_1.js → index-BXQG6yk7.js} +507 -501
  26. package/dist/{index-uETWWPW0.cjs → index-Ba60n0WF.cjs} +1 -1
  27. package/dist/index-Bbn8Helj.js +67 -0
  28. package/dist/{index-DEBg_dvX.cjs → index-BdC1865x.cjs} +1 -1
  29. package/dist/{index-DD_rYKjc.js → index-BfqgsCSF.js} +8 -8
  30. package/dist/{index-DK3M5DNe.cjs → index-BjfbQifn.cjs} +1 -1
  31. package/dist/{index-CCG2WirR.js → index-BlrJf77m.js} +1 -1
  32. package/dist/{index-Bs_7jqc_.js → index-BnXcu5-l.js} +4 -4
  33. package/dist/{index-D5DKfZge.cjs → index-BqK5W_B3.cjs} +1 -1
  34. package/dist/{index-DVW3KqV7.cjs → index-CQQY7_4w.cjs} +1 -1
  35. package/dist/{index-CV7IzaaJ.js → index-CSEnPwz6.js} +1 -1
  36. package/dist/{index-BZL2gPxk.js → index-CSV9bCd0.js} +4 -4
  37. package/dist/{index-D8QUeWKa.js → index-CShNG69V.js} +1 -1
  38. package/dist/{index-CKr4swuH.js → index-CU-XcNtZ.js} +92 -90
  39. package/dist/{index-CMWo86wg.js → index-CdMR5Sit.js} +2049 -2012
  40. package/dist/{index-CWaLFgqI.cjs → index-CftczFRk.cjs} +1 -1
  41. package/dist/{index-DfsnGXGA.cjs → index-Cg289W8m.cjs} +1 -1
  42. package/dist/{index-5LDLWHIy.js → index-CiFZUN9C.js} +6 -6
  43. package/dist/{index-Cfpx04I5.js → index-CiIU9_7v.js} +5 -5
  44. package/dist/{index-Cfo509W-.js → index-CkYBbRdJ.js} +10 -10
  45. package/dist/index-CkcgsFF1.cjs +7 -0
  46. package/dist/{index-B_IOZlFF.cjs → index-CpY7HJ5x.cjs} +28 -28
  47. package/dist/{index-BLUdgcs7.js → index-CvzNHpm5.js} +4 -4
  48. package/dist/{index-Ctv9BG9O.js → index-D0mA3uen.js} +5 -5
  49. package/dist/{index-2QYqjej5.js → index-D4TPdBL4.js} +4 -4
  50. package/dist/{index-DRb5FND5.cjs → index-DCbIASJ9.cjs} +1 -1
  51. package/dist/{index-B9MjTDBR.cjs → index-DF-eXbS0.cjs} +3 -3
  52. package/dist/index-DFfbfLht.cjs +1 -0
  53. package/dist/{index-DGr6my-U.cjs → index-DKAJNeoG.cjs} +1 -1
  54. package/dist/{index-B6UxWPf2.cjs → index-DRkQ_0z3.cjs} +3 -3
  55. package/dist/{index-Dwsro7ML.cjs → index-D_-kRqoY.cjs} +1 -1
  56. package/dist/{index-B1Chq5ou.cjs → index-De0Kv6HX.cjs} +1 -1
  57. package/dist/{index-CTszrMtm.js → index-DeUp-mEz.js} +1 -1
  58. package/dist/{index-UhoWjM51.js → index-DhhMMIXh.js} +5 -5
  59. package/dist/{index-y8UDVF_A.cjs → index-_6_-rY9-.cjs} +1 -1
  60. package/dist/{index-B6JYEmYH.js → index-aNfHlWCH.js} +1 -1
  61. package/dist/{index-cDR84dKn.cjs → index-yMmrDYsl.cjs} +1 -1
  62. package/dist/{index-CY2ru0Sv.js → index-zSFVO3U1.js} +6 -6
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-rzTbe237.cjs → index.vue_vue_type_script_setup_true_lang-DFwhmpY_.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-5qTUg_kH.js → index.vue_vue_type_script_setup_true_lang-q_ObDPkg.js} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CJo8jVD1.js → index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CE06JH93.js} +8 -8
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-CQLr1-WM.cjs → index.vue_vue_type_style_index_0_scoped_0b9c1c43_lang-DotPayBY.cjs} +1 -1
  67. package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DMHkUnds.cjs +1 -0
  68. package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DWRnDX7j.js +769 -0
  69. package/dist/{login-l_owbUQv.cjs → login-CTwNqmhY.cjs} +1 -1
  70. package/dist/{login-DHpGcqep.js → login-Dch9zraG.js} +2 -2
  71. package/dist/{main-B9XdzVwC.js → main-C0nKVZt8.js} +7 -7
  72. package/dist/{main-D7g6IJOQ.cjs → main-DcblgVEE.cjs} +1 -1
  73. package/dist/menu-CYXJRA36.cjs +16 -0
  74. package/dist/{menu-Ba_aVwCo.js → menu-WUm8Oh5N.js} +353 -344
  75. package/dist/obj/model.mtl +42 -0
  76. package/dist/obj/model.obj +26110 -0
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +1 -1
  79. package/dist/ss-component.js +7 -7
  80. package/dist/ss-component3.cjs +1 -1
  81. package/dist/ss-component3.js +1 -1
  82. package/package.json +2 -2
  83. package/public/icons/svg/Left.svg +1 -0
  84. package/public/icons/svg/Right.svg +1 -0
  85. package/public/obj/model.mtl +42 -0
  86. package/public/obj/model.obj +26110 -0
  87. package/dist/index-BlraVBSm.js +0 -61
  88. package/dist/index-CT3w9uTX.cjs +0 -1
  89. package/dist/index-Ce42bIEI.cjs +0 -1
  90. package/dist/index-D4VrAzy3.cjs +0 -1
  91. package/dist/index-DVFD8nf7.js +0 -720
  92. package/dist/index-DpP0IpCV.cjs +0 -7
  93. package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DXhNv58U.js +0 -670
  94. package/dist/index.vue_vue_type_style_index_0_scoped_486b9e58_lang-fRjw_tf5.cjs +0 -1
  95. package/dist/menu-DHduXY8b.cjs +0 -16
@@ -0,0 +1,782 @@
1
+ import { ref as C, onMounted as ce, watch as K, createElementBlock as u, openBlock as a, Fragment as Z, renderList as ee, createElementVNode as l, createCommentVNode as F, normalizeStyle as Se, toDisplayString as P, resolveComponent as y, resolveDirective as fe, withDirectives as he, createBlock as S, withCtx as s, createVNode as t, unref as e, createTextVNode as q, renderSlot as Y, resolveDynamicComponent as ae, defineComponent as xe } from "vue";
2
+ import { m as de, a as ue, b as me } from "./index-BSgy8kJ1.js";
3
+ import ge from "./index-CSEnPwz6.js";
4
+ import { p as z } from "./index-CShNG69V.js";
5
+ import { u as ne, a as De, b as _e, t as Ie, l as Ce } from "./index-CdMR5Sit.js";
6
+ import { s as L, u as oe, g as Me } from "./menu-WUm8Oh5N.js";
7
+ import { u as Ae } from "./index-CkYBbRdJ.js";
8
+ import { _ as Te, e as Pe, s as je } from "./index.vue_vue_type_style_index_0_scoped_486b9e58_lang-DWRnDX7j.js";
9
+ import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { i as Fe, e as Le, b as pe, c as ve, a as ze } from "./array-DHMn8Sqh.js";
11
+ import { u as ye } from "./login-Dch9zraG.js";
12
+ import { S as R } from "./index-BHtNKL1L.js";
13
+ import { o as we, c as ke, a as be, b as te, s as Q, g as se, d as le, e as ie, f as re } from "./index-BFfPgA2b.js";
14
+ import { E as Be } from "./index-CU-XcNtZ.js";
15
+ import { c as X } from "./cloneDeep-BLw3bkUW.js";
16
+ const Ee = { class: "bread-content" }, Re = ["onClick"], Ne = {
17
+ key: 0,
18
+ class: "split-title"
19
+ }, Ue = {
20
+ __name: "index",
21
+ props: {
22
+ breadArray: {
23
+ type: Array,
24
+ default: () => []
25
+ }
26
+ },
27
+ emits: ["click"],
28
+ setup($, { emit: B }) {
29
+ const n = $, w = C([]), x = B;
30
+ ce(() => {
31
+ w.value = n == null ? void 0 : n.breadArray;
32
+ }), K(
33
+ () => n == null ? void 0 : n.breadArray,
34
+ () => {
35
+ w.value = n == null ? void 0 : n.breadArray;
36
+ },
37
+ { deep: !0, immediate: !0 }
38
+ );
39
+ const i = (v) => {
40
+ x("click", v);
41
+ };
42
+ return (v, b) => (a(), u("div", Ee, [
43
+ (a(!0), u(Z, null, ee(w.value, (_, I) => {
44
+ var A;
45
+ return a(), u("div", {
46
+ key: I,
47
+ class: "bread-item"
48
+ }, [
49
+ l("div", {
50
+ class: "bread-title",
51
+ onClick: (N) => i(_),
52
+ style: Se({ opacity: ((A = w.value) == null ? void 0 : A.length) - 1 === I ? "0.7" : "1" })
53
+ }, P(_.value), 13, Re),
54
+ I !== w.value.length - 1 && Array.isArray(w.value) ? (a(), u("div", Ne, P("/"))) : F("", !0)
55
+ ]);
56
+ }), 128))
57
+ ]));
58
+ }
59
+ }, $e = /* @__PURE__ */ H(Ue, [["__scopeId", "data-v-ded7e2bd"]]), Ve = { class: "item-menu-content" }, Oe = { class: "item-left-content" }, Je = {
60
+ key: 0,
61
+ class: "page-icon"
62
+ }, Ke = { class: "avatar" }, We = { style: { display: "flex" } }, qe = { class: "select-icon" }, He = {
63
+ key: 0,
64
+ class: "model-operate",
65
+ style: { width: "0px" }
66
+ }, Ge = { class: "model-select" }, Qe = { class: "model-fill" }, Xe = {
67
+ key: 1,
68
+ class: "show-main-content"
69
+ }, Ye = { class: "show-content" }, Ze = { class: "item-view-group" }, et = { class: "show-item-content" }, tt = { class: "item-view-group" }, nt = {
70
+ key: 2,
71
+ class: "show-main-content"
72
+ }, ot = {
73
+ __name: "browser",
74
+ props: {
75
+ content: String,
76
+ jsonContents: Array
77
+ },
78
+ emits: ["change", "contentChange"],
79
+ setup($, { emit: B }) {
80
+ const n = ye(), { loginUserInfo: w, cryptoInfo: x } = L(n);
81
+ ce(() => {
82
+ Be({
83
+ title: "温馨提示:",
84
+ type: "success",
85
+ message: "欢迎使用系统",
86
+ duration: 1e3
87
+ });
88
+ });
89
+ const i = ne(z);
90
+ De(z), C(!0);
91
+ const v = oe();
92
+ C(!0);
93
+ const { itemData: b, isEdit: _, isRefreshCurStructure: I, curStructureCompIds: A } = L(i), N = _e(z), { activeMenuPath: M, menus: W, importLoading: O } = L(v), { selectIndex: G, selectTitle: f } = L(N);
94
+ return C([]), C(!1), (d, m) => {
95
+ const U = y("el-aside"), E = y("el-button"), j = y("el-avatar"), c = y("el-header"), k = y("router-view"), D = y("el-main"), p = y("el-container"), J = fe("loading");
96
+ return he((a(), S(p, { "element-loading-text": "正在加载页面数据..." }, {
97
+ default: s(() => [
98
+ e(_) === "view" ? (a(), S(U, {
99
+ key: 0,
100
+ width: "250px"
101
+ }, {
102
+ default: s(() => [
103
+ t(ge, { mode: "vertical" })
104
+ ]),
105
+ _: 1
106
+ })) : F("", !0),
107
+ t(p, null, {
108
+ default: s(() => [
109
+ t(c, null, {
110
+ default: s(() => {
111
+ var h;
112
+ return [
113
+ l("div", Ve, [
114
+ l("div", Oe, [
115
+ e(_) === "edit" ? (a(), u("div", Je, [
116
+ t(E, {
117
+ text: "",
118
+ onClick: e(we)
119
+ }, {
120
+ default: s(() => m[2] || (m[2] = [
121
+ q(" 返回页面 ")
122
+ ])),
123
+ _: 1,
124
+ __: [2]
125
+ }, 8, ["onClick"]),
126
+ t(E, {
127
+ text: "",
128
+ onClick: m[0] || (m[0] = (g) => {
129
+ var r, T;
130
+ return e(ke)((T = (r = e(f)) == null ? void 0 : r.map((o) => o.value)) == null ? void 0 : T.join("/"));
131
+ })
132
+ }, {
133
+ icon: s(() => [
134
+ t(R, { name: "Store" })
135
+ ]),
136
+ default: s(() => [
137
+ m[3] || (m[3] = q(" 保存页面 "))
138
+ ]),
139
+ _: 1,
140
+ __: [3]
141
+ })
142
+ ])) : F("", !0),
143
+ (a(), S($e, {
144
+ key: e(f),
145
+ breadArray: e(f),
146
+ onClick: e(be)
147
+ }, null, 8, ["breadArray", "onClick"]))
148
+ ]),
149
+ l("div", Ke, [
150
+ e(_) === "view" ? (a(), u("div", {
151
+ key: 0,
152
+ class: "select-icon",
153
+ onClick: m[1] || (m[1] = (...g) => e(te) && e(te)(...g))
154
+ }, [
155
+ l("div", We, [
156
+ t(R, {
157
+ name: "write",
158
+ style: { width: "clamp(12px, 0.9375rem, 15px)", height: "clamp(12px, 0.9375rem, 15px)" }
159
+ })
160
+ ]),
161
+ m[4] || (m[4] = l("div", { class: "layout-trigger" }, P("修改布局"), -1))
162
+ ])) : F("", !0),
163
+ l("div", qe, [
164
+ Y(d.$slots, "default", {}, void 0, !0)
165
+ ]),
166
+ t(j, {
167
+ size: 35,
168
+ src: (h = e(w)) == null ? void 0 : h.avatarUrl
169
+ }, {
170
+ default: s(() => {
171
+ var g;
172
+ return [
173
+ q(P(((g = e(w)) == null ? void 0 : g.account) ?? "未知"), 1)
174
+ ];
175
+ }),
176
+ _: 1
177
+ }, 8, ["src"])
178
+ ])
179
+ ])
180
+ ];
181
+ }),
182
+ _: 3
183
+ }),
184
+ t(D, null, {
185
+ default: s(() => {
186
+ var h, g, r, T;
187
+ return [
188
+ e(_) === "edit" ? (a(), u("div", He, [
189
+ l("div", Ge, [
190
+ t(de)
191
+ ]),
192
+ (a(), u("div", {
193
+ class: "model-show",
194
+ key: d.innerWidth
195
+ }, [
196
+ t(ue)
197
+ ])),
198
+ l("div", Qe, [
199
+ t(me)
200
+ ])
201
+ ])) : d.$route.path === "/" && ((h = e(Q)) == null ? void 0 : h.length) > 0 && e(_) === "view" ? (a(), u("div", Xe, [
202
+ l("div", Ye, [
203
+ (g = e(X)(e(Q))) != null && g.find((o) => o.comp === "FormTop") ? (a(), u("div", {
204
+ class: "show-header",
205
+ key: d.index
206
+ }, [
207
+ (a(!0), u(Z, null, ee((r = e(X)(e(Q))) == null ? void 0 : r.filter((o) => o.comp === "FormTop"), (o, V) => (a(), u("div", {
208
+ class: "item-content",
209
+ key: V
210
+ }, [
211
+ l("div", Ze, P(o.name), 1),
212
+ (a(), S(ae(e(se)(o.comp)), {
213
+ itemData: o == null ? void 0 : o.compData,
214
+ childItemData: o == null ? void 0 : o.itemChildData,
215
+ key: (o == null ? void 0 : o.id) ?? V,
216
+ onChange: e(re),
217
+ index: (o == null ? void 0 : o.id) ?? V,
218
+ onContentChange: e(ie),
219
+ onPageChange: e(le)
220
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
221
+ ]))), 128))
222
+ ])) : F("", !0),
223
+ l("div", et, [
224
+ (a(!0), u(Z, null, ee((T = e(X)(e(Q))) == null ? void 0 : T.filter((o) => o.comp !== "FormTop"), (o, V) => (a(), u("div", {
225
+ class: "item-content",
226
+ key: V
227
+ }, [
228
+ l("div", tt, P(o.name), 1),
229
+ (a(), S(ae(e(se)(o.comp)), {
230
+ itemData: o == null ? void 0 : o.compData,
231
+ childItemData: o == null ? void 0 : o.itemChildData,
232
+ key: (o == null ? void 0 : o.id) ?? V,
233
+ onChange: e(re),
234
+ index: (o == null ? void 0 : o.id) ?? V,
235
+ onContentChange: e(ie),
236
+ onPageChange: e(le)
237
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
238
+ ]))), 128))
239
+ ])
240
+ ])
241
+ ])) : e(_) === "view" ? (a(), u("div", nt, [
242
+ t(k)
243
+ ])) : F("", !0)
244
+ ];
245
+ }),
246
+ _: 1
247
+ })
248
+ ]),
249
+ _: 3
250
+ })
251
+ ]),
252
+ _: 3
253
+ })), [
254
+ [J, e(O)]
255
+ ]);
256
+ };
257
+ }
258
+ }, at = /* @__PURE__ */ H(ot, [["__scopeId", "data-v-d2611062"]]);
259
+ function st($, B, n, w, x, i) {
260
+ const v = y("svg-icon"), b = y("ssMenu");
261
+ return a(), S(b, {
262
+ mode: $.mode,
263
+ menuList: $.renderMenuList,
264
+ onClickMenu: $.clickMenu,
265
+ onOpenMenu: $.openMenu,
266
+ onCloseMenu: $.closeMenu
267
+ }, {
268
+ title: s(({ menu: _ }) => [
269
+ t(v, {
270
+ name: _.icon ?? "Fold",
271
+ class: "menu-icon"
272
+ }, null, 8, ["name"]),
273
+ l("span", null, P(_.title ?? ""), 1)
274
+ ]),
275
+ _: 1
276
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
277
+ }
278
+ const lt = /* @__PURE__ */ H(Te, [["render", st], ["__scopeId", "data-v-37abad93"]]), it = { class: "structure-buttons" }, rt = { class: "structure-paths" }, ct = { class: "client-header-user" }, dt = { class: "select-icon" }, ut = { class: "model-select" }, mt = { class: "model-show" }, _t = { class: "model-fill" }, pt = { class: "client-header-menu" }, vt = { class: "client-header-user" }, ft = { style: { display: "flex" } }, ht = { class: "select-icon" }, gt = { class: "client-main-content" }, Ct = { class: "client-main-operate" }, yt = { class: "item-view-group" }, wt = /* @__PURE__ */ xe({
279
+ __name: "client",
280
+ props: {
281
+ windowConfig: {
282
+ type: Object,
283
+ default: () => {
284
+ }
285
+ }
286
+ },
287
+ setup($) {
288
+ const B = _e(z), { selectTitle: n } = L(B), w = ye(), { loginUserInfo: x } = L(w), i = ne(z), { isEdit: v } = L(i), b = oe(z), _ = Ae(z), { objUrl: I } = L(_), A = C(null), N = C(!0), { importLoading: M, activeMenuPath: W } = L(b), O = C(!1);
289
+ K(() => W.value, async (f) => {
290
+ f && (O.value = !0);
291
+ }, { immediate: !0 });
292
+ const G = async (f) => {
293
+ var U, E, j, c, k, D, p;
294
+ const d = (U = f == null ? void 0 : f.split("/")) == null ? void 0 : U[0], m = await Me({
295
+ key: {
296
+ type: "mainEquip",
297
+ systemKey: sessionStorage.getItem("systemKey"),
298
+ pageKey: d
299
+ }
300
+ });
301
+ return ((E = m == null ? void 0 : m.data) == null ? void 0 : E.type) === "success" ? ((p = (D = (k = (c = (j = m == null ? void 0 : m.data) == null ? void 0 : j.result) == null ? void 0 : c[0]) == null ? void 0 : k.value) == null ? void 0 : D.tableData) == null ? void 0 : p.隐藏三维显示) !== !0 : !0;
302
+ };
303
+ return K(
304
+ () => W.value,
305
+ async () => {
306
+ W.value && (N.value = await G(W.value));
307
+ },
308
+ { deep: !0, immediate: !0 }
309
+ ), K(
310
+ () => [I.value, A.value],
311
+ () => {
312
+ var f;
313
+ ((f = I.value) == null ? void 0 : f.length) > 0 && A.value && A.value.addModelsFromUrls(I.value);
314
+ },
315
+ { immediate: !0, deep: !0 }
316
+ ), (f, d) => {
317
+ const m = y("el-button"), U = y("el-avatar"), E = y("el-header"), j = y("el-container"), c = y("el-aside"), k = y("el-splitter-panel"), D = y("el-splitter"), p = y("el-main"), J = y("router-view"), h = fe("loading");
318
+ return e(v) === "edit" ? (a(), S(j, {
319
+ key: 0,
320
+ class: "client-container"
321
+ }, {
322
+ default: s(() => [
323
+ t(E, { class: "client-structure-header" }, {
324
+ default: s(() => {
325
+ var g;
326
+ return [
327
+ l("div", it, [
328
+ t(m, {
329
+ class: "select-icon",
330
+ onClick: e(we)
331
+ }, {
332
+ default: s(() => d[2] || (d[2] = [
333
+ q(" 返回页面 ")
334
+ ])),
335
+ _: 1,
336
+ __: [2]
337
+ }, 8, ["onClick"]),
338
+ t(m, {
339
+ class: "select-icon",
340
+ onClick: d[0] || (d[0] = (r) => {
341
+ var T, o;
342
+ return e(ke)((o = (T = e(n)) == null ? void 0 : T.map((V) => V.value)) == null ? void 0 : o.join("/"));
343
+ })
344
+ }, {
345
+ icon: s(() => [
346
+ t(R, { name: "Store" })
347
+ ]),
348
+ default: s(() => [
349
+ d[3] || (d[3] = q(" 保存页面 "))
350
+ ]),
351
+ _: 1,
352
+ __: [3]
353
+ })
354
+ ]),
355
+ l("div", rt, [
356
+ (a(), S($e, {
357
+ key: e(n),
358
+ breadArray: e(n),
359
+ onClick: e(be)
360
+ }, null, 8, ["breadArray", "onClick"]))
361
+ ]),
362
+ l("div", ct, [
363
+ l("div", dt, [
364
+ Y(f.$slots, "default", {}, void 0, !0)
365
+ ]),
366
+ t(U, {
367
+ size: 35,
368
+ src: (g = e(x)) == null ? void 0 : g.avatarUrl
369
+ }, {
370
+ default: s(() => {
371
+ var r;
372
+ return [
373
+ q(P(((r = e(x)) == null ? void 0 : r.account) ?? "未知"), 1)
374
+ ];
375
+ }),
376
+ _: 1
377
+ }, 8, ["src"])
378
+ ])
379
+ ];
380
+ }),
381
+ _: 3
382
+ }),
383
+ e(v) === "edit" ? (a(), S(j, {
384
+ key: 0,
385
+ class: "model-operate",
386
+ style: { "margin-top": "10px", height: "0px" }
387
+ }, {
388
+ default: s(() => [
389
+ l("div", ut, [
390
+ t(de)
391
+ ]),
392
+ l("div", mt, [
393
+ t(ue)
394
+ ]),
395
+ l("div", _t, [
396
+ t(me)
397
+ ])
398
+ ]),
399
+ _: 1
400
+ })) : F("", !0)
401
+ ]),
402
+ _: 3
403
+ })) : he((a(), S(j, {
404
+ key: 1,
405
+ class: "client-container",
406
+ "element-loading-text": "正在加载页面数据..."
407
+ }, {
408
+ default: s(() => [
409
+ t(E, { class: "client-header" }, {
410
+ default: s(() => {
411
+ var g;
412
+ return [
413
+ d[5] || (d[5] = l("div", { class: "client-header-logo" }, " CPMPIP ", -1)),
414
+ l("div", pt, [
415
+ t(lt, { mode: "horizontal" })
416
+ ]),
417
+ l("div", vt, [
418
+ e(v) === "view" ? (a(), u("div", {
419
+ key: 0,
420
+ class: "select-icon",
421
+ onClick: d[1] || (d[1] = //@ts-ignore
422
+ (...r) => e(te) && e(te)(...r))
423
+ }, [
424
+ l("div", ft, [
425
+ t(R, {
426
+ name: "write",
427
+ style: { width: "clamp(12px, 0.9375rem, 15px)", height: "clamp(12px, 0.9375rem, 15px)" }
428
+ })
429
+ ]),
430
+ d[4] || (d[4] = l("div", { class: "layout-trigger" }, P("修改布局"), -1))
431
+ ])) : F("", !0),
432
+ l("div", ht, [
433
+ Y(f.$slots, "default", {}, void 0, !0)
434
+ ]),
435
+ t(U, {
436
+ size: 35,
437
+ src: (g = e(x)) == null ? void 0 : g.avatarUrl
438
+ }, {
439
+ default: s(() => {
440
+ var r;
441
+ return [
442
+ q(P(((r = e(x)) == null ? void 0 : r.account) ?? "未知"), 1)
443
+ ];
444
+ }),
445
+ _: 1
446
+ }, 8, ["src"])
447
+ ])
448
+ ];
449
+ }),
450
+ _: 3,
451
+ __: [5]
452
+ }),
453
+ t(j, { class: "client-body" }, {
454
+ default: s(() => [
455
+ t(D, null, {
456
+ default: s(() => [
457
+ t(k, {
458
+ collapsible: "",
459
+ resizable: !1,
460
+ max: 300,
461
+ size: 300
462
+ }, {
463
+ "start-collapsible": s(() => [
464
+ t(R, { name: "Left" })
465
+ ]),
466
+ "end-collapsible": s(() => [
467
+ t(R, { name: "Right" })
468
+ ]),
469
+ default: s(() => [
470
+ t(c, {
471
+ class: "client-aside",
472
+ width: "300px"
473
+ }, {
474
+ default: s(() => [
475
+ t(ge, { mode: "vertical" })
476
+ ]),
477
+ _: 1
478
+ })
479
+ ]),
480
+ _: 1
481
+ }),
482
+ t(k, { collapsible: "" }, {
483
+ default: s(() => [
484
+ f.$route.path === "/" ? (a(), S(p, {
485
+ key: 0,
486
+ class: "client-main"
487
+ }, {
488
+ default: s(() => [
489
+ l("div", gt, [
490
+ t(Ie, {
491
+ isShow: O.value,
492
+ windowConfig: $.windowConfig,
493
+ ref_key: "threeModelRef",
494
+ ref: A
495
+ }, null, 8, ["isShow", "windowConfig"])
496
+ ]),
497
+ t(D, { class: "main-splitter" }, {
498
+ default: s(() => [
499
+ t(k, {
500
+ collapsible: "",
501
+ resizable: !1
502
+ }, {
503
+ "start-collapsible": s(() => [
504
+ t(R, { name: "Left" })
505
+ ]),
506
+ "end-collapsible": s(() => [
507
+ t(R, { name: "Right" })
508
+ ]),
509
+ default: s(() => [
510
+ d[6] || (d[6] = l("div", { class: "empty-wrap" }, null, -1))
511
+ ]),
512
+ _: 1,
513
+ __: [6]
514
+ }),
515
+ t(k, {
516
+ collapsible: "",
517
+ resizable: !0,
518
+ size: 400,
519
+ style: { "border-radius": "8px" }
520
+ }, {
521
+ "start-collapsible": s(() => [
522
+ t(R, { name: "Left" })
523
+ ]),
524
+ "end-collapsible": s(() => [
525
+ t(R, { name: "Right" })
526
+ ]),
527
+ default: s(() => {
528
+ var g;
529
+ return [
530
+ l("div", Ct, [
531
+ (a(!0), u(Z, null, ee((g = e(X)(e(Q))) == null ? void 0 : g.filter((r) => r.comp !== "FormTop"), (r, T) => (a(), u("div", {
532
+ class: "item-view-content",
533
+ key: T
534
+ }, [
535
+ l("div", yt, P(r.name), 1),
536
+ (a(), S(ae(e(se)(r.comp)), {
537
+ itemData: r == null ? void 0 : r.compData,
538
+ childItemData: r == null ? void 0 : r.itemChildData,
539
+ key: (r == null ? void 0 : r.id) ?? T,
540
+ onChange: e(re),
541
+ index: (r == null ? void 0 : r.id) ?? T,
542
+ onContentChange: e(ie),
543
+ onPageChange: e(le)
544
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
545
+ ]))), 128))
546
+ ])
547
+ ];
548
+ }),
549
+ _: 1
550
+ })
551
+ ]),
552
+ _: 1
553
+ })
554
+ ]),
555
+ _: 1
556
+ })) : (a(), S(p, {
557
+ key: 1,
558
+ class: "client-router"
559
+ }, {
560
+ default: s(() => [
561
+ t(J)
562
+ ]),
563
+ _: 1
564
+ }))
565
+ ]),
566
+ _: 1
567
+ })
568
+ ]),
569
+ _: 1
570
+ })
571
+ ]),
572
+ _: 1
573
+ })
574
+ ]),
575
+ _: 3
576
+ })), [
577
+ [h, e(M)]
578
+ ]);
579
+ };
580
+ }
581
+ }), kt = /* @__PURE__ */ H(wt, [["__scopeId", "data-v-f30e7dd4"]]), bt = { class: "system-wrap" }, $t = {
582
+ __name: "index",
583
+ props: {
584
+ windowConfig: {
585
+ type: Object,
586
+ default: () => {
587
+ }
588
+ },
589
+ platform: {
590
+ type: String,
591
+ default: "browser"
592
+ },
593
+ content: String,
594
+ jsonContents: Array
595
+ },
596
+ setup($) {
597
+ const B = ne(z), n = _e(z), w = oe();
598
+ C(!1);
599
+ const x = C(!0), i = $;
600
+ return ce(() => {
601
+ }), K(
602
+ () => [i == null ? void 0 : i.content, i == null ? void 0 : i.jsonContents],
603
+ async () => {
604
+ var _, I, A, N;
605
+ if (((_ = i == null ? void 0 : i.jsonContents) == null ? void 0 : _.length) > 0) {
606
+ B.setOriginalData(i == null ? void 0 : i.jsonContents);
607
+ return;
608
+ }
609
+ if (!(i != null && i.content) || ((I = i == null ? void 0 : i.content) == null ? void 0 : I.length) === 0) return;
610
+ x.value = !0, w.setImportLoading(!0);
611
+ let v = [], b = [];
612
+ n.setSelectTitle([]), n.setSelectIndex(""), n.setSelectMenu(""), (N = (A = i == null ? void 0 : i.content) == null ? void 0 : A.filter((M) => M !== "")) == null || N.forEach((M) => {
613
+ Fe(M) ? b.push(Le(M)) : pe(M) ? b.push(pe(M)) : ve(M) ? b.push(ve(M)) : b.push(Pe(M));
614
+ }), v = b == null ? void 0 : b[0], await je(v), await Ce(), B.setOriginalData(v), w.setImportLoading(!1);
615
+ },
616
+ { deep: !0, immediate: !0 }
617
+ ), (v, b) => (a(), u("div", bt, [
618
+ $.platform === "browser" ? (a(), S(at, { key: 0 }, {
619
+ default: s(() => [
620
+ Y(v.$slots, "default", {}, void 0, !0)
621
+ ]),
622
+ _: 3
623
+ })) : (a(), S(kt, {
624
+ key: 1,
625
+ windowConfig: $.windowConfig
626
+ }, {
627
+ default: s(() => [
628
+ Y(v.$slots, "default", {}, void 0, !0)
629
+ ]),
630
+ _: 3
631
+ }, 8, ["windowConfig"]))
632
+ ]));
633
+ }
634
+ }, St = /* @__PURE__ */ H($t, [["__scopeId", "data-v-65a44ad9"]]), xt = { class: "add-model-content" }, Dt = {
635
+ key: 0,
636
+ class: "model-operate"
637
+ }, It = { class: "model-select" }, Mt = { class: "model-fill" }, At = {
638
+ key: 1,
639
+ class: "model-view"
640
+ }, Tt = {
641
+ key: 0,
642
+ class: "model-import-data"
643
+ }, Pt = {
644
+ __name: "index",
645
+ props: {
646
+ mode: {
647
+ type: String,
648
+ default: "view"
649
+ },
650
+ content: {
651
+ type: String,
652
+ default: ""
653
+ },
654
+ jsonContents: {
655
+ type: Array,
656
+ default: () => []
657
+ },
658
+ showButton: {
659
+ type: Boolean,
660
+ default: !0
661
+ }
662
+ },
663
+ emits: ["change", "contentChange"],
664
+ setup($, { emit: B }) {
665
+ const n = $, w = B, x = C([]), i = C([]), v = C([]), b = C(0), _ = ne(z), I = oe(z), { itemData: A, originalData: N } = L(_), { activeMenuPath: M, platform: W } = L(I), O = C(null), G = C(0), f = C([]);
666
+ C("");
667
+ const d = C(0), m = (c) => {
668
+ w("contentChange", c);
669
+ }, U = (c) => {
670
+ var D;
671
+ const k = (D = X(c == null ? void 0 : c.wholeValue)) == null ? void 0 : D.map((p) => {
672
+ var J;
673
+ return (p == null ? void 0 : p.comp) === "Form" && (p.compData = (J = p.compData) == null ? void 0 : J.map((h) => ((h == null ? void 0 : h.key) === "formContent" && (h.contents = ze(h == null ? void 0 : h.contents)), h))), p;
674
+ });
675
+ w("change", {
676
+ originalContents: N.value,
677
+ currentContents: c == null ? void 0 : c.wholeValue,
678
+ editContent: c == null ? void 0 : c.editValue,
679
+ arrayToContents: k
680
+ });
681
+ };
682
+ K(
683
+ () => i.value,
684
+ () => {
685
+ d.value === i.value.length && i.value.length !== 0 && (x.value = i.value);
686
+ },
687
+ { deep: !0, immediate: !0 }
688
+ );
689
+ const E = () => {
690
+ O.value.click();
691
+ }, j = async (c) => {
692
+ const k = c.target.files;
693
+ if (!k) return;
694
+ new FileReader(), x.value = [], i.value = [], d.value = k.length;
695
+ const D = Array.from(k).map(async (p) => await new Promise((J) => {
696
+ const h = new FileReader();
697
+ h.onload = (g) => {
698
+ try {
699
+ i.value.push(g.target.result), G.value++;
700
+ } catch (r) {
701
+ console.error("解析失败:", r);
702
+ return;
703
+ }
704
+ }, h.onerror = () => J(`读取 ${p.name} 失败`), h.readAsText(p), c.target.value = "", O.value = null;
705
+ }));
706
+ await Promise.all(D);
707
+ };
708
+ return K(
709
+ () => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
710
+ async () => {
711
+ await Ce(), x.value = n.content, v.value = n == null ? void 0 : n.jsonContents;
712
+ },
713
+ { deep: !0, immediate: !0 }
714
+ ), K(
715
+ () => G.value,
716
+ () => {
717
+ var c;
718
+ ((c = f.value) == null ? void 0 : c.length) !== 0 && (_.setOriginalData(f.value), _.setItemData(f.value));
719
+ },
720
+ { deep: !0, immediate: !0 }
721
+ ), (c, k) => {
722
+ const D = y("svg-icon");
723
+ return a(), u("div", xt, [
724
+ (n == null ? void 0 : n.mode) === "edit" ? (a(), u("div", Dt, [
725
+ l("div", It, [
726
+ t(de)
727
+ ]),
728
+ (a(), u("div", {
729
+ class: "model-show",
730
+ key: b.value
731
+ }, [
732
+ t(ue)
733
+ ])),
734
+ l("div", Mt, [
735
+ t(me)
736
+ ])
737
+ ])) : F("", !0),
738
+ (n == null ? void 0 : n.mode) === "view" ? (a(), u("div", At, [
739
+ (a(), S(St, {
740
+ platform: e(W),
741
+ content: x.value,
742
+ onChange: U,
743
+ jsonContents: v.value,
744
+ onContentChange: m,
745
+ key: b.value
746
+ }, {
747
+ default: s(() => {
748
+ var p;
749
+ return [
750
+ ((p = n == null ? void 0 : n.jsonContents) == null ? void 0 : p.length) === 0 && (n != null && n.showButton) ? (a(), u("div", Tt, [
751
+ l("div", {
752
+ class: "import-button",
753
+ onClick: E
754
+ }, [
755
+ l("input", {
756
+ type: "file",
757
+ ref_key: "fileInput",
758
+ ref: O,
759
+ accept: ".txt, .inm",
760
+ onChange: j,
761
+ style: { display: "none" },
762
+ multiple: ""
763
+ }, null, 544),
764
+ t(D, {
765
+ name: "import",
766
+ style: { width: "clamp(12px, 0.9375rem, 15px)", height: "clamp(12px, 0.9375rem, 15px)" }
767
+ }),
768
+ k[0] || (k[0] = l("div", { class: "import-trigger" }, P("导入模型"), -1))
769
+ ])
770
+ ])) : F("", !0)
771
+ ];
772
+ }),
773
+ _: 1
774
+ }, 8, ["platform", "content", "jsonContents"]))
775
+ ])) : F("", !0)
776
+ ]);
777
+ };
778
+ }
779
+ }, Ht = /* @__PURE__ */ H(Pt, [["__scopeId", "data-v-486b9e58"]]);
780
+ export {
781
+ Ht as default
782
+ };