ss-component-new 1.1.260 → 1.1.262
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.
- package/dist/{array-jQLpY9RR.cjs → array-BdJe1Isx.cjs} +1 -1
- package/dist/{array-D7K5W8Zf.js → array-DnpEPYrW.js} +2 -2
- package/dist/{cloneDeep-DeaVRf7c.cjs → cloneDeep-CuzxIr2L.cjs} +1 -1
- package/dist/{cloneDeep-C8JkckZX.js → cloneDeep-E3wKN3B0.js} +1 -1
- package/dist/index-1hfdjpZa.cjs +1 -0
- package/dist/index-B2gB_eHu.js +683 -0
- package/dist/{index-B242naIg.cjs → index-BCgmgSo6.cjs} +1 -1
- package/dist/{index-jTr2VZm5.js → index-BDiy9l4J.js} +6 -6
- package/dist/{index-Cjbhxo1B.js → index-BIxHHxhy.js} +3 -3
- package/dist/{index-BXnbrZ-r.js → index-BM5XhVdC.js} +1 -1
- package/dist/{index-Bet-HAJy.cjs → index-BQz6TAOh.cjs} +1 -1
- package/dist/{index-D5wJBzEa.cjs → index-BR6ludiV.cjs} +1 -1
- package/dist/{index-C-mfzbqw.js → index-BYgVh4wp.js} +31 -31
- package/dist/{index-8K_N0LJN.js → index-B_SWF15M.js} +5 -5
- package/dist/{index--VbTYBcj.cjs → index-BaKNxwnN.cjs} +21 -21
- package/dist/{index-uUtEdVD8.cjs → index-BcWsVwmK.cjs} +1 -1
- package/dist/{index-m2bL52w2.js → index-BkSpEp24.js} +6 -6
- package/dist/{index-DXLU7g4L.cjs → index-Bkz-wtWG.cjs} +1 -1
- package/dist/{index-B-cH-QNS.cjs → index-Bmd4CfMk.cjs} +1 -1
- package/dist/{index-BxujM00j.js → index-BoVzh91B.js} +4 -4
- package/dist/{index-BG3mdvAz.cjs → index-BszuOV6x.cjs} +1 -1
- package/dist/{index-anmMDMxp.cjs → index-BtBTtGCV.cjs} +1 -1
- package/dist/{index-Cpt2pjCu.cjs → index-C5CWOGoQ.cjs} +1 -1
- package/dist/{index-BZ8wkZQh.cjs → index-C8cVwYL_.cjs} +1 -1
- package/dist/{index-CI2eEV0I.js → index-CAqt6-um.js} +4 -4
- package/dist/{index-swKZ0MXF.js → index-CCJN0WUL.js} +9 -9
- package/dist/{index-BHvTlKd3.cjs → index-CMNXbrgU.cjs} +1 -1
- package/dist/{index-D2uRUT1R.js → index-CQT8T6Du.js} +7 -7
- package/dist/{index-HkIY6QFh.js → index-CT57Kiyw.js} +960 -918
- package/dist/{index-DpaMsUnp.cjs → index-CTb7K2Bk.cjs} +1 -1
- package/dist/{index-DPvdIx0y.js → index-CYpllCLZ.js} +5 -5
- package/dist/{index-DT3lwd9Q.js → index-Cly4yemp.js} +1 -1
- package/dist/{index-C4PVEc68.js → index-CnSWuvbR.js} +5 -5
- package/dist/{index-Ca096wE0.cjs → index-ConK7kqd.cjs} +1 -1
- package/dist/{index-BUuhAWcq.js → index-CrhFsTrF.js} +3 -3
- package/dist/{index-CAzENawT.cjs → index-Cx6JU0mX.cjs} +1 -1
- package/dist/{index-BolGTYa3.cjs → index-D-m5syTd.cjs} +1 -1
- package/dist/{index-B5hAJIVr.js → index-D1I_FANs.js} +8 -8
- package/dist/{index-CQVGpn4s.cjs → index-D78i8R3T.cjs} +1 -1
- package/dist/{index-Yey65VaS.js → index-DA1g69WH.js} +1944 -1933
- package/dist/{index-acH8HUWB.js → index-DPhNWMWt.js} +1 -1
- package/dist/{index-Di_0a510.cjs → index-DPqX5NOD.cjs} +1 -1
- package/dist/{index-BPq6t6hi.js → index-DV_n4TRj.js} +4 -4
- package/dist/{index-Ch3MGWzF.js → index-DZr5ivXe.js} +1 -1
- package/dist/{index-DXLSBZRm.cjs → index-DjT9EKHk.cjs} +1 -1
- package/dist/index-DjVsDHMd.cjs +9 -0
- package/dist/{index-BxFO-CIo.js → index-Gu7G-roX.js} +4 -4
- package/dist/index-Hhjfw8oQ.cjs +1 -0
- package/dist/{index-Xk-IPNQQ.js → index-K_gfyAlX.js} +1 -1
- package/dist/{index-BE5JMEUQ.cjs → index-Oj115_Py.cjs} +1 -1
- package/dist/{index-NxcH7OVs.js → index-Qhs8qV0Q.js} +1 -1
- package/dist/{index-sAd-uJNH.js → index-Vyzu845m.js} +8 -8
- package/dist/{index-D79UCoOE.cjs → index-WrUPpyn7.cjs} +1 -1
- package/dist/index-_c4rtHYx.js +3474 -0
- package/dist/{index-Bnv__gK8.js → index-ce6eGEEn.js} +3 -3
- package/dist/{index-BsC4kJpk.cjs → index-g9LQfTOA.cjs} +1 -1
- package/dist/{index-DO-JIfiX.cjs → index-hmwwoDCP.cjs} +1 -1
- package/dist/{index-5fIyzgQ7.cjs → index-o8ssqTcl.cjs} +1 -1
- package/dist/{index-Ddpd7EpX.js → index-oInxtbp2.js} +3 -3
- package/dist/{index-C9aXF9WW.cjs → index-q1VJsIJM.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-9pU472SX.js → index.vue_vue_type_script_setup_true_lang-I_efsWj8.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DlbwqDGU.cjs → index.vue_vue_type_script_setup_true_lang-MiZbv3kB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CbOR0FUi.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BUnbO0RO.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Dvs25f5S.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Cn95BsEm.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dqgty3hN.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BB6kJ34L.js} +12 -12
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CiaLVLvs.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DjU3k4mS.cjs} +1 -1
- package/dist/{login-DUTVbSkU.js → login-B9vlP2b5.js} +2 -2
- package/dist/{login-mSxajr8S.cjs → login-Duwt6-x6.cjs} +1 -1
- package/dist/{main-BYNX5wOY.js → main-5iPo1p9a.js} +7 -7
- package/dist/{main-Cn6D1vA7.cjs → main-XmfoFrF9.cjs} +1 -1
- package/dist/{menu-Gyigk1Fh.cjs → menu-BnL2_TmY.cjs} +1 -1
- package/dist/{menu-DTnhB7wQ.js → menu-Mo-2vv7x.js} +1 -1
- package/dist/{modelComp-DL_NgjAv.js → modelComp-CucEweH7.js} +1 -1
- package/dist/{modelComp-BHvGEjSE.cjs → modelComp-D4sttzBW.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index-BtiLpCjW.cjs +0 -1
- package/dist/index-C1nyUNql.cjs +0 -9
- package/dist/index-CuLrv0cg.js +0 -673
- package/dist/index-CxPa1ZjZ.js +0 -3460
- package/dist/index-vDrb4qIv.cjs +0 -1
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import { ref as h, onMounted as he, watch as J, createElementBlock as r, openBlock as o, Fragment as Y, renderList as Z, createElementVNode as i, createCommentVNode as j, normalizeStyle as De, toDisplayString as T, resolveComponent as C, resolveDirective as fe, withDirectives as pe, createBlock as y, withCtx as c, createVNode as l, unref as e, createTextVNode as z, 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-D1I_FANs.js";
|
|
3
|
+
import Ce from "./index-BM5XhVdC.js";
|
|
4
|
+
import { p as P } from "./index-Cly4yemp.js";
|
|
5
|
+
import { u as ne } from "./modelComp-CucEweH7.js";
|
|
6
|
+
import { s as F, u as oe } from "./menu-Mo-2vv7x.js";
|
|
7
|
+
import { u as xe } from "./index-_c4rtHYx.js";
|
|
8
|
+
import { u as Me, a as me, t as Te, l as ge } from "./index-DA1g69WH.js";
|
|
9
|
+
import { _ as Ae, e as je, s as Fe } from "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BB6kJ34L.js";
|
|
10
|
+
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { i as Pe, e as Be, b as _e, c as ve, a as Le } from "./array-DnpEPYrW.js";
|
|
12
|
+
import { u as ye } from "./login-B9vlP2b5.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-BYgVh4wp.js";
|
|
15
|
+
import { E as Ee } from "./index-Vyzu845m.js";
|
|
16
|
+
import { c as Q } from "./cloneDeep-E3wKN3B0.js";
|
|
17
|
+
const Ne = { class: "bread-content" }, Ue = ["onClick"], Ve = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "split-title"
|
|
20
|
+
}, Re = {
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
breadArray: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["click"],
|
|
29
|
+
setup($, { emit: B }) {
|
|
30
|
+
const t = $, v = h([]), w = B;
|
|
31
|
+
he(() => {
|
|
32
|
+
v.value = t == null ? void 0 : t.breadArray;
|
|
33
|
+
}), J(
|
|
34
|
+
() => t == null ? void 0 : t.breadArray,
|
|
35
|
+
() => {
|
|
36
|
+
v.value = t == null ? void 0 : t.breadArray;
|
|
37
|
+
},
|
|
38
|
+
{ deep: !0, immediate: !0 }
|
|
39
|
+
);
|
|
40
|
+
const s = (_) => {
|
|
41
|
+
w("click", _);
|
|
42
|
+
};
|
|
43
|
+
return (_, f) => (o(), r("div", Ne, [
|
|
44
|
+
(o(!0), r(Y, null, Z(v.value, (u, S) => {
|
|
45
|
+
var D;
|
|
46
|
+
return o(), r("div", {
|
|
47
|
+
key: S,
|
|
48
|
+
class: "bread-item"
|
|
49
|
+
}, [
|
|
50
|
+
i("div", {
|
|
51
|
+
class: "bread-title",
|
|
52
|
+
onClick: (N) => s(u),
|
|
53
|
+
style: De({ opacity: ((D = v.value) == null ? void 0 : D.length) - 1 === S ? "0.7" : "1" })
|
|
54
|
+
}, T(u.value), 13, Ue),
|
|
55
|
+
S !== v.value.length - 1 && Array.isArray(v.value) ? (o(), r("div", Ve, T("/"))) : j("", !0)
|
|
56
|
+
]);
|
|
57
|
+
}), 128))
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}, Se = /* @__PURE__ */ q(Re, [["__scopeId", "data-v-ded7e2bd"]]), ze = { class: "item-menu-content" }, Je = { class: "item-left-content" }, Oe = {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "page-icon"
|
|
63
|
+
}, We = { class: "avatar" }, He = { style: { display: "flex" } }, qe = { class: "select-icon" }, Ge = {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: "model-operate",
|
|
66
|
+
style: { width: "0px" }
|
|
67
|
+
}, Ke = { class: "model-select" }, Qe = { class: "model-fill" }, Xe = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "show-main-content"
|
|
70
|
+
}, Ye = { class: "show-content" }, Ze = { class: "item-view-group" }, et = { class: "show-item-content" }, tt = { class: "item-view-group" }, nt = {
|
|
71
|
+
key: 2,
|
|
72
|
+
class: "show-main-content"
|
|
73
|
+
}, ot = {
|
|
74
|
+
__name: "browser",
|
|
75
|
+
props: {
|
|
76
|
+
content: String,
|
|
77
|
+
jsonContents: Array
|
|
78
|
+
},
|
|
79
|
+
emits: ["change", "contentChange"],
|
|
80
|
+
setup($, { emit: B }) {
|
|
81
|
+
const t = ye(), { loginUserInfo: v, cryptoInfo: w } = F(t);
|
|
82
|
+
he(() => {
|
|
83
|
+
Ee({
|
|
84
|
+
title: "温馨提示:",
|
|
85
|
+
type: "success",
|
|
86
|
+
message: "欢迎使用系统",
|
|
87
|
+
duration: 1e3
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
const s = ne(P);
|
|
91
|
+
Me(P), h(!0);
|
|
92
|
+
const _ = oe();
|
|
93
|
+
h(!0);
|
|
94
|
+
const { itemData: f, isEdit: u, isRefreshCurStructure: S, curStructureCompIds: D } = F(s), N = me(P), { activeMenuPath: b, menus: O, importLoading: A } = F(_), { selectIndex: g, selectTitle: L } = F(N);
|
|
95
|
+
return h([]), h(!1), (E, k) => {
|
|
96
|
+
const U = C("el-aside"), W = C("el-button"), H = C("el-avatar"), d = C("el-header"), x = C("router-view"), p = C("el-main"), n = C("el-container"), I = fe("loading");
|
|
97
|
+
return pe((o(), y(n, { "element-loading-text": "正在加载页面数据..." }, {
|
|
98
|
+
default: c(() => [
|
|
99
|
+
e(u) === "view" ? (o(), y(U, {
|
|
100
|
+
key: 0,
|
|
101
|
+
width: "250px"
|
|
102
|
+
}, {
|
|
103
|
+
default: c(() => [
|
|
104
|
+
l(Ce, { mode: "vertical" })
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})) : j("", !0),
|
|
108
|
+
l(n, null, {
|
|
109
|
+
default: c(() => [
|
|
110
|
+
l(d, null, {
|
|
111
|
+
default: c(() => {
|
|
112
|
+
var m;
|
|
113
|
+
return [
|
|
114
|
+
i("div", ze, [
|
|
115
|
+
i("div", Je, [
|
|
116
|
+
e(u) === "edit" ? (o(), r("div", Oe, [
|
|
117
|
+
l(W, {
|
|
118
|
+
text: "",
|
|
119
|
+
onClick: e(we)
|
|
120
|
+
}, {
|
|
121
|
+
default: c(() => k[2] || (k[2] = [
|
|
122
|
+
z(" 返回页面 ")
|
|
123
|
+
])),
|
|
124
|
+
_: 1,
|
|
125
|
+
__: [2]
|
|
126
|
+
}, 8, ["onClick"]),
|
|
127
|
+
l(W, {
|
|
128
|
+
text: "",
|
|
129
|
+
onClick: k[0] || (k[0] = (M) => {
|
|
130
|
+
var V, G;
|
|
131
|
+
return e(ke)((G = (V = e(L)) == null ? void 0 : V.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] = z(" 保存页面 "))
|
|
139
|
+
]),
|
|
140
|
+
_: 1,
|
|
141
|
+
__: [3]
|
|
142
|
+
})
|
|
143
|
+
])) : j("", !0),
|
|
144
|
+
(o(), y(Se, {
|
|
145
|
+
key: e(L),
|
|
146
|
+
breadArray: e(L),
|
|
147
|
+
onClick: e($e)
|
|
148
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
149
|
+
]),
|
|
150
|
+
i("div", We, [
|
|
151
|
+
e(u) === "view" ? (o(), r("div", {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "select-icon",
|
|
154
|
+
onClick: k[1] || (k[1] = (...M) => e(te) && e(te)(...M))
|
|
155
|
+
}, [
|
|
156
|
+
i("div", He, [
|
|
157
|
+
l(ee, {
|
|
158
|
+
name: "write",
|
|
159
|
+
style: { width: "16px", height: "16px" }
|
|
160
|
+
})
|
|
161
|
+
]),
|
|
162
|
+
k[4] || (k[4] = i("div", null, T("修改布局"), -1))
|
|
163
|
+
])) : j("", !0),
|
|
164
|
+
i("div", qe, [
|
|
165
|
+
X(E.$slots, "default", {}, void 0, !0)
|
|
166
|
+
]),
|
|
167
|
+
l(H, {
|
|
168
|
+
size: 35,
|
|
169
|
+
src: (m = e(v)) == null ? void 0 : m.avatarUrl
|
|
170
|
+
}, {
|
|
171
|
+
default: c(() => {
|
|
172
|
+
var M;
|
|
173
|
+
return [
|
|
174
|
+
z(T(((M = e(v)) == null ? void 0 : M.account) ?? "未知"), 1)
|
|
175
|
+
];
|
|
176
|
+
}),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["src"])
|
|
179
|
+
])
|
|
180
|
+
])
|
|
181
|
+
];
|
|
182
|
+
}),
|
|
183
|
+
_: 3
|
|
184
|
+
}),
|
|
185
|
+
l(p, null, {
|
|
186
|
+
default: c(() => {
|
|
187
|
+
var m, M, V, G;
|
|
188
|
+
return [
|
|
189
|
+
e(u) === "edit" ? (o(), r("div", Ge, [
|
|
190
|
+
i("div", Ke, [
|
|
191
|
+
l(re)
|
|
192
|
+
]),
|
|
193
|
+
(o(), r("div", {
|
|
194
|
+
class: "model-show",
|
|
195
|
+
key: E.innerWidth
|
|
196
|
+
}, [
|
|
197
|
+
l(de)
|
|
198
|
+
])),
|
|
199
|
+
i("div", Qe, [
|
|
200
|
+
l(ue)
|
|
201
|
+
])
|
|
202
|
+
])) : E.$route.path === "/" && ((m = e(K)) == null ? void 0 : m.length) > 0 && e(u) === "view" ? (o(), r("div", Xe, [
|
|
203
|
+
i("div", Ye, [
|
|
204
|
+
(M = e(Q)(e(K))) != null && M.find((a) => a.comp === "FormTop") ? (o(), r("div", {
|
|
205
|
+
class: "show-header",
|
|
206
|
+
key: E.index
|
|
207
|
+
}, [
|
|
208
|
+
(o(!0), r(Y, null, Z((V = e(Q)(e(K))) == null ? void 0 : V.filter((a) => a.comp === "FormTop"), (a, R) => (o(), r("div", {
|
|
209
|
+
class: "item-content",
|
|
210
|
+
key: R
|
|
211
|
+
}, [
|
|
212
|
+
i("div", Ze, T(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) ?? R,
|
|
217
|
+
onChange: e(ce),
|
|
218
|
+
index: (a == null ? void 0 : a.id) ?? R,
|
|
219
|
+
onContentChange: e(ie),
|
|
220
|
+
onPageChange: e(le)
|
|
221
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
222
|
+
]))), 128))
|
|
223
|
+
])) : j("", !0),
|
|
224
|
+
i("div", et, [
|
|
225
|
+
(o(!0), r(Y, null, Z((G = e(Q)(e(K))) == null ? void 0 : G.filter((a) => a.comp !== "FormTop"), (a, R) => (o(), r("div", {
|
|
226
|
+
class: "item-content",
|
|
227
|
+
key: R
|
|
228
|
+
}, [
|
|
229
|
+
i("div", tt, T(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) ?? R,
|
|
234
|
+
onChange: e(ce),
|
|
235
|
+
index: (a == null ? void 0 : a.id) ?? R,
|
|
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(), r("div", nt, [
|
|
243
|
+
l(x)
|
|
244
|
+
])) : j("", !0)
|
|
245
|
+
];
|
|
246
|
+
}),
|
|
247
|
+
_: 1
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 3
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
})), [
|
|
255
|
+
[I, e(A)]
|
|
256
|
+
]);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}, at = /* @__PURE__ */ q(ot, [["__scopeId", "data-v-ef767374"]]);
|
|
260
|
+
function st($, B, t, v, w, s) {
|
|
261
|
+
const _ = C("DynamicIcon"), f = C("ssMenu");
|
|
262
|
+
return o(), y(f, {
|
|
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, T(u.title ?? ""), 1)
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
277
|
+
}
|
|
278
|
+
const lt = /* @__PURE__ */ q(Ae, [["render", st], ["__scopeId", "data-v-93a3198a"]]), 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" }, Ct = { class: "client-main-content" }, gt = { class: "client-main-operate" }, yt = { class: "item-view-group" }, wt = /* @__PURE__ */ be({
|
|
279
|
+
__name: "client",
|
|
280
|
+
setup($) {
|
|
281
|
+
const B = me(P), { selectTitle: t } = F(B), v = ye(), { loginUserInfo: w } = F(v), s = ne(P), { isEdit: _ } = F(s), f = oe(P), u = xe(P), { objUrl: S } = F(u), D = h(null), { importLoading: N, activeMenuPath: b } = F(f), O = h(!1);
|
|
282
|
+
return J(() => b.value, async (A) => {
|
|
283
|
+
A && (await Ie(), O.value = !O.value);
|
|
284
|
+
}, { immediate: !0 }), J(
|
|
285
|
+
() => [S.value, D.value],
|
|
286
|
+
() => {
|
|
287
|
+
S.value !== "" && D.value && (D.value.clearAllModels(), D.value.addModelFromUrl(S.value));
|
|
288
|
+
},
|
|
289
|
+
{ immediate: !0, deep: !0 }
|
|
290
|
+
), (A, g) => {
|
|
291
|
+
const L = C("el-button"), E = C("el-avatar"), k = C("el-header"), U = C("el-container"), W = C("el-aside"), H = C("el-main"), d = C("router-view"), x = fe("loading");
|
|
292
|
+
return e(_) === "edit" ? (o(), y(U, {
|
|
293
|
+
key: 0,
|
|
294
|
+
class: "client-container"
|
|
295
|
+
}, {
|
|
296
|
+
default: c(() => [
|
|
297
|
+
l(k, { class: "client-structure-header" }, {
|
|
298
|
+
default: c(() => {
|
|
299
|
+
var p;
|
|
300
|
+
return [
|
|
301
|
+
i("div", it, [
|
|
302
|
+
l(L, {
|
|
303
|
+
class: "select-icon",
|
|
304
|
+
onClick: e(we)
|
|
305
|
+
}, {
|
|
306
|
+
default: c(() => g[2] || (g[2] = [
|
|
307
|
+
z(" 返回页面 ")
|
|
308
|
+
])),
|
|
309
|
+
_: 1,
|
|
310
|
+
__: [2]
|
|
311
|
+
}, 8, ["onClick"]),
|
|
312
|
+
l(L, {
|
|
313
|
+
class: "select-icon",
|
|
314
|
+
onClick: g[0] || (g[0] = (n) => {
|
|
315
|
+
var I, m;
|
|
316
|
+
return e(ke)((m = (I = e(t)) == null ? void 0 : I.map((M) => M.value)) == null ? void 0 : m.join("/"));
|
|
317
|
+
})
|
|
318
|
+
}, {
|
|
319
|
+
icon: c(() => [
|
|
320
|
+
l(ee, { name: "Store" })
|
|
321
|
+
]),
|
|
322
|
+
default: c(() => [
|
|
323
|
+
g[3] || (g[3] = z(" 保存页面 "))
|
|
324
|
+
]),
|
|
325
|
+
_: 1,
|
|
326
|
+
__: [3]
|
|
327
|
+
})
|
|
328
|
+
]),
|
|
329
|
+
i("div", ct, [
|
|
330
|
+
(o(), y(Se, {
|
|
331
|
+
key: e(t),
|
|
332
|
+
breadArray: e(t),
|
|
333
|
+
onClick: e($e)
|
|
334
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
335
|
+
]),
|
|
336
|
+
i("div", rt, [
|
|
337
|
+
i("div", dt, [
|
|
338
|
+
X(A.$slots, "default", {}, void 0, !0)
|
|
339
|
+
]),
|
|
340
|
+
l(E, {
|
|
341
|
+
size: 35,
|
|
342
|
+
src: (p = e(w)) == null ? void 0 : p.avatarUrl
|
|
343
|
+
}, {
|
|
344
|
+
default: c(() => {
|
|
345
|
+
var n;
|
|
346
|
+
return [
|
|
347
|
+
z(T(((n = e(w)) == null ? void 0 : n.account) ?? "未知"), 1)
|
|
348
|
+
];
|
|
349
|
+
}),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["src"])
|
|
352
|
+
])
|
|
353
|
+
];
|
|
354
|
+
}),
|
|
355
|
+
_: 3
|
|
356
|
+
}),
|
|
357
|
+
e(_) === "edit" ? (o(), y(U, {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: "model-operate",
|
|
360
|
+
style: { "margin-top": "10px", height: "0px" }
|
|
361
|
+
}, {
|
|
362
|
+
default: c(() => [
|
|
363
|
+
i("div", ut, [
|
|
364
|
+
l(re)
|
|
365
|
+
]),
|
|
366
|
+
i("div", mt, [
|
|
367
|
+
l(de)
|
|
368
|
+
]),
|
|
369
|
+
i("div", _t, [
|
|
370
|
+
l(ue)
|
|
371
|
+
])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
})) : j("", !0)
|
|
375
|
+
]),
|
|
376
|
+
_: 3
|
|
377
|
+
})) : pe((o(), y(U, {
|
|
378
|
+
key: 1,
|
|
379
|
+
class: "client-container",
|
|
380
|
+
"element-loading-text": "正在加载页面数据..."
|
|
381
|
+
}, {
|
|
382
|
+
default: c(() => [
|
|
383
|
+
l(k, { class: "client-header" }, {
|
|
384
|
+
default: c(() => {
|
|
385
|
+
var p;
|
|
386
|
+
return [
|
|
387
|
+
g[5] || (g[5] = i("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
|
|
388
|
+
i("div", vt, [
|
|
389
|
+
l(lt, { mode: "horizontal" })
|
|
390
|
+
]),
|
|
391
|
+
i("div", ht, [
|
|
392
|
+
e(_) === "view" ? (o(), r("div", {
|
|
393
|
+
key: 0,
|
|
394
|
+
class: "select-icon",
|
|
395
|
+
onClick: g[1] || (g[1] = //@ts-ignore
|
|
396
|
+
(...n) => e(te) && e(te)(...n))
|
|
397
|
+
}, [
|
|
398
|
+
i("div", ft, [
|
|
399
|
+
l(ee, {
|
|
400
|
+
name: "write",
|
|
401
|
+
style: { width: "16px", height: "16px" }
|
|
402
|
+
})
|
|
403
|
+
]),
|
|
404
|
+
g[4] || (g[4] = i("div", null, T("修改布局"), -1))
|
|
405
|
+
])) : j("", !0),
|
|
406
|
+
i("div", pt, [
|
|
407
|
+
X(A.$slots, "default", {}, void 0, !0)
|
|
408
|
+
]),
|
|
409
|
+
l(E, {
|
|
410
|
+
size: 35,
|
|
411
|
+
src: (p = e(w)) == null ? void 0 : p.avatarUrl
|
|
412
|
+
}, {
|
|
413
|
+
default: c(() => {
|
|
414
|
+
var n;
|
|
415
|
+
return [
|
|
416
|
+
z(T(((n = e(w)) == null ? void 0 : n.account) ?? "未知"), 1)
|
|
417
|
+
];
|
|
418
|
+
}),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 8, ["src"])
|
|
421
|
+
])
|
|
422
|
+
];
|
|
423
|
+
}),
|
|
424
|
+
_: 3,
|
|
425
|
+
__: [5]
|
|
426
|
+
}),
|
|
427
|
+
l(U, { class: "client-body" }, {
|
|
428
|
+
default: c(() => [
|
|
429
|
+
l(W, {
|
|
430
|
+
class: "client-aside",
|
|
431
|
+
width: "250px"
|
|
432
|
+
}, {
|
|
433
|
+
default: c(() => [
|
|
434
|
+
l(Ce, { mode: "vertical" })
|
|
435
|
+
]),
|
|
436
|
+
_: 1
|
|
437
|
+
}),
|
|
438
|
+
A.$route.path === "/" ? (o(), y(H, {
|
|
439
|
+
key: 0,
|
|
440
|
+
class: "client-main"
|
|
441
|
+
}, {
|
|
442
|
+
default: c(() => {
|
|
443
|
+
var p;
|
|
444
|
+
return [
|
|
445
|
+
i("div", Ct, [
|
|
446
|
+
l(Te, {
|
|
447
|
+
isShow: O.value,
|
|
448
|
+
ref_key: "threeModelRef",
|
|
449
|
+
ref: D
|
|
450
|
+
}, null, 8, ["isShow"])
|
|
451
|
+
]),
|
|
452
|
+
i("div", gt, [
|
|
453
|
+
(o(!0), r(Y, null, Z((p = e(Q)(e(K))) == null ? void 0 : p.filter((n) => n.comp !== "FormTop"), (n, I) => (o(), r("div", {
|
|
454
|
+
class: "item-view-content",
|
|
455
|
+
key: I
|
|
456
|
+
}, [
|
|
457
|
+
i("div", yt, T(n.name), 1),
|
|
458
|
+
(o(), y(ae(e(se)(n.comp)), {
|
|
459
|
+
itemData: n == null ? void 0 : n.compData,
|
|
460
|
+
childItemData: n == null ? void 0 : n.itemChildData,
|
|
461
|
+
key: (n == null ? void 0 : n.id) ?? I,
|
|
462
|
+
onChange: e(ce),
|
|
463
|
+
index: (n == null ? void 0 : n.id) ?? I,
|
|
464
|
+
onContentChange: e(ie),
|
|
465
|
+
onPageChange: e(le)
|
|
466
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
467
|
+
]))), 128))
|
|
468
|
+
])
|
|
469
|
+
];
|
|
470
|
+
}),
|
|
471
|
+
_: 1
|
|
472
|
+
})) : (o(), y(H, {
|
|
473
|
+
key: 1,
|
|
474
|
+
class: "client-router"
|
|
475
|
+
}, {
|
|
476
|
+
default: c(() => [
|
|
477
|
+
l(d)
|
|
478
|
+
]),
|
|
479
|
+
_: 1
|
|
480
|
+
}))
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
})
|
|
484
|
+
]),
|
|
485
|
+
_: 3
|
|
486
|
+
})), [
|
|
487
|
+
[x, e(N)]
|
|
488
|
+
]);
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
}), kt = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-69742fe7"]]), $t = { class: "system-wrap" }, St = {
|
|
492
|
+
__name: "index",
|
|
493
|
+
props: {
|
|
494
|
+
platform: {
|
|
495
|
+
type: String,
|
|
496
|
+
default: "browser"
|
|
497
|
+
},
|
|
498
|
+
content: String,
|
|
499
|
+
jsonContents: Array
|
|
500
|
+
},
|
|
501
|
+
setup($) {
|
|
502
|
+
const B = ne(P), t = me(P), v = oe();
|
|
503
|
+
h(!1);
|
|
504
|
+
const w = h(!0), s = $;
|
|
505
|
+
return J(
|
|
506
|
+
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
507
|
+
async () => {
|
|
508
|
+
var u, S, D, N;
|
|
509
|
+
if (((u = s == null ? void 0 : s.jsonContents) == null ? void 0 : u.length) > 0) {
|
|
510
|
+
B.setOriginalData(s == null ? void 0 : s.jsonContents);
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
if (!(s != null && s.content) || ((S = s == null ? void 0 : s.content) == null ? void 0 : S.length) === 0) return;
|
|
514
|
+
w.value = !0, v.setImportLoading(!0);
|
|
515
|
+
let _ = [], f = [];
|
|
516
|
+
t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (N = (D = s == null ? void 0 : s.content) == null ? void 0 : D.filter((b) => b !== "")) == null || N.forEach((b) => {
|
|
517
|
+
Pe(b) ? f.push(Be(b)) : _e(b) ? f.push(_e(b)) : ve(b) ? f.push(ve(b)) : f.push(je(b));
|
|
518
|
+
}), _ = f == null ? void 0 : f[0], await Fe(_), await ge(), B.setOriginalData(_), v.setImportLoading(!1);
|
|
519
|
+
},
|
|
520
|
+
{ deep: !0, immediate: !0 }
|
|
521
|
+
), (_, f) => (o(), r("div", $t, [
|
|
522
|
+
$.platform === "browser" ? (o(), y(at, { key: 0 }, {
|
|
523
|
+
default: c(() => [
|
|
524
|
+
X(_.$slots, "default", {}, void 0, !0)
|
|
525
|
+
]),
|
|
526
|
+
_: 3
|
|
527
|
+
})) : (o(), y(kt, { key: 1 }, {
|
|
528
|
+
default: c(() => [
|
|
529
|
+
X(_.$slots, "default", {}, void 0, !0)
|
|
530
|
+
]),
|
|
531
|
+
_: 3
|
|
532
|
+
}))
|
|
533
|
+
]));
|
|
534
|
+
}
|
|
535
|
+
}, Dt = /* @__PURE__ */ q(St, [["__scopeId", "data-v-3fc52d23"]]), bt = { class: "add-model-content" }, It = {
|
|
536
|
+
key: 0,
|
|
537
|
+
class: "model-operate"
|
|
538
|
+
}, xt = { class: "model-select" }, Mt = { class: "model-fill" }, Tt = {
|
|
539
|
+
key: 1,
|
|
540
|
+
class: "model-view"
|
|
541
|
+
}, At = {
|
|
542
|
+
key: 0,
|
|
543
|
+
class: "model-import-data"
|
|
544
|
+
}, jt = {
|
|
545
|
+
__name: "index",
|
|
546
|
+
props: {
|
|
547
|
+
mode: {
|
|
548
|
+
type: String,
|
|
549
|
+
default: "view"
|
|
550
|
+
},
|
|
551
|
+
content: {
|
|
552
|
+
type: String,
|
|
553
|
+
default: ""
|
|
554
|
+
},
|
|
555
|
+
jsonContents: {
|
|
556
|
+
type: Array,
|
|
557
|
+
default: () => []
|
|
558
|
+
},
|
|
559
|
+
showButton: {
|
|
560
|
+
type: Boolean,
|
|
561
|
+
default: !0
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
emits: ["change", "contentChange"],
|
|
565
|
+
setup($, { emit: B }) {
|
|
566
|
+
const t = $, v = B, w = h([]), s = h([]), _ = h([]), f = h(0), u = ne(P), S = oe(P), { itemData: D, originalData: N } = F(u), { activeMenuPath: b, platform: O } = F(S), A = h(null), g = h(0), L = h([]);
|
|
567
|
+
h("");
|
|
568
|
+
const E = h(0), k = (d) => {
|
|
569
|
+
v("contentChange", d);
|
|
570
|
+
}, U = (d) => {
|
|
571
|
+
var p;
|
|
572
|
+
const x = (p = Q(d == null ? void 0 : d.wholeValue)) == null ? void 0 : p.map((n) => {
|
|
573
|
+
var I;
|
|
574
|
+
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (I = n.compData) == null ? void 0 : I.map((m) => ((m == null ? void 0 : m.key) === "formContent" && (m.contents = Le(m == null ? void 0 : m.contents)), m))), n;
|
|
575
|
+
});
|
|
576
|
+
v("change", {
|
|
577
|
+
originalContents: N.value,
|
|
578
|
+
currentContents: d == null ? void 0 : d.wholeValue,
|
|
579
|
+
editContent: d == null ? void 0 : d.editValue,
|
|
580
|
+
arrayToContents: x
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
J(
|
|
584
|
+
() => s.value,
|
|
585
|
+
() => {
|
|
586
|
+
E.value === s.value.length && s.value.length !== 0 && (w.value = s.value);
|
|
587
|
+
},
|
|
588
|
+
{ deep: !0, immediate: !0 }
|
|
589
|
+
);
|
|
590
|
+
const W = () => {
|
|
591
|
+
A.value.click();
|
|
592
|
+
}, H = async (d) => {
|
|
593
|
+
const x = d.target.files;
|
|
594
|
+
if (!x) return;
|
|
595
|
+
new FileReader(), w.value = [], s.value = [], E.value = x.length;
|
|
596
|
+
const p = Array.from(x).map(async (n) => await new Promise((I) => {
|
|
597
|
+
const m = new FileReader();
|
|
598
|
+
m.onload = (M) => {
|
|
599
|
+
try {
|
|
600
|
+
s.value.push(M.target.result), g.value++;
|
|
601
|
+
} catch (V) {
|
|
602
|
+
console.error("解析失败:", V);
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
}, m.onerror = () => I(`读取 ${n.name} 失败`), m.readAsText(n), d.target.value = "", A.value = null;
|
|
606
|
+
}));
|
|
607
|
+
await Promise.all(p);
|
|
608
|
+
};
|
|
609
|
+
return J(
|
|
610
|
+
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
611
|
+
async () => {
|
|
612
|
+
await ge(), w.value = t.content, _.value = t == null ? void 0 : t.jsonContents;
|
|
613
|
+
},
|
|
614
|
+
{ deep: !0, immediate: !0 }
|
|
615
|
+
), J(
|
|
616
|
+
() => g.value,
|
|
617
|
+
() => {
|
|
618
|
+
var d;
|
|
619
|
+
((d = L.value) == null ? void 0 : d.length) !== 0 && (u.setOriginalData(L.value), u.setItemData(L.value));
|
|
620
|
+
},
|
|
621
|
+
{ deep: !0, immediate: !0 }
|
|
622
|
+
), (d, x) => {
|
|
623
|
+
const p = C("svg-icon");
|
|
624
|
+
return o(), r("div", bt, [
|
|
625
|
+
(t == null ? void 0 : t.mode) === "edit" ? (o(), r("div", It, [
|
|
626
|
+
i("div", xt, [
|
|
627
|
+
l(re)
|
|
628
|
+
]),
|
|
629
|
+
(o(), r("div", {
|
|
630
|
+
class: "model-show",
|
|
631
|
+
key: f.value
|
|
632
|
+
}, [
|
|
633
|
+
l(de)
|
|
634
|
+
])),
|
|
635
|
+
i("div", Mt, [
|
|
636
|
+
l(ue)
|
|
637
|
+
])
|
|
638
|
+
])) : j("", !0),
|
|
639
|
+
(t == null ? void 0 : t.mode) === "view" ? (o(), r("div", Tt, [
|
|
640
|
+
(o(), y(Dt, {
|
|
641
|
+
platform: e(O),
|
|
642
|
+
content: w.value,
|
|
643
|
+
onChange: U,
|
|
644
|
+
jsonContents: _.value,
|
|
645
|
+
onContentChange: k,
|
|
646
|
+
key: f.value
|
|
647
|
+
}, {
|
|
648
|
+
default: c(() => {
|
|
649
|
+
var n;
|
|
650
|
+
return [
|
|
651
|
+
((n = t == null ? void 0 : t.jsonContents) == null ? void 0 : n.length) === 0 && (t != null && t.showButton) ? (o(), r("div", At, [
|
|
652
|
+
i("div", {
|
|
653
|
+
class: "import-button",
|
|
654
|
+
onClick: W
|
|
655
|
+
}, [
|
|
656
|
+
i("input", {
|
|
657
|
+
type: "file",
|
|
658
|
+
ref_key: "fileInput",
|
|
659
|
+
ref: A,
|
|
660
|
+
accept: ".txt, .inm",
|
|
661
|
+
onChange: H,
|
|
662
|
+
style: { display: "none" },
|
|
663
|
+
multiple: ""
|
|
664
|
+
}, null, 544),
|
|
665
|
+
l(p, {
|
|
666
|
+
name: "import",
|
|
667
|
+
style: { width: "16px", height: "16px" }
|
|
668
|
+
}),
|
|
669
|
+
x[0] || (x[0] = i("div", null, T("导入模型"), -1))
|
|
670
|
+
])
|
|
671
|
+
])) : j("", !0)
|
|
672
|
+
];
|
|
673
|
+
}),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["platform", "content", "jsonContents"]))
|
|
676
|
+
])) : j("", !0)
|
|
677
|
+
]);
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}, Kt = /* @__PURE__ */ q(jt, [["__scopeId", "data-v-4b7a2e5d"]]);
|
|
681
|
+
export {
|
|
682
|
+
Kt as default
|
|
683
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Cn95BsEm.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function r(n,l,p,a,_,d){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{mode:n.mode,menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const i=c._export_sfc(u._sfc_main,[["render",r],["__scopeId","data-v-11a5120d"]]);exports.default=i;
|