ss-component-new 1.1.253 → 1.1.255

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 (98) hide show
  1. package/dist/array-D0ksMxBm.js +4732 -0
  2. package/dist/array-FnDBAqr_.cjs +7 -0
  3. package/dist/{cloneDeep-BDzOfpB7.cjs → cloneDeep-C-pGUQKf.cjs} +1 -1
  4. package/dist/{cloneDeep-B7ARrx0h.js → cloneDeep-Dyt41_L-.js} +1 -1
  5. package/dist/index-1L58FxXE.cjs +1 -0
  6. package/dist/{index-CNPDa2xp.js → index-4QOp-GFW.js} +7 -7
  7. package/dist/{index-nZMqLfXg.cjs → index-4zv-tITd.cjs} +1 -1
  8. package/dist/{index-BpfCH5My.cjs → index-AmZEXNoQ.cjs} +1 -1
  9. package/dist/{index-BCOnsiBC.js → index-BCY2xvgA.js} +1 -1
  10. package/dist/{index-CGQDlgX-.cjs → index-BHBz_g9I.cjs} +1 -1
  11. package/dist/{index-Ds_5NHNT.js → index-BJGqjruN.js} +1 -1
  12. package/dist/index-BKvrNIq2.js +4199 -0
  13. package/dist/index-BLMAsu2L.cjs +1 -0
  14. package/dist/{index-BVn9XisQ.js → index-BPhMb7pK.js} +4 -4
  15. package/dist/{index-DRPDOftk.js → index-BT1bqIxy.js} +4 -4
  16. package/dist/{index-D6mFL7s6.js → index-BZCF6V6l.js} +30 -30
  17. package/dist/index-Bb-62WPF.cjs +1 -0
  18. package/dist/{index-3ncadd-n.cjs → index-Bb_UeGKJ.cjs} +1 -1
  19. package/dist/index-BeYOMEs2.js +674 -0
  20. package/dist/index-BipikeGR.js +199 -0
  21. package/dist/index-BjjXJSlm.cjs +1 -0
  22. package/dist/index-BqgOQWUB.js +300 -0
  23. package/dist/{index-B6RdCQU4.js → index-Bs2mNVJb.js} +3 -3
  24. package/dist/{index-DcaaSs_a.js → index-Bvff3Rjc.js} +5 -5
  25. package/dist/{index-djVN5_Sf.cjs → index-ByA8EBvo.cjs} +1 -1
  26. package/dist/{index-CDbcB1Fw.js → index-C9zbvQ_u.js} +23 -24
  27. package/dist/{index-D3inZGZu.js → index-CJz4osvs.js} +6 -6
  28. package/dist/{index-BKFkrbgp.js → index-CNw33JR-.js} +32 -33
  29. package/dist/{index-B1lESzpk.cjs → index-CXnqXm6c.cjs} +1 -1
  30. package/dist/{index-yR6R78G3.js → index-CgreBJdF.js} +20 -21
  31. package/dist/index-ChBbyPw-.cjs +1 -0
  32. package/dist/{index-BNiX-tj2.cjs → index-ChC7cQXw.cjs} +1 -1
  33. package/dist/{index-DbZbUOub.cjs → index-ChLhaUgK.cjs} +175 -175
  34. package/dist/{index-DHfQsoC3.cjs → index-D2mqkg4c.cjs} +1 -1
  35. package/dist/{index-CXAsYcYF.cjs → index-D2pc-BzQ.cjs} +1 -1
  36. package/dist/{index-BoOojDw-.js → index-D5Bz4nyQ.js} +1 -1
  37. package/dist/index-DALSlEkV.cjs +1 -0
  38. package/dist/{index-Duop-clY.js → index-DFaF-8_G.js} +9 -9
  39. package/dist/index-DRIDbmGM.cjs +1 -0
  40. package/dist/{index-DjCaZ8Zl.js → index-DV6L8VsR.js} +5 -5
  41. package/dist/{index-DOr4o5ev.js → index-DVg2yzki.js} +1 -1
  42. package/dist/{index-DzBceCbY.cjs → index-DVpKjSNf.cjs} +1 -1
  43. package/dist/{index-3NzfXDhk.js → index-DY1Iv1Nz.js} +8 -8
  44. package/dist/{index-Cp-JwN0E.js → index-D_zly77U.js} +2037 -2090
  45. package/dist/index-DeUj3yRd.cjs +9 -0
  46. package/dist/{index-DqQjcgXo.js → index-DmOEedex.js} +12 -13
  47. package/dist/{index-C5RHQr0o.cjs → index-DokJCYVc.cjs} +1 -1
  48. package/dist/{index-BxkFK6dD.cjs → index-DsP7FB21.cjs} +1 -1
  49. package/dist/index-Dxbc5WoF.cjs +1 -0
  50. package/dist/index-HW8r5PRa.cjs +1 -0
  51. package/dist/{index-B92_MojW.cjs → index-Hiw-v6tJ.cjs} +1 -1
  52. package/dist/index-JN1a_LH1.cjs +1 -0
  53. package/dist/{index-LGlIxzMg.cjs → index-VEIBSb0L.cjs} +1 -1
  54. package/dist/{index-BASoYcrU.js → index-XqdyrkBW.js} +7 -8
  55. package/dist/{index-DCFR7U_b.js → index-ZO1MQu0A.js} +4 -4
  56. package/dist/{index-DqYY8LS-.js → index-exmBUjmZ.js} +5 -5
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-Bs-qy0pK.cjs → index.vue_vue_type_script_setup_true_lang-BJKLFe1B.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-CBfDRFHN.js → index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DIYf7qx2.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B7wukF06.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DRxEC4eG.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BJ_xZq3T.js} +6 -6
  61. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-ByetdKK8.cjs +1 -0
  62. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js +908 -0
  63. package/dist/login-Bps4AQ46.cjs +1 -0
  64. package/dist/{login-CxadfjHD.js → login-l8Wv_G2i.js} +6 -6
  65. package/dist/{main-BVVwVykl.js → main-AjMVz5uU.js} +6 -6
  66. package/dist/{main-BTJBYczL.cjs → main-WNNH9wBa.cjs} +1 -1
  67. package/dist/menu-BEvMDEbJ.js +6783 -0
  68. package/dist/menu-Cj-UKXED.cjs +16 -0
  69. package/dist/{modelComp-BsKtMeM7.js → modelComp-CxFffZnZ.js} +1 -1
  70. package/dist/{modelComp-Im8BtgFY.cjs → modelComp-CyktectM.cjs} +1 -1
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +16 -16
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/package.json +1 -1
  77. package/dist/array-CWm2LBmk.js +0 -4774
  78. package/dist/array-DyMFtlR4.cjs +0 -7
  79. package/dist/index-B5Fm5mr1.cjs +0 -9
  80. package/dist/index-Bp-Vqgkz.cjs +0 -1
  81. package/dist/index-BsGfXgSZ.js +0 -665
  82. package/dist/index-BtrCLtfp.cjs +0 -1
  83. package/dist/index-CIthfbvr.cjs +0 -1
  84. package/dist/index-CTtglK3w.cjs +0 -1
  85. package/dist/index-Cd6eKBt6.js +0 -3761
  86. package/dist/index-CdCwMRa1.js +0 -2115
  87. package/dist/index-D1dTAKxV.cjs +0 -1
  88. package/dist/index-D2c04gRc.cjs +0 -1
  89. package/dist/index-DANHTRnF.js +0 -228
  90. package/dist/index-DZSlvnaa.cjs +0 -1
  91. package/dist/index-Dp4TFbqD.cjs +0 -1
  92. package/dist/index-ZTdcBfL7.cjs +0 -6
  93. package/dist/index-ip4VAMkK.cjs +0 -1
  94. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CZVR2xnq.js +0 -896
  95. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-jMr9WVDb.cjs +0 -1
  96. package/dist/login-D9nwQPXh.cjs +0 -1
  97. package/dist/menu-BqjJVKx7.js +0 -4855
  98. package/dist/menu-BuVFL_u8.cjs +0 -11
