ss-component-new 1.1.270 → 1.1.271

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