yc-project-template 1.0.0

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.
@@ -0,0 +1,1062 @@
1
+ import { a3 as we, a4 as N, a5 as re, H as ke, I as A, a6 as ae, a7 as je, a8 as ye, a9 as Ye, D as Oe, X as ce, C as Qe, aa as Ge, ab as Ae, A as ze, O as U, ac as Be, ad as $e, ae as Q, G as Z, af as Je, ag as et, N as Re, K as tt, Y as nt, ah as ot, ai as lt, aj as st, F as at, ak as ut, al as Ee, am as rt, S as ct, L as it, a2 as xe, a as dt, u as He, an as be, _ as fe, b as pt, ao as mt, ap as ft } from "./globalComponents-NGC1jMmM.js";
2
+ import { defineComponent as X, createBlock as K, openBlock as L, Transition as Ve, mergeProps as vt, withCtx as _, renderSlot as V, computed as h, getCurrentInstance as Te, inject as ie, ref as x, reactive as Le, watch as G, provide as ge, onMounted as _e, onBeforeUnmount as Ke, h as k, Fragment as $, withDirectives as De, vShow as ht, nextTick as Ce, watchEffect as yt, toRef as bt, createElementBlock as R, normalizeClass as de, unref as g, createElementVNode as T, createTextVNode as Ie, toDisplayString as pe, createVNode as E, resolveComponent as Fe, renderList as St, createCommentVNode as Mt, resolveDynamicComponent as gt } from "vue";
3
+ import { E as It, a as kt, b as Ot } from "./el-dropdown-item-zXcF1C0U.js";
4
+ import { ElMessage as xt } from "element-plus";
5
+ import { p as Tt } from "./rsaCrypto-B9Iz2FB1.js";
6
+ import { u as Lt } from "./useMenu-CCb03now.js";
7
+ let _t = class {
8
+ constructor(t, l) {
9
+ this.parent = t, this.domNode = l, this.subIndex = 0, this.subIndex = 0, this.init();
10
+ }
11
+ init() {
12
+ this.subMenuItems = this.domNode.querySelectorAll("li"), this.addListeners();
13
+ }
14
+ gotoSubIndex(t) {
15
+ t === this.subMenuItems.length ? t = 0 : t < 0 && (t = this.subMenuItems.length - 1), this.subMenuItems[t].focus(), this.subIndex = t;
16
+ }
17
+ addListeners() {
18
+ const t = this.parent.domNode;
19
+ Array.prototype.forEach.call(this.subMenuItems, (l) => {
20
+ l.addEventListener("keydown", (n) => {
21
+ const c = we(n);
22
+ let v = !1;
23
+ switch (c) {
24
+ case N.down: {
25
+ this.gotoSubIndex(this.subIndex + 1), v = !0;
26
+ break;
27
+ }
28
+ case N.up: {
29
+ this.gotoSubIndex(this.subIndex - 1), v = !0;
30
+ break;
31
+ }
32
+ case N.tab: {
33
+ re(t, "mouseleave");
34
+ break;
35
+ }
36
+ case N.enter:
37
+ case N.numpadEnter:
38
+ case N.space: {
39
+ v = !0, n.currentTarget.click();
40
+ break;
41
+ }
42
+ }
43
+ return v && (n.preventDefault(), n.stopPropagation()), !1;
44
+ });
45
+ });
46
+ }
47
+ }, Ct = class {
48
+ constructor(t, l) {
49
+ this.domNode = t, this.submenu = null, this.submenu = null, this.init(l);
50
+ }
51
+ init(t) {
52
+ this.domNode.setAttribute("tabindex", "0");
53
+ const l = this.domNode.querySelector(`.${t}-menu`);
54
+ l && (this.submenu = new _t(this, l)), this.addListeners();
55
+ }
56
+ addListeners() {
57
+ this.domNode.addEventListener("keydown", (t) => {
58
+ const l = we(t);
59
+ let n = !1;
60
+ switch (l) {
61
+ case N.down: {
62
+ re(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(0), n = !0;
63
+ break;
64
+ }
65
+ case N.up: {
66
+ re(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1), n = !0;
67
+ break;
68
+ }
69
+ case N.tab: {
70
+ re(t.currentTarget, "mouseleave");
71
+ break;
72
+ }
73
+ case N.enter:
74
+ case N.numpadEnter:
75
+ case N.space: {
76
+ n = !0, t.currentTarget.click();
77
+ break;
78
+ }
79
+ }
80
+ n && t.preventDefault();
81
+ });
82
+ }
83
+ }, Nt = class {
84
+ constructor(t, l) {
85
+ this.domNode = t, this.init(l);
86
+ }
87
+ init(t) {
88
+ const l = this.domNode.childNodes;
89
+ Array.from(l).forEach((n) => {
90
+ n.nodeType === 1 && new Ct(n, t);
91
+ });
92
+ }
93
+ };
94
+ const Pt = X({
95
+ name: "ElMenuCollapseTransition",
96
+ __name: "menu-collapse-transition",
97
+ setup(e) {
98
+ const t = A("menu"), l = {
99
+ onBeforeEnter: (n) => n.style.opacity = "0.2",
100
+ onEnter(n, c) {
101
+ ae(n, `${t.namespace.value}-opacity-transition`), n.style.opacity = "1", c();
102
+ },
103
+ onAfterEnter(n) {
104
+ ye(n, `${t.namespace.value}-opacity-transition`), n.style.opacity = "";
105
+ },
106
+ onBeforeLeave(n) {
107
+ n.dataset || (n.dataset = {}), je(n, t.m("collapse")) ? (ye(n, t.m("collapse")), n.dataset.oldOverflow = n.style.overflow, n.dataset.scrollWidth = n.clientWidth.toString(), ae(n, t.m("collapse"))) : (ae(n, t.m("collapse")), n.dataset.oldOverflow = n.style.overflow, n.dataset.scrollWidth = n.clientWidth.toString(), ye(n, t.m("collapse"))), n.style.width = `${n.scrollWidth}px`, n.style.overflow = "hidden";
108
+ },
109
+ onLeave(n) {
110
+ ae(n, "horizontal-collapse-transition"), n.style.width = `${n.dataset.scrollWidth}px`;
111
+ }
112
+ };
113
+ return (n, c) => (L(), K(
114
+ Ve,
115
+ vt({ mode: "out-in" }, l),
116
+ {
117
+ default: _(() => [
118
+ V(n.$slots, "default")
119
+ ]),
120
+ _: 3
121
+ },
122
+ 16
123
+ ));
124
+ }
125
+ });
126
+ var Jt = /* @__PURE__ */ ke(Pt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);
127
+ function We(e, t) {
128
+ const l = h(() => {
129
+ let c = e.parent;
130
+ const v = [t.value];
131
+ for (; c.type.name !== "ElMenu"; )
132
+ c.props.index && v.unshift(c.props.index), c = c.parent;
133
+ return v;
134
+ });
135
+ return {
136
+ parentMenu: h(() => {
137
+ let c = e.parent;
138
+ for (; c && !["ElMenu", "ElSubMenu"].includes(c.type.name); )
139
+ c = c.parent;
140
+ return c;
141
+ }),
142
+ indexPath: l
143
+ };
144
+ }
145
+ function Et(e) {
146
+ return h(() => {
147
+ const l = e.backgroundColor;
148
+ return l ? new Ye(l).shade(20).toString() : "";
149
+ });
150
+ }
151
+ const qe = (e, t) => {
152
+ const l = A("menu");
153
+ return h(
154
+ () => l.cssVarBlock({
155
+ "text-color": e.textColor || "",
156
+ "hover-text-color": e.textColor || "",
157
+ "bg-color": e.backgroundColor || "",
158
+ "hover-bg-color": Et(e).value || "",
159
+ "active-color": e.activeTextColor || "",
160
+ level: `${t}`
161
+ })
162
+ );
163
+ }, Ne = "rootMenu", me = "subMenu:", Xt = Oe({
164
+ index: {
165
+ type: String,
166
+ required: !0
167
+ },
168
+ showTimeout: Number,
169
+ hideTimeout: Number,
170
+ popperClass: String,
171
+ popperStyle: {
172
+ type: Z([String, Object])
173
+ },
174
+ disabled: Boolean,
175
+ teleported: {
176
+ type: Boolean,
177
+ default: void 0
178
+ },
179
+ popperOffset: Number,
180
+ expandCloseIcon: {
181
+ type: Q
182
+ },
183
+ expandOpenIcon: {
184
+ type: Q
185
+ },
186
+ collapseCloseIcon: {
187
+ type: Q
188
+ },
189
+ collapseOpenIcon: {
190
+ type: Q
191
+ }
192
+ }), Se = "ElSubMenu";
193
+ var Pe = X({
194
+ name: Se,
195
+ props: Xt,
196
+ setup(e, { slots: t, expose: l }) {
197
+ const n = Te(), { indexPath: c, parentMenu: v } = We(
198
+ n,
199
+ h(() => e.index)
200
+ ), u = A("menu"), y = A("sub-menu"), o = ie(Ne);
201
+ o || ce(Se, "can not inject root menu");
202
+ const p = ie(
203
+ `${me}${v.value.uid}`
204
+ );
205
+ p || ce(Se, "can not inject sub menu");
206
+ const w = x({}), I = x({});
207
+ let d;
208
+ const M = x(!1), C = x(), O = x(), H = h(() => p.level === 0), ee = h(
209
+ () => B.value === "horizontal" && H.value ? "bottom-start" : "right-start"
210
+ ), z = h(() => B.value === "horizontal" && H.value || B.value === "vertical" && !o.props.collapse ? e.expandCloseIcon && e.expandOpenIcon ? J.value ? e.expandOpenIcon : e.expandCloseIcon : Qe : e.collapseCloseIcon && e.collapseOpenIcon ? J.value ? e.collapseOpenIcon : e.collapseCloseIcon : Ge), D = h(() => {
211
+ const a = e.teleported;
212
+ return Ae(a) ? H.value : a;
213
+ }), te = h(
214
+ () => o.props.collapse ? `${u.namespace.value}-zoom-in-left` : `${u.namespace.value}-zoom-in-top`
215
+ ), ve = h(
216
+ () => B.value === "horizontal" && H.value ? [
217
+ "bottom-start",
218
+ "bottom-end",
219
+ "top-start",
220
+ "top-end",
221
+ "right-start",
222
+ "left-start"
223
+ ] : [
224
+ "right-start",
225
+ "right",
226
+ "right-end",
227
+ "left-start",
228
+ "bottom-start",
229
+ "bottom-end",
230
+ "top-start",
231
+ "top-end"
232
+ ]
233
+ ), J = h(() => o.openedMenus.includes(e.index)), F = h(
234
+ () => [...Object.values(w.value), ...Object.values(I.value)].some(
235
+ ({ active: a }) => a
236
+ )
237
+ ), B = h(() => o.props.mode), ne = h(() => o.props.persistent), W = Le({
238
+ index: e.index,
239
+ indexPath: c,
240
+ active: F
241
+ }), oe = qe(o.props, p.level + 1), le = h(
242
+ () => {
243
+ var a;
244
+ return (a = e.popperOffset) != null ? a : o.props.popperOffset;
245
+ }
246
+ ), j = h(
247
+ () => {
248
+ var a;
249
+ return (a = e.popperClass) != null ? a : o.props.popperClass;
250
+ }
251
+ ), Y = h(
252
+ () => {
253
+ var a;
254
+ return (a = e.popperStyle) != null ? a : o.props.popperStyle;
255
+ }
256
+ ), se = h(
257
+ () => {
258
+ var a;
259
+ return (a = e.showTimeout) != null ? a : o.props.showTimeout;
260
+ }
261
+ ), he = h(
262
+ () => {
263
+ var a;
264
+ return (a = e.hideTimeout) != null ? a : o.props.hideTimeout;
265
+ }
266
+ ), s = () => {
267
+ var a, f, b;
268
+ return (b = (f = (a = O.value) == null ? void 0 : a.popperRef) == null ? void 0 : f.popperInstanceRef) == null ? void 0 : b.destroy();
269
+ }, r = (a) => {
270
+ a || s();
271
+ }, i = () => {
272
+ o.props.menuTrigger === "hover" && o.props.mode === "horizontal" || o.props.collapse && o.props.mode === "vertical" || e.disabled || o.handleSubMenuClick({
273
+ index: e.index,
274
+ indexPath: c.value,
275
+ active: F.value
276
+ });
277
+ }, m = (a, f = se.value) => {
278
+ var b;
279
+ if (a.type !== "focus") {
280
+ if (o.props.menuTrigger === "click" && o.props.mode === "horizontal" || !o.props.collapse && o.props.mode === "vertical" || e.disabled) {
281
+ p.mouseInChild.value = !0;
282
+ return;
283
+ }
284
+ p.mouseInChild.value = !0, d?.(), { stop: d } = Je(() => {
285
+ o.openMenu(e.index, c.value);
286
+ }, f), D.value && ((b = v.value.vnode.el) == null || b.dispatchEvent(new MouseEvent("mouseenter"))), a.type === "mouseenter" && a.target && Ce(() => {
287
+ et(a.target, { preventScroll: !0 });
288
+ });
289
+ }
290
+ }, S = (a = !1) => {
291
+ var f;
292
+ if (o.props.menuTrigger === "click" && o.props.mode === "horizontal" || !o.props.collapse && o.props.mode === "vertical") {
293
+ p.mouseInChild.value = !1;
294
+ return;
295
+ }
296
+ d?.(), p.mouseInChild.value = !1, { stop: d } = Je(
297
+ () => !M.value && o.closeMenu(e.index, c.value),
298
+ he.value
299
+ ), D.value && a && ((f = p.handleMouseleave) == null || f.call(p, !0));
300
+ };
301
+ G(
302
+ () => o.props.collapse,
303
+ (a) => r(!!a)
304
+ );
305
+ {
306
+ const a = (b) => {
307
+ I.value[b.index] = b;
308
+ }, f = (b) => {
309
+ delete I.value[b.index];
310
+ };
311
+ ge(`${me}${n.uid}`, {
312
+ addSubMenu: a,
313
+ removeSubMenu: f,
314
+ handleMouseleave: S,
315
+ mouseInChild: M,
316
+ level: p.level + 1
317
+ });
318
+ }
319
+ return l({
320
+ opened: J
321
+ }), _e(() => {
322
+ o.addSubMenu(W), p.addSubMenu(W);
323
+ }), Ke(() => {
324
+ p.removeSubMenu(W), o.removeSubMenu(W);
325
+ }), () => {
326
+ var a;
327
+ const f = [
328
+ (a = t.title) == null ? void 0 : a.call(t),
329
+ k(
330
+ ze,
331
+ {
332
+ class: y.e("icon-arrow"),
333
+ style: {
334
+ transform: J.value ? e.expandCloseIcon && e.expandOpenIcon || e.collapseCloseIcon && e.collapseOpenIcon && o.props.collapse ? "none" : "rotateZ(180deg)" : "none"
335
+ }
336
+ },
337
+ {
338
+ default: () => U(z.value) ? k(n.appContext.components[z.value]) : k(z.value)
339
+ }
340
+ )
341
+ ], b = o.isMenuPopup ? k(
342
+ Be,
343
+ {
344
+ ref: O,
345
+ visible: J.value,
346
+ effect: "light",
347
+ pure: !0,
348
+ offset: le.value,
349
+ showArrow: !1,
350
+ persistent: ne.value,
351
+ popperClass: j.value,
352
+ popperStyle: Y.value,
353
+ placement: ee.value,
354
+ teleported: D.value,
355
+ fallbackPlacements: ve.value,
356
+ transition: te.value,
357
+ gpuAcceleration: !1
358
+ },
359
+ {
360
+ content: () => {
361
+ var P;
362
+ return k(
363
+ "div",
364
+ {
365
+ class: [
366
+ u.m(B.value),
367
+ u.m("popup-container"),
368
+ j.value
369
+ ],
370
+ onMouseenter: (q) => m(q, 100),
371
+ onMouseleave: () => S(!0),
372
+ onFocus: (q) => m(q, 100)
373
+ },
374
+ [
375
+ k(
376
+ "ul",
377
+ {
378
+ class: [
379
+ u.b(),
380
+ u.m("popup"),
381
+ u.m(`popup-${ee.value}`)
382
+ ],
383
+ style: oe.value
384
+ },
385
+ [(P = t.default) == null ? void 0 : P.call(t)]
386
+ )
387
+ ]
388
+ );
389
+ },
390
+ default: () => k(
391
+ "div",
392
+ {
393
+ class: y.e("title"),
394
+ onClick: i
395
+ },
396
+ f
397
+ )
398
+ }
399
+ ) : k($, {}, [
400
+ k(
401
+ "div",
402
+ {
403
+ class: y.e("title"),
404
+ ref: C,
405
+ onClick: i
406
+ },
407
+ f
408
+ ),
409
+ k(
410
+ $e,
411
+ {},
412
+ {
413
+ default: () => {
414
+ var P;
415
+ return De(
416
+ k(
417
+ "ul",
418
+ {
419
+ role: "menu",
420
+ class: [u.b(), u.m("inline")],
421
+ style: oe.value
422
+ },
423
+ [(P = t.default) == null ? void 0 : P.call(t)]
424
+ ),
425
+ [[ht, J.value]]
426
+ );
427
+ }
428
+ }
429
+ )
430
+ ]);
431
+ return k(
432
+ "li",
433
+ {
434
+ class: [
435
+ y.b(),
436
+ y.is("active", F.value),
437
+ y.is("opened", J.value),
438
+ y.is("disabled", e.disabled)
439
+ ],
440
+ role: "menuitem",
441
+ ariaHaspopup: !0,
442
+ ariaExpanded: J.value,
443
+ onMouseenter: m,
444
+ onMouseleave: () => S(),
445
+ onFocus: m
446
+ },
447
+ [b]
448
+ );
449
+ };
450
+ }
451
+ });
452
+ const wt = Oe({
453
+ mode: {
454
+ type: String,
455
+ values: ["horizontal", "vertical"],
456
+ default: "vertical"
457
+ },
458
+ defaultActive: {
459
+ type: String,
460
+ default: ""
461
+ },
462
+ defaultOpeneds: {
463
+ type: Z(Array),
464
+ default: () => at([])
465
+ },
466
+ uniqueOpened: Boolean,
467
+ router: Boolean,
468
+ menuTrigger: {
469
+ type: String,
470
+ values: ["hover", "click"],
471
+ default: "hover"
472
+ },
473
+ collapse: Boolean,
474
+ backgroundColor: String,
475
+ textColor: String,
476
+ activeTextColor: String,
477
+ closeOnClickOutside: Boolean,
478
+ collapseTransition: {
479
+ type: Boolean,
480
+ default: !0
481
+ },
482
+ ellipsis: {
483
+ type: Boolean,
484
+ default: !0
485
+ },
486
+ popperOffset: {
487
+ type: Number,
488
+ default: 6
489
+ },
490
+ ellipsisIcon: {
491
+ type: Q,
492
+ default: () => st
493
+ },
494
+ popperEffect: {
495
+ type: Z(String),
496
+ default: "dark"
497
+ },
498
+ popperClass: String,
499
+ popperStyle: {
500
+ type: Z([String, Object])
501
+ },
502
+ showTimeout: {
503
+ type: Number,
504
+ default: 300
505
+ },
506
+ hideTimeout: {
507
+ type: Number,
508
+ default: 300
509
+ },
510
+ persistent: {
511
+ type: Boolean,
512
+ default: !0
513
+ }
514
+ }), Me = (e) => Re(e) && e.every((t) => U(t)), At = {
515
+ close: (e, t) => U(e) && Me(t),
516
+ open: (e, t) => U(e) && Me(t),
517
+ select: (e, t, l, n) => U(e) && Me(t) && tt(l) && (Ae(n) || n instanceof Promise)
518
+ }, Xe = 64;
519
+ var zt = X({
520
+ name: "ElMenu",
521
+ props: wt,
522
+ emits: At,
523
+ setup(e, { emit: t, slots: l, expose: n }) {
524
+ const c = Te(), v = c.appContext.config.globalProperties.$router, u = x(), y = x(), o = A("menu"), p = A("sub-menu");
525
+ let w = Xe;
526
+ const I = x(-1), d = x(
527
+ e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []
528
+ ), M = x(e.defaultActive), C = x({}), O = x({}), H = h(
529
+ () => e.mode === "horizontal" || e.mode === "vertical" && e.collapse
530
+ ), ee = () => {
531
+ const s = M.value && C.value[M.value];
532
+ if (!s || e.mode === "horizontal" || e.collapse)
533
+ return;
534
+ s.indexPath.forEach((i) => {
535
+ const m = O.value[i];
536
+ m && z(i, m.indexPath);
537
+ });
538
+ }, z = (s, r) => {
539
+ d.value.includes(s) || (e.uniqueOpened && (d.value = d.value.filter(
540
+ (i) => r.includes(i)
541
+ )), d.value.push(s), t("open", s, r));
542
+ }, D = (s) => {
543
+ const r = d.value.indexOf(s);
544
+ r !== -1 && d.value.splice(r, 1);
545
+ }, te = (s, r) => {
546
+ D(s), t("close", s, r);
547
+ }, ve = ({
548
+ index: s,
549
+ indexPath: r
550
+ }) => {
551
+ d.value.includes(s) ? te(s, r) : z(s, r);
552
+ }, J = (s) => {
553
+ (e.mode === "horizontal" || e.collapse) && (d.value = []);
554
+ const { index: r, indexPath: i } = s;
555
+ if (!(Ee(r) || Ee(i)))
556
+ if (e.router && v) {
557
+ const m = s.route || r, S = v.push(m).then((a) => (a || (M.value = r), a));
558
+ t(
559
+ "select",
560
+ r,
561
+ i,
562
+ { index: r, indexPath: i, route: m },
563
+ S
564
+ );
565
+ } else
566
+ M.value = r, t("select", r, i, { index: r, indexPath: i });
567
+ }, F = (s) => {
568
+ var r;
569
+ const i = C.value, m = i[s] || M.value && i[M.value] || i[e.defaultActive];
570
+ M.value = (r = m?.index) != null ? r : s;
571
+ }, B = (s) => {
572
+ const r = getComputedStyle(s), i = Number.parseInt(r.marginLeft, 10), m = Number.parseInt(r.marginRight, 10);
573
+ return s.offsetWidth + i + m || 0;
574
+ }, ne = () => {
575
+ if (!u.value)
576
+ return -1;
577
+ const s = Array.from(u.value.childNodes).filter(
578
+ (b) => b.nodeName !== "#comment" && (b.nodeName !== "#text" || b.nodeValue)
579
+ ), r = getComputedStyle(u.value), i = Number.parseInt(r.paddingLeft, 10), m = Number.parseInt(r.paddingRight, 10), S = u.value.clientWidth - i - m;
580
+ let a = 0, f = 0;
581
+ return s.forEach((b, P) => {
582
+ a += B(b), a <= S - w && (f = P + 1);
583
+ }), f === s.length ? -1 : f;
584
+ }, W = (s) => O.value[s].indexPath, oe = (s, r = 33.34) => {
585
+ let i;
586
+ return () => {
587
+ i && clearTimeout(i), i = setTimeout(() => {
588
+ s();
589
+ }, r);
590
+ };
591
+ };
592
+ let le = !0;
593
+ const j = () => {
594
+ const s = ut(y);
595
+ if (s && (w = B(s) || Xe), I.value === ne())
596
+ return;
597
+ const r = () => {
598
+ I.value = -1, Ce(() => {
599
+ I.value = ne();
600
+ });
601
+ };
602
+ le ? r() : oe(r)(), le = !1;
603
+ };
604
+ G(
605
+ () => e.defaultActive,
606
+ (s) => {
607
+ C.value[s] || (M.value = ""), F(s);
608
+ }
609
+ ), G(
610
+ () => e.collapse,
611
+ (s) => {
612
+ s && (d.value = []);
613
+ }
614
+ ), G(C.value, ee);
615
+ let Y;
616
+ yt(() => {
617
+ e.mode === "horizontal" && e.ellipsis ? Y = nt(u, j).stop : Y?.();
618
+ });
619
+ const se = x(!1);
620
+ {
621
+ const s = (S) => {
622
+ O.value[S.index] = S;
623
+ }, r = (S) => {
624
+ delete O.value[S.index];
625
+ };
626
+ ge(
627
+ Ne,
628
+ Le({
629
+ props: e,
630
+ openedMenus: d,
631
+ items: C,
632
+ subMenus: O,
633
+ activeIndex: M,
634
+ isMenuPopup: H,
635
+ addMenuItem: (S) => {
636
+ C.value[S.index] = S;
637
+ },
638
+ removeMenuItem: (S) => {
639
+ delete C.value[S.index];
640
+ },
641
+ addSubMenu: s,
642
+ removeSubMenu: r,
643
+ openMenu: z,
644
+ closeMenu: te,
645
+ handleMenuItemClick: J,
646
+ handleSubMenuClick: ve
647
+ })
648
+ ), ge(`${me}${c.uid}`, {
649
+ addSubMenu: s,
650
+ removeSubMenu: r,
651
+ mouseInChild: se,
652
+ level: 0
653
+ });
654
+ }
655
+ _e(() => {
656
+ e.mode === "horizontal" && new Nt(c.vnode.el, o.namespace.value);
657
+ }), n({
658
+ open: (r) => {
659
+ const { indexPath: i } = O.value[r];
660
+ i.forEach((m) => z(m, i));
661
+ },
662
+ close: D,
663
+ updateActiveIndex: F,
664
+ handleResize: j
665
+ });
666
+ const he = qe(e, 0);
667
+ return () => {
668
+ var s, r;
669
+ let i = (r = (s = l.default) == null ? void 0 : s.call(l)) != null ? r : [];
670
+ const m = [];
671
+ if (e.mode === "horizontal" && u.value) {
672
+ const f = ot(i).filter((q) => q?.shapeFlag !== 8), b = I.value === -1 ? f : f.slice(0, I.value), P = I.value === -1 ? [] : f.slice(I.value);
673
+ P?.length && e.ellipsis && (i = b, m.push(
674
+ k(
675
+ Pe,
676
+ {
677
+ ref: y,
678
+ index: "sub-menu-more",
679
+ class: p.e("hide-arrow"),
680
+ popperOffset: e.popperOffset
681
+ },
682
+ {
683
+ title: () => k(
684
+ ze,
685
+ {
686
+ class: p.e("icon-more")
687
+ },
688
+ {
689
+ default: () => k(e.ellipsisIcon)
690
+ }
691
+ ),
692
+ default: () => P
693
+ }
694
+ )
695
+ ));
696
+ }
697
+ const S = e.closeOnClickOutside ? [
698
+ [
699
+ lt,
700
+ () => {
701
+ d.value.length && (se.value || (d.value.forEach(
702
+ (f) => t("close", f, W(f))
703
+ ), d.value = []));
704
+ }
705
+ ]
706
+ ] : [], a = De(
707
+ k(
708
+ "ul",
709
+ {
710
+ key: String(e.collapse),
711
+ role: "menubar",
712
+ ref: u,
713
+ style: he.value,
714
+ class: {
715
+ [o.b()]: !0,
716
+ [o.m(e.mode)]: !0,
717
+ [o.m("collapse")]: e.collapse
718
+ }
719
+ },
720
+ [...i, ...m]
721
+ ),
722
+ S
723
+ );
724
+ return e.collapseTransition && e.mode === "vertical" ? k(Jt, () => a) : a;
725
+ };
726
+ }
727
+ });
728
+ const Bt = Oe({
729
+ index: {
730
+ type: Z([String, null]),
731
+ default: null
732
+ },
733
+ route: {
734
+ type: Z([String, Object])
735
+ },
736
+ disabled: Boolean
737
+ }), Rt = {
738
+ click: (e) => U(e.index) && Re(e.indexPath)
739
+ }, ue = "ElMenuItem", Ht = X({
740
+ name: ue,
741
+ __name: "menu-item",
742
+ props: Bt,
743
+ emits: Rt,
744
+ setup(e, { expose: t, emit: l }) {
745
+ const n = e, c = l;
746
+ rt(n.index) && ct(ue, 'Missing required prop: "index"');
747
+ const v = Te(), u = ie(Ne), y = A("menu"), o = A("menu-item");
748
+ u || ce(ue, "can not inject root menu");
749
+ const { parentMenu: p, indexPath: w } = We(v, bt(n, "index")), I = ie(
750
+ `${me}${p.value.uid}`
751
+ );
752
+ I || ce(ue, "can not inject sub menu");
753
+ const d = h(() => n.index === u.activeIndex), M = Le({
754
+ index: n.index,
755
+ indexPath: w,
756
+ active: d
757
+ }), C = () => {
758
+ n.disabled || (u.handleMenuItemClick({
759
+ index: n.index,
760
+ indexPath: w.value,
761
+ route: n.route
762
+ }), c("click", M));
763
+ };
764
+ return _e(() => {
765
+ I.addSubMenu(M), u.addMenuItem(M);
766
+ }), Ke(() => {
767
+ I.removeSubMenu(M), u.removeMenuItem(M);
768
+ }), t({
769
+ parentMenu: p,
770
+ rootMenu: u,
771
+ active: d,
772
+ nsMenu: y,
773
+ nsMenuItem: o,
774
+ handleClick: C
775
+ }), (O, H) => (L(), R(
776
+ "li",
777
+ {
778
+ class: de([
779
+ g(o).b(),
780
+ g(o).is("active", d.value),
781
+ g(o).is("disabled", O.disabled)
782
+ ]),
783
+ role: "menuitem",
784
+ tabindex: "-1",
785
+ onClick: C
786
+ },
787
+ [
788
+ g(p).type.name === "ElMenu" && g(u).props.collapse && O.$slots.title ? (L(), K(g(Be), {
789
+ key: 0,
790
+ effect: g(u).props.popperEffect,
791
+ placement: "right",
792
+ "fallback-placements": ["left"],
793
+ "popper-class": g(u).props.popperClass,
794
+ "popper-style": g(u).props.popperStyle,
795
+ persistent: g(u).props.persistent,
796
+ "focus-on-target": ""
797
+ }, {
798
+ content: _(() => [
799
+ V(O.$slots, "title")
800
+ ]),
801
+ default: _(() => [
802
+ T(
803
+ "div",
804
+ {
805
+ class: de(g(y).be("tooltip", "trigger"))
806
+ },
807
+ [
808
+ V(O.$slots, "default")
809
+ ],
810
+ 2
811
+ )
812
+ ]),
813
+ _: 3
814
+ }, 8, ["effect", "popper-class", "popper-style", "persistent"])) : (L(), R(
815
+ $,
816
+ { key: 1 },
817
+ [
818
+ V(O.$slots, "default"),
819
+ V(O.$slots, "title")
820
+ ],
821
+ 64
822
+ ))
823
+ ],
824
+ 2
825
+ ));
826
+ }
827
+ });
828
+ var Ue = /* @__PURE__ */ ke(Ht, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);
829
+ const Vt = {
830
+ title: String
831
+ }, Kt = X({
832
+ name: "ElMenuItemGroup",
833
+ __name: "menu-item-group",
834
+ props: Vt,
835
+ setup(e) {
836
+ const t = A("menu-item-group");
837
+ return (l, n) => (L(), R(
838
+ "li",
839
+ {
840
+ class: de(g(t).b())
841
+ },
842
+ [
843
+ T(
844
+ "div",
845
+ {
846
+ class: de(g(t).e("title"))
847
+ },
848
+ [
849
+ l.$slots.title ? V(l.$slots, "title", { key: 1 }) : (L(), R(
850
+ $,
851
+ { key: 0 },
852
+ [
853
+ Ie(
854
+ pe(l.title),
855
+ 1
856
+ )
857
+ ],
858
+ 64
859
+ ))
860
+ ],
861
+ 2
862
+ ),
863
+ T("ul", null, [
864
+ V(l.$slots, "default")
865
+ ])
866
+ ],
867
+ 2
868
+ ));
869
+ }
870
+ });
871
+ var Ze = /* @__PURE__ */ ke(Kt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);
872
+ const Dt = it(zt, {
873
+ MenuItem: Ue,
874
+ MenuItemGroup: Ze,
875
+ SubMenu: Pe
876
+ }), Ft = xe(Ue);
877
+ xe(Ze);
878
+ const Wt = xe(Pe), qt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABcEAAAGaAQMAAAD95RkdAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAA+gUFEClPAwAAAAJ0Uk5TAP9bkSK1AAAR00lEQVR4nO3dT7KDrLIA8KQy8M2yBJbC0mBpLIWv7uAOb6re4J3BqeO7RoUGGmxoNFoVBuePEfjFII2K5narT2OSfqfFEi7RSa5nmi1Jf0GOx7ww+bs9feVf+Vf+lX/lX/lX/pV/5ZeXq/nvByg/lg9pBReRIxVcQy6uKh+wCi4hRyu4glxcVT7gFVxAnqng/HLZLg8dFixV67so5uDJh9ymYcmn/392lo+7yV/7yuUu8nv8TvrLh3VRX/ljf7lb1Ff+3iBmT7ncSf4sFdlF7lNfuZj+385xUvnfdo4TyuVl5WrMh9Bzy6d/cyH01PJ3IMqF0PPL7XaO88nfpZsryosh9NTyYgg9tVxM/xJynE8ux0IgOr08G4hOLZ8qzAaiU8vHq8rLIfTM8uKx3Knl5UB0enm+wBPL34soOQ6WDz6TweXijPI0HyKXYymERknMmfFOtJt8iHMFycnVWAqhH5Dfi24gz0s+Ixcb8FCeD0SHy9UW3Mk3QujB8q2WAuUbIbRd7kuny5PVS/KNENpZXu4KSHAnLx/L9ZYXK6LBQzkVzpVbNN+SKG3cl7xxOrSzvNxWqPCVKw+U61LRkixfqleb26Kb3BJKpqV3SXl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fJp3S4PhIJysIta/+qm/Kf6Sm6PHTSUD7F8mZ0Xy5VbQ9TLRadnzQVyv9EtWILLTat8OOzpYTING17uYxI9dekTu6b/B51rKG9blyvGAAAAAElFTkSuQmCC", Ut = { class: "yc-header" }, Zt = { class: "yc-header-userinfo" }, jt = /* @__PURE__ */ X({
879
+ name: "YcHeader",
880
+ __name: "YcHeader",
881
+ setup(e) {
882
+ const t = dt(), l = He(), n = Tt(l.token)?.name || "用户", c = (y) => {
883
+ u[y]?.();
884
+ }, u = {
885
+ LogOut: async () => {
886
+ try {
887
+ l.$reset(), be("TOKEN"), be("refresh_token"), be("asnycRoute"), t.push("/login");
888
+ } catch {
889
+ xt.error("退出登录失败,请重试");
890
+ }
891
+ }
892
+ };
893
+ return (y, o) => {
894
+ const p = Ot, w = kt, I = It;
895
+ return L(), R("div", Ut, [
896
+ o[1] || (o[1] = T("div", { class: "yc-header-logo" }, [
897
+ T("img", {
898
+ src: qt,
899
+ alt: "logo"
900
+ })
901
+ ], -1)),
902
+ o[2] || (o[2] = T("div", { class: "yc-header-title" }, [
903
+ T("h4", null, "玉柴星网智云前端项目模板")
904
+ ], -1)),
905
+ o[3] || (o[3] = T("div", { class: "yc-header-tabbar" }, null, -1)),
906
+ T("div", Zt, [
907
+ E(I, {
908
+ trigger: "click",
909
+ onCommand: c
910
+ }, {
911
+ dropdown: _(() => [
912
+ E(w, null, {
913
+ default: _(() => [
914
+ E(p, { command: "LogOut" }, {
915
+ default: _(() => [...o[0] || (o[0] = [
916
+ Ie("退出登录", -1)
917
+ ])]),
918
+ _: 1
919
+ })
920
+ ]),
921
+ _: 1
922
+ })
923
+ ]),
924
+ default: _(() => [
925
+ Ie(pe(g(n)) + " ", 1)
926
+ ]),
927
+ _: 1
928
+ })
929
+ ])
930
+ ]);
931
+ };
932
+ }
933
+ }), Yt = /* @__PURE__ */ fe(jt, [["__scopeId", "data-v-611884e4"]]), Qt = /* @__PURE__ */ X({
934
+ name: "YcTreeMenu",
935
+ __name: "YcTreeMenu",
936
+ props: {
937
+ data: {}
938
+ },
939
+ setup(e) {
940
+ return (t, l) => {
941
+ const n = Fe("YcTreeMenu", !0), c = Wt, v = Ft;
942
+ return L(!0), R($, null, St(e.data, (u) => (L(), R($, {
943
+ key: u.menuId
944
+ }, [
945
+ u.children && u.children.length ? (L(), K(c, {
946
+ key: 0,
947
+ index: u.menuId
948
+ }, {
949
+ title: _(() => [
950
+ T("span", null, pe(u.menuName), 1)
951
+ ]),
952
+ default: _(() => [
953
+ E(n, {
954
+ data: u.children
955
+ }, null, 8, ["data"])
956
+ ]),
957
+ _: 2
958
+ }, 1032, ["index"])) : (L(), K(v, {
959
+ key: 1,
960
+ index: u.menuId,
961
+ route: { path: u.path, query: { menuId: u.menuId, ...u.query } }
962
+ }, {
963
+ default: _(() => [
964
+ T("span", null, pe(u.menuName), 1)
965
+ ]),
966
+ _: 2
967
+ }, 1032, ["index", "route"]))
968
+ ], 64))), 128);
969
+ };
970
+ }
971
+ }), Gt = /* @__PURE__ */ X({
972
+ name: "YCMenu",
973
+ __name: "YcMenu",
974
+ setup(e) {
975
+ const l = pt().query.menuId, n = x(!1), { menuList: c } = Lt(), v = (y, o) => {
976
+ }, u = (y, o) => {
977
+ };
978
+ return (y, o) => {
979
+ const p = Dt;
980
+ return L(), K(p, {
981
+ router: !0,
982
+ "default-active": g(l),
983
+ collapse: g(n),
984
+ "unique-opened": !0,
985
+ onOpen: v,
986
+ onClose: u
987
+ }, {
988
+ default: _(() => [
989
+ E(Qt, { data: g(c) }, null, 8, ["data"])
990
+ ]),
991
+ _: 1
992
+ }, 8, ["default-active", "collapse"]);
993
+ };
994
+ }
995
+ }), $t = /* @__PURE__ */ fe(Gt, [["__scopeId", "data-v-5beef2d5"]]), en = mt("SettingStore", {
996
+ state: () => ({
997
+ fold: !1,
998
+ //用户控制菜单折叠还是收起控制
999
+ refsh: !1
1000
+ //仓库这个属性用于控制刷新效果
1001
+ })
1002
+ }), tn = /* @__PURE__ */ X({
1003
+ name: "YcMain",
1004
+ __name: "YcMain",
1005
+ setup(e) {
1006
+ const t = en(), l = x(!0);
1007
+ return G(
1008
+ () => t.refsh,
1009
+ () => {
1010
+ l.value = !1, Ce(() => {
1011
+ l.value = !0;
1012
+ });
1013
+ }
1014
+ ), (n, c) => {
1015
+ const v = Fe("router-view");
1016
+ return L(), K(v, null, {
1017
+ default: _(({ Component: u }) => [
1018
+ E(Ve, { name: "fade" }, {
1019
+ default: _(() => [
1020
+ l.value ? (L(), K(gt(u), { key: 0 })) : Mt("", !0)
1021
+ ]),
1022
+ _: 2
1023
+ }, 1024)
1024
+ ]),
1025
+ _: 1
1026
+ });
1027
+ };
1028
+ }
1029
+ }), nn = /* @__PURE__ */ fe(tn, [["__scopeId", "data-v-83b511d6"]]), on = { class: "yc-layout" }, ln = { class: "layout_main" }, sn = {
1030
+ name: "Layout"
1031
+ }, an = /* @__PURE__ */ X({
1032
+ ...sn,
1033
+ setup(e) {
1034
+ const t = He();
1035
+ return (l, n) => {
1036
+ const c = ft;
1037
+ return L(), R("section", on, [
1038
+ T("header", null, [
1039
+ E(Yt)
1040
+ ]),
1041
+ T("section", null, [
1042
+ T("aside", null, [
1043
+ E(c, { class: "scrollbar h-full" }, {
1044
+ default: _(() => [
1045
+ E($t, {
1046
+ flatMenuList: g(t).menuList
1047
+ }, null, 8, ["flatMenuList"])
1048
+ ]),
1049
+ _: 1
1050
+ })
1051
+ ]),
1052
+ T("main", ln, [
1053
+ E(nn)
1054
+ ])
1055
+ ])
1056
+ ]);
1057
+ };
1058
+ }
1059
+ }), yn = /* @__PURE__ */ fe(an, [["__scopeId", "data-v-51d2288d"]]);
1060
+ export {
1061
+ yn as default
1062
+ };