ss-component-new 1.1.271 → 1.1.273

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