ss-component-new 1.3.700 → 1.3.702
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-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
- package/dist/index-BZ6XZp4O.js +182 -0
- package/dist/index-DMqUY4yR.js +27 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js → index-DXYV8CAc.js} +112561 -111278
- package/dist/index-Dad_IdSm.js +213 -0
- package/dist/index-Nxu5ivW5.js +1044 -0
- package/dist/index-T_MmKXF1.js +50 -0
- package/dist/menu-BYmz2cKN.js +5229 -0
- package/dist/platform-C9131Sg-.js +11490 -0
- package/dist/ss-component.css +8 -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 +8 -6
- package/public/config.js +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/MTLLoader-DzQM5Czw.js +0 -657
- package/dist/URDFLoader-CPXooEPU.js +0 -2299
- package/dist/animationData-DOIhMG9C.js +0 -83
- package/dist/array-lig-X3M9.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-DwCBmDct.js +0 -1026
- 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-B-AFi1eL.js +0 -873
- package/dist/index-B0H3C7WG.js +0 -103
- package/dist/index-BDRDpsgF.js +0 -25297
- package/dist/index-BHtNKL1L.js +0 -27
- package/dist/index-BJ3RS3n_.js +0 -63004
- package/dist/index-BJLCuYEK.js +0 -84
- package/dist/index-BbyrFzEO.js +0 -93
- package/dist/index-Bn1_Pbpm.js +0 -98
- package/dist/index-BniHrGik.js +0 -107
- package/dist/index-BooO2Bml.js +0 -78
- package/dist/index-Bw3sTXPI.js +0 -8993
- package/dist/index-C7sOKXGv.js +0 -48
- package/dist/index-CGUz8yrZ.js +0 -20503
- 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-CjlKFGAF.js +0 -470
- package/dist/index-CydXQbtX.js +0 -622
- package/dist/index-D9XVxZlg.js +0 -411
- 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-Ds6m_4JJ.js +0 -28500
- package/dist/index-DupTchhl.js +0 -1000
- package/dist/index-DxduRnLV.js +0 -93
- package/dist/index-DyCq_odP.js +0 -331
- package/dist/index-TDMzk3L7.js +0 -83
- package/dist/index-UB_oCdlo.js +0 -62
- package/dist/index-VV2Ao7jZ.js +0 -119
- package/dist/index-YjBTGOkO.js +0 -61
- package/dist/index-erE4kNF5.js +0 -30
- package/dist/index-iY5h1bpA.js +0 -572
- package/dist/index-jbOjjV0j.js +0 -447
- package/dist/index-rlStojTL.js +0 -52
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/isString-0ZglyOfu.js +0 -8
- package/dist/localIcon-D5UoFBU5.js +0 -76
- package/dist/main-Cepry4zn.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/request-1RPa2bBn.js +0 -9048
- package/dist/threeModel-DcUyC6Vh.js +0 -1109
- package/dist/threePreview-CbGqCMch.js +0 -2810
- package/dist/threeSceneView-BDyFpkq-.js +0 -1290
- package/dist/threeSceneViewForCPMPIP-DUSufDRq.js +0 -539
- package/dist/threeTrackPathView-yLEUuGXc.js +0 -620
- package/dist/threeViewerHost-BXdZ6Wgi.js +0 -233
- package/dist/urdfTree-C6mx4T9t.js +0 -254
- package/dist/workpieceTreePanel-DjR9f2D1.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/config.js
CHANGED
|
@@ -5,7 +5,7 @@ window.__env__ = {
|
|
|
5
5
|
"VITE_PUBLIC_PATH": "",
|
|
6
6
|
"VITE_SM_PUBLIC_KEY": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312",
|
|
7
7
|
"VITE_API_URL": "http://222.92.178.198:62001",
|
|
8
|
-
"VITE_API_NEW_URL": "http://222.92.178.198:
|
|
8
|
+
"VITE_API_NEW_URL": "http://222.92.178.198:63003",
|
|
9
9
|
"VITE_REPORT_URL": "http://139.196.154.85:20031",
|
|
10
10
|
"VITE_FACE_RECOGNITION_API_URL": "http://139.196.154.85:20015",
|
|
11
11
|
"VITE_DEFAULT_USER": "",
|
|
@@ -1,4 +1,208 @@
|
|
|
1
|
-
|
|
1
|
+
import { ref as R, reactive as L, watch as O, resolveComponent as X, createBlock as Y, openBlock as o, normalizeStyle as P, withCtx as B, renderSlot as D, createElementBlock as u, createCommentVNode as r, withModifiers as s, createElementVNode as A, toDisplayString as U } from "vue";
|
|
2
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const q = { class: "dialog-title" }, G = {
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
title: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
dialogWidth: {
|
|
11
|
+
type: [Number, String],
|
|
12
|
+
default: 600
|
|
13
|
+
},
|
|
14
|
+
visible: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
fullScreen: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
// 仅在 resizable=true 时生效
|
|
23
|
+
dialogHeight: {
|
|
24
|
+
type: [Number, String],
|
|
25
|
+
default: 600
|
|
26
|
+
},
|
|
27
|
+
// 仅在 resizable=true 时生效
|
|
28
|
+
minWidth: {
|
|
29
|
+
type: [Number, String],
|
|
30
|
+
default: 400
|
|
31
|
+
},
|
|
32
|
+
// 仅在 resizable=true 时生效
|
|
33
|
+
minHeight: {
|
|
34
|
+
type: [Number, String],
|
|
35
|
+
default: 300
|
|
36
|
+
},
|
|
37
|
+
showClose: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
closeOnClickModal: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
closeOnPressEscape: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !0
|
|
48
|
+
},
|
|
49
|
+
modalClass: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: ""
|
|
52
|
+
},
|
|
53
|
+
alignCenter: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !1
|
|
56
|
+
},
|
|
57
|
+
appendToBody: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
zIndex: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: void 0
|
|
64
|
+
},
|
|
65
|
+
// 是否允许四边拖拽改变弹窗大小
|
|
66
|
+
resizable: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
emits: ["beforeDestroy"],
|
|
72
|
+
setup(y, { emit: M }) {
|
|
73
|
+
const e = y, T = M, x = R(!1), i = L({
|
|
74
|
+
width: void 0,
|
|
75
|
+
height: void 0,
|
|
76
|
+
minWidth: void 0,
|
|
77
|
+
minHeight: void 0
|
|
78
|
+
});
|
|
79
|
+
let E = !1, v = "", W = 0, k = 0, g = 0, h = 0, F = 0, p = 0, z = null;
|
|
80
|
+
const N = (l) => {
|
|
81
|
+
var a, n;
|
|
82
|
+
const t = (n = (a = l == null ? void 0 : l.target) == null ? void 0 : a.closest) == null ? void 0 : n.call(a, ".el-dialog");
|
|
83
|
+
return t || null;
|
|
84
|
+
}, $ = (l) => {
|
|
85
|
+
if (!l || l === "none")
|
|
86
|
+
return { tx: 0, ty: 0 };
|
|
87
|
+
let t = l.match(/matrix\(([^)]+)\)/);
|
|
88
|
+
if (t) {
|
|
89
|
+
const a = t[1].split(",").map((n) => Number(n.trim()));
|
|
90
|
+
return { tx: (a == null ? void 0 : a[4]) || 0, ty: (a == null ? void 0 : a[5]) || 0 };
|
|
91
|
+
}
|
|
92
|
+
if (t = l.match(/matrix3d\(([^)]+)\)/), t) {
|
|
93
|
+
const a = t[1].split(",").map((n) => Number(n.trim()));
|
|
94
|
+
return { tx: (a == null ? void 0 : a[12]) || 0, ty: (a == null ? void 0 : a[13]) || 0 };
|
|
95
|
+
}
|
|
96
|
+
return t = l.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/), t ? { tx: Number(t[1]) || 0, ty: Number(t[2]) || 0 } : { tx: 0, ty: 0 };
|
|
97
|
+
}, V = (l, t, a) => {
|
|
98
|
+
l.style.transform = `translate(${t}px, ${a}px)`;
|
|
99
|
+
}, m = (l, t) => {
|
|
100
|
+
if (!e.resizable) return;
|
|
101
|
+
const a = N(l);
|
|
102
|
+
if (!a) return;
|
|
103
|
+
z = a, E = !0, v = t, W = l.clientX, k = l.clientY;
|
|
104
|
+
const n = a.getBoundingClientRect();
|
|
105
|
+
g = n.width, h = n.height;
|
|
106
|
+
const c = window.getComputedStyle(a), { tx: d, ty: b } = $(c.transform);
|
|
107
|
+
F = d, p = b, document.addEventListener("mousemove", S), document.addEventListener("mouseup", H);
|
|
108
|
+
}, S = (l) => {
|
|
109
|
+
if (!E || !z) return;
|
|
110
|
+
const t = l.clientX - W, a = l.clientY - k, n = parseInt(i.minWidth || "0", 10) || 0, c = parseInt(i.minHeight || "0", 10) || 0;
|
|
111
|
+
let d = g, b = h, C = F, w = p;
|
|
112
|
+
if (v.includes("right") && (d = Math.max(n, g + t)), v.includes("bottom") && (b = Math.max(c, h + a)), v.includes("left")) {
|
|
113
|
+
const f = g - t;
|
|
114
|
+
f < n ? (d = n, C = F + (g - n)) : (d = f, C = F + t);
|
|
115
|
+
}
|
|
116
|
+
if (v.includes("top")) {
|
|
117
|
+
const f = h - a;
|
|
118
|
+
f < c ? (b = c, w = p + (h - c)) : (b = f, w = p + a);
|
|
119
|
+
}
|
|
120
|
+
i.width = `${d}px`, i.height = `${b}px`, V(z, C, w);
|
|
121
|
+
}, H = () => {
|
|
122
|
+
E = !1, v = "", z = null, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", H);
|
|
123
|
+
}, I = () => {
|
|
124
|
+
T("beforeDestroy");
|
|
125
|
+
};
|
|
126
|
+
return O(
|
|
127
|
+
() => e == null ? void 0 : e.visible,
|
|
128
|
+
(l) => {
|
|
129
|
+
x.value = l, l && (e.resizable ? (i.width = typeof e.dialogWidth == "number" ? `${e.dialogWidth}px` : e.dialogWidth, i.height = typeof e.dialogHeight == "number" ? `${e.dialogHeight}px` : e.dialogHeight, i.minWidth = typeof e.minWidth == "number" ? `${e.minWidth}px` : e.minWidth, i.minHeight = typeof e.minHeight == "number" ? `${e.minHeight}px` : e.minHeight) : (i.width = void 0, i.height = void 0, i.minWidth = void 0, i.minHeight = void 0));
|
|
130
|
+
},
|
|
131
|
+
{ deep: !0, immediate: !0 }
|
|
132
|
+
), (l, t) => {
|
|
133
|
+
const a = X("el-dialog");
|
|
134
|
+
return o(), Y(a, {
|
|
135
|
+
modelValue: x.value,
|
|
136
|
+
"onUpdate:modelValue": t[8] || (t[8] = (n) => x.value = n),
|
|
137
|
+
width: e == null ? void 0 : e.dialogWidth,
|
|
138
|
+
"before-close": I,
|
|
139
|
+
draggable: "",
|
|
140
|
+
style: P(e != null && e.resizable ? i : void 0),
|
|
141
|
+
fullscreen: e == null ? void 0 : e.fullScreen,
|
|
142
|
+
"destroy-on-close": !0,
|
|
143
|
+
"show-close": e == null ? void 0 : e.showClose,
|
|
144
|
+
"close-on-click-modal": e == null ? void 0 : e.closeOnClickModal,
|
|
145
|
+
"modal-class": y.modalClass,
|
|
146
|
+
"close-on-press-escape": e == null ? void 0 : e.closeOnPressEscape,
|
|
147
|
+
"align-center": e == null ? void 0 : e.alignCenter,
|
|
148
|
+
"append-to-body": y.appendToBody,
|
|
149
|
+
"z-index": e == null ? void 0 : e.zIndex
|
|
150
|
+
}, {
|
|
151
|
+
header: B(() => [
|
|
152
|
+
A("div", q, U(e == null ? void 0 : e.title), 1),
|
|
153
|
+
D(l.$slots, "header", {}, void 0, !0)
|
|
154
|
+
]),
|
|
155
|
+
footer: B(() => [
|
|
156
|
+
D(l.$slots, "footer", {}, void 0, !0)
|
|
157
|
+
]),
|
|
158
|
+
default: B(() => [
|
|
159
|
+
D(l.$slots, "default", {}, void 0, !0),
|
|
160
|
+
e.resizable ? (o(), u("div", {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: "resizable-handle top",
|
|
163
|
+
onMousedown: t[0] || (t[0] = s((n) => m(n, "top"), ["stop"]))
|
|
164
|
+
}, null, 32)) : r("", !0),
|
|
165
|
+
e.resizable ? (o(), u("div", {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: "resizable-handle right",
|
|
168
|
+
onMousedown: t[1] || (t[1] = s((n) => m(n, "right"), ["stop"]))
|
|
169
|
+
}, null, 32)) : r("", !0),
|
|
170
|
+
e.resizable ? (o(), u("div", {
|
|
171
|
+
key: 2,
|
|
172
|
+
class: "resizable-handle bottom",
|
|
173
|
+
onMousedown: t[2] || (t[2] = s((n) => m(n, "bottom"), ["stop"]))
|
|
174
|
+
}, null, 32)) : r("", !0),
|
|
175
|
+
e.resizable ? (o(), u("div", {
|
|
176
|
+
key: 3,
|
|
177
|
+
class: "resizable-handle left",
|
|
178
|
+
onMousedown: t[3] || (t[3] = s((n) => m(n, "left"), ["stop"]))
|
|
179
|
+
}, null, 32)) : r("", !0),
|
|
180
|
+
e.resizable ? (o(), u("div", {
|
|
181
|
+
key: 4,
|
|
182
|
+
class: "resizable-handle top-left",
|
|
183
|
+
onMousedown: t[4] || (t[4] = s((n) => m(n, "top-left"), ["stop"]))
|
|
184
|
+
}, null, 32)) : r("", !0),
|
|
185
|
+
e.resizable ? (o(), u("div", {
|
|
186
|
+
key: 5,
|
|
187
|
+
class: "resizable-handle top-right",
|
|
188
|
+
onMousedown: t[5] || (t[5] = s((n) => m(n, "top-right"), ["stop"]))
|
|
189
|
+
}, null, 32)) : r("", !0),
|
|
190
|
+
e.resizable ? (o(), u("div", {
|
|
191
|
+
key: 6,
|
|
192
|
+
class: "resizable-handle bottom-left",
|
|
193
|
+
onMousedown: t[6] || (t[6] = s((n) => m(n, "bottom-left"), ["stop"]))
|
|
194
|
+
}, null, 32)) : r("", !0),
|
|
195
|
+
e.resizable ? (o(), u("div", {
|
|
196
|
+
key: 7,
|
|
197
|
+
class: "resizable-handle bottom-right",
|
|
198
|
+
onMousedown: t[7] || (t[7] = s((n) => m(n, "bottom-right"), ["stop"]))
|
|
199
|
+
}, null, 32)) : r("", !0)
|
|
200
|
+
]),
|
|
201
|
+
_: 3
|
|
202
|
+
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center", "append-to-body", "z-index"]);
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}, Q = /* @__PURE__ */ j(G, [["__scopeId", "data-v-7917fe7b"]]), Z = [
|
|
2
206
|
{
|
|
3
207
|
name: "--vertical-menu-bg",
|
|
4
208
|
value: "transparent"
|
|
@@ -95,7 +299,7 @@ const e = [
|
|
|
95
299
|
name: "--vertical-menu-padding",
|
|
96
300
|
value: "0.5rem"
|
|
97
301
|
}
|
|
98
|
-
],
|
|
302
|
+
], _ = [
|
|
99
303
|
{
|
|
100
304
|
name: "--horizontal-menu-bg",
|
|
101
305
|
value: "#333333"
|
|
@@ -151,7 +355,7 @@ const e = [
|
|
|
151
355
|
name: "--horizontal-menuitem-font",
|
|
152
356
|
value: "var(--ssComponent-font-family)"
|
|
153
357
|
}
|
|
154
|
-
],
|
|
358
|
+
], ee = [
|
|
155
359
|
{
|
|
156
360
|
name: "--vertical-menu-bg",
|
|
157
361
|
value: "transparent"
|
|
@@ -248,7 +452,7 @@ const e = [
|
|
|
248
452
|
name: "--vertical-menu-padding",
|
|
249
453
|
value: "0.5rem"
|
|
250
454
|
}
|
|
251
|
-
],
|
|
455
|
+
], te = [
|
|
252
456
|
{
|
|
253
457
|
name: "--horizontal-menu-bg",
|
|
254
458
|
value: "#333333"
|
|
@@ -304,7 +508,7 @@ const e = [
|
|
|
304
508
|
name: "--horizontal-menuitem-font",
|
|
305
509
|
value: "var(--ssComponent-font-family)"
|
|
306
510
|
}
|
|
307
|
-
],
|
|
511
|
+
], ne = [
|
|
308
512
|
{
|
|
309
513
|
name: "--vertical-menu-bg",
|
|
310
514
|
value: "transparent"
|
|
@@ -401,7 +605,7 @@ const e = [
|
|
|
401
605
|
name: "--vertical-menu-padding",
|
|
402
606
|
value: "0.5rem"
|
|
403
607
|
}
|
|
404
|
-
],
|
|
608
|
+
], ae = [
|
|
405
609
|
{
|
|
406
610
|
name: "--horizontal-menu-bg",
|
|
407
611
|
value: "#333333"
|
|
@@ -457,7 +661,7 @@ const e = [
|
|
|
457
661
|
name: "--horizontal-menuitem-font",
|
|
458
662
|
value: "var(--ssComponent-font-family)"
|
|
459
663
|
}
|
|
460
|
-
],
|
|
664
|
+
], le = [
|
|
461
665
|
{
|
|
462
666
|
name: "--user-avatar-bg",
|
|
463
667
|
value: "linear-gradient(to bottom, #73D2FF,#235096)"
|
|
@@ -498,7 +702,7 @@ const e = [
|
|
|
498
702
|
name: "--ssComponent-theme-watermark",
|
|
499
703
|
value: 'url("@/assets/image/watermark-blue.png")'
|
|
500
704
|
}
|
|
501
|
-
],
|
|
705
|
+
], ie = [
|
|
502
706
|
{
|
|
503
707
|
name: "--user-avatar-bg",
|
|
504
708
|
value: "linear-gradient(to bottom, #96E13C,#196E05)"
|
|
@@ -540,7 +744,7 @@ const e = [
|
|
|
540
744
|
name: "--ssComponent-theme-watermark",
|
|
541
745
|
value: 'url("@/assets/image/watermark.png")'
|
|
542
746
|
}
|
|
543
|
-
],
|
|
747
|
+
], oe = [
|
|
544
748
|
{
|
|
545
749
|
name: "--user-avatar-bg",
|
|
546
750
|
value: "linear-gradient(to bottom, #96E13C,#196E05)"
|
|
@@ -584,13 +788,14 @@ const e = [
|
|
|
584
788
|
}
|
|
585
789
|
];
|
|
586
790
|
export {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
791
|
+
Z as a,
|
|
792
|
+
le as b,
|
|
793
|
+
ie as c,
|
|
794
|
+
te as d,
|
|
795
|
+
ee as e,
|
|
796
|
+
ae as f,
|
|
797
|
+
ne as g,
|
|
798
|
+
_ as h,
|
|
799
|
+
Q as s,
|
|
800
|
+
oe as t
|
|
596
801
|
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as j, ref as D, normalizeStyle as g } from "vue";
|
|
2
|
+
import { u as G, p as w, s as b, F as H } from "./menu-BYmz2cKN.js";
|
|
3
|
+
import { S as $ } from "./index-DMqUY4yR.js";
|
|
4
|
+
import "./index-DXYV8CAc.js";
|
|
5
|
+
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const K = /* @__PURE__ */ q({
|
|
7
|
+
__name: "menuItem",
|
|
8
|
+
props: {
|
|
9
|
+
menuList: {
|
|
10
|
+
// 注意prop变量类型定义的写法:PropType
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: ["clickMenu", "openMenu", "closeMenu"],
|
|
16
|
+
setup(i, { emit: x }) {
|
|
17
|
+
const p = x, m = (l) => {
|
|
18
|
+
p("clickMenu", l);
|
|
19
|
+
}, L = (l) => {
|
|
20
|
+
p("openMenu", l);
|
|
21
|
+
}, M = (l) => {
|
|
22
|
+
p("closeMenu", l);
|
|
23
|
+
};
|
|
24
|
+
return (l, S) => {
|
|
25
|
+
const c = u("MenuItem", !0), a = u("el-sub-menu"), _ = u("el-menu-item");
|
|
26
|
+
return s(!0), k(y, null, C(i.menuList, (e) => (s(), k(y, null, [
|
|
27
|
+
e.show && e.children && e.children.length > 0 ? (s(), f(a, {
|
|
28
|
+
index: e.path,
|
|
29
|
+
key: e.path
|
|
30
|
+
}, {
|
|
31
|
+
title: o(() => [
|
|
32
|
+
r($, {
|
|
33
|
+
name: e.icon ?? ((e == null ? void 0 : e.level) <= 2 ? "default" : ""),
|
|
34
|
+
class: "menu-icon"
|
|
35
|
+
}, null, 8, ["name"]),
|
|
36
|
+
d(l.$slots, "title", { menu: e })
|
|
37
|
+
]),
|
|
38
|
+
default: o(() => [
|
|
39
|
+
r(c, {
|
|
40
|
+
menuList: e.children,
|
|
41
|
+
onClickMenu: m,
|
|
42
|
+
onOpenMenu: L,
|
|
43
|
+
onCloseMenu: M
|
|
44
|
+
}, O({ _: 2 }, [
|
|
45
|
+
C(l.$slots, (I, h) => ({
|
|
46
|
+
name: h,
|
|
47
|
+
fn: o((R) => [
|
|
48
|
+
d(l.$slots, h, P({ ref_for: !0 }, R))
|
|
49
|
+
])
|
|
50
|
+
}))
|
|
51
|
+
]), 1032, ["menuList"])
|
|
52
|
+
]),
|
|
53
|
+
_: 2
|
|
54
|
+
}, 1032, ["index"])) : e.show ? (s(), f(_, {
|
|
55
|
+
index: e.path,
|
|
56
|
+
key: e.path,
|
|
57
|
+
onClick: (I) => m(e)
|
|
58
|
+
}, {
|
|
59
|
+
title: o(() => [
|
|
60
|
+
d(l.$slots, "title", { menu: e })
|
|
61
|
+
]),
|
|
62
|
+
default: o(() => [
|
|
63
|
+
r($, {
|
|
64
|
+
name: e.icon ?? ((e == null ? void 0 : e.level) <= 2 ? "default" : ""),
|
|
65
|
+
class: "menu-icon"
|
|
66
|
+
}, null, 8, ["name"])
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["index", "onClick"])) : z("", !0)
|
|
70
|
+
], 64))), 256);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}), N = /* @__PURE__ */ q({
|
|
74
|
+
__name: "index",
|
|
75
|
+
props: {
|
|
76
|
+
menuList: {
|
|
77
|
+
// 注意prop变量类型定义的写法:PropType
|
|
78
|
+
type: Array,
|
|
79
|
+
default: () => []
|
|
80
|
+
},
|
|
81
|
+
mode: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: "vertical"
|
|
84
|
+
},
|
|
85
|
+
isCollapse: Boolean,
|
|
86
|
+
uniqueOpened: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
emits: ["clickMenu", "openMenu", "closeMenu", "selectMenu"],
|
|
92
|
+
setup(i, { expose: x, emit: p }) {
|
|
93
|
+
const m = G(w), { activeMenuPath: L, activeTopMenuPath: M } = b(m), l = H(w), { routeToChildPath: S } = b(l), c = i, a = p, _ = (n) => {
|
|
94
|
+
a("clickMenu", n);
|
|
95
|
+
}, e = (n) => {
|
|
96
|
+
a("openMenu", n);
|
|
97
|
+
}, I = (n) => {
|
|
98
|
+
a("selectMenu", n);
|
|
99
|
+
}, h = (n) => {
|
|
100
|
+
a("closeMenu", n);
|
|
101
|
+
}, R = j(() => S.value ? (c == null ? void 0 : c.mode) === "vertical" ? S.value : M.value : (c == null ? void 0 : c.mode) === "vertical" ? L.value : M.value), v = D(null);
|
|
102
|
+
return x({
|
|
103
|
+
handleResize: () => {
|
|
104
|
+
var n;
|
|
105
|
+
(n = v.value) == null || n.handleResize();
|
|
106
|
+
},
|
|
107
|
+
openMenuRefByIndex: (n) => {
|
|
108
|
+
v.value && v.value.open(n);
|
|
109
|
+
}
|
|
110
|
+
}), (n, W) => {
|
|
111
|
+
const T = u("el-sub-menu"), A = u("el-menu-item"), F = u("el-menu");
|
|
112
|
+
return s(), f(F, {
|
|
113
|
+
ref_key: "menuRef",
|
|
114
|
+
ref: v,
|
|
115
|
+
class: "menu-wrap",
|
|
116
|
+
mode: i.mode,
|
|
117
|
+
"default-active": R.value,
|
|
118
|
+
"unique-opened": i.uniqueOpened,
|
|
119
|
+
"collapse-transition": !1,
|
|
120
|
+
"popper-class": "ss-menu-popper",
|
|
121
|
+
"popper-offset": 12,
|
|
122
|
+
ellipsis: !0,
|
|
123
|
+
collapse: i.isCollapse,
|
|
124
|
+
onOpen: e,
|
|
125
|
+
onClose: h,
|
|
126
|
+
onSelect: I
|
|
127
|
+
}, {
|
|
128
|
+
default: o(() => [
|
|
129
|
+
(s(!0), k(y, null, C(i.menuList, (t) => (s(), k(y, null, [
|
|
130
|
+
t.show && t.children && t.children.length > 0 ? (s(), f(T, {
|
|
131
|
+
index: t.path,
|
|
132
|
+
key: t.path,
|
|
133
|
+
style: g(t.style)
|
|
134
|
+
}, {
|
|
135
|
+
title: o(() => [
|
|
136
|
+
r($, {
|
|
137
|
+
name: t.icon ?? ((t == null ? void 0 : t.level) <= 2 ? "default" : ""),
|
|
138
|
+
class: "menu-icon"
|
|
139
|
+
}, null, 8, ["name"]),
|
|
140
|
+
d(n.$slots, "title", { menu: t }, void 0, !0)
|
|
141
|
+
]),
|
|
142
|
+
default: o(() => [
|
|
143
|
+
r(K, {
|
|
144
|
+
menuList: t.children,
|
|
145
|
+
onClickMenu: _
|
|
146
|
+
}, O({ _: 2 }, [
|
|
147
|
+
C(n.$slots, (V, B) => ({
|
|
148
|
+
name: B,
|
|
149
|
+
fn: o((E) => [
|
|
150
|
+
d(n.$slots, B, P({ ref_for: !0 }, E), void 0, !0)
|
|
151
|
+
])
|
|
152
|
+
}))
|
|
153
|
+
]), 1032, ["menuList"])
|
|
154
|
+
]),
|
|
155
|
+
_: 2
|
|
156
|
+
}, 1032, ["index", "style"])) : t.show ? (s(), f(A, {
|
|
157
|
+
index: t.path,
|
|
158
|
+
key: t.path,
|
|
159
|
+
style: g(t.style),
|
|
160
|
+
onClick: (V) => _(t)
|
|
161
|
+
}, {
|
|
162
|
+
title: o(() => [
|
|
163
|
+
d(n.$slots, "title", { menu: t }, void 0, !0)
|
|
164
|
+
]),
|
|
165
|
+
default: o(() => [
|
|
166
|
+
r($, {
|
|
167
|
+
name: t.icon ?? ((t == null ? void 0 : t.level) <= 2 ? "default" : ""),
|
|
168
|
+
class: "menu-icon"
|
|
169
|
+
}, null, 8, ["name"])
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["index", "style", "onClick"])) : z("", !0)
|
|
173
|
+
], 64))), 256))
|
|
174
|
+
]),
|
|
175
|
+
_: 3
|
|
176
|
+
}, 8, ["mode", "default-active", "unique-opened", "collapse"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}), ne = /* @__PURE__ */ J(N, [["__scopeId", "data-v-1566b485"]]);
|
|
180
|
+
export {
|
|
181
|
+
ne as default
|
|
182
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as r, computed as s, createElementBlock as c, openBlock as i, mergeProps as m, createElementVNode as l } from "vue";
|
|
2
|
+
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const d = ["xlink:href"], u = /* @__PURE__ */ r({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
name: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
className: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(n) {
|
|
16
|
+
const e = n, t = s(() => `#icon-${e.name}`), o = s(() => e.className ? `svg-icon ${e.className}` : "svg-icon");
|
|
17
|
+
return (a, _) => (i(), c("svg", m({
|
|
18
|
+
class: o.value,
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}, a.$attrs), [
|
|
21
|
+
l("use", { "xlink:href": t.value }, null, 8, d)
|
|
22
|
+
], 16));
|
|
23
|
+
}
|
|
24
|
+
}), v = /* @__PURE__ */ p(u, [["__scopeId", "data-v-7820d83a"]]);
|
|
25
|
+
export {
|
|
26
|
+
v as S
|
|
27
|
+
};
|