ss-component-new 1.1.263 → 1.1.264

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 (89) hide show
  1. package/dist/{array-BCYeTWHp.cjs → array-D3xioWc3.cjs} +1 -1
  2. package/dist/{array-BiSkXjDh.js → array-De6v-7c8.js} +2 -2
  3. package/dist/{cloneDeep-CxhinJk5.js → cloneDeep-B2ByQP-n.js} +1 -1
  4. package/dist/{cloneDeep-BShYbOkw.cjs → cloneDeep-fJrTDzM4.cjs} +1 -1
  5. package/dist/{index-DvydSDWz.js → index--0pthhoG.js} +33 -33
  6. package/dist/{index-B8d1EBwW.cjs → index-08aCULjy.cjs} +1 -1
  7. package/dist/{index-BRgT-cwL.cjs → index-0TcXp8mH.cjs} +1 -1
  8. package/dist/index-B4jC_LC5.cjs +1 -0
  9. package/dist/{index-Cd2qjywt.cjs → index-B6yeLC4B.cjs} +1 -1
  10. package/dist/{index-BJEmWdGc.cjs → index-BCLA1nYG.cjs} +1 -1
  11. package/dist/{index-CWpNIgx-.js → index-BDIP3GvE.js} +5 -5
  12. package/dist/{index-6mqoLKfR.js → index-BLC8ydIr.js} +6 -6
  13. package/dist/{index-BEQcfNC8.js → index-BRdg4IiT.js} +503 -496
  14. package/dist/{index-GDAKW2b9.cjs → index-BRkdObg7.cjs} +1 -1
  15. package/dist/{index-DecqROTY.cjs → index-BRkvuCrS.cjs} +1 -1
  16. package/dist/index-BYUhFGra.cjs +1 -0
  17. package/dist/{index-C9gBSiUj.cjs → index-BjJJGDlr.cjs} +1 -1
  18. package/dist/{index-BxD91iWh.js → index-BwYoB3zY.js} +1 -1
  19. package/dist/{index-D9sisgye.js → index-ByD0b4gQ.js} +1 -1
  20. package/dist/{index-kq_YOCp0.cjs → index-BzfDFTVJ.cjs} +7 -7
  21. package/dist/{index-BqqWyJ_i.js → index-C4k05bGp.js} +8 -8
  22. package/dist/{index-jxXiBXta.cjs → index-C7u1PeVA.cjs} +1 -1
  23. package/dist/{index-B0SEIfhd.js → index-CACJUJNK.js} +3 -3
  24. package/dist/{index-Duw1U19n.js → index-CAMfVOTJ.js} +3 -3
  25. package/dist/{index-D0isXbYa.js → index-CCxjdgET.js} +13 -14
  26. package/dist/{index-BJWxGK8l.cjs → index-CGmFed4r.cjs} +1 -1
  27. package/dist/{index-Bl-nqQUb.cjs → index-CINFGcYo.cjs} +1 -1
  28. package/dist/{index-DdfwFwkR.js → index-CKwpRhPM.js} +3 -3
  29. package/dist/{index-B2bPpqmz.js → index-CMMc21DE.js} +5 -5
  30. package/dist/{index-B96mvnY6.js → index-CUmxELcB.js} +1 -1
  31. package/dist/{index--CBmQToI.js → index-CZ2mVLUS.js} +4 -4
  32. package/dist/{index-BRYyDz7j.cjs → index-Ca-dN5Cs.cjs} +1 -1
  33. package/dist/{index-BeYDJriQ.js → index-CiPPPWoz.js} +110 -111
  34. package/dist/index-ClFJDxkW.js +704 -0
  35. package/dist/{index-YBOakoO-.js → index-CmiwbsGe.js} +1 -1
  36. package/dist/{index-h9avu7we.cjs → index-CophBMbH.cjs} +1 -1
  37. package/dist/{index-cPpFPrRC.cjs → index-Ctjc6Jcq.cjs} +1 -1
  38. package/dist/{index-CzuGT7Su.cjs → index-CvvmJuAB.cjs} +1 -1
  39. package/dist/{index-C8FwXAiK.js → index-CwB7I565.js} +1 -1
  40. package/dist/{index-BW_gJg6Y.js → index-DCGzAKWd.js} +4 -4
  41. package/dist/{index-CNnhenkX.cjs → index-DDPAMlSG.cjs} +1 -1
  42. package/dist/index-DEv2DOlH.cjs +1 -0
  43. package/dist/{index-DhT3lFvD.js → index-DMCUh24w.js} +5 -5
  44. package/dist/{index-BiIAlHzV.cjs → index-DSxBLvAT.cjs} +1 -1
  45. package/dist/{index-DSPU33cy.js → index-DXd7EQps.js} +5 -5
  46. package/dist/index-Dcpfhw1L.cjs +1 -0
  47. package/dist/{index-5G9gxVsG.js → index-DfKXP07X.js} +13 -8
  48. package/dist/{index-BG7p7J6-.js → index-Dn9ZzQw9.js} +3 -3
  49. package/dist/{index-CvoVhrqh.cjs → index-DymcJtj4.cjs} +1 -1
  50. package/dist/{index-CPNiI7xc.cjs → index-ERfBi-RP.cjs} +1 -1
  51. package/dist/{index-DJRZAkF4.js → index-EmmO21uK.js} +4 -4
  52. package/dist/{index-BEPkDcRB.js → index-GG9AAJSa.js} +4 -4
  53. package/dist/index-GtWRkXjP.js +133 -0
  54. package/dist/{index-B5fyktOS.js → index-Pzfiy_pl.js} +1 -1
  55. package/dist/index-SYAZCe_x.js +3579 -0
  56. package/dist/{index-sYRfzwGi.cjs → index-_rARCgTs.cjs} +1 -1
  57. package/dist/index-cj-WHGF0.cjs +1 -0
  58. package/dist/{index-BTWHfvj_.cjs → index-hRwcFNhM.cjs} +1 -1
  59. package/dist/{index-Cmf6TSRr.js → index-qofx0IRr.js} +9 -9
  60. package/dist/index-sFDoFhGY.cjs +1 -0
  61. package/dist/{index-BPGk6VZT.cjs → index-sVlKvvQZ.cjs} +1 -1
  62. package/dist/{index-BReBoqZM.cjs → index-u6rAowW4.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js → index.vue_vue_type_script_setup_true_lang-CwRRfUhq.js} +1 -1
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs → index.vue_vue_type_script_setup_true_lang-HIAfOHHq.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DC0qx2mv.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Be6r7R3U.cjs} +1 -1
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-dyax8Dv5.js} +6 -6
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js} +12 -12
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B9TnTaRE.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DYSNP688.cjs} +1 -1
  69. package/dist/{login-B_Ta8W8C.cjs → login-Wrj9nSOa.cjs} +1 -1
  70. package/dist/{login-D_UosrWe.js → login-o8x8Nxaf.js} +2 -2
  71. package/dist/{main-CHSqRi2c.js → main-DWoD0Vdp.js} +7 -7
  72. package/dist/{main-DRtNsfjw.cjs → main-rSkhpXGR.cjs} +1 -1
  73. package/dist/{menu-BjwI4sfO.js → menu-CFLAcuA-.js} +33 -24
  74. package/dist/{menu-CH06rBlw.cjs → menu-cQfDaGL1.cjs} +4 -4
  75. package/dist/{modelComp-LhGhARtD.cjs → modelComp-4oAkv2ok.cjs} +1 -1
  76. package/dist/{modelComp-CiiFZm1t.js → modelComp-B7C56fRv.js} +1 -1
  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 +1 -1
  83. package/dist/index-21rauG0g.cjs +0 -1
  84. package/dist/index-3fLiW589.cjs +0 -1
  85. package/dist/index-B5vG0PaI.cjs +0 -1
  86. package/dist/index-C3-tA5Oy.js +0 -3520
  87. package/dist/index-CYjQVlPG.cjs +0 -1
  88. package/dist/index-ClyxHDAy.cjs +0 -1
  89. package/dist/index-WOjw27kj.js +0 -683
