ss-component-new 1.1.259 → 1.1.261

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-BAR5vwN7.js → array-BKq3BIQz.js} +2 -2
  2. package/dist/{array-8L1AOBQp.cjs → array-CGcjUVKX.cjs} +1 -1
  3. package/dist/{cloneDeep-vy5d0U00.cjs → cloneDeep-B7uQBoFQ.cjs} +1 -1
  4. package/dist/{cloneDeep-DZzy1Il4.js → cloneDeep-C2Kxf4cz.js} +1 -1
  5. package/dist/{index-C-9bL2-I.cjs → index-1FDUIkCX.cjs} +1 -1
  6. package/dist/{index-DKiauCvh.js → index-B-UH_ubV.js} +8 -8
  7. package/dist/{index-TCyNl2MK.js → index-B2U6bRXC.js} +1 -1
  8. package/dist/{index-DVDdSL2R.js → index-B5JYLkwE.js} +984 -941
  9. package/dist/{index-B4Ev6tVX.cjs → index-BDeQhlHq.cjs} +1 -1
  10. package/dist/{index-7ptGWZXL.cjs → index-BEMqiaE4.cjs} +1 -1
  11. package/dist/{index-C4heMZb-.js → index-BEUHy5vT.js} +5 -5
  12. package/dist/{index-CG19P4G2.cjs → index-BKkSFReI.cjs} +1 -1
  13. package/dist/{index-C8YTwQ2U.cjs → index-BNRMWt2X.cjs} +1 -1
  14. package/dist/{index-DHZhHL1L.js → index-BPDeDTcT.js} +8 -8
  15. package/dist/{index-rAGiNKLH.cjs → index-BPc4Eac7.cjs} +1 -1
  16. package/dist/{index-D5VxsSYo.cjs → index-BSHYuItV.cjs} +1 -1
  17. package/dist/index-BSvAtDik.js +32149 -0
  18. package/dist/{index-B0eP9Dy6.cjs → index-BTE2McnW.cjs} +1 -1
  19. package/dist/{index-CP5-LufC.js → index-BXTWkSfY.js} +3 -3
  20. package/dist/{index-CPKoBUqk.cjs → index-BePWixJ7.cjs} +1 -1
  21. package/dist/{index-DlDk8iSi.js → index-BpRK84YO.js} +9 -9
  22. package/dist/{index-Bi7W_wF3.cjs → index-BqjnsqxM.cjs} +1 -1
  23. package/dist/{index-B_CuXQ8H.js → index-BuzU8y87.js} +3 -3
  24. package/dist/index-BxNkT68g.js +271 -0
  25. package/dist/{index-ChOzMlwd.cjs → index-C4WiBNX7.cjs} +1 -1
  26. package/dist/{index-CvyNoFpY.cjs → index-C99sTbLR.cjs} +1 -1
  27. package/dist/{index-D2NWcpdI.cjs → index-CPLQkq0l.cjs} +1 -1
  28. package/dist/{index-DBROy8Np.js → index-CRA36cu_.js} +4 -4
  29. package/dist/{index-BPVoFxu1.js → index-CUS5J9_e.js} +3 -3
  30. package/dist/{index-DfzZvWqB.cjs → index-CU_Jx-5J.cjs} +1 -1
  31. package/dist/{index-Cn8hBlVR.js → index-CV8NL82B.js} +1 -1
  32. package/dist/index-CW3K0wJl.cjs +1 -0
  33. package/dist/index-CaEGsvtY.cjs +1 -0
  34. package/dist/{index-dEcwBSrA.cjs → index-CbAVZYKT.cjs} +1 -1
  35. package/dist/{index-CO8isUR8.js → index-CcWrPjiF.js} +1 -1
  36. package/dist/{index-CEU_-vVQ.cjs → index-CdbyfD9T.cjs} +1 -1
  37. package/dist/{index-DchO-l9M.cjs → index-ChDUVY4O.cjs} +1 -1
  38. package/dist/{index-3YXTNfHi.cjs → index-ChrvsNKe.cjs} +1 -1
  39. package/dist/{index-DZK00p0U.cjs → index-Clc0UQZs.cjs} +1 -1
  40. package/dist/index-CrY9cebv.cjs +1 -0
  41. package/dist/{index-VEeZQyiv.js → index-CtNApXqx.js} +1 -1
  42. package/dist/{index-C0KdYFnu.cjs → index-D5iqPx4_.cjs} +1 -1
  43. package/dist/{index-BZW3cHEf.js → index-DBUg3cD4.js} +5 -5
  44. package/dist/{index-C67E6B-n.cjs → index-DJXxlOVw.cjs} +1 -1
  45. package/dist/{index-CcbQH9dl.js → index-DJt9epxc.js} +3 -3
  46. package/dist/{index-BMz8jBkf.js → index-DMxFp_J8.js} +7 -7
  47. package/dist/{index-D2ZusKzk.js → index-DSHdwrIv.js} +4 -4
  48. package/dist/{index-Ci50GJSS.js → index-DiqIaffC.js} +6 -6
  49. package/dist/index-DqW6UiIO.cjs +3839 -0
  50. package/dist/{index-C2rXdvLP.js → index-Dqq6ANsR.js} +1 -1
  51. package/dist/{index-DSOsbQ8m.js → index-DrgtDDgh.js} +1 -1
  52. package/dist/index-Dz-F31F9.js +3475 -0
  53. package/dist/{index-MAuxykeu.js → index-JlAZlJSa.js} +6 -6
  54. package/dist/index-LztiiC8W.js +683 -0
  55. package/dist/{index-vS7rFC3d.js → index-P8qnw1yi.js} +5 -5
  56. package/dist/{index-D9qxwyPB.cjs → index-SuPnthkA.cjs} +1 -1
  57. package/dist/{index-CaZgwKKu.cjs → index-XGNOqMia.cjs} +1 -1
  58. package/dist/{index-_lrJ_Z3S.js → index-i7I_BwC_.js} +4 -4
  59. package/dist/{index-0Rbq0r0Y.js → index-k1B4X854.js} +4 -4
  60. package/dist/index-kzgPDfJF.cjs +9 -0
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-t_FbjOts.cjs → index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_script_setup_true_lang-CvTBmGDC.js → index.vue_vue_type_script_setup_true_lang-GU5YecI_.js} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BPrVtCUd.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-qsAIigHk.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js} +6 -6
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CdoqwUjR.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js} +12 -12
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BQgHk7jY.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs} +1 -1
  67. package/dist/{login-B2FvC181.cjs → login-MRZ_aZ2l.cjs} +1 -1
  68. package/dist/{login-CN3w9WCz.js → login-f0ZOWhgZ.js} +2 -2
  69. package/dist/{main-BDgkyynt.js → main-CD7tAcIb.js} +7 -7
  70. package/dist/{main-DRa5LCF9.cjs → main-CpGTA5Qv.cjs} +1 -1
  71. package/dist/{menu-DjHQN1B-.cjs → menu-PjSpUL7w.cjs} +1 -1
  72. package/dist/{menu-B10MAns7.js → menu-uQv0bEzE.js} +1 -1
  73. package/dist/{modelComp-KS7VRV8A.js → modelComp-BavIqTd8.js} +1 -1
  74. package/dist/{modelComp-DqpOIkHs.cjs → modelComp-qapurFEA.cjs} +1 -1
  75. package/dist/ss-component.cjs +1 -1
  76. package/dist/ss-component.css +1 -1
  77. package/dist/ss-component.js +7 -7
  78. package/dist/ss-component3.cjs +1 -1
  79. package/dist/ss-component3.js +1 -1
  80. package/package.json +2 -1
  81. package/dist/index-B69DGyLH.js +0 -264
  82. package/dist/index-B8XOc8ur.js +0 -673
  83. package/dist/index-BG7PNsqD.js +0 -22139
  84. package/dist/index-C-lzYeWw.cjs +0 -3832
  85. package/dist/index-CS8aeX_B.cjs +0 -1
  86. package/dist/index-CkaXBiAY.cjs +0 -1
  87. package/dist/index-DjZKWUq4.cjs +0 -1
  88. package/dist/index-DzzEJh49.cjs +0 -9
  89. package/dist/index-_eZMZ6DS.js +0 -3459
