@shjjs/visual-ui 3.0.28 → 3.0.30
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/es/components/Interaction/components/Button/index.vue.mjs +2 -2
- package/es/components/Interaction/components/Button/index.vue2.mjs +1 -1
- package/es/components/Interaction/components/MenuBar/index.vue.mjs +2 -2
- package/es/components/Interaction/components/MenuBar/index.vue2.mjs +73 -73
- package/es/components/Interaction/components/Tabs/index.vue.mjs +1 -1
- package/es/components/Interaction/components/Tabs-icon/index.vue.mjs +1 -1
- package/es/widgets.css +1 -1
- package/package.json +1 -1
- package/umd/index.js +1 -1
- package/umd/widgets.css +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c89af8cf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -199,7 +199,7 @@ const g = { class: "flex width-100 height-100 transition-all" }, k = ["ztitle"],
|
|
|
199
199
|
});
|
|
200
200
|
const u = m(() => t.value.style.textStyle.textOverflow && t.value.style.textStyle.textOverflow.enable ? t.value.style.textStyle.textOverflow.ellipsis.displayLines === 1 ? "text-overflow-ellipsis" : "text-overflow-ellipsis-2" : "");
|
|
201
201
|
return (p, B) => (y(), x("button", {
|
|
202
|
-
class: "height-100 transition-all",
|
|
202
|
+
class: "height-100 transition-all btn-interaction",
|
|
203
203
|
style: e(d(O).json2cssObject(t.value.style, "--", !0))
|
|
204
204
|
}, [
|
|
205
205
|
l("p", g, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4a1f6630"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as y, computed as D, onMounted as Ke, nextTick as oe, onUnmounted as je, watch as F, createElementBlock as M, openBlock as T, normalizeStyle as O, createElementVNode as X, Fragment as xe, renderList as Oe, createCommentVNode as J, normalizeClass as Ae, createVNode as ne, unref as
|
|
1
|
+
import { defineComponent as ue, ref as y, computed as D, onMounted as Ke, nextTick as oe, onUnmounted as je, watch as F, createElementBlock as M, openBlock as T, normalizeStyle as O, createElementVNode as X, Fragment as xe, renderList as Oe, createCommentVNode as J, normalizeClass as Ae, createVNode as ne, unref as ie } from "vue";
|
|
2
2
|
import { nanoid as P } from "nanoid";
|
|
3
|
-
import { isEqual as
|
|
3
|
+
import { isEqual as re, cloneDeep as Ne } from "lodash";
|
|
4
4
|
import $e from "../../../../commons/components/Text.vue.mjs";
|
|
5
5
|
import De from "./MenuBarSubMenu.vue.mjs";
|
|
6
6
|
/* empty css */
|
|
@@ -182,9 +182,9 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
182
182
|
"update-active-item"
|
|
183
183
|
],
|
|
184
184
|
setup(se, { expose: pe, emit: ce }) {
|
|
185
|
-
const s = se, L = ce, A = y(null),
|
|
185
|
+
const s = se, L = ce, A = y(null), m = y([]), R = y(P()), N = y(!1), h = y(null), i = y([]), v = y([]), k = y([]), d = y([]), r = y(null), p = y(!1), E = y(null);
|
|
186
186
|
let w = null, C = null, b = null;
|
|
187
|
-
const
|
|
187
|
+
const f = D(() => s.option.menuBar?.navigationEcho ?? !0), g = D(() => s.option.menuBar?.unfold ?? !0), I = D(() => s.option.menuBar?.trigger || "click"), c = (e, l) => `${l}-${e.id}`, B = (e, l, t = []) => {
|
|
188
188
|
for (const o of e) {
|
|
189
189
|
if (o.id == l) return [...t, o];
|
|
190
190
|
if (o.children?.length) {
|
|
@@ -249,60 +249,60 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
249
249
|
id: t.id ?? P()
|
|
250
250
|
};
|
|
251
251
|
return o.children && o.children.length && (o.children = Z(o.children, l + 1)), o;
|
|
252
|
-
}), fe = (e) => e ? (B(
|
|
253
|
-
if (!
|
|
254
|
-
|
|
255
|
-
const e =
|
|
256
|
-
l && (h.value = l),
|
|
252
|
+
}), fe = (e) => e ? (B(m.value, e.id) || []).map((t) => t.id) : [], q = () => {
|
|
253
|
+
if (!f.value || !d.value.length) return;
|
|
254
|
+
i.value = [...d.value];
|
|
255
|
+
const e = d.value[d.value.length - 1], l = V(m.value, e);
|
|
256
|
+
l && (h.value = l), i.value.length > 0 && (r.value = i.value[0]);
|
|
257
257
|
}, G = (e, l = !1) => {
|
|
258
258
|
if (!e) return;
|
|
259
259
|
h.value = e;
|
|
260
|
-
const t = B(
|
|
261
|
-
if (
|
|
260
|
+
const t = B(m.value, e.id) || [];
|
|
261
|
+
if (i.value = t.map((o) => o.id), f.value && i.value.length > 0 && (r.value = i.value[0]), l)
|
|
262
262
|
if (g.value) {
|
|
263
|
-
const o =
|
|
263
|
+
const o = i.value.map(
|
|
264
264
|
(n, u) => c({ id: n }, u + 1)
|
|
265
265
|
);
|
|
266
266
|
a(o.slice(1)), p.value = !0;
|
|
267
267
|
} else {
|
|
268
268
|
const o = e.level || 1, n = [];
|
|
269
269
|
for (let u = 1; u < o; u++) {
|
|
270
|
-
const S =
|
|
270
|
+
const S = i.value[u - 1];
|
|
271
271
|
n.push(c({ id: S }, u));
|
|
272
272
|
}
|
|
273
273
|
e.children?.length && n.push(c(e, o)), a(n), p.value = !0;
|
|
274
274
|
}
|
|
275
275
|
L("update-active-item", {
|
|
276
276
|
item: e,
|
|
277
|
-
pathIds:
|
|
277
|
+
pathIds: i.value
|
|
278
278
|
});
|
|
279
279
|
}, a = (e) => {
|
|
280
|
-
|
|
280
|
+
v.value = e, L("update-open-keys", e);
|
|
281
281
|
}, he = (e) => {
|
|
282
282
|
if (b && clearTimeout(b), b = null, E.value = e.id, I.value === "hover") {
|
|
283
283
|
if (!e.children?.length) {
|
|
284
|
-
|
|
284
|
+
r.value = null, a([]), k.value = [], p.value = !1;
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
g.value ? (r.value = e.id, a([])) : (r.value = null, a([c(e, 1)])), k.value = [], p.value = !1;
|
|
288
288
|
}
|
|
289
289
|
}, K = () => {
|
|
290
|
-
if (!
|
|
291
|
-
h.value = null,
|
|
290
|
+
if (!f.value) {
|
|
291
|
+
h.value = null, i.value = [], d.value = [], a([]), r.value = null;
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
!
|
|
294
|
+
!m.value.length || !N.value || s.sources.length >= 1 && ae.parse({
|
|
295
295
|
sources: [s.sources[0]],
|
|
296
296
|
callback: (e) => {
|
|
297
297
|
const l = e?.data?.[0]?.data?.[0]?.value ?? e?.data?.[0]?.data?.[0]?.id ?? e?.data?.[0]?.value ?? e?.data?.[0]?.id ?? null;
|
|
298
298
|
if (!l) {
|
|
299
|
-
h.value = null,
|
|
299
|
+
h.value = null, i.value = [], a([]), r.value = null;
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
302
|
-
const t = V(
|
|
302
|
+
const t = V(m.value, l);
|
|
303
303
|
if (t) {
|
|
304
|
-
if (
|
|
305
|
-
const o =
|
|
304
|
+
if (d.value = fe(t), h.value = t, i.value = [...d.value], i.value.length > 0 && (r.value = i.value[0]), g.value) {
|
|
305
|
+
const o = i.value.map(
|
|
306
306
|
(n, u) => c({ id: n }, u + 1)
|
|
307
307
|
);
|
|
308
308
|
a(o.slice(1)), p.value = !0;
|
|
@@ -310,34 +310,34 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
310
310
|
a([]), p.value = !1;
|
|
311
311
|
L("update-active-item", {
|
|
312
312
|
item: t,
|
|
313
|
-
pathIds:
|
|
313
|
+
pathIds: i.value
|
|
314
314
|
});
|
|
315
315
|
} else
|
|
316
|
-
h.value = null,
|
|
316
|
+
h.value = null, i.value = [], d.value = [], a([]), r.value = null;
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}, ge = (e) => {
|
|
320
|
-
const l = e.level || 1, t = c(e, l), o = g.value && l === 1 ?
|
|
320
|
+
const l = e.level || 1, t = c(e, l), o = g.value && l === 1 ? r.value === e.id : v.value.includes(t);
|
|
321
321
|
let n = [];
|
|
322
|
-
o ? n =
|
|
322
|
+
o ? n = v.value.filter((u) => {
|
|
323
323
|
const S = String(u), [x] = S.split("-");
|
|
324
324
|
return parseInt(x) < l;
|
|
325
|
-
}) : n = [...
|
|
325
|
+
}) : n = [...v.value.filter((S) => {
|
|
326
326
|
const x = String(S), [$] = x.split("-");
|
|
327
327
|
return parseInt($) < l;
|
|
328
|
-
}), t], a(n), g.value && l === 1 && (o ?
|
|
328
|
+
}), t], a(n), g.value && l === 1 && (o ? r.value = null : r.value = e.id);
|
|
329
329
|
}, ye = (e = !1) => {
|
|
330
|
-
Q(), a([]), k.value = [], p.value = !1, e && !
|
|
330
|
+
Q(), a([]), k.value = [], p.value = !1, e && !f.value && (h.value = null, i.value = [], r.value = null);
|
|
331
331
|
}, Q = () => {
|
|
332
332
|
w && clearTimeout(w), C && clearTimeout(C), w = null, C = null;
|
|
333
333
|
}, ee = (e) => {
|
|
334
|
-
const l = e.children && e.children.length > 0, t = B(
|
|
334
|
+
const l = e.children && e.children.length > 0, t = B(m.value, e.id) || [], o = {
|
|
335
335
|
data: { ...e },
|
|
336
336
|
parent: W(t)
|
|
337
337
|
};
|
|
338
|
-
if (L("on-click", o), _.parseEvents(s.useEvents, "on-click", o),
|
|
339
|
-
if (I.value !== "click" &&
|
|
340
|
-
const n =
|
|
338
|
+
if (L("on-click", o), _.parseEvents(s.useEvents, "on-click", o), f.value && d.value.length && q(), l) {
|
|
339
|
+
if (I.value !== "click" && f.value && g.value && d.value.length) {
|
|
340
|
+
const n = i.value.map(
|
|
341
341
|
(u, S) => c({ id: u }, S + 1)
|
|
342
342
|
);
|
|
343
343
|
a(n.slice(1)), p.value = !0;
|
|
@@ -345,30 +345,30 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
345
345
|
}
|
|
346
346
|
ge(e);
|
|
347
347
|
} else
|
|
348
|
-
|
|
348
|
+
r.value = null, a([]), k.value = [], E.value = null, p.value = !1, f.value ? d.value.length && I.value !== "click" && q() : (h.value = null, i.value = [], d.value = [], L("update-active-item", {
|
|
349
349
|
item: null,
|
|
350
350
|
pathIds: []
|
|
351
351
|
}));
|
|
352
352
|
}, Ie = (e) => {
|
|
353
353
|
ee(e);
|
|
354
354
|
}, Se = (e, l) => {
|
|
355
|
-
const t = c(e, l), o =
|
|
355
|
+
const t = c(e, l), o = v.value.includes(t);
|
|
356
356
|
let n = [];
|
|
357
|
-
o ? n =
|
|
357
|
+
o ? n = v.value.filter((x) => {
|
|
358
358
|
const $ = String(x), [z] = $.split("-");
|
|
359
359
|
return parseInt(z) < l;
|
|
360
|
-
}) : n = [...
|
|
360
|
+
}) : n = [...v.value.filter(($) => {
|
|
361
361
|
const z = String($), [Be] = z.split("-");
|
|
362
362
|
return parseInt(Be) < l;
|
|
363
363
|
}), t], a(n);
|
|
364
|
-
const u = B(
|
|
364
|
+
const u = B(m.value, e.id) || [], S = {
|
|
365
365
|
data: { ...e },
|
|
366
366
|
parent: W(u)
|
|
367
367
|
};
|
|
368
368
|
L("on-click", S), _.parseEvents(s.useEvents, "on-click", S);
|
|
369
369
|
}, ke = (e) => {
|
|
370
|
-
if (I.value !== "hover" || (w && clearTimeout(w), p.value)
|
|
371
|
-
const t = (B(
|
|
370
|
+
if (I.value !== "hover" || (w && clearTimeout(w), p.value)) return;
|
|
371
|
+
const t = (B(m.value, e.id) || []).map((n) => n.id), o = e.children?.length ? g.value ? t.slice(1).map((n, u) => c({ id: n }, u + 2)) : t.map((n, u) => c({ id: n }, u + 1)) : g.value ? t.slice(1, -1).map((n, u) => c({ id: n }, u + 2)) : t.slice(0, -1).map((n, u) => c({ id: n }, u + 1));
|
|
372
372
|
a(o), k.value = t, L("update-hover-path", t);
|
|
373
373
|
}, Ee = (e) => {
|
|
374
374
|
I.value === "hover" && (p.value || e.relatedTarget && A.value && A.value.contains(e.relatedTarget) || (w = setTimeout(() => {
|
|
@@ -379,11 +379,11 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
379
379
|
}, le = (e) => {
|
|
380
380
|
if (A.value && !A.value.contains(e.target)) {
|
|
381
381
|
if (E.value = null, k.value = [], I.value === "click") return;
|
|
382
|
-
|
|
382
|
+
f.value ? (a([]), E.value = null, p.value = !1) : (h.value = null, i.value = [], a([]), r.value = null, E.value = null, p.value = !1);
|
|
383
383
|
}
|
|
384
384
|
}, be = () => {
|
|
385
385
|
C = setTimeout(() => {
|
|
386
|
-
k.value = [], E.value = null, I.value === "hover" && (p.value || p.value || (g.value || a([]),
|
|
386
|
+
k.value = [], E.value = null, I.value === "hover" && (p.value || p.value || (g.value || a([]), f.value && d.value.length || (r.value = null)));
|
|
387
387
|
}, 200);
|
|
388
388
|
}, Le = () => {
|
|
389
389
|
if (b && clearTimeout(b), I.value !== "hover") {
|
|
@@ -395,8 +395,8 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
395
395
|
}, 200);
|
|
396
396
|
}, we = () => {
|
|
397
397
|
C && clearTimeout(C), b && clearTimeout(b), b = null;
|
|
398
|
-
}, Me = (e) => Array.isArray(
|
|
399
|
-
const l = I.value === "click" && !!e.children?.length && (g.value ?
|
|
398
|
+
}, Me = (e) => Array.isArray(i.value) ? i.value.some((l) => String(l) === String(e.id)) : !1, Te = (e) => String(E.value) === String(e.id), Y = (e) => {
|
|
399
|
+
const l = I.value === "click" && !!e.children?.length && (g.value ? r.value === e.id : v.value.includes(c(e, 1)));
|
|
400
400
|
return Me(e) || Te(e) || l;
|
|
401
401
|
}, Ce = D(() => {
|
|
402
402
|
const e = s.option.menuPanel ?? {}, l = e.gap ?? 0, { gap: t, boxShadow: o, ...n } = e;
|
|
@@ -411,7 +411,7 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
411
411
|
};
|
|
412
412
|
}), j = () => {
|
|
413
413
|
if (!s.sources?.length) {
|
|
414
|
-
|
|
414
|
+
m.value = [], N.value = !1, R.value = P(), _.parseEvents(s.useEvents, "dataListener", []), f.value && K();
|
|
415
415
|
return;
|
|
416
416
|
}
|
|
417
417
|
N.value = !1;
|
|
@@ -421,18 +421,18 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
421
421
|
callback: (l) => {
|
|
422
422
|
try {
|
|
423
423
|
const t = l?.data?.[0]?.data || [];
|
|
424
|
-
|
|
424
|
+
m.value = Z(Ne(t), 1), N.value = !0, R.value = P(), _.parseEvents(
|
|
425
425
|
s.useEvents,
|
|
426
426
|
"dataListener",
|
|
427
|
-
|
|
427
|
+
m.value
|
|
428
428
|
), oe(() => {
|
|
429
429
|
K();
|
|
430
430
|
});
|
|
431
431
|
} catch {
|
|
432
|
-
_.parseEvents(s.useEvents, "dataListener", null),
|
|
432
|
+
_.parseEvents(s.useEvents, "dataListener", null), m.value = [], N.value = !1, R.value = P();
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
}),
|
|
435
|
+
}), f.value && K();
|
|
436
436
|
};
|
|
437
437
|
return Ke(() => {
|
|
438
438
|
oe(j), document.addEventListener("click", le);
|
|
@@ -442,40 +442,40 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
442
442
|
() => ({
|
|
443
443
|
opt: s.option,
|
|
444
444
|
src: s.sources,
|
|
445
|
-
navigationEcho:
|
|
445
|
+
navigationEcho: f.value,
|
|
446
446
|
unfold: g.value
|
|
447
447
|
}),
|
|
448
448
|
(e, l) => {
|
|
449
|
-
|
|
449
|
+
re(e, l) || (!re(e.src, l.src) ? j() : (e.navigationEcho !== l.navigationEcho && K(), e.unfold !== l.unfold && h.value && G(h.value, !1), I.value !== "click" && j()));
|
|
450
450
|
},
|
|
451
451
|
{ deep: !0 }
|
|
452
|
-
), F(
|
|
453
|
-
e ? K() : (h.value = null,
|
|
452
|
+
), F(f, (e) => {
|
|
453
|
+
e ? K() : (h.value = null, i.value = [], d.value = [], a([]), r.value = null);
|
|
454
454
|
}), F(g, (e) => {
|
|
455
455
|
if (I.value === "click") {
|
|
456
456
|
if (e) {
|
|
457
|
-
const l =
|
|
457
|
+
const l = v.value.find((t) => String(t).startsWith("1-"));
|
|
458
458
|
if (l != null) {
|
|
459
459
|
const t = String(l).slice(
|
|
460
460
|
String(l).indexOf("-") + 1
|
|
461
|
-
), o =
|
|
462
|
-
|
|
463
|
-
} else
|
|
461
|
+
), o = m.value.find((n) => String(n.id) === t);
|
|
462
|
+
r.value = o ? o.id : null;
|
|
463
|
+
} else i.value?.length ? r.value = i.value[0] ?? null : r.value = null;
|
|
464
464
|
} else {
|
|
465
|
-
const l =
|
|
465
|
+
const l = r.value ?? (i.value?.length ? i.value[0] : null);
|
|
466
466
|
if (l != null) {
|
|
467
467
|
const t = c({ id: l }, 1);
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
v.value.includes(t) || a(
|
|
469
|
+
v.value.length ? [t, ...v.value] : [t]
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
r.value = null;
|
|
473
473
|
}
|
|
474
474
|
return;
|
|
475
475
|
}
|
|
476
|
-
if (h.value &&
|
|
476
|
+
if (h.value && f.value)
|
|
477
477
|
if (e) {
|
|
478
|
-
const l =
|
|
478
|
+
const l = i.value.map(
|
|
479
479
|
(t, o) => c({ id: t }, o + 1)
|
|
480
480
|
);
|
|
481
481
|
a(l.slice(1)), p.value = !0;
|
|
@@ -488,7 +488,7 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
488
488
|
clearAllState: () => ye(!0),
|
|
489
489
|
updateActivePath: K,
|
|
490
490
|
setEchoItem: (e) => {
|
|
491
|
-
const l = V(
|
|
491
|
+
const l = V(m.value, e);
|
|
492
492
|
l && G(l, !1);
|
|
493
493
|
}
|
|
494
494
|
}), (e, l) => (T(), M("div", {
|
|
@@ -507,14 +507,14 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
507
507
|
class: "menu-items-container",
|
|
508
508
|
style: O({ gap: `${e.option.menuBar.gap ?? 4}px` })
|
|
509
509
|
}, [
|
|
510
|
-
(T(!0), M(xe, null, Oe(
|
|
510
|
+
(T(!0), M(xe, null, Oe(m.value, (t) => (T(), M("div", {
|
|
511
511
|
key: c(t, 1),
|
|
512
512
|
class: "first-level-item-wrapper"
|
|
513
513
|
}, [
|
|
514
514
|
X("div", {
|
|
515
515
|
class: Ae(["menu-item", {
|
|
516
516
|
"is-active": Y(t),
|
|
517
|
-
"is-open":
|
|
517
|
+
"is-open": r.value === t.id,
|
|
518
518
|
"has-children": t.children?.length
|
|
519
519
|
}]),
|
|
520
520
|
style: O(ve(t)),
|
|
@@ -527,7 +527,7 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
527
527
|
key: 0,
|
|
528
528
|
class: "menu-icon",
|
|
529
529
|
style: O(
|
|
530
|
-
|
|
530
|
+
ie(H).json2cssObject({
|
|
531
531
|
width: e.option.menuItem.icon.width,
|
|
532
532
|
height: e.option.menuItem.icon.height,
|
|
533
533
|
marginRight: e.option.menuItem.icon.gap,
|
|
@@ -546,7 +546,7 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "menu-arrow",
|
|
548
548
|
style: O(
|
|
549
|
-
|
|
549
|
+
ie(H).json2cssObject({
|
|
550
550
|
width: e.option.menuItem.arrow.width,
|
|
551
551
|
height: e.option.menuItem.arrow.height,
|
|
552
552
|
marginLeft: e.option.menuItem.arrow.gap,
|
|
@@ -557,7 +557,7 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
557
557
|
alt: ""
|
|
558
558
|
}, null, 12, Re)) : J("", !0)
|
|
559
559
|
], 46, Pe),
|
|
560
|
-
t.children?.length && (g.value ?
|
|
560
|
+
t.children?.length && (g.value ? r.value === t.id : v.value.includes(c(t, 1))) ? (T(), M("div", {
|
|
561
561
|
key: 0,
|
|
562
562
|
class: "sub-menu-panel",
|
|
563
563
|
style: O(Ce.value),
|
|
@@ -568,8 +568,8 @@ const Pe = ["onMouseenter", "onClick"], _e = { class: "menu-item-content flex it
|
|
|
568
568
|
items: t.children,
|
|
569
569
|
level: 2,
|
|
570
570
|
option: e.option,
|
|
571
|
-
"active-path-ids":
|
|
572
|
-
"opened-sub-menu-ids":
|
|
571
|
+
"active-path-ids": i.value,
|
|
572
|
+
"opened-sub-menu-ids": v.value,
|
|
573
573
|
"hover-path-ids": k.value,
|
|
574
574
|
"use-events": e.useEvents,
|
|
575
575
|
onSelect: Ie,
|
|
@@ -226,7 +226,7 @@ const I = ["onClick"], P = g({ name: "ShjTabs" }), ti = /* @__PURE__ */ g({
|
|
|
226
226
|
}, null, 4)) : x("", !0),
|
|
227
227
|
(s(!0), l(V, null, B(e.value, (p, O) => (s(), l("div", {
|
|
228
228
|
key: O,
|
|
229
|
-
class: N(["flex flex-none cursor-pointer transition-color-background-color background-size-cover", { selected: p.value === r.value }]),
|
|
229
|
+
class: N(["flex flex-none cursor-pointer transition-color-background-color background-size-cover btn-interaction", { selected: p.value === r.value }]),
|
|
230
230
|
style: c(
|
|
231
231
|
u(v).json2cssObject(
|
|
232
232
|
p.value === r.value ? t.value.style.item.selected : t.value.style.item
|
|
@@ -227,7 +227,7 @@ const F = ["onClick"], P = ["src"], U = x({ name: "ShjTabsIcon" }), re = /* @__P
|
|
|
227
227
|
}, null, 4)) : k("", !0),
|
|
228
228
|
(s(!0), l(V, null, w(m.value, (e, O) => (s(), l("div", {
|
|
229
229
|
key: O,
|
|
230
|
-
class: B(["flex flex-none position-relative cursor-pointer transition-color-background-color background-size-cover", { selected: e.value === o.value }]),
|
|
230
|
+
class: B(["flex flex-none position-relative cursor-pointer transition-color-background-color background-size-cover btn-interaction", { selected: e.value === o.value }]),
|
|
231
231
|
style: a(
|
|
232
232
|
n(c).json2cssObject(
|
|
233
233
|
e.value === o.value ? t.value.style.item.selected : t.value.style.item
|