@@ -0,0 +1,704 @@
1
+ import { ref as f, onMounted as he, watch as z, createElementBlock as d, openBlock as o, Fragment as Y, renderList as Z, createElementVNode as i, createCommentVNode as T, normalizeStyle as De, toDisplayString as P, resolveComponent as w, resolveDirective as fe, withDirectives as pe, createBlock as $, withCtx as r, createVNode as l, unref as e, createTextVNode as W, renderSlot as X, resolveDynamicComponent as ae, defineComponent as be } from "vue";
2
+ import { m as ce, a as de, b as ue } from "./index-C4k05bGp.js";
3
+ import ge from "./index-CwB7I565.js";
4
+ import { p as B } from "./index-CmiwbsGe.js";
5
+ import { u as ne } from "./modelComp-B7C56fRv.js";
6
+ import { s as F, u as oe, g as Ie } from "./menu-CFLAcuA-.js";
7
+ import { u as Me } from "./index-SYAZCe_x.js";
8
+ import { u as xe, a as me, t as Ae, l as Ce } from "./index-BRdg4IiT.js";
9
+ import { _ as Te, e as Pe, s as je } from "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DUY9SJBE.js";
10
+ import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { i as Fe, e as Be, b as _e, c as ve, a as Ee } from "./array-De6v-7c8.js";
12
+ import { u as ye } from "./login-o8x8Nxaf.js";
13
+ import { S as ee } from "./index-BHtNKL1L.js";
14
+ import { o as we, c as ke, a as $e, b as te, s as G, g as se, d as le, e as ie, f as re } from "./index-CCxjdgET.js";
15
+ import { E as Le } from "./index-DfKXP07X.js";
16
+ import { c as Q } from "./cloneDeep-B2ByQP-n.js";
17
+ const Ne = { class: "bread-content" }, Ue = ["onClick"], Ve = {
18
+ key: 0,
19
+ class: "split-title"
20
+ }, Re = {
21
+ __name: "index",
22
+ props: {
23
+ breadArray: {
24
+ type: Array,
25
+ default: () => []
26
+ }
27
+ },
28
+ emits: ["click"],
29
+ setup(b, { emit: E }) {
30
+ const n = b, p = f([]), S = E;
31
+ he(() => {
32
+ p.value = n == null ? void 0 : n.breadArray;
33
+ }), z(
34
+ () => n == null ? void 0 : n.breadArray,
35
+ () => {
36
+ p.value = n == null ? void 0 : n.breadArray;
37
+ },
38
+ { deep: !0, immediate: !0 }
39
+ );
40
+ const s = (v) => {
41
+ S("click", v);
42
+ };
43
+ return (v, g) => (o(), d("div", Ne, [
44
+ (o(!0), d(Y, null, Z(p.value, (_, I) => {
45
+ var M;
46
+ return o(), d("div", {
47
+ key: I,
48
+ class: "bread-item"
49
+ }, [
50
+ i("div", {
51
+ class: "bread-title",
52
+ onClick: (L) => s(_),
53
+ style: De({ opacity: ((M = p.value) == null ? void 0 : M.length) - 1 === I ? "0.7" : "1" })
54
+ }, P(_.value), 13, Ue),
55
+ I !== p.value.length - 1 && Array.isArray(p.value) ? (o(), d("div", Ve, P("/"))) : T("", !0)
56
+ ]);
57
+ }), 128))
58
+ ]));
59
+ }
60
+ }, Se = /* @__PURE__ */ q(Re, [["__scopeId", "data-v-ded7e2bd"]]), ze = { class: "item-menu-content" }, Je = { class: "item-left-content" }, Oe = {
61
+ key: 0,
62
+ class: "page-icon"
63
+ }, Ke = { class: "avatar" }, We = { style: { display: "flex" } }, qe = { class: "select-icon" }, He = {
64
+ key: 0,
65
+ class: "model-operate",
66
+ style: { width: "0px" }
67
+ }, Ge = { class: "model-select" }, Qe = { class: "model-fill" }, Xe = {
68
+ key: 1,
69
+ class: "show-main-content"
70
+ }, Ye = { class: "show-content" }, Ze = { class: "item-view-group" }, et = { class: "show-item-content" }, tt = { class: "item-view-group" }, nt = {
71
+ key: 2,
72
+ class: "show-main-content"
73
+ }, ot = {
74
+ __name: "browser",
75
+ props: {
76
+ content: String,
77
+ jsonContents: Array
78
+ },
79
+ emits: ["change", "contentChange"],
80
+ setup(b, { emit: E }) {
81
+ const n = ye(), { loginUserInfo: p, cryptoInfo: S } = F(n);
82
+ he(() => {
83
+ Le({
84
+ title: "温馨提示:",
85
+ type: "success",
86
+ message: "欢迎使用系统",
87
+ duration: 1e3
88
+ });
89
+ });
90
+ const s = ne(B);
91
+ xe(B), f(!0);
92
+ const v = oe();
93
+ f(!0);
94
+ const { itemData: g, isEdit: _, isRefreshCurStructure: I, curStructureCompIds: M } = F(s), L = me(B), { activeMenuPath: x, menus: J, importLoading: R } = F(v), { selectIndex: H, selectTitle: C } = F(L);
95
+ return f([]), f(!1), (u, m) => {
96
+ const V = w("el-aside"), N = w("el-button"), j = w("el-avatar"), c = w("el-header"), k = w("router-view"), A = w("el-main"), h = w("el-container"), D = fe("loading");
97
+ return pe((o(), $(h, { "element-loading-text": "正在加载页面数据..." }, {
98
+ default: r(() => [
99
+ e(_) === "view" ? (o(), $(V, {
100
+ key: 0,
101
+ width: "250px"
102
+ }, {
103
+ default: r(() => [
104
+ l(ge, { mode: "vertical" })
105
+ ]),
106
+ _: 1
107
+ })) : T("", !0),
108
+ l(h, null, {
109
+ default: r(() => [
110
+ l(c, null, {
111
+ default: r(() => {
112
+ var t;
113
+ return [
114
+ i("div", ze, [
115
+ i("div", Je, [
116
+ e(_) === "edit" ? (o(), d("div", Oe, [
117
+ l(N, {
118
+ text: "",
119
+ onClick: e(we)
120
+ }, {
121
+ default: r(() => m[2] || (m[2] = [
122
+ W(" 返回页面 ")
123
+ ])),
124
+ _: 1,
125
+ __: [2]
126
+ }, 8, ["onClick"]),
127
+ l(N, {
128
+ text: "",
129
+ onClick: m[0] || (m[0] = (y) => {
130
+ var U, O;
131
+ return e(ke)((O = (U = e(C)) == null ? void 0 : U.map((a) => a.value)) == null ? void 0 : O.join("/"));
132
+ })
133
+ }, {
134
+ icon: r(() => [
135
+ l(ee, { name: "Store" })
136
+ ]),
137
+ default: r(() => [
138
+ m[3] || (m[3] = W(" 保存页面 "))
139
+ ]),
140
+ _: 1,
141
+ __: [3]
142
+ })
143
+ ])) : T("", !0),
144
+ (o(), $(Se, {
145
+ key: e(C),
146
+ breadArray: e(C),
147
+ onClick: e($e)
148
+ }, null, 8, ["breadArray", "onClick"]))
149
+ ]),
150
+ i("div", Ke, [
151
+ e(_) === "view" ? (o(), d("div", {
152
+ key: 0,
153
+ class: "select-icon",
154
+ onClick: m[1] || (m[1] = (...y) => e(te) && e(te)(...y))
155
+ }, [
156
+ i("div", We, [
157
+ l(ee, {
158
+ name: "write",
159
+ style: { width: "16px", height: "16px" }
160
+ })
161
+ ]),
162
+ m[4] || (m[4] = i("div", null, P("修改布局"), -1))
163
+ ])) : T("", !0),
164
+ i("div", qe, [
165
+ X(u.$slots, "default", {}, void 0, !0)
166
+ ]),
167
+ l(j, {
168
+ size: 35,
169
+ src: (t = e(p)) == null ? void 0 : t.avatarUrl
170
+ }, {
171
+ default: r(() => {
172
+ var y;
173
+ return [
174
+ W(P(((y = e(p)) == null ? void 0 : y.account) ?? "未知"), 1)
175
+ ];
176
+ }),
177
+ _: 1
178
+ }, 8, ["src"])
179
+ ])
180
+ ])
181
+ ];
182
+ }),
183
+ _: 3
184
+ }),
185
+ l(A, null, {
186
+ default: r(() => {
187
+ var t, y, U, O;
188
+ return [
189
+ e(_) === "edit" ? (o(), d("div", He, [
190
+ i("div", Ge, [
191
+ l(ce)
192
+ ]),
193
+ (o(), d("div", {
194
+ class: "model-show",
195
+ key: u.innerWidth
196
+ }, [
197
+ l(de)
198
+ ])),
199
+ i("div", Qe, [
200
+ l(ue)
201
+ ])
202
+ ])) : u.$route.path === "/" && ((t = e(G)) == null ? void 0 : t.length) > 0 && e(_) === "view" ? (o(), d("div", Xe, [
203
+ i("div", Ye, [
204
+ (y = e(Q)(e(G))) != null && y.find((a) => a.comp === "FormTop") ? (o(), d("div", {
205
+ class: "show-header",
206
+ key: u.index
207
+ }, [
208
+ (o(!0), d(Y, null, Z((U = e(Q)(e(G))) == null ? void 0 : U.filter((a) => a.comp === "FormTop"), (a, K) => (o(), d("div", {
209
+ class: "item-content",
210
+ key: K
211
+ }, [
212
+ i("div", Ze, P(a.name), 1),
213
+ (o(), $(ae(e(se)(a.comp)), {
214
+ itemData: a == null ? void 0 : a.compData,
215
+ childItemData: a == null ? void 0 : a.itemChildData,
216
+ key: (a == null ? void 0 : a.id) ?? K,
217
+ onChange: e(re),
218
+ index: (a == null ? void 0 : a.id) ?? K,
219
+ onContentChange: e(ie),
220
+ onPageChange: e(le)
221
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
222
+ ]))), 128))
223
+ ])) : T("", !0),
224
+ i("div", et, [
225
+ (o(!0), d(Y, null, Z((O = e(Q)(e(G))) == null ? void 0 : O.filter((a) => a.comp !== "FormTop"), (a, K) => (o(), d("div", {
226
+ class: "item-content",
227
+ key: K
228
+ }, [
229
+ i("div", tt, P(a.name), 1),
230
+ (o(), $(ae(e(se)(a.comp)), {
231
+ itemData: a == null ? void 0 : a.compData,
232
+ childItemData: a == null ? void 0 : a.itemChildData,
233
+ key: (a == null ? void 0 : a.id) ?? K,
234
+ onChange: e(re),
235
+ index: (a == null ? void 0 : a.id) ?? K,
236
+ onContentChange: e(ie),
237
+ onPageChange: e(le)
238
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
239
+ ]))), 128))
240
+ ])
241
+ ])
242
+ ])) : e(_) === "view" ? (o(), d("div", nt, [
243
+ l(k)
244
+ ])) : T("", !0)
245
+ ];
246
+ }),
247
+ _: 1
248
+ })
249
+ ]),
250
+ _: 3
251
+ })
252
+ ]),
253
+ _: 3
254
+ })), [
255
+ [D, e(R)]
256
+ ]);
257
+ };
258
+ }
259
+ }, at = /* @__PURE__ */ q(ot, [["__scopeId", "data-v-ef767374"]]);
260
+ function st(b, E, n, p, S, s) {
261
+ const v = w("DynamicIcon"), g = w("ssMenu");
262
+ return o(), $(g, {
263
+ mode: b.mode,
264
+ menuList: b.renderMenuList,
265
+ onClickMenu: b.clickMenu,
266
+ onOpenMenu: b.openMenu,
267
+ onCloseMenu: b.closeMenu
268
+ }, {
269
+ title: r(({ menu: _ }) => [
270
+ l(v, {
271
+ name: _.icon ?? ""
272
+ }, null, 8, ["name"]),
273
+ i("span", null, P(_.title ?? ""), 1)
274
+ ]),
275
+ _: 1
276
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
277
+ }
278
+ const lt = /* @__PURE__ */ q(Te, [["render", st], ["__scopeId", "data-v-93a3198a"]]), 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" }, vt = { class: "client-header-menu" }, ht = { class: "client-header-user" }, ft = { style: { display: "flex" } }, pt = { class: "select-icon" }, gt = {
279
+ key: 0,
280
+ class: "client-main-content"
281
+ }, Ct = { class: "client-main-operate" }, yt = { class: "item-view-group" }, wt = /* @__PURE__ */ be({
282
+ __name: "client",
283
+ setup(b) {
284
+ const E = me(B), { selectTitle: n } = F(E), p = ye(), { loginUserInfo: S } = F(p), s = ne(B), { isEdit: v } = F(s), g = oe(B), _ = Me(B), { objUrl: I } = F(_), M = f(null), L = f(!0), { importLoading: x, activeMenuPath: J } = F(g), R = f(!1);
285
+ z(() => J.value, async (C) => {
286
+ C && (R.value = !0);
287
+ }, { immediate: !0 });
288
+ const H = async (C) => {
289
+ var V, N, j, c, k, A, h;
290
+ const u = (V = C == null ? void 0 : C.split("/")) == null ? void 0 : V[0], m = await Ie({
291
+ key: {
292
+ type: "mainEquip",
293
+ systemKey: sessionStorage.getItem("systemKey"),
294
+ pageKey: u
295
+ }
296
+ });
297
+ return ((N = m == null ? void 0 : m.data) == null ? void 0 : N.type) === "success" ? ((h = (A = (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 : A.tableData) == null ? void 0 : h.隐藏三维显示) !== !0 : !0;
298
+ };
299
+ return z(
300
+ () => J.value,
301
+ async () => {
302
+ J.value && (L.value = await H(J.value));
303
+ },
304
+ { deep: !0, immediate: !0 }
305
+ ), z(
306
+ () => [I.value, M.value],
307
+ () => {
308
+ I.value !== "" && M.value && (M.value.clearAllModels(), M.value.addModelFromUrl(I.value));
309
+ },
310
+ { immediate: !0, deep: !0 }
311
+ ), (C, u) => {
312
+ const m = w("el-button"), V = w("el-avatar"), N = w("el-header"), j = w("el-container"), c = w("el-aside"), k = w("el-main"), A = w("router-view"), h = fe("loading");
313
+ return e(v) === "edit" ? (o(), $(j, {
314
+ key: 0,
315
+ class: "client-container"
316
+ }, {
317
+ default: r(() => [
318
+ l(N, { class: "client-structure-header" }, {
319
+ default: r(() => {
320
+ var D;
321
+ return [
322
+ i("div", it, [
323
+ l(m, {
324
+ class: "select-icon",
325
+ onClick: e(we)
326
+ }, {
327
+ default: r(() => u[2] || (u[2] = [
328
+ W(" 返回页面 ")
329
+ ])),
330
+ _: 1,
331
+ __: [2]
332
+ }, 8, ["onClick"]),
333
+ l(m, {
334
+ class: "select-icon",
335
+ onClick: u[0] || (u[0] = (t) => {
336
+ var y, U;
337
+ return e(ke)((U = (y = e(n)) == null ? void 0 : y.map((O) => O.value)) == null ? void 0 : U.join("/"));
338
+ })
339
+ }, {
340
+ icon: r(() => [
341
+ l(ee, { name: "Store" })
342
+ ]),
343
+ default: r(() => [
344
+ u[3] || (u[3] = W(" 保存页面 "))
345
+ ]),
346
+ _: 1,
347
+ __: [3]
348
+ })
349
+ ]),
350
+ i("div", rt, [
351
+ (o(), $(Se, {
352
+ key: e(n),
353
+ breadArray: e(n),
354
+ onClick: e($e)
355
+ }, null, 8, ["breadArray", "onClick"]))
356
+ ]),
357
+ i("div", ct, [
358
+ i("div", dt, [
359
+ X(C.$slots, "default", {}, void 0, !0)
360
+ ]),
361
+ l(V, {
362
+ size: 35,
363
+ src: (D = e(S)) == null ? void 0 : D.avatarUrl
364
+ }, {
365
+ default: r(() => {
366
+ var t;
367
+ return [
368
+ W(P(((t = e(S)) == null ? void 0 : t.account) ?? "未知"), 1)
369
+ ];
370
+ }),
371
+ _: 1
372
+ }, 8, ["src"])
373
+ ])
374
+ ];
375
+ }),
376
+ _: 3
377
+ }),
378
+ e(v) === "edit" ? (o(), $(j, {
379
+ key: 0,
380
+ class: "model-operate",
381
+ style: { "margin-top": "10px", height: "0px" }
382
+ }, {
383
+ default: r(() => [
384
+ i("div", ut, [
385
+ l(ce)
386
+ ]),
387
+ i("div", mt, [
388
+ l(de)
389
+ ]),
390
+ i("div", _t, [
391
+ l(ue)
392
+ ])
393
+ ]),
394
+ _: 1
395
+ })) : T("", !0)
396
+ ]),
397
+ _: 3
398
+ })) : pe((o(), $(j, {
399
+ key: 1,
400
+ class: "client-container",
401
+ "element-loading-text": "正在加载页面数据..."
402
+ }, {
403
+ default: r(() => [
404
+ l(N, { class: "client-header" }, {
405
+ default: r(() => {
406
+ var D;
407
+ return [
408
+ u[5] || (u[5] = i("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
409
+ i("div", vt, [
410
+ l(lt, { mode: "horizontal" })
411
+ ]),
412
+ i("div", ht, [
413
+ e(v) === "view" ? (o(), d("div", {
414
+ key: 0,
415
+ class: "select-icon",
416
+ onClick: u[1] || (u[1] = //@ts-ignore
417
+ (...t) => e(te) && e(te)(...t))
418
+ }, [
419
+ i("div", ft, [
420
+ l(ee, {
421
+ name: "write",
422
+ style: { width: "16px", height: "16px" }
423
+ })
424
+ ]),
425
+ u[4] || (u[4] = i("div", null, P("修改布局"), -1))
426
+ ])) : T("", !0),
427
+ i("div", pt, [
428
+ X(C.$slots, "default", {}, void 0, !0)
429
+ ]),
430
+ l(V, {
431
+ size: 35,
432
+ src: (D = e(S)) == null ? void 0 : D.avatarUrl
433
+ }, {
434
+ default: r(() => {
435
+ var t;
436
+ return [
437
+ W(P(((t = e(S)) == null ? void 0 : t.account) ?? "未知"), 1)
438
+ ];
439
+ }),
440
+ _: 1
441
+ }, 8, ["src"])
442
+ ])
443
+ ];
444
+ }),
445
+ _: 3,
446
+ __: [5]
447
+ }),
448
+ l(j, { class: "client-body" }, {
449
+ default: r(() => [
450
+ l(c, {
451
+ class: "client-aside",
452
+ width: "250px"
453
+ }, {
454
+ default: r(() => [
455
+ l(ge, { mode: "vertical" })
456
+ ]),
457
+ _: 1
458
+ }),
459
+ C.$route.path === "/" ? (o(), $(k, {
460
+ key: 0,
461
+ class: "client-main"
462
+ }, {
463
+ default: r(() => {
464
+ var D;
465
+ return [
466
+ L.value ? (o(), d("div", gt, [
467
+ l(Ae, {
468
+ isShow: R.value,
469
+ ref_key: "threeModelRef",
470
+ ref: M
471
+ }, null, 8, ["isShow"])
472
+ ])) : T("", !0),
473
+ i("div", Ct, [
474
+ (o(!0), d(Y, null, Z((D = e(Q)(e(G))) == null ? void 0 : D.filter((t) => t.comp !== "FormTop"), (t, y) => (o(), d("div", {
475
+ class: "item-view-content",
476
+ key: y
477
+ }, [
478
+ i("div", yt, P(t.name), 1),
479
+ (o(), $(ae(e(se)(t.comp)), {
480
+ itemData: t == null ? void 0 : t.compData,
481
+ childItemData: t == null ? void 0 : t.itemChildData,
482
+ key: (t == null ? void 0 : t.id) ?? y,
483
+ onChange: e(re),
484
+ index: (t == null ? void 0 : t.id) ?? y,
485
+ onContentChange: e(ie),
486
+ onPageChange: e(le)
487
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
488
+ ]))), 128))
489
+ ])
490
+ ];
491
+ }),
492
+ _: 1
493
+ })) : (o(), $(k, {
494
+ key: 1,
495
+ class: "client-router"
496
+ }, {
497
+ default: r(() => [
498
+ l(A)
499
+ ]),
500
+ _: 1
501
+ }))
502
+ ]),
503
+ _: 1
504
+ })
505
+ ]),
506
+ _: 3
507
+ })), [
508
+ [h, e(x)]
509
+ ]);
510
+ };
511
+ }
512
+ }), kt = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-8e2adbec"]]), $t = { class: "system-wrap" }, St = {
513
+ __name: "index",
514
+ props: {
515
+ platform: {
516
+ type: String,
517
+ default: "browser"
518
+ },
519
+ content: String,
520
+ jsonContents: Array
521
+ },
522
+ setup(b) {
523
+ const E = ne(B), n = me(B), p = oe();
524
+ f(!1);
525
+ const S = f(!0), s = b;
526
+ return z(
527
+ () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
528
+ async () => {
529
+ var _, I, M, L;
530
+ if (((_ = s == null ? void 0 : s.jsonContents) == null ? void 0 : _.length) > 0) {
531
+ E.setOriginalData(s == null ? void 0 : s.jsonContents);
532
+ return;
533
+ }
534
+ if (!(s != null && s.content) || ((I = s == null ? void 0 : s.content) == null ? void 0 : I.length) === 0) return;
535
+ S.value = !0, p.setImportLoading(!0);
536
+ let v = [], g = [];
537
+ n.setSelectTitle([]), n.setSelectIndex(""), n.setSelectMenu(""), (L = (M = s == null ? void 0 : s.content) == null ? void 0 : M.filter((x) => x !== "")) == null || L.forEach((x) => {
538
+ Fe(x) ? g.push(Be(x)) : _e(x) ? g.push(_e(x)) : ve(x) ? g.push(ve(x)) : g.push(Pe(x));
539
+ }), v = g == null ? void 0 : g[0], await je(v), await Ce(), E.setOriginalData(v), p.setImportLoading(!1);
540
+ },
541
+ { deep: !0, immediate: !0 }
542
+ ), (v, g) => (o(), d("div", $t, [
543
+ b.platform === "browser" ? (o(), $(at, { key: 0 }, {
544
+ default: r(() => [
545
+ X(v.$slots, "default", {}, void 0, !0)
546
+ ]),
547
+ _: 3
548
+ })) : (o(), $(kt, { key: 1 }, {
549
+ default: r(() => [
550
+ X(v.$slots, "default", {}, void 0, !0)
551
+ ]),
552
+ _: 3
553
+ }))
554
+ ]));
555
+ }
556
+ }, Dt = /* @__PURE__ */ q(St, [["__scopeId", "data-v-3fc52d23"]]), bt = { class: "add-model-content" }, It = {
557
+ key: 0,
558
+ class: "model-operate"
559
+ }, Mt = { class: "model-select" }, xt = { class: "model-fill" }, At = {
560
+ key: 1,
561
+ class: "model-view"
562
+ }, Tt = {
563
+ key: 0,
564
+ class: "model-import-data"
565
+ }, Pt = {
566
+ __name: "index",
567
+ props: {
568
+ mode: {
569
+ type: String,
570
+ default: "view"
571
+ },
572
+ content: {
573
+ type: String,
574
+ default: ""
575
+ },
576
+ jsonContents: {
577
+ type: Array,
578
+ default: () => []
579
+ },
580
+ showButton: {
581
+ type: Boolean,
582
+ default: !0
583
+ }
584
+ },
585
+ emits: ["change", "contentChange"],
586
+ setup(b, { emit: E }) {
587
+ const n = b, p = E, S = f([]), s = f([]), v = f([]), g = f(0), _ = ne(B), I = oe(B), { itemData: M, originalData: L } = F(_), { activeMenuPath: x, platform: J } = F(I), R = f(null), H = f(0), C = f([]);
588
+ f("");
589
+ const u = f(0), m = (c) => {
590
+ p("contentChange", c);
591
+ }, V = (c) => {
592
+ var A;
593
+ const k = (A = Q(c == null ? void 0 : c.wholeValue)) == null ? void 0 : A.map((h) => {
594
+ var D;
595
+ return (h == null ? void 0 : h.comp) === "Form" && (h.compData = (D = h.compData) == null ? void 0 : D.map((t) => ((t == null ? void 0 : t.key) === "formContent" && (t.contents = Ee(t == null ? void 0 : t.contents)), t))), h;
596
+ });
597
+ p("change", {
598
+ originalContents: L.value,
599
+ currentContents: c == null ? void 0 : c.wholeValue,
600
+ editContent: c == null ? void 0 : c.editValue,
601
+ arrayToContents: k
602
+ });
603
+ };
604
+ z(
605
+ () => s.value,
606
+ () => {
607
+ u.value === s.value.length && s.value.length !== 0 && (S.value = s.value);
608
+ },
609
+ { deep: !0, immediate: !0 }
610
+ );
611
+ const N = () => {
612
+ R.value.click();
613
+ }, j = async (c) => {
614
+ const k = c.target.files;
615
+ if (!k) return;
616
+ new FileReader(), S.value = [], s.value = [], u.value = k.length;
617
+ const A = Array.from(k).map(async (h) => await new Promise((D) => {
618
+ const t = new FileReader();
619
+ t.onload = (y) => {
620
+ try {
621
+ s.value.push(y.target.result), H.value++;
622
+ } catch (U) {
623
+ console.error("解析失败:", U);
624
+ return;
625
+ }
626
+ }, t.onerror = () => D(`读取 ${h.name} 失败`), t.readAsText(h), c.target.value = "", R.value = null;
627
+ }));
628
+ await Promise.all(A);
629
+ };
630
+ return z(
631
+ () => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
632
+ async () => {
633
+ await Ce(), S.value = n.content, v.value = n == null ? void 0 : n.jsonContents;
634
+ },
635
+ { deep: !0, immediate: !0 }
636
+ ), z(
637
+ () => H.value,
638
+ () => {
639
+ var c;
640
+ ((c = C.value) == null ? void 0 : c.length) !== 0 && (_.setOriginalData(C.value), _.setItemData(C.value));
641
+ },
642
+ { deep: !0, immediate: !0 }
643
+ ), (c, k) => {
644
+ const A = w("svg-icon");
645
+ return o(), d("div", bt, [
646
+ (n == null ? void 0 : n.mode) === "edit" ? (o(), d("div", It, [
647
+ i("div", Mt, [
648
+ l(ce)
649
+ ]),
650
+ (o(), d("div", {
651
+ class: "model-show",
652
+ key: g.value
653
+ }, [
654
+ l(de)
655
+ ])),
656
+ i("div", xt, [
657
+ l(ue)
658
+ ])
659
+ ])) : T("", !0),
660
+ (n == null ? void 0 : n.mode) === "view" ? (o(), d("div", At, [
661
+ (o(), $(Dt, {
662
+ platform: e(J),
663
+ content: S.value,
664
+ onChange: V,
665
+ jsonContents: v.value,
666
+ onContentChange: m,
667
+ key: g.value
668
+ }, {
669
+ default: r(() => {
670
+ var h;
671
+ return [
672
+ ((h = n == null ? void 0 : n.jsonContents) == null ? void 0 : h.length) === 0 && (n != null && n.showButton) ? (o(), d("div", Tt, [
673
+ i("div", {
674
+ class: "import-button",
675
+ onClick: N
676
+ }, [
677
+ i("input", {
678
+ type: "file",
679
+ ref_key: "fileInput",
680
+ ref: R,
681
+ accept: ".txt, .inm",
682
+ onChange: j,
683
+ style: { display: "none" },
684
+ multiple: ""
685
+ }, null, 544),
686
+ l(A, {
687
+ name: "import",
688
+ style: { width: "16px", height: "16px" }
689
+ }),
690
+ k[0] || (k[0] = i("div", null, P("导入模型"), -1))
691
+ ])
692
+ ])) : T("", !0)
693
+ ];
694
+ }),
695
+ _: 1
696
+ }, 8, ["platform", "content", "jsonContents"]))
697
+ ])) : T("", !0)
698
+ ]);
699
+ };
700
+ }
701
+ }, Gt = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-4b7a2e5d"]]);
702
+ export {
703
+ Gt as default
704
+ };