ss-component-new 1.3.714 → 1.3.716
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/config.js +1 -1
- package/dist/index-0g0DP0Sz.js +1044 -0
- package/dist/index-BDCuosQJ.js +50 -0
- package/dist/index-BxJpjRsQ.js +50711 -0
- package/dist/index-C1ELjCn7.js +181 -0
- package/dist/index-CEUQmw5e.js +58 -0
- package/dist/index-CndLgFR1.js +35 -0
- package/dist/index-DlDwzFUG.js +213 -0
- package/dist/{index-ChNfRlIP.js → index-DyhB-cd1.js} +253 -18
- package/dist/index-IoMa0kLh.js +27 -0
- package/dist/menu-HTA6NZEd.js +5208 -0
- package/dist/platform-DoyWecim.js +11429 -0
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +28 -64
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +1 -1
- package/package.json +10 -8
- package/public/config.js +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/MTLLoader-CkNZudBE.js +0 -657
- package/dist/URDFLoader-DIzEVzUD.js +0 -2299
- package/dist/__vite-browser-external-DYxpcVy9.js +0 -4
- package/dist/animationData-DvL_4GZ5.js +0 -83
- package/dist/array-BN2tTnqd.js +0 -1045
- package/dist/clone-Dp_gc9ll.js +0 -8
- package/dist/eleIcon-qStmsM1q.js +0 -29
- package/dist/fileUtil-UOt_otFo.js +0 -20
- package/dist/iconfont-BwY2qVoK.js +0 -1030
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/method.svg +0 -1
- package/dist/index-11kpzK0A.js +0 -209
- package/dist/index-5S_ATziA.js +0 -25341
- package/dist/index-B0H3C7WG.js +0 -103
- package/dist/index-B6ePvQgB.js +0 -83
- package/dist/index-BHtNKL1L.js +0 -27
- package/dist/index-BbyrFzEO.js +0 -93
- package/dist/index-Bej2dPck.js +0 -873
- package/dist/index-BooO2Bml.js +0 -78
- package/dist/index-BqZj6gM7.js +0 -470
- package/dist/index-Bw3sTXPI.js +0 -8993
- package/dist/index-BzUgGzuc.js +0 -48
- package/dist/index-C9nks7xM.js +0 -30
- package/dist/index-CGi0g-VN.js +0 -627
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CWOXvFfD.js +0 -44
- package/dist/index-CYwlat81.js +0 -20578
- package/dist/index-Cflxz2Xv.js +0 -572
- package/dist/index-Ch8te5LO.js +0 -411
- package/dist/index-Ckqlxqaw.js +0 -119
- package/dist/index-CpGn7sfE.js +0 -93
- package/dist/index-CydXQbtX.js +0 -622
- package/dist/index-DAJxL40d.js +0 -55
- package/dist/index-DBsEVMiM.js +0 -201
- package/dist/index-DG4hoOWt.js +0 -665
- package/dist/index-DUbk5m5P.js +0 -99
- package/dist/index-DbHIH067.js +0 -107
- package/dist/index-Dhjj5seQ.js +0 -98
- package/dist/index-Ds6m_4JJ.js +0 -28500
- package/dist/index-DupTchhl.js +0 -1000
- package/dist/index-DyCq_odP.js +0 -331
- package/dist/index-Ru-cNTPj.js +0 -84
- package/dist/index-UB_oCdlo.js +0 -62
- package/dist/index-XcH1poa0.js +0 -63306
- package/dist/index-YjBTGOkO.js +0 -61
- package/dist/index-jbOjjV0j.js +0 -447
- package/dist/index-rlStojTL.js +0 -52
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js +0 -137927
- package/dist/isString-0ZglyOfu.js +0 -8
- package/dist/localIcon-D5UoFBU5.js +0 -76
- package/dist/main-BCc8TzAj.js +0 -502
- package/dist/menuIndex-BB0uVPRX.js +0 -159
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/pyodide-Dc1Mu-0d.js +0 -489
- package/dist/request-1RPa2bBn.js +0 -9048
- package/dist/threeModel-BXXLFYOy.js +0 -1109
- package/dist/threePreview-DUfFZQ5q.js +0 -3091
- package/dist/threeSceneView-Dez2tha0.js +0 -1290
- package/dist/threeSceneViewForCPMPIP-DDk128w_.js +0 -539
- package/dist/threeTrackPathView-DmE9QE_0.js +0 -620
- package/dist/threeViewerHost-7g8xu3oh.js +0 -233
- package/dist/urdfTree-VRms7Vm3.js +0 -254
- package/dist/workpieceTreePanel-DCSz_IDY.js +0 -559
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/method.svg +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
- /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
- /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/public/icons/svg/{Update.svg → update.svg} +0 -0
package/dist/index-Ch8te5LO.js
DELETED
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as z, nextTick as N, Fragment as q, withDirectives as H, renderSlot as $, vShow as M } from "vue";
|
|
2
|
-
import { as as V } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js";
|
|
3
|
-
import { aD as X, az as J, ao as G, a7 as D, a9 as c, aa as R, ar as g } from "./request-1RPa2bBn.js";
|
|
4
|
-
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const K = "ElUpload";
|
|
6
|
-
class Q extends Error {
|
|
7
|
-
constructor(r, o, n, p) {
|
|
8
|
-
super(r), this.name = "UploadAjaxError", this.status = o, this.method = n, this.url = p;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function B(t, r, o) {
|
|
12
|
-
let n;
|
|
13
|
-
return o.response ? n = `${o.response.error || o.response}` : o.responseText ? n = `${o.responseText}` : n = `fail to ${r.method} ${t} ${o.status}`, new Q(n, o.status, r.method, t);
|
|
14
|
-
}
|
|
15
|
-
function W(t) {
|
|
16
|
-
const r = t.responseText || t.response;
|
|
17
|
-
if (!r)
|
|
18
|
-
return r;
|
|
19
|
-
try {
|
|
20
|
-
return JSON.parse(r);
|
|
21
|
-
} catch {
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const Y = (t) => {
|
|
26
|
-
typeof XMLHttpRequest > "u" && X(K, "XMLHttpRequest is undefined");
|
|
27
|
-
const r = new XMLHttpRequest(), o = t.action;
|
|
28
|
-
r.upload && r.upload.addEventListener("progress", (e) => {
|
|
29
|
-
const i = e;
|
|
30
|
-
i.percent = e.total > 0 ? e.loaded / e.total * 100 : 0, t.onProgress(i);
|
|
31
|
-
});
|
|
32
|
-
const n = new FormData();
|
|
33
|
-
if (t.data)
|
|
34
|
-
for (const [e, i] of Object.entries(t.data))
|
|
35
|
-
J(i) && i.length ? n.append(e, ...i) : n.append(e, i);
|
|
36
|
-
n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
|
|
37
|
-
t.onError(B(o, t, r));
|
|
38
|
-
}), r.addEventListener("load", () => {
|
|
39
|
-
if (r.status < 200 || r.status >= 300)
|
|
40
|
-
return t.onError(B(o, t, r));
|
|
41
|
-
t.onSuccess(W(r));
|
|
42
|
-
}), r.open(t.method, o, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
|
|
43
|
-
const p = t.headers || {};
|
|
44
|
-
if (p instanceof Headers)
|
|
45
|
-
p.forEach((e, i) => r.setRequestHeader(i, e));
|
|
46
|
-
else
|
|
47
|
-
for (const [e, i] of Object.entries(p))
|
|
48
|
-
G(i) || r.setRequestHeader(e, String(i));
|
|
49
|
-
return r.send(n), r;
|
|
50
|
-
}, Z = ["text", "picture", "picture-card"];
|
|
51
|
-
let ee = 1;
|
|
52
|
-
const te = () => Date.now() + ee++, re = D({
|
|
53
|
-
action: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "#"
|
|
56
|
-
},
|
|
57
|
-
headers: {
|
|
58
|
-
type: c(Object)
|
|
59
|
-
},
|
|
60
|
-
method: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: "post"
|
|
63
|
-
},
|
|
64
|
-
data: {
|
|
65
|
-
type: c([Object, Function, Promise]),
|
|
66
|
-
default: () => R({})
|
|
67
|
-
},
|
|
68
|
-
multiple: Boolean,
|
|
69
|
-
name: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "file"
|
|
72
|
-
},
|
|
73
|
-
drag: Boolean,
|
|
74
|
-
withCredentials: Boolean,
|
|
75
|
-
showFileList: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !0
|
|
78
|
-
},
|
|
79
|
-
accept: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: ""
|
|
82
|
-
},
|
|
83
|
-
fileList: {
|
|
84
|
-
type: c(Array),
|
|
85
|
-
default: () => R([])
|
|
86
|
-
},
|
|
87
|
-
autoUpload: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: !0
|
|
90
|
-
},
|
|
91
|
-
listType: {
|
|
92
|
-
type: String,
|
|
93
|
-
values: Z,
|
|
94
|
-
default: "text"
|
|
95
|
-
},
|
|
96
|
-
httpRequest: {
|
|
97
|
-
type: c(Function),
|
|
98
|
-
default: Y
|
|
99
|
-
},
|
|
100
|
-
disabled: Boolean,
|
|
101
|
-
limit: Number
|
|
102
|
-
}), Ce = D({
|
|
103
|
-
...re,
|
|
104
|
-
beforeUpload: {
|
|
105
|
-
type: c(Function),
|
|
106
|
-
default: g
|
|
107
|
-
},
|
|
108
|
-
beforeRemove: {
|
|
109
|
-
type: c(Function)
|
|
110
|
-
},
|
|
111
|
-
onRemove: {
|
|
112
|
-
type: c(Function),
|
|
113
|
-
default: g
|
|
114
|
-
},
|
|
115
|
-
onChange: {
|
|
116
|
-
type: c(Function),
|
|
117
|
-
default: g
|
|
118
|
-
},
|
|
119
|
-
onPreview: {
|
|
120
|
-
type: c(Function),
|
|
121
|
-
default: g
|
|
122
|
-
},
|
|
123
|
-
onSuccess: {
|
|
124
|
-
type: c(Function),
|
|
125
|
-
default: g
|
|
126
|
-
},
|
|
127
|
-
onProgress: {
|
|
128
|
-
type: c(Function),
|
|
129
|
-
default: g
|
|
130
|
-
},
|
|
131
|
-
onError: {
|
|
132
|
-
type: c(Function),
|
|
133
|
-
default: g
|
|
134
|
-
},
|
|
135
|
-
onExceed: {
|
|
136
|
-
type: c(Function),
|
|
137
|
-
default: g
|
|
138
|
-
},
|
|
139
|
-
crossorigin: {
|
|
140
|
-
type: c(String)
|
|
141
|
-
}
|
|
142
|
-
}), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
|
|
143
|
-
__name: "index",
|
|
144
|
-
props: {
|
|
145
|
-
title: {
|
|
146
|
-
type: String,
|
|
147
|
-
default: ""
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
emits: ["submitImage", "deleteImage"],
|
|
151
|
-
setup(t, { expose: r, emit: o }) {
|
|
152
|
-
const n = o, p = I(), e = T({
|
|
153
|
-
isShowDialog: !1,
|
|
154
|
-
cropperImg: "",
|
|
155
|
-
cropperImgBase64: "",
|
|
156
|
-
cropper: null
|
|
157
|
-
}), i = async (s) => {
|
|
158
|
-
if (e.isShowDialog = !0, !s) return;
|
|
159
|
-
let a = window.URL || window.webkitURL;
|
|
160
|
-
e.cropperImg = a.createObjectURL(s), N(() => {
|
|
161
|
-
k();
|
|
162
|
-
});
|
|
163
|
-
}, y = () => {
|
|
164
|
-
var s;
|
|
165
|
-
(s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
|
|
166
|
-
}, _ = () => {
|
|
167
|
-
y();
|
|
168
|
-
}, b = async () => {
|
|
169
|
-
const s = await S();
|
|
170
|
-
n("submitImage", { file: s }), y();
|
|
171
|
-
}, f = async () => {
|
|
172
|
-
n("deleteImage");
|
|
173
|
-
}, k = () => {
|
|
174
|
-
const s = document.querySelector(".cropper-warp-left-img");
|
|
175
|
-
s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
|
|
176
|
-
viewMode: 1,
|
|
177
|
-
dragMode: "none",
|
|
178
|
-
initialAspectRatio: 1,
|
|
179
|
-
aspectRatio: 1,
|
|
180
|
-
preview: ".before",
|
|
181
|
-
background: !0,
|
|
182
|
-
autoCropArea: 1,
|
|
183
|
-
// zoomOnWheel: false,
|
|
184
|
-
checkCrossOrigin: !1,
|
|
185
|
-
crop: () => {
|
|
186
|
-
e.cropperImgBase64 = e.cropper.getCroppedCanvas().toDataURL("image/jpeg");
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}, S = async () => e != null && e.cropper ? new Promise((s) => {
|
|
190
|
-
var a, m;
|
|
191
|
-
(m = (a = e == null ? void 0 : e.cropper) == null ? void 0 : a.getCroppedCanvas()) == null || m.toBlob((C) => {
|
|
192
|
-
s(C);
|
|
193
|
-
});
|
|
194
|
-
}) : (await fetch(e.cropperImg)).blob(), F = async (s) => {
|
|
195
|
-
var m;
|
|
196
|
-
let a = window.URL || window.webkitURL;
|
|
197
|
-
e.cropperImg = a.createObjectURL(s.raw), (m = e.cropper) == null || m.replace(e.cropperImg);
|
|
198
|
-
}, P = (s) => {
|
|
199
|
-
p.value.clearFiles();
|
|
200
|
-
const a = s[0];
|
|
201
|
-
a.uid = te(), p.value.handleStart(a);
|
|
202
|
-
};
|
|
203
|
-
return r({
|
|
204
|
-
openDialog: i
|
|
205
|
-
}), (s, a) => {
|
|
206
|
-
const m = v("ele-Edit"), C = v("el-icon"), w = v("el-button"), O = v("el-upload"), j = v("el-dialog");
|
|
207
|
-
return U(), E("div", null, [
|
|
208
|
-
u(j, {
|
|
209
|
-
modelValue: e.isShowDialog,
|
|
210
|
-
"onUpdate:modelValue": a[0] || (a[0] = (A) => e.isShowDialog = A),
|
|
211
|
-
width: "769px",
|
|
212
|
-
"before-close": _
|
|
213
|
-
}, {
|
|
214
|
-
header: d(() => [
|
|
215
|
-
l("div", ae, [
|
|
216
|
-
u(C, {
|
|
217
|
-
size: "16",
|
|
218
|
-
style: { "margin-right": "3px", display: "inline", "vertical-align": "middle" }
|
|
219
|
-
}, {
|
|
220
|
-
default: d(() => [
|
|
221
|
-
u(m)
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}),
|
|
225
|
-
l("span", null, z(t.title), 1)
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
footer: d(() => [
|
|
229
|
-
l("span", ge, [
|
|
230
|
-
u(O, {
|
|
231
|
-
class: "avatar-uploader",
|
|
232
|
-
ref_key: "uploadSignRef",
|
|
233
|
-
ref: p,
|
|
234
|
-
accept: ".jpg,.png",
|
|
235
|
-
limit: 1,
|
|
236
|
-
"show-file-list": !1,
|
|
237
|
-
"auto-upload": !1,
|
|
238
|
-
"on-change": F,
|
|
239
|
-
"on-exceed": P
|
|
240
|
-
}, {
|
|
241
|
-
trigger: d(() => [
|
|
242
|
-
u(w, {
|
|
243
|
-
type: "info",
|
|
244
|
-
icon: "ele-Picture"
|
|
245
|
-
}, {
|
|
246
|
-
default: d(() => a[4] || (a[4] = [
|
|
247
|
-
h("选择图片")
|
|
248
|
-
])),
|
|
249
|
-
_: 1,
|
|
250
|
-
__: [4]
|
|
251
|
-
})
|
|
252
|
-
]),
|
|
253
|
-
default: d(() => [
|
|
254
|
-
u(w, {
|
|
255
|
-
onClick: f,
|
|
256
|
-
type: "danger",
|
|
257
|
-
icon: "ele-Picture",
|
|
258
|
-
style: { "margin-left": "8px" }
|
|
259
|
-
}, {
|
|
260
|
-
default: d(() => a[5] || (a[5] = [
|
|
261
|
-
h("删除图片")
|
|
262
|
-
])),
|
|
263
|
-
_: 1,
|
|
264
|
-
__: [5]
|
|
265
|
-
})
|
|
266
|
-
]),
|
|
267
|
-
_: 1
|
|
268
|
-
}, 512),
|
|
269
|
-
l("div", null, [
|
|
270
|
-
u(w, {
|
|
271
|
-
onClick: _,
|
|
272
|
-
id: "themeBorderButton"
|
|
273
|
-
}, {
|
|
274
|
-
default: d(() => a[6] || (a[6] = [
|
|
275
|
-
h("取 消")
|
|
276
|
-
])),
|
|
277
|
-
_: 1,
|
|
278
|
-
__: [6]
|
|
279
|
-
}),
|
|
280
|
-
u(w, {
|
|
281
|
-
onClick: b,
|
|
282
|
-
id: "themeButton"
|
|
283
|
-
}, {
|
|
284
|
-
default: d(() => a[7] || (a[7] = [
|
|
285
|
-
h("确 定")
|
|
286
|
-
])),
|
|
287
|
-
_: 1,
|
|
288
|
-
__: [7]
|
|
289
|
-
})
|
|
290
|
-
])
|
|
291
|
-
])
|
|
292
|
-
]),
|
|
293
|
-
default: d(() => [
|
|
294
|
-
l("div", oe, [
|
|
295
|
-
l("div", se, [
|
|
296
|
-
l("img", {
|
|
297
|
-
src: e.cropperImg,
|
|
298
|
-
class: "cropper-warp-left-img"
|
|
299
|
-
}, null, 8, ne)
|
|
300
|
-
]),
|
|
301
|
-
l("div", le, [
|
|
302
|
-
a[3] || (a[3] = l("div", { class: "cropper-warp-right-title" }, "预览", -1)),
|
|
303
|
-
l("div", ie, [
|
|
304
|
-
l("div", ce, [
|
|
305
|
-
l("img", {
|
|
306
|
-
src: e.cropperImgBase64,
|
|
307
|
-
class: "cropper-warp-right-value-img"
|
|
308
|
-
}, null, 8, pe)
|
|
309
|
-
]),
|
|
310
|
-
a[1] || (a[1] = l("div", { class: "cropper-warp-right-label" }, "100 x 100", -1))
|
|
311
|
-
]),
|
|
312
|
-
l("div", de, [
|
|
313
|
-
l("div", ue, [
|
|
314
|
-
l("img", {
|
|
315
|
-
src: e.cropperImgBase64,
|
|
316
|
-
class: "cropper-warp-right-value-img cropper-size"
|
|
317
|
-
}, null, 8, fe)
|
|
318
|
-
]),
|
|
319
|
-
a[2] || (a[2] = l("div", { class: "cropper-warp-right-label" }, "50 x 50", -1))
|
|
320
|
-
])
|
|
321
|
-
])
|
|
322
|
-
])
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
}, 8, ["modelValue"])
|
|
326
|
-
]);
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
}), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
|
|
330
|
-
__name: "index",
|
|
331
|
-
props: {
|
|
332
|
-
avatarUrl: {
|
|
333
|
-
type: String,
|
|
334
|
-
default: ""
|
|
335
|
-
},
|
|
336
|
-
avatarBlob: {
|
|
337
|
-
type: Blob,
|
|
338
|
-
default: ""
|
|
339
|
-
},
|
|
340
|
-
size: {
|
|
341
|
-
type: [String, Number],
|
|
342
|
-
default: "large"
|
|
343
|
-
},
|
|
344
|
-
showCropper: {
|
|
345
|
-
type: Boolean,
|
|
346
|
-
default: !0
|
|
347
|
-
},
|
|
348
|
-
banClick: {
|
|
349
|
-
type: Boolean,
|
|
350
|
-
default: !1
|
|
351
|
-
},
|
|
352
|
-
clickStop: {
|
|
353
|
-
type: Boolean,
|
|
354
|
-
default: !0
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
emits: ["submitImage", "deleteImage", "clickAvatar"],
|
|
358
|
-
setup(t, { emit: r }) {
|
|
359
|
-
const o = t, n = I(), p = I(null), e = r, i = () => !0, y = async () => {
|
|
360
|
-
var f;
|
|
361
|
-
o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
|
|
362
|
-
}, _ = async (f) => {
|
|
363
|
-
e("submitImage", f);
|
|
364
|
-
}, b = async () => {
|
|
365
|
-
e("deleteImage");
|
|
366
|
-
};
|
|
367
|
-
return (f, k) => {
|
|
368
|
-
const S = v("el-avatar");
|
|
369
|
-
return U(), E(q, null, [
|
|
370
|
-
u(S, {
|
|
371
|
-
src: t.avatarUrl,
|
|
372
|
-
onClick: y,
|
|
373
|
-
fit: "cover",
|
|
374
|
-
size: t.size,
|
|
375
|
-
ref_key: "avatarRef",
|
|
376
|
-
ref: p,
|
|
377
|
-
style: { background: "var(--user-avatar-bg)" },
|
|
378
|
-
alt: "头像查找失败",
|
|
379
|
-
onError: i
|
|
380
|
-
}, {
|
|
381
|
-
default: d(() => [
|
|
382
|
-
$(f.$slots, "avatarDefault", {}, void 0, !0)
|
|
383
|
-
]),
|
|
384
|
-
_: 3
|
|
385
|
-
}, 8, ["src", "size"]),
|
|
386
|
-
H(u(ve, {
|
|
387
|
-
ref_key: "cropperDialogRef",
|
|
388
|
-
ref: n,
|
|
389
|
-
title: "更改头像",
|
|
390
|
-
avatarUrl: t.avatarUrl,
|
|
391
|
-
onSubmitImage: _,
|
|
392
|
-
onDeleteImage: b
|
|
393
|
-
}, null, 8, ["avatarUrl"]), [
|
|
394
|
-
[M, t.showCropper && (o == null ? void 0 : o.clickStop)]
|
|
395
|
-
])
|
|
396
|
-
], 64);
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
}), _e = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-82946fb9"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
400
|
-
__proto__: null,
|
|
401
|
-
default: _e
|
|
402
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
403
|
-
export {
|
|
404
|
-
_e as A,
|
|
405
|
-
ve as C,
|
|
406
|
-
re as a,
|
|
407
|
-
Ce as b,
|
|
408
|
-
te as g,
|
|
409
|
-
Ie as i,
|
|
410
|
-
Z as u
|
|
411
|
-
};
|
package/dist/index-Ckqlxqaw.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-CGi0g-VN.js";
|
|
3
|
-
import { W as B } from "./index-XcH1poa0.js";
|
|
4
|
-
import { s as F } from "./index-11kpzK0A.js";
|
|
5
|
-
import { a as y } from "./index-5S_ATziA.js";
|
|
6
|
-
import { u as S, p as I, s as N } from "./index-Bw3sTXPI.js";
|
|
7
|
-
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const E = { class: "menu-module" }, M = {
|
|
9
|
-
class: "table-wrap",
|
|
10
|
-
"element-loading-text": "加载中..."
|
|
11
|
-
}, O = { class: "module-dialog-default" }, V = /* @__PURE__ */ C({
|
|
12
|
-
__name: "index",
|
|
13
|
-
setup(P) {
|
|
14
|
-
const e = k({ ...x }), s = v(null), c = S(I), { configMenu: a } = N(c);
|
|
15
|
-
return D(() => {
|
|
16
|
-
var r;
|
|
17
|
-
e.formatFormData(a.value), b(() => {
|
|
18
|
-
var o, l;
|
|
19
|
-
(l = s.value) == null || l.setCurrentKey((o = a.value) == null ? void 0 : o.path), c.setActiveMenuPath("/平台管理/菜单管理");
|
|
20
|
-
}), a.value && e.getInitialSubStructure((r = a.value) == null ? void 0 : r.path);
|
|
21
|
-
}), (r, o) => {
|
|
22
|
-
const l = i("el-tree"), d = i("el-splitter-panel"), f = i("el-splitter"), g = i("el-button"), h = T("loading");
|
|
23
|
-
return u(), m("div", E, [
|
|
24
|
-
t(f, null, {
|
|
25
|
-
default: n(() => [
|
|
26
|
-
t(d, {
|
|
27
|
-
size: 208,
|
|
28
|
-
class: "tree-wrap",
|
|
29
|
-
min: 200
|
|
30
|
-
}, {
|
|
31
|
-
default: n(() => [
|
|
32
|
-
t(l, {
|
|
33
|
-
ref_key: "treeRef",
|
|
34
|
-
ref: s,
|
|
35
|
-
data: e.treeData,
|
|
36
|
-
"expand-on-click-node": !1,
|
|
37
|
-
"node-key": "path",
|
|
38
|
-
props: { children: "children", label: "label", path: "path" },
|
|
39
|
-
"highlight-current": "",
|
|
40
|
-
"default-expand-all": "",
|
|
41
|
-
"check-on-click-leaf": !1,
|
|
42
|
-
"check-strictly": "",
|
|
43
|
-
onNodeClick: e.clickNodeTrigger
|
|
44
|
-
}, null, 8, ["data", "onNodeClick"])
|
|
45
|
-
]),
|
|
46
|
-
_: 1
|
|
47
|
-
}),
|
|
48
|
-
t(d, { min: 500 }, {
|
|
49
|
-
default: n(() => [
|
|
50
|
-
w((u(), m("div", M, [
|
|
51
|
-
t(B, {
|
|
52
|
-
itemData: e.menuPageData,
|
|
53
|
-
changedContent: e.changedRow,
|
|
54
|
-
operatingForm: e.operatingForm,
|
|
55
|
-
onOnFormChange: e.changeTrigger,
|
|
56
|
-
onChange: e.handleItemDataChange,
|
|
57
|
-
onClickTrigger: e.clickTrigger,
|
|
58
|
-
onOnButtonClick: e.clickRowButton
|
|
59
|
-
}, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
|
|
60
|
-
])), [
|
|
61
|
-
[h, e.tableLoading]
|
|
62
|
-
])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
})
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}),
|
|
69
|
-
t(F, {
|
|
70
|
-
class: "module-dialog",
|
|
71
|
-
title: e.dialogInfo.title,
|
|
72
|
-
visible: e.dialogInfo.show,
|
|
73
|
-
width: e.dialogInfo.width,
|
|
74
|
-
onBeforeDestroy: e.beforeDialogDestroy
|
|
75
|
-
}, {
|
|
76
|
-
default: n(() => [
|
|
77
|
-
p("div", O, [
|
|
78
|
-
t(y, {
|
|
79
|
-
rowContents: e.renderFormData,
|
|
80
|
-
isEnableWrap: !1,
|
|
81
|
-
isEdit: !0,
|
|
82
|
-
onChange: e.changeTrigger,
|
|
83
|
-
onClickTrigger: e.clickTrigger
|
|
84
|
-
}, null, 8, ["rowContents", "onChange", "onClickTrigger"])
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
footer: n(() => [
|
|
88
|
-
p("div", null, [
|
|
89
|
-
t(g, {
|
|
90
|
-
onClick: e.beforeDialogDestroy,
|
|
91
|
-
id: "themeBorderButton"
|
|
92
|
-
}, {
|
|
93
|
-
default: n(() => o[0] || (o[0] = [
|
|
94
|
-
_("取消")
|
|
95
|
-
])),
|
|
96
|
-
_: 1,
|
|
97
|
-
__: [0]
|
|
98
|
-
}, 8, ["onClick"]),
|
|
99
|
-
t(g, {
|
|
100
|
-
id: "themeButton",
|
|
101
|
-
onClick: e.clickSubmitForm
|
|
102
|
-
}, {
|
|
103
|
-
default: n(() => o[1] || (o[1] = [
|
|
104
|
-
_(" 确认 ")
|
|
105
|
-
])),
|
|
106
|
-
_: 1,
|
|
107
|
-
__: [1]
|
|
108
|
-
}, 8, ["onClick"])
|
|
109
|
-
])
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 8, ["title", "visible", "width", "onBeforeDestroy"])
|
|
113
|
-
]);
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}), G = /* @__PURE__ */ R(V, [["__scopeId", "data-v-74868a06"]]);
|
|
117
|
-
export {
|
|
118
|
-
G as default
|
|
119
|
-
};
|
package/dist/index-CpGn7sfE.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x, s as w, a as L } from "./index-Cflxz2Xv.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js";
|
|
4
|
-
import "./index-BHtNKL1L.js";
|
|
5
|
-
import { f as E } from "./index-5S_ATziA.js";
|
|
6
|
-
import { b as N, s as U } from "./index-Bw3sTXPI.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
import "./index-Ds6m_4JJ.js";
|
|
9
|
-
import "./request-1RPa2bBn.js";
|
|
10
|
-
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
|
|
12
|
-
__name: "index",
|
|
13
|
-
setup(G) {
|
|
14
|
-
const e = k({ ...I }), S = N(), { loginUserInfo: s } = U(S);
|
|
15
|
-
return D(() => {
|
|
16
|
-
var l;
|
|
17
|
-
e.getUserTableHeadersAsync(), e.refreshLoginUserInfoAsync((l = s == null ? void 0 : s.value) == null ? void 0 : l.id), x.value++;
|
|
18
|
-
}), (l, a) => {
|
|
19
|
-
var g, m, _, v, f, b, h;
|
|
20
|
-
const i = B("svg-icon"), c = T("loading");
|
|
21
|
-
return u(), y("div", z, [
|
|
22
|
-
t("div", F, [
|
|
23
|
-
t("div", H, [
|
|
24
|
-
t("div", K, [
|
|
25
|
-
p(o(w, {
|
|
26
|
-
size: 100,
|
|
27
|
-
disabled: e.uploadDisabled,
|
|
28
|
-
userInfo: n(s),
|
|
29
|
-
onSubmitImage: a[0] || (a[0] = (d) => e.submitImageAsync("avatarUrl", d))
|
|
30
|
-
}, null, 8, ["disabled", "userInfo"]), [
|
|
31
|
-
[c, e.avatarLoading]
|
|
32
|
-
])
|
|
33
|
-
])
|
|
34
|
-
]),
|
|
35
|
-
t("div", M, [
|
|
36
|
-
t("div", null, [
|
|
37
|
-
o(i, {
|
|
38
|
-
name: "userAccount",
|
|
39
|
-
style: { width: "15px", height: "15px" }
|
|
40
|
-
}),
|
|
41
|
-
t("span", null, r(((g = n(s)) == null ? void 0 : g.account) || (((m = n(s)) == null ? void 0 : m.姓名) ?? "未知")), 1)
|
|
42
|
-
]),
|
|
43
|
-
t("div", null, [
|
|
44
|
-
o(i, {
|
|
45
|
-
name: "role",
|
|
46
|
-
style: { width: "15px", height: "15px" }
|
|
47
|
-
}),
|
|
48
|
-
t("span", null, r(((_ = n(s)) == null ? void 0 : _.layer) === "superAdmin" ? "超级管理员" : ((v = n(s)) == null ? void 0 : v.角色名称) ?? "未知"), 1)
|
|
49
|
-
]),
|
|
50
|
-
t("div", null, [
|
|
51
|
-
o(i, {
|
|
52
|
-
name: "dept",
|
|
53
|
-
style: { width: "15px", height: "15px" }
|
|
54
|
-
}),
|
|
55
|
-
t("span", null, r(((f = n(s)) == null ? void 0 : f.部门名称) ?? "未知"), 1)
|
|
56
|
-
]),
|
|
57
|
-
t("div", null, [
|
|
58
|
-
o(i, {
|
|
59
|
-
name: "status",
|
|
60
|
-
style: { width: "15px", height: "15px" }
|
|
61
|
-
}),
|
|
62
|
-
t("span", null, r(((b = n(s)) == null ? void 0 : b.layer) === "superAdmin" ? "启用" : ((h = n(s)) == null ? void 0 : h.状态) ?? "未知"), 1)
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
t("div", R, [
|
|
66
|
-
p(o(L, {
|
|
67
|
-
userInfo: n(s),
|
|
68
|
-
itemData: e.itemData,
|
|
69
|
-
onClickSignButton: e.clickSignButton,
|
|
70
|
-
onBeforeDestroy: e.beforeSignDestroy,
|
|
71
|
-
onClickSubmitSign: a[1] || (a[1] = (d) => e.submitImageAsync("signature", d))
|
|
72
|
-
}, null, 8, ["userInfo", "itemData", "onClickSignButton", "onBeforeDestroy"]), [
|
|
73
|
-
[c, e.signatureLoading]
|
|
74
|
-
])
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
p((u(), y("div", j, [
|
|
78
|
-
(u(), A(E, {
|
|
79
|
-
key: n(x),
|
|
80
|
-
tabsContents: e.tabsContents,
|
|
81
|
-
onChangeTrigger: e.changeFormTrigger,
|
|
82
|
-
onClickTrigger: e.clickTabButton
|
|
83
|
-
}, null, 8, ["tabsContents", "onChangeTrigger", "onClickTrigger"]))
|
|
84
|
-
])), [
|
|
85
|
-
[c, e.loading]
|
|
86
|
-
])
|
|
87
|
-
]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}), te = /* @__PURE__ */ V(q, [["__scopeId", "data-v-3bdf3f4b"]]);
|
|
91
|
-
export {
|
|
92
|
-
te as default
|
|
93
|
-
};
|