@@ -1,673 +0,0 @@
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 fe, withDirectives as pe, 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-DHZhHL1L.js";
3
- import ge from "./index-CO8isUR8.js";
4
- import { p as L } from "./index-DSOsbQ8m.js";
5
- import { u as ne } from "./modelComp-KS7VRV8A.js";
6
- import { s as F, u as oe } from "./menu-B10MAns7.js";
7
- import "./index-_eZMZ6DS.js";
8
- import { u as xe, a as _e, t as Me, l as Ce } from "./index-BG7PNsqD.js";
9
- import { _ as Te, e as Ae, s as Pe } from "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CdoqwUjR.js";
10
- import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { i as je, e as Fe, b as me, c as he, a as Be } from "./array-BAR5vwN7.js";
12
- import { u as ye } from "./login-CN3w9WCz.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 K, g as se, d as le, e as ie, f as ce } from "./index-B69DGyLH.js";
15
- import { E as Le } from "./index-DKiauCvh.js";
16
- import { c as Q } from "./cloneDeep-DZzy1Il4.js";
17
- const Ee = { class: "bread-content" }, Ne = ["onClick"], Ve = {
18
- key: 0,
19
- class: "split-title"
20
- }, Ue = {
21
- __name: "index",
22
- props: {
23
- breadArray: {
24
- type: Array,
25
- default: () => []
26
- }
27
- },
28
- emits: ["click"],
29
- setup($, { emit: P }) {
30
- const n = $, m = g([]), w = P;
31
- ve(() => {
32
- m.value = n == null ? void 0 : n.breadArray;
33
- }), R(
34
- () => n == null ? void 0 : n.breadArray,
35
- () => {
36
- m.value = n == null ? void 0 : n.breadArray;
37
- },
38
- { deep: !0, immediate: !0 }
39
- );
40
- const s = (_) => {
41
- w("click", _);
42
- };
43
- return (_, v) => (o(), d("div", Ee, [
44
- (o(!0), d(Y, null, Z(m.value, (u, x) => {
45
- var M;
46
- return o(), d("div", {
47
- key: x,
48
- class: "bread-item"
49
- }, [
50
- i("div", {
51
- class: "bread-title",
52
- onClick: (S) => s(u),
53
- style: De({ opacity: ((M = m.value) == null ? void 0 : M.length) - 1 === x ? "0.7" : "1" })
54
- }, I(u.value), 13, Ne),
55
- x !== m.value.length - 1 && Array.isArray(m.value) ? (o(), d("div", Ve, I("/"))) : A("", !0)
56
- ]);
57
- }), 128))
58
- ]));
59
- }
60
- }, Se = /* @__PURE__ */ W(Ue, [["__scopeId", "data-v-ded7e2bd"]]), ze = { class: "item-menu-content" }, Je = { class: "item-left-content" }, Oe = {
61
- key: 0,
62
- class: "page-icon"
63
- }, Re = { class: "avatar" }, We = { style: { display: "flex" } }, He = { class: "select-icon" }, qe = {
64
- key: 0,
65
- class: "model-operate",
66
- style: { width: "0px" }
67
- }, Ge = { class: "model-select" }, Ke = { class: "model-fill" }, Qe = {
68
- key: 1,
69
- class: "show-main-content"
70
- }, Xe = { class: "show-content" }, Ye = { class: "item-view-group" }, Ze = { class: "show-item-content" }, et = { class: "item-view-group" }, tt = {
71
- key: 2,
72
- class: "show-main-content"
73
- }, nt = {
74
- __name: "browser",
75
- props: {
76
- content: String,
77
- jsonContents: Array
78
- },
79
- emits: ["change", "contentChange"],
80
- setup($, { emit: P }) {
81
- const n = ye(), { loginUserInfo: m, cryptoInfo: w } = F(n);
82
- ve(() => {
83
- Le({
84
- title: "温馨提示:",
85
- type: "success",
86
- message: "欢迎使用系统",
87
- duration: 1e3
88
- });
89
- });
90
- const s = ne(L);
91
- xe(L), g(!0);
92
- const _ = oe();
93
- g(!0);
94
- 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);
95
- return g([]), g(!1), (B, k) => {
96
- const q = C("el-aside"), J = C("el-button"), b = C("el-avatar"), t = C("el-header"), f = C("router-view"), T = C("el-main"), p = C("el-container"), O = fe("loading");
97
- return pe((o(), y(p, { "element-loading-text": "正在加载页面数据..." }, {
98
- default: c(() => [
99
- e(u) === "view" ? (o(), y(q, {
100
- key: 0,
101
- width: "250px"
102
- }, {
103
- default: c(() => [
104
- l(ge, { mode: "vertical" })
105
- ]),
106
- _: 1
107
- })) : A("", !0),
108
- l(p, null, {
109
- default: c(() => [
110
- l(t, null, {
111
- default: c(() => {
112
- var h;
113
- return [
114
- i("div", ze, [
115
- i("div", Je, [
116
- e(u) === "edit" ? (o(), d("div", Oe, [
117
- l(J, {
118
- text: "",
119
- onClick: e(we)
120
- }, {
121
- default: c(() => k[2] || (k[2] = [
122
- U(" 返回页面 ")
123
- ])),
124
- _: 1,
125
- __: [2]
126
- }, 8, ["onClick"]),
127
- l(J, {
128
- text: "",
129
- onClick: k[0] || (k[0] = (j) => {
130
- var N, G;
131
- return e(ke)((G = (N = e(D)) == null ? void 0 : N.map((a) => a.value)) == null ? void 0 : G.join("/"));
132
- })
133
- }, {
134
- icon: c(() => [
135
- l(ee, { name: "Store" })
136
- ]),
137
- default: c(() => [
138
- k[3] || (k[3] = U(" 保存页面 "))
139
- ]),
140
- _: 1,
141
- __: [3]
142
- })
143
- ])) : A("", !0),
144
- (o(), y(Se, {
145
- key: e(D),
146
- breadArray: e(D),
147
- onClick: e($e)
148
- }, null, 8, ["breadArray", "onClick"]))
149
- ]),
150
- i("div", Re, [
151
- e(u) === "view" ? (o(), d("div", {
152
- key: 0,
153
- class: "select-icon",
154
- onClick: k[1] || (k[1] = (...j) => e(te) && e(te)(...j))
155
- }, [
156
- i("div", We, [
157
- l(ee, {
158
- name: "write",
159
- style: { width: "16px", height: "16px" }
160
- })
161
- ]),
162
- k[4] || (k[4] = i("div", null, I("修改布局"), -1))
163
- ])) : A("", !0),
164
- i("div", He, [
165
- X(B.$slots, "default", {}, void 0, !0)
166
- ]),
167
- l(b, {
168
- size: 35,
169
- src: (h = e(m)) == null ? void 0 : h.avatarUrl
170
- }, {
171
- default: c(() => {
172
- var j;
173
- return [
174
- U(I(((j = e(m)) == null ? void 0 : j.account) ?? "未知"), 1)
175
- ];
176
- }),
177
- _: 1
178
- }, 8, ["src"])
179
- ])
180
- ])
181
- ];
182
- }),
183
- _: 3
184
- }),
185
- l(T, null, {
186
- default: c(() => {
187
- var h, j, N, G;
188
- return [
189
- e(u) === "edit" ? (o(), d("div", qe, [
190
- i("div", Ge, [
191
- l(re)
192
- ]),
193
- (o(), d("div", {
194
- class: "model-show",
195
- key: B.innerWidth
196
- }, [
197
- l(de)
198
- ])),
199
- i("div", Ke, [
200
- l(ue)
201
- ])
202
- ])) : B.$route.path === "/" && ((h = e(K)) == null ? void 0 : h.length) > 0 && e(u) === "view" ? (o(), d("div", Qe, [
203
- i("div", Xe, [
204
- (j = e(Q)(e(K))) != null && j.find((a) => a.comp === "FormTop") ? (o(), d("div", {
205
- class: "show-header",
206
- key: B.index
207
- }, [
208
- (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", {
209
- class: "item-content",
210
- key: V
211
- }, [
212
- i("div", Ye, I(a.name), 1),
213
- (o(), y(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) ?? V,
217
- onChange: e(ce),
218
- index: (a == null ? void 0 : a.id) ?? V,
219
- onContentChange: e(ie),
220
- onPageChange: e(le)
221
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
222
- ]))), 128))
223
- ])) : A("", !0),
224
- i("div", Ze, [
225
- (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", {
226
- class: "item-content",
227
- key: V
228
- }, [
229
- i("div", et, I(a.name), 1),
230
- (o(), y(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) ?? V,
234
- onChange: e(ce),
235
- index: (a == null ? void 0 : a.id) ?? V,
236
- onContentChange: e(ie),
237
- onPageChange: e(le)
238
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
239
- ]))), 128))
240
- ])
241
- ])
242
- ])) : e(u) === "view" ? (o(), d("div", tt, [
243
- l(f)
244
- ])) : A("", !0)
245
- ];
246
- }),
247
- _: 1
248
- })
249
- ]),
250
- _: 3
251
- })
252
- ]),
253
- _: 3
254
- })), [
255
- [O, e(E)]
256
- ]);
257
- };
258
- }
259
- }, ot = /* @__PURE__ */ W(nt, [["__scopeId", "data-v-ef767374"]]);
260
- function at($, P, n, m, w, s) {
261
- const _ = C("DynamicIcon"), v = C("ssMenu");
262
- return o(), y(v, {
263
- mode: $.mode,
264
- menuList: $.renderMenuList,
265
- onClickMenu: $.clickMenu,
266
- onOpenMenu: $.openMenu,
267
- onCloseMenu: $.closeMenu
268
- }, {
269
- title: c(({ menu: u }) => [
270
- l(_, {
271
- name: u.icon ?? ""
272
- }, null, 8, ["name"]),
273
- i("span", null, I(u.title ?? ""), 1)
274
- ]),
275
- _: 1
276
- }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
277
- }
278
- const st = /* @__PURE__ */ W(Te, [["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" } }, ft = { class: "select-icon" }, pt = { class: "client-main-content" }, gt = { class: "client-main-operate" }, Ct = { class: "item-view-group" }, yt = /* @__PURE__ */ be({
279
- __name: "client",
280
- setup($) {
281
- const P = _e(L), { selectTitle: n } = F(P), m = ye(), { loginUserInfo: w } = F(m), s = ne(L), { isEdit: _ } = F(s), v = oe(), { importLoading: u, activeMenuPath: x } = F(v), M = g(!1);
282
- return R(() => x.value, async (S) => {
283
- S && (await Ie(), M.value = !M.value);
284
- }, { immediate: !0 }), (S, r) => {
285
- 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 = fe("loading");
286
- return e(_) === "edit" ? (o(), y(D, {
287
- key: 0,
288
- class: "client-container"
289
- }, {
290
- default: c(() => [
291
- l(z, { class: "client-structure-header" }, {
292
- default: c(() => {
293
- var b;
294
- return [
295
- i("div", lt, [
296
- l(H, {
297
- class: "select-icon",
298
- onClick: e(we)
299
- }, {
300
- default: c(() => r[2] || (r[2] = [
301
- U(" 返回页面 ")
302
- ])),
303
- _: 1,
304
- __: [2]
305
- }, 8, ["onClick"]),
306
- l(H, {
307
- class: "select-icon",
308
- onClick: r[0] || (r[0] = (t) => {
309
- var f, T;
310
- return e(ke)((T = (f = e(n)) == null ? void 0 : f.map((p) => p.value)) == null ? void 0 : T.join("/"));
311
- })
312
- }, {
313
- icon: c(() => [
314
- l(ee, { name: "Store" })
315
- ]),
316
- default: c(() => [
317
- r[3] || (r[3] = U(" 保存页面 "))
318
- ]),
319
- _: 1,
320
- __: [3]
321
- })
322
- ]),
323
- i("div", it, [
324
- (o(), y(Se, {
325
- key: e(n),
326
- breadArray: e(n),
327
- onClick: e($e)
328
- }, null, 8, ["breadArray", "onClick"]))
329
- ]),
330
- i("div", ct, [
331
- i("div", rt, [
332
- X(S.$slots, "default", {}, void 0, !0)
333
- ]),
334
- l(E, {
335
- size: 35,
336
- src: (b = e(w)) == null ? void 0 : b.avatarUrl
337
- }, {
338
- default: c(() => {
339
- var t;
340
- return [
341
- U(I(((t = e(w)) == null ? void 0 : t.account) ?? "未知"), 1)
342
- ];
343
- }),
344
- _: 1
345
- }, 8, ["src"])
346
- ])
347
- ];
348
- }),
349
- _: 3
350
- }),
351
- e(_) === "edit" ? (o(), y(D, {
352
- key: 0,
353
- class: "model-operate",
354
- style: { "margin-top": "10px", height: "0px" }
355
- }, {
356
- default: c(() => [
357
- i("div", dt, [
358
- l(re)
359
- ]),
360
- i("div", ut, [
361
- l(de)
362
- ]),
363
- i("div", _t, [
364
- l(ue)
365
- ])
366
- ]),
367
- _: 1
368
- })) : A("", !0)
369
- ]),
370
- _: 3
371
- })) : pe((o(), y(D, {
372
- key: 1,
373
- class: "client-container",
374
- "element-loading-text": "正在加载页面数据..."
375
- }, {
376
- default: c(() => [
377
- l(z, { class: "client-header" }, {
378
- default: c(() => {
379
- var b;
380
- return [
381
- r[5] || (r[5] = i("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
382
- i("div", mt, [
383
- l(st, { mode: "horizontal" })
384
- ]),
385
- i("div", ht, [
386
- e(_) === "view" ? (o(), d("div", {
387
- key: 0,
388
- class: "select-icon",
389
- onClick: r[1] || (r[1] = //@ts-ignore
390
- (...t) => e(te) && e(te)(...t))
391
- }, [
392
- i("div", vt, [
393
- l(ee, {
394
- name: "write",
395
- style: { width: "16px", height: "16px" }
396
- })
397
- ]),
398
- r[4] || (r[4] = i("div", null, I("修改布局"), -1))
399
- ])) : A("", !0),
400
- i("div", ft, [
401
- X(S.$slots, "default", {}, void 0, !0)
402
- ]),
403
- l(E, {
404
- size: 35,
405
- src: (b = e(w)) == null ? void 0 : b.avatarUrl
406
- }, {
407
- default: c(() => {
408
- var t;
409
- return [
410
- U(I(((t = e(w)) == null ? void 0 : t.account) ?? "未知"), 1)
411
- ];
412
- }),
413
- _: 1
414
- }, 8, ["src"])
415
- ])
416
- ];
417
- }),
418
- _: 3,
419
- __: [5]
420
- }),
421
- l(D, { class: "client-body" }, {
422
- default: c(() => [
423
- l(B, {
424
- class: "client-aside",
425
- width: "250px"
426
- }, {
427
- default: c(() => [
428
- l(ge, { mode: "vertical" })
429
- ]),
430
- _: 1
431
- }),
432
- S.$route.path === "/" ? (o(), y(k, {
433
- key: 0,
434
- class: "client-main"
435
- }, {
436
- default: c(() => {
437
- var b;
438
- return [
439
- i("div", pt, [
440
- l(Me, { isShow: M.value }, null, 8, ["isShow"])
441
- ]),
442
- i("div", gt, [
443
- (o(!0), d(Y, null, Z((b = e(Q)(e(K))) == null ? void 0 : b.filter((t) => t.comp !== "FormTop"), (t, f) => (o(), d("div", {
444
- class: "item-view-content",
445
- key: f
446
- }, [
447
- i("div", Ct, I(t.name), 1),
448
- (o(), y(ae(e(se)(t.comp)), {
449
- itemData: t == null ? void 0 : t.compData,
450
- childItemData: t == null ? void 0 : t.itemChildData,
451
- key: (t == null ? void 0 : t.id) ?? f,
452
- onChange: e(ce),
453
- index: (t == null ? void 0 : t.id) ?? f,
454
- onContentChange: e(ie),
455
- onPageChange: e(le)
456
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
457
- ]))), 128))
458
- ])
459
- ];
460
- }),
461
- _: 1
462
- })) : (o(), y(k, {
463
- key: 1,
464
- class: "client-router"
465
- }, {
466
- default: c(() => [
467
- l(q)
468
- ]),
469
- _: 1
470
- }))
471
- ]),
472
- _: 1
473
- })
474
- ]),
475
- _: 3
476
- })), [
477
- [J, e(u)]
478
- ]);
479
- };
480
- }
481
- }), wt = /* @__PURE__ */ W(yt, [["__scopeId", "data-v-e4df393b"]]), kt = { class: "system-wrap" }, $t = {
482
- __name: "index",
483
- props: {
484
- platform: {
485
- type: String,
486
- default: "browser"
487
- },
488
- content: String,
489
- jsonContents: Array
490
- },
491
- setup($) {
492
- const P = ne(L), n = _e(L), m = oe();
493
- g(!1);
494
- const w = g(!0), s = $;
495
- return R(
496
- () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
497
- async () => {
498
- var u, x, M, S;
499
- if (((u = s == null ? void 0 : s.jsonContents) == null ? void 0 : u.length) > 0) {
500
- P.setOriginalData(s == null ? void 0 : s.jsonContents);
501
- return;
502
- }
503
- if (!(s != null && s.content) || ((x = s == null ? void 0 : s.content) == null ? void 0 : x.length) === 0) return;
504
- w.value = !0, m.setImportLoading(!0);
505
- let _ = [], v = [];
506
- 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) => {
507
- je(r) ? v.push(Fe(r)) : me(r) ? v.push(me(r)) : he(r) ? v.push(he(r)) : v.push(Ae(r));
508
- }), _ = v == null ? void 0 : v[0], await Pe(_), await Ce(), P.setOriginalData(_), m.setImportLoading(!1);
509
- },
510
- { deep: !0, immediate: !0 }
511
- ), (_, v) => (o(), d("div", kt, [
512
- $.platform === "browser" ? (o(), y(ot, { key: 0 }, {
513
- default: c(() => [
514
- X(_.$slots, "default", {}, void 0, !0)
515
- ]),
516
- _: 3
517
- })) : (o(), y(wt, { key: 1 }, {
518
- default: c(() => [
519
- X(_.$slots, "default", {}, void 0, !0)
520
- ]),
521
- _: 3
522
- }))
523
- ]));
524
- }
525
- }, St = /* @__PURE__ */ W($t, [["__scopeId", "data-v-3fc52d23"]]), Dt = { class: "add-model-content" }, bt = {
526
- key: 0,
527
- class: "model-operate"
528
- }, It = { class: "model-select" }, xt = { class: "model-fill" }, Mt = {
529
- key: 1,
530
- class: "model-view"
531
- }, Tt = {
532
- key: 0,
533
- class: "model-import-data"
534
- }, At = {
535
- __name: "index",
536
- props: {
537
- mode: {
538
- type: String,
539
- default: "view"
540
- },
541
- content: {
542
- type: String,
543
- default: ""
544
- },
545
- jsonContents: {
546
- type: Array,
547
- default: () => []
548
- },
549
- showButton: {
550
- type: Boolean,
551
- default: !0
552
- }
553
- },
554
- emits: ["change", "contentChange"],
555
- setup($, { emit: P }) {
556
- 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([]);
557
- g("");
558
- const B = g(0), k = (t) => {
559
- m("contentChange", t);
560
- }, q = (t) => {
561
- var T;
562
- const f = (T = Q(t == null ? void 0 : t.wholeValue)) == null ? void 0 : T.map((p) => {
563
- var O;
564
- return (p == null ? void 0 : p.comp) === "Form" && (p.compData = (O = p.compData) == null ? void 0 : O.map((h) => ((h == null ? void 0 : h.key) === "formContent" && (h.contents = Be(h == null ? void 0 : h.contents)), h))), p;
565
- });
566
- m("change", {
567
- originalContents: S.value,
568
- currentContents: t == null ? void 0 : t.wholeValue,
569
- editContent: t == null ? void 0 : t.editValue,
570
- arrayToContents: f
571
- });
572
- };
573
- R(
574
- () => s.value,
575
- () => {
576
- B.value === s.value.length && s.value.length !== 0 && (w.value = s.value);
577
- },
578
- { deep: !0, immediate: !0 }
579
- );
580
- const J = () => {
581
- E.value.click();
582
- }, b = async (t) => {
583
- const f = t.target.files;
584
- if (!f) return;
585
- new FileReader(), w.value = [], s.value = [], B.value = f.length;
586
- const T = Array.from(f).map(async (p) => await new Promise((O) => {
587
- const h = new FileReader();
588
- h.onload = (j) => {
589
- try {
590
- s.value.push(j.target.result), z.value++;
591
- } catch (N) {
592
- console.error("解析失败:", N);
593
- return;
594
- }
595
- }, h.onerror = () => O(`读取 ${p.name} 失败`), h.readAsText(p), t.target.value = "", E.value = null;
596
- }));
597
- await Promise.all(T);
598
- };
599
- return R(
600
- () => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
601
- async () => {
602
- await Ce(), w.value = n.content, _.value = n == null ? void 0 : n.jsonContents;
603
- },
604
- { deep: !0, immediate: !0 }
605
- ), R(
606
- () => z.value,
607
- () => {
608
- var t;
609
- ((t = D.value) == null ? void 0 : t.length) !== 0 && (u.setOriginalData(D.value), u.setItemData(D.value));
610
- },
611
- { deep: !0, immediate: !0 }
612
- ), (t, f) => {
613
- const T = C("svg-icon");
614
- return o(), d("div", Dt, [
615
- (n == null ? void 0 : n.mode) === "edit" ? (o(), d("div", bt, [
616
- i("div", It, [
617
- l(re)
618
- ]),
619
- (o(), d("div", {
620
- class: "model-show",
621
- key: v.value
622
- }, [
623
- l(de)
624
- ])),
625
- i("div", xt, [
626
- l(ue)
627
- ])
628
- ])) : A("", !0),
629
- (n == null ? void 0 : n.mode) === "view" ? (o(), d("div", Mt, [
630
- (o(), y(St, {
631
- platform: e(H),
632
- content: w.value,
633
- onChange: q,
634
- jsonContents: _.value,
635
- onContentChange: k,
636
- key: v.value
637
- }, {
638
- default: c(() => {
639
- var p;
640
- return [
641
- ((p = n == null ? void 0 : n.jsonContents) == null ? void 0 : p.length) === 0 && (n != null && n.showButton) ? (o(), d("div", Tt, [
642
- i("div", {
643
- class: "import-button",
644
- onClick: J
645
- }, [
646
- i("input", {
647
- type: "file",
648
- ref_key: "fileInput",
649
- ref: E,
650
- accept: ".txt, .inm",
651
- onChange: b,
652
- style: { display: "none" },
653
- multiple: ""
654
- }, null, 544),
655
- l(T, {
656
- name: "import",
657
- style: { width: "16px", height: "16px" }
658
- }),
659
- f[0] || (f[0] = i("div", null, I("导入模型"), -1))
660
- ])
661
- ])) : A("", !0)
662
- ];
663
- }),
664
- _: 1
665
- }, 8, ["platform", "content", "jsonContents"]))
666
- ])) : A("", !0)
667
- ]);
668
- };
669
- }
670
- }, Gt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-4b7a2e5d"]]);
671
- export {
672
- Gt as default
673
- };