@@ -0,0 +1,674 @@
1
+ import { ref as g, onMounted as ve, watch as R, createElementBlock as d, openBlock as o, Fragment as Y, renderList as Z, createElementVNode as i, createCommentVNode as A, normalizeStyle as De, toDisplayString as I, resolveComponent as C, resolveDirective as pe, withDirectives as fe, createBlock as y, withCtx as c, createVNode as l, unref as e, createTextVNode as U, renderSlot as X, resolveDynamicComponent as ae, defineComponent as be, nextTick as Ie } from "vue";
2
+ import { m as re, a as de, b as ue } from "./index-4QOp-GFW.js";
3
+ import ge from "./index-DVg2yzki.js";
4
+ import { p as L } from "./index-BipikeGR.js";
5
+ import { u as ne } from "./modelComp-CxFffZnZ.js";
6
+ import { s as F, u as oe } from "./menu-BEvMDEbJ.js";
7
+ import { i as xe, e as Me, b as me, c as he, a as Te } from "./array-D0ksMxBm.js";
8
+ import { u as Ae, a as _e, t as Pe, l as Ce } from "./index-D_zly77U.js";
9
+ import { o as ye, c as we, a as ke, b as ee, s as K, g as se, d as le, e as ie, f as ce, _ as je, h as Fe, i as Be } from "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js";
10
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import "./index-BT1bqIxy.js";
12
+ import { u as $e } from "./login-l8Wv_G2i.js";
13
+ import "./index-DmOEedex.js";
14
+ import "./crypto-BRyGpjGR.js";
15
+ import { S as te } from "./index-BHtNKL1L.js";
16
+ import { E as Le } from "./index-DY1Iv1Nz.js";
17
+ import { c as Q } from "./cloneDeep-Dyt41_L-.js";
18
+ const Ee = { class: "bread-content" }, Ne = ["onClick"], Ve = {
19
+ key: 0,
20
+ class: "split-title"
21
+ }, Ue = {
22
+ __name: "index",
23
+ props: {
24
+ breadArray: {
25
+ type: Array,
26
+ default: () => []
27
+ }
28
+ },
29
+ emits: ["click"],
30
+ setup($, { emit: P }) {
31
+ const n = $, m = g([]), w = P;
32
+ ve(() => {
33
+ m.value = n == null ? void 0 : n.breadArray;
34
+ }), R(
35
+ () => n == null ? void 0 : n.breadArray,
36
+ () => {
37
+ m.value = n == null ? void 0 : n.breadArray;
38
+ },
39
+ { deep: !0, immediate: !0 }
40
+ );
41
+ const s = (_) => {
42
+ w("click", _);
43
+ };
44
+ return (_, v) => (o(), d("div", Ee, [
45
+ (o(!0), d(Y, null, Z(m.value, (u, x) => {
46
+ var M;
47
+ return o(), d("div", {
48
+ key: x,
49
+ class: "bread-item"
50
+ }, [
51
+ i("div", {
52
+ class: "bread-title",
53
+ onClick: (S) => s(u),
54
+ style: De({ opacity: ((M = m.value) == null ? void 0 : M.length) - 1 === x ? "0.7" : "1" })
55
+ }, I(u.value), 13, Ne),
56
+ x !== m.value.length - 1 && Array.isArray(m.value) ? (o(), d("div", Ve, I("/"))) : A("", !0)
57
+ ]);
58
+ }), 128))
59
+ ]));
60
+ }
61
+ }, Se = /* @__PURE__ */ W(Ue, [["__scopeId", "data-v-ded7e2bd"]]), ze = { class: "item-menu-content" }, Je = { class: "item-left-content" }, Oe = {
62
+ key: 0,
63
+ class: "page-icon"
64
+ }, Re = { class: "avatar" }, We = { style: { display: "flex" } }, He = { class: "select-icon" }, qe = {
65
+ key: 0,
66
+ class: "model-operate",
67
+ style: { width: "0px" }
68
+ }, Ge = { class: "model-select" }, Ke = { class: "model-fill" }, Qe = {
69
+ key: 1,
70
+ class: "show-main-content"
71
+ }, Xe = { class: "show-content" }, Ye = { class: "item-view-group" }, Ze = { class: "show-item-content" }, et = { class: "item-view-group" }, tt = {
72
+ key: 2,
73
+ class: "show-main-content"
74
+ }, nt = {
75
+ __name: "browser",
76
+ props: {
77
+ content: String,
78
+ jsonContents: Array
79
+ },
80
+ emits: ["change", "contentChange"],
81
+ setup($, { emit: P }) {
82
+ const n = $e(), { loginUserInfo: m, cryptoInfo: w } = F(n);
83
+ ve(() => {
84
+ Le({
85
+ title: "温馨提示:",
86
+ type: "success",
87
+ message: "欢迎使用系统",
88
+ duration: 1e3
89
+ });
90
+ });
91
+ const s = ne(L);
92
+ Ae(L), g(!0);
93
+ const _ = oe();
94
+ g(!0);
95
+ const { itemData: v, isEdit: u, isRefreshCurStructure: x, curStructureCompIds: M } = F(s), S = _e(L), { activeMenuPath: r, menus: H, importLoading: E } = F(_), { selectIndex: z, selectTitle: D } = F(S);
96
+ return g([]), g(!1), (B, k) => {
97
+ const q = C("el-aside"), J = C("el-button"), b = C("el-avatar"), t = C("el-header"), p = C("router-view"), T = C("el-main"), f = C("el-container"), O = pe("loading");
98
+ return fe((o(), y(f, { "element-loading-text": "正在加载页面数据..." }, {
99
+ default: c(() => [
100
+ e(u) === "view" ? (o(), y(q, {
101
+ key: 0,
102
+ width: "250px"
103
+ }, {
104
+ default: c(() => [
105
+ l(ge, { mode: "vertical" })
106
+ ]),
107
+ _: 1
108
+ })) : A("", !0),
109
+ l(f, null, {
110
+ default: c(() => [
111
+ l(t, null, {
112
+ default: c(() => {
113
+ var h;
114
+ return [
115
+ i("div", ze, [
116
+ i("div", Je, [
117
+ e(u) === "edit" ? (o(), d("div", Oe, [
118
+ l(J, {
119
+ text: "",
120
+ onClick: e(ye)
121
+ }, {
122
+ default: c(() => k[2] || (k[2] = [
123
+ U(" 返回页面 ")
124
+ ])),
125
+ _: 1,
126
+ __: [2]
127
+ }, 8, ["onClick"]),
128
+ l(J, {
129
+ text: "",
130
+ onClick: k[0] || (k[0] = (j) => {
131
+ var N, G;
132
+ return e(we)((G = (N = e(D)) == null ? void 0 : N.map((a) => a.value)) == null ? void 0 : G.join("/"));
133
+ })
134
+ }, {
135
+ icon: c(() => [
136
+ l(te, { name: "Store" })
137
+ ]),
138
+ default: c(() => [
139
+ k[3] || (k[3] = U(" 保存页面 "))
140
+ ]),
141
+ _: 1,
142
+ __: [3]
143
+ })
144
+ ])) : A("", !0),
145
+ (o(), y(Se, {
146
+ key: e(D),
147
+ breadArray: e(D),
148
+ onClick: e(ke)
149
+ }, null, 8, ["breadArray", "onClick"]))
150
+ ]),
151
+ i("div", Re, [
152
+ e(u) === "view" ? (o(), d("div", {
153
+ key: 0,
154
+ class: "select-icon",
155
+ onClick: k[1] || (k[1] = (...j) => e(ee) && e(ee)(...j))
156
+ }, [
157
+ i("div", We, [
158
+ l(te, {
159
+ name: "write",
160
+ style: { width: "16px", height: "16px" }
161
+ })
162
+ ]),
163
+ k[4] || (k[4] = i("div", null, I("修改布局"), -1))
164
+ ])) : A("", !0),
165
+ i("div", He, [
166
+ X(B.$slots, "default", {}, void 0, !0)
167
+ ]),
168
+ l(b, {
169
+ size: 35,
170
+ src: (h = e(m)) == null ? void 0 : h.avatarUrl
171
+ }, {
172
+ default: c(() => {
173
+ var j;
174
+ return [
175
+ U(I(((j = e(m)) == null ? void 0 : j.account) ?? "未知"), 1)
176
+ ];
177
+ }),
178
+ _: 1
179
+ }, 8, ["src"])
180
+ ])
181
+ ])
182
+ ];
183
+ }),
184
+ _: 3
185
+ }),
186
+ l(T, null, {
187
+ default: c(() => {
188
+ var h, j, N, G;
189
+ return [
190
+ e(u) === "edit" ? (o(), d("div", qe, [
191
+ i("div", Ge, [
192
+ l(re)
193
+ ]),
194
+ (o(), d("div", {
195
+ class: "model-show",
196
+ key: B.innerWidth
197
+ }, [
198
+ l(de)
199
+ ])),
200
+ i("div", Ke, [
201
+ l(ue)
202
+ ])
203
+ ])) : B.$route.path === "/" && ((h = e(K)) == null ? void 0 : h.length) > 0 && e(u) === "view" ? (o(), d("div", Qe, [
204
+ i("div", Xe, [
205
+ (j = e(Q)(e(K))) != null && j.find((a) => a.comp === "FormTop") ? (o(), d("div", {
206
+ class: "show-header",
207
+ key: B.index
208
+ }, [
209
+ (o(!0), d(Y, null, Z((N = e(Q)(e(K))) == null ? void 0 : N.filter((a) => a.comp === "FormTop"), (a, V) => (o(), d("div", {
210
+ class: "item-content",
211
+ key: V
212
+ }, [
213
+ i("div", Ye, I(a.name), 1),
214
+ (o(), y(ae(e(se)(a.comp)), {
215
+ itemData: a == null ? void 0 : a.compData,
216
+ childItemData: a == null ? void 0 : a.itemChildData,
217
+ key: (a == null ? void 0 : a.id) ?? V,
218
+ onChange: e(ce),
219
+ index: (a == null ? void 0 : a.id) ?? V,
220
+ onContentChange: e(ie),
221
+ onPageChange: e(le)
222
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
223
+ ]))), 128))
224
+ ])) : A("", !0),
225
+ i("div", Ze, [
226
+ (o(!0), d(Y, null, Z((G = e(Q)(e(K))) == null ? void 0 : G.filter((a) => a.comp !== "FormTop"), (a, V) => (o(), d("div", {
227
+ class: "item-content",
228
+ key: V
229
+ }, [
230
+ i("div", et, I(a.name), 1),
231
+ (o(), y(ae(e(se)(a.comp)), {
232
+ itemData: a == null ? void 0 : a.compData,
233
+ childItemData: a == null ? void 0 : a.itemChildData,
234
+ key: (a == null ? void 0 : a.id) ?? V,
235
+ onChange: e(ce),
236
+ index: (a == null ? void 0 : a.id) ?? V,
237
+ onContentChange: e(ie),
238
+ onPageChange: e(le)
239
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
240
+ ]))), 128))
241
+ ])
242
+ ])
243
+ ])) : e(u) === "view" ? (o(), d("div", tt, [
244
+ l(p)
245
+ ])) : A("", !0)
246
+ ];
247
+ }),
248
+ _: 1
249
+ })
250
+ ]),
251
+ _: 3
252
+ })
253
+ ]),
254
+ _: 3
255
+ })), [
256
+ [O, e(E)]
257
+ ]);
258
+ };
259
+ }
260
+ }, ot = /* @__PURE__ */ W(nt, [["__scopeId", "data-v-aadb3d99"]]);
261
+ function at($, P, n, m, w, s) {
262
+ const _ = C("DynamicIcon"), v = C("ssMenu");
263
+ return o(), y(v, {
264
+ mode: $.mode,
265
+ menuList: $.renderMenuList,
266
+ onClickMenu: $.clickMenu,
267
+ onOpenMenu: $.openMenu,
268
+ onCloseMenu: $.closeMenu
269
+ }, {
270
+ title: c(({ menu: u }) => [
271
+ l(_, {
272
+ name: u.icon ?? ""
273
+ }, null, 8, ["name"]),
274
+ i("span", null, I(u.title ?? ""), 1)
275
+ ]),
276
+ _: 1
277
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
278
+ }
279
+ const st = /* @__PURE__ */ W(je, [["render", at], ["__scopeId", "data-v-93a3198a"]]), lt = { class: "structure-buttons" }, it = { class: "structure-paths" }, ct = { class: "client-header-user" }, rt = { class: "select-icon" }, dt = { class: "model-select" }, ut = { class: "model-show" }, _t = { class: "model-fill" }, mt = { class: "client-header-menu" }, ht = { class: "client-header-user" }, vt = { style: { display: "flex" } }, pt = { class: "select-icon" }, ft = { class: "client-main-content" }, gt = { class: "client-main-operate" }, Ct = { class: "item-view-group" }, yt = /* @__PURE__ */ be({
280
+ __name: "client",
281
+ setup($) {
282
+ const P = _e(L), { selectTitle: n } = F(P), m = $e(), { loginUserInfo: w } = F(m), s = ne(L), { isEdit: _ } = F(s), v = oe(), { importLoading: u, activeMenuPath: x } = F(v), M = g(!1);
283
+ return R(() => x.value, async (S) => {
284
+ S && (await Ie(), M.value = !M.value);
285
+ }, { immediate: !0 }), (S, r) => {
286
+ const H = C("el-button"), E = C("el-avatar"), z = C("el-header"), D = C("el-container"), B = C("el-aside"), k = C("el-main"), q = C("router-view"), J = pe("loading");
287
+ return e(_) === "edit" ? (o(), y(D, {
288
+ key: 0,
289
+ class: "client-container"
290
+ }, {
291
+ default: c(() => [
292
+ l(z, { class: "client-structure-header" }, {
293
+ default: c(() => {
294
+ var b;
295
+ return [
296
+ i("div", lt, [
297
+ l(H, {
298
+ class: "select-icon",
299
+ onClick: e(ye)
300
+ }, {
301
+ default: c(() => r[2] || (r[2] = [
302
+ U(" 返回页面 ")
303
+ ])),
304
+ _: 1,
305
+ __: [2]
306
+ }, 8, ["onClick"]),
307
+ l(H, {
308
+ class: "select-icon",
309
+ onClick: r[0] || (r[0] = (t) => {
310
+ var p, T;
311
+ return e(we)((T = (p = e(n)) == null ? void 0 : p.map((f) => f.value)) == null ? void 0 : T.join("/"));
312
+ })
313
+ }, {
314
+ icon: c(() => [
315
+ l(te, { name: "Store" })
316
+ ]),
317
+ default: c(() => [
318
+ r[3] || (r[3] = U(" 保存页面 "))
319
+ ]),
320
+ _: 1,
321
+ __: [3]
322
+ })
323
+ ]),
324
+ i("div", it, [
325
+ (o(), y(Se, {
326
+ key: e(n),
327
+ breadArray: e(n),
328
+ onClick: e(ke)
329
+ }, null, 8, ["breadArray", "onClick"]))
330
+ ]),
331
+ i("div", ct, [
332
+ i("div", rt, [
333
+ X(S.$slots, "default", {}, void 0, !0)
334
+ ]),
335
+ l(E, {
336
+ size: 35,
337
+ src: (b = e(w)) == null ? void 0 : b.avatarUrl
338
+ }, {
339
+ default: c(() => {
340
+ var t;
341
+ return [
342
+ U(I(((t = e(w)) == null ? void 0 : t.account) ?? "未知"), 1)
343
+ ];
344
+ }),
345
+ _: 1
346
+ }, 8, ["src"])
347
+ ])
348
+ ];
349
+ }),
350
+ _: 3
351
+ }),
352
+ e(_) === "edit" ? (o(), y(D, {
353
+ key: 0,
354
+ class: "model-operate",
355
+ style: { "margin-top": "10px", height: "0px" }
356
+ }, {
357
+ default: c(() => [
358
+ i("div", dt, [
359
+ l(re)
360
+ ]),
361
+ i("div", ut, [
362
+ l(de)
363
+ ]),
364
+ i("div", _t, [
365
+ l(ue)
366
+ ])
367
+ ]),
368
+ _: 1
369
+ })) : A("", !0)
370
+ ]),
371
+ _: 3
372
+ })) : fe((o(), y(D, {
373
+ key: 1,
374
+ class: "client-container",
375
+ "element-loading-text": "正在加载页面数据..."
376
+ }, {
377
+ default: c(() => [
378
+ l(z, { class: "client-header" }, {
379
+ default: c(() => {
380
+ var b;
381
+ return [
382
+ r[5] || (r[5] = i("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
383
+ i("div", mt, [
384
+ l(st, { mode: "horizontal" })
385
+ ]),
386
+ i("div", ht, [
387
+ e(_) === "view" ? (o(), d("div", {
388
+ key: 0,
389
+ class: "select-icon",
390
+ onClick: r[1] || (r[1] = //@ts-ignore
391
+ (...t) => e(ee) && e(ee)(...t))
392
+ }, [
393
+ i("div", vt, [
394
+ l(te, {
395
+ name: "write",
396
+ style: { width: "16px", height: "16px" }
397
+ })
398
+ ]),
399
+ r[4] || (r[4] = i("div", null, I("修改布局"), -1))
400
+ ])) : A("", !0),
401
+ i("div", pt, [
402
+ X(S.$slots, "default", {}, void 0, !0)
403
+ ]),
404
+ l(E, {
405
+ size: 35,
406
+ src: (b = e(w)) == null ? void 0 : b.avatarUrl
407
+ }, {
408
+ default: c(() => {
409
+ var t;
410
+ return [
411
+ U(I(((t = e(w)) == null ? void 0 : t.account) ?? "未知"), 1)
412
+ ];
413
+ }),
414
+ _: 1
415
+ }, 8, ["src"])
416
+ ])
417
+ ];
418
+ }),
419
+ _: 3,
420
+ __: [5]
421
+ }),
422
+ l(D, { class: "client-body" }, {
423
+ default: c(() => [
424
+ l(B, {
425
+ class: "client-aside",
426
+ width: "250px"
427
+ }, {
428
+ default: c(() => [
429
+ l(ge, { mode: "vertical" })
430
+ ]),
431
+ _: 1
432
+ }),
433
+ S.$route.path === "/" ? (o(), y(k, {
434
+ key: 0,
435
+ class: "client-main"
436
+ }, {
437
+ default: c(() => {
438
+ var b;
439
+ return [
440
+ i("div", ft, [
441
+ l(Pe, { isShow: M.value }, null, 8, ["isShow"])
442
+ ]),
443
+ i("div", gt, [
444
+ (o(!0), d(Y, null, Z((b = e(Q)(e(K))) == null ? void 0 : b.filter((t) => t.comp !== "FormTop"), (t, p) => (o(), d("div", {
445
+ class: "item-view-content",
446
+ key: p
447
+ }, [
448
+ i("div", Ct, I(t.name), 1),
449
+ (o(), y(ae(e(se)(t.comp)), {
450
+ itemData: t == null ? void 0 : t.compData,
451
+ childItemData: t == null ? void 0 : t.itemChildData,
452
+ key: (t == null ? void 0 : t.id) ?? p,
453
+ onChange: e(ce),
454
+ index: (t == null ? void 0 : t.id) ?? p,
455
+ onContentChange: e(ie),
456
+ onPageChange: e(le)
457
+ }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
458
+ ]))), 128))
459
+ ])
460
+ ];
461
+ }),
462
+ _: 1
463
+ })) : (o(), y(k, {
464
+ key: 1,
465
+ class: "client-router"
466
+ }, {
467
+ default: c(() => [
468
+ l(q)
469
+ ]),
470
+ _: 1
471
+ }))
472
+ ]),
473
+ _: 1
474
+ })
475
+ ]),
476
+ _: 3
477
+ })), [
478
+ [J, e(u)]
479
+ ]);
480
+ };
481
+ }
482
+ }), wt = /* @__PURE__ */ W(yt, [["__scopeId", "data-v-e4df393b"]]), kt = { class: "system-wrap" }, $t = {
483
+ __name: "index",
484
+ props: {
485
+ platform: {
486
+ type: String,
487
+ default: "browser"
488
+ },
489
+ content: String,
490
+ jsonContents: Array
491
+ },
492
+ setup($) {
493
+ const P = ne(L), n = _e(L), m = oe();
494
+ g(!1);
495
+ const w = g(!0), s = $;
496
+ return R(
497
+ () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
498
+ async () => {
499
+ var u, x, M, S;
500
+ if (((u = s == null ? void 0 : s.jsonContents) == null ? void 0 : u.length) > 0) {
501
+ P.setOriginalData(s == null ? void 0 : s.jsonContents);
502
+ return;
503
+ }
504
+ if (!(s != null && s.content) || ((x = s == null ? void 0 : s.content) == null ? void 0 : x.length) === 0) return;
505
+ w.value = !0, m.setImportLoading(!0);
506
+ let _ = [], v = [];
507
+ n.setSelectTitle([]), n.setSelectIndex(""), n.setSelectMenu(""), (S = (M = s == null ? void 0 : s.content) == null ? void 0 : M.filter((r) => r !== "")) == null || S.forEach((r) => {
508
+ xe(r) ? v.push(Me(r)) : me(r) ? v.push(me(r)) : he(r) ? v.push(he(r)) : v.push(Fe(r));
509
+ }), _ = v == null ? void 0 : v[0], await Be(_), await Ce(), P.setOriginalData(_), m.setImportLoading(!1);
510
+ },
511
+ { deep: !0, immediate: !0 }
512
+ ), (_, v) => (o(), d("div", kt, [
513
+ $.platform === "browser" ? (o(), y(ot, { key: 0 }, {
514
+ default: c(() => [
515
+ X(_.$slots, "default", {}, void 0, !0)
516
+ ]),
517
+ _: 3
518
+ })) : (o(), y(wt, { key: 1 }, {
519
+ default: c(() => [
520
+ X(_.$slots, "default", {}, void 0, !0)
521
+ ]),
522
+ _: 3
523
+ }))
524
+ ]));
525
+ }
526
+ }, St = /* @__PURE__ */ W($t, [["__scopeId", "data-v-3fc52d23"]]), Dt = { class: "add-model-content" }, bt = {
527
+ key: 0,
528
+ class: "model-operate"
529
+ }, It = { class: "model-select" }, xt = { class: "model-fill" }, Mt = {
530
+ key: 1,
531
+ class: "model-view"
532
+ }, Tt = {
533
+ key: 0,
534
+ class: "model-import-data"
535
+ }, At = {
536
+ __name: "index",
537
+ props: {
538
+ mode: {
539
+ type: String,
540
+ default: "view"
541
+ },
542
+ content: {
543
+ type: String,
544
+ default: ""
545
+ },
546
+ jsonContents: {
547
+ type: Array,
548
+ default: () => []
549
+ },
550
+ showButton: {
551
+ type: Boolean,
552
+ default: !0
553
+ }
554
+ },
555
+ emits: ["change", "contentChange"],
556
+ setup($, { emit: P }) {
557
+ const n = $, m = P, w = g([]), s = g([]), _ = g([]), v = g(0), u = ne(L), x = oe(L), { itemData: M, originalData: S } = F(u), { activeMenuPath: r, platform: H } = F(x), E = g(null), z = g(0), D = g([]);
558
+ g("");
559
+ const B = g(0), k = (t) => {
560
+ m("contentChange", t);
561
+ }, q = (t) => {
562
+ var T;
563
+ const p = (T = Q(t == null ? void 0 : t.wholeValue)) == null ? void 0 : T.map((f) => {
564
+ var O;
565
+ return (f == null ? void 0 : f.comp) === "Form" && (f.compData = (O = f.compData) == null ? void 0 : O.map((h) => ((h == null ? void 0 : h.key) === "formContent" && (h.contents = Te(h == null ? void 0 : h.contents)), h))), f;
566
+ });
567
+ m("change", {
568
+ originalContents: S.value,
569
+ currentContents: t == null ? void 0 : t.wholeValue,
570
+ editContent: t == null ? void 0 : t.editValue,
571
+ arrayToContents: p
572
+ });
573
+ };
574
+ R(
575
+ () => s.value,
576
+ () => {
577
+ B.value === s.value.length && s.value.length !== 0 && (w.value = s.value);
578
+ },
579
+ { deep: !0, immediate: !0 }
580
+ );
581
+ const J = () => {
582
+ E.value.click();
583
+ }, b = async (t) => {
584
+ const p = t.target.files;
585
+ if (!p) return;
586
+ new FileReader(), w.value = [], s.value = [], B.value = p.length;
587
+ const T = Array.from(p).map(async (f) => await new Promise((O) => {
588
+ const h = new FileReader();
589
+ h.onload = (j) => {
590
+ try {
591
+ s.value.push(j.target.result), z.value++;
592
+ } catch (N) {
593
+ console.error("解析失败:", N);
594
+ return;
595
+ }
596
+ }, h.onerror = () => O(`读取 ${f.name} 失败`), h.readAsText(f), t.target.value = "", E.value = null;
597
+ }));
598
+ await Promise.all(T);
599
+ };
600
+ return R(
601
+ () => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
602
+ async () => {
603
+ await Ce(), w.value = n.content, _.value = n == null ? void 0 : n.jsonContents;
604
+ },
605
+ { deep: !0, immediate: !0 }
606
+ ), R(
607
+ () => z.value,
608
+ () => {
609
+ var t;
610
+ ((t = D.value) == null ? void 0 : t.length) !== 0 && (u.setOriginalData(D.value), u.setItemData(D.value));
611
+ },
612
+ { deep: !0, immediate: !0 }
613
+ ), (t, p) => {
614
+ const T = C("svg-icon");
615
+ return o(), d("div", Dt, [
616
+ (n == null ? void 0 : n.mode) === "edit" ? (o(), d("div", bt, [
617
+ i("div", It, [
618
+ l(re)
619
+ ]),
620
+ (o(), d("div", {
621
+ class: "model-show",
622
+ key: v.value
623
+ }, [
624
+ l(de)
625
+ ])),
626
+ i("div", xt, [
627
+ l(ue)
628
+ ])
629
+ ])) : A("", !0),
630
+ (n == null ? void 0 : n.mode) === "view" ? (o(), d("div", Mt, [
631
+ (o(), y(St, {
632
+ platform: e(H),
633
+ content: w.value,
634
+ onChange: q,
635
+ jsonContents: _.value,
636
+ onContentChange: k,
637
+ key: v.value
638
+ }, {
639
+ default: c(() => {
640
+ var f;
641
+ return [
642
+ ((f = n == null ? void 0 : n.jsonContents) == null ? void 0 : f.length) === 0 && (n != null && n.showButton) ? (o(), d("div", Tt, [
643
+ i("div", {
644
+ class: "import-button",
645
+ onClick: J
646
+ }, [
647
+ i("input", {
648
+ type: "file",
649
+ ref_key: "fileInput",
650
+ ref: E,
651
+ accept: ".txt, .inm",
652
+ onChange: b,
653
+ style: { display: "none" },
654
+ multiple: ""
655
+ }, null, 544),
656
+ l(T, {
657
+ name: "import",
658
+ style: { width: "16px", height: "16px" }
659
+ }),
660
+ p[0] || (p[0] = i("div", null, I("导入模型"), -1))
661
+ ])
662
+ ])) : A("", !0)
663
+ ];
664
+ }),
665
+ _: 1
666
+ }, 8, ["platform", "content", "jsonContents"]))
667
+ ])) : A("", !0)
668
+ ]);
669
+ };
670
+ }
671
+ }, Kt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-4b7a2e5d"]]);
672
+ export {
673
+ Kt as default
674
+ };