@huyooo/ui 0.5.38 → 0.5.39
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { defineComponent as x, ref as
|
|
3
|
+
import { defineComponent as x, ref as q, watch as B, createElementBlock as n, openBlock as e, createElementVNode as s, createVNode as y, unref as h, withCtx as ne, resolveComponent as oe, createBlock as O, createCommentVNode as k, toDisplayString as w, onMounted as se, onUnmounted as ae, Fragment as U, renderList as H, normalizeClass as L, createTextVNode as ie, normalizeStyle as K, renderSlot as R, computed as E } from "vue";
|
|
4
4
|
import { Spin as D } from "@arco-design/web-vue";
|
|
5
5
|
import { a as G } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
6
6
|
import { u as N, a as re } from "./auth-B864DrVx.js";
|
|
@@ -51,46 +51,49 @@ const de = {
|
|
|
51
51
|
} = F(), {
|
|
52
52
|
menus: m,
|
|
53
53
|
hasPermission: b
|
|
54
|
-
} = j(t.menuType), $ = Y(), C =
|
|
54
|
+
} = j(t.menuType), $ = Y(), C = q(!1);
|
|
55
55
|
function I() {
|
|
56
56
|
$.push({
|
|
57
57
|
path: "/"
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
function T(
|
|
62
|
-
const r =
|
|
60
|
+
const f = Z(), M = q([""]);
|
|
61
|
+
function T(_) {
|
|
62
|
+
const r = _.path;
|
|
63
63
|
if (!b(r)) {
|
|
64
64
|
d.value || (c.value = !0);
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
W(() => {
|
|
68
|
-
$.push(
|
|
68
|
+
$.push({
|
|
69
|
+
path: r,
|
|
70
|
+
query: f.query
|
|
71
|
+
}), M.value = [r], window.scrollTo({
|
|
69
72
|
top: 0,
|
|
70
73
|
behavior: "smooth"
|
|
71
74
|
});
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
|
-
return B(() =>
|
|
75
|
-
const
|
|
76
|
-
console.log(
|
|
77
|
+
return B(() => f.path, () => {
|
|
78
|
+
const _ = J(f.matched, t.menuType, f.path);
|
|
79
|
+
console.log(_, f.matched, t.menuType, f.path, "activateKey"), _ && (M.value = [_]);
|
|
77
80
|
}, {
|
|
78
81
|
immediate: !0
|
|
79
|
-
}), (
|
|
82
|
+
}), (_, r) => (e(), n("div", de, [s("div", pe, [y(h(te), {
|
|
80
83
|
icon: h(u).applicationLogoUrl,
|
|
81
84
|
name: h(u).name,
|
|
82
85
|
onTo: I
|
|
83
|
-
}, null, 8, ["icon", "name"])]), s("div", he, [
|
|
86
|
+
}, null, 8, ["icon", "name"])]), s("div", he, [y(le, {
|
|
84
87
|
"selected-keys": M.value,
|
|
85
|
-
"onUpdate:selectedKeys": r[0] || (r[0] = (
|
|
88
|
+
"onUpdate:selectedKeys": r[0] || (r[0] = (v) => M.value = v),
|
|
86
89
|
menus: h(m),
|
|
87
90
|
onChange: T
|
|
88
|
-
}, null, 8, ["selected-keys", "menus"])]), s("div", me, [
|
|
89
|
-
onArrowClick: r[2] || (r[2] = (
|
|
91
|
+
}, null, 8, ["selected-keys", "menus"])]), s("div", me, [y(h(ue), {
|
|
92
|
+
onArrowClick: r[2] || (r[2] = (v) => C.value = !C.value)
|
|
90
93
|
}, {
|
|
91
|
-
avatar: ne(() => [
|
|
94
|
+
avatar: ne(() => [y(h(ee), {
|
|
92
95
|
modelValue: C.value,
|
|
93
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
96
|
+
"onUpdate:modelValue": r[1] || (r[1] = (v) => C.value = v),
|
|
94
97
|
position: "tr",
|
|
95
98
|
"dropdown-offset-y": "30px",
|
|
96
99
|
"dropdown-offset-x": "230px"
|
|
@@ -98,7 +101,7 @@ const de = {
|
|
|
98
101
|
_: 1
|
|
99
102
|
})])]));
|
|
100
103
|
}
|
|
101
|
-
}), _e = /* @__PURE__ */ S(fe, [["__scopeId", "data-v-
|
|
104
|
+
}), _e = /* @__PURE__ */ S(fe, [["__scopeId", "data-v-19d56143"]]), ve = {
|
|
102
105
|
class: "layout"
|
|
103
106
|
}, ge = {
|
|
104
107
|
class: "leftContent"
|
|
@@ -128,17 +131,17 @@ const de = {
|
|
|
128
131
|
} = Q();
|
|
129
132
|
return X(), (d, u) => {
|
|
130
133
|
const m = oe("RouterView");
|
|
131
|
-
return e(), n("div", ve, [s("div", ge, [
|
|
134
|
+
return e(), n("div", ve, [s("div", ge, [y(_e, {
|
|
132
135
|
"menu-type": t.menuType,
|
|
133
136
|
"show-user-panel": t.showUserPanel
|
|
134
|
-
}, null, 8, ["menu-type", "show-user-panel"])]), s("div", ye, [s("div", be, [s("div", ke, [h(c) ? (e(), n("div", we, [
|
|
137
|
+
}, null, 8, ["menu-type", "show-user-panel"])]), s("div", ye, [s("div", be, [s("div", ke, [h(c) ? (e(), n("div", we, [y(h(D), {
|
|
135
138
|
size: 40
|
|
136
139
|
})])) : (e(), O(m, {
|
|
137
140
|
key: 1
|
|
138
141
|
}))])])])]);
|
|
139
142
|
};
|
|
140
143
|
}
|
|
141
|
-
}),
|
|
144
|
+
}), zt = /* @__PURE__ */ S(Se, [["__scopeId", "data-v-4a48c340"]]), $e = {
|
|
142
145
|
class: "ContentHead"
|
|
143
146
|
}, Ce = {
|
|
144
147
|
class: "title"
|
|
@@ -175,10 +178,10 @@ const de = {
|
|
|
175
178
|
class: "submenu-popup"
|
|
176
179
|
}, Le = {
|
|
177
180
|
class: "submenu-content"
|
|
178
|
-
}, Ue = ["onClick"],
|
|
181
|
+
}, Ue = ["onClick"], qe = {
|
|
179
182
|
key: 0,
|
|
180
183
|
class: "submenu-item-icon"
|
|
181
|
-
},
|
|
184
|
+
}, ze = {
|
|
182
185
|
class: "submenu-item-content"
|
|
183
186
|
}, He = {
|
|
184
187
|
class: "submenu-item-title"
|
|
@@ -209,7 +212,7 @@ const de = {
|
|
|
209
212
|
setup(a, {
|
|
210
213
|
emit: t
|
|
211
214
|
}) {
|
|
212
|
-
const c = a, d = t, u =
|
|
215
|
+
const c = a, d = t, u = q(!1), m = q(!1), b = q({});
|
|
213
216
|
function $() {
|
|
214
217
|
m.value = window.innerWidth <= 1024;
|
|
215
218
|
}
|
|
@@ -219,7 +222,7 @@ const de = {
|
|
|
219
222
|
function I() {
|
|
220
223
|
u.value = !1;
|
|
221
224
|
}
|
|
222
|
-
function
|
|
225
|
+
function f(l) {
|
|
223
226
|
d("change", l);
|
|
224
227
|
}
|
|
225
228
|
function M(l) {
|
|
@@ -228,22 +231,22 @@ const de = {
|
|
|
228
231
|
function T(l) {
|
|
229
232
|
b.value[l] = !b.value[l];
|
|
230
233
|
}
|
|
231
|
-
function
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
+
function _(l) {
|
|
235
|
+
const g = c.activateKey, o = l.path;
|
|
236
|
+
if (g === o || g.startsWith(o + "/"))
|
|
234
237
|
return !0;
|
|
235
238
|
if (l.children && l.children.length > 0) {
|
|
236
239
|
for (const p of l.children)
|
|
237
|
-
if (
|
|
240
|
+
if (g === p.path || g.startsWith(p.path + "/"))
|
|
238
241
|
return !0;
|
|
239
242
|
}
|
|
240
243
|
return !1;
|
|
241
244
|
}
|
|
242
245
|
function r(l) {
|
|
243
|
-
const
|
|
244
|
-
return !!(
|
|
246
|
+
const g = c.activateKey, o = l.path;
|
|
247
|
+
return !!(g === o || g.startsWith(o + "/"));
|
|
245
248
|
}
|
|
246
|
-
function
|
|
249
|
+
function v(l) {
|
|
247
250
|
d("change", l);
|
|
248
251
|
}
|
|
249
252
|
function P() {
|
|
@@ -253,13 +256,13 @@ const de = {
|
|
|
253
256
|
$(), window.addEventListener("resize", P);
|
|
254
257
|
}), ae(() => {
|
|
255
258
|
window.removeEventListener("resize", P);
|
|
256
|
-
}), (l,
|
|
259
|
+
}), (l, g) => (e(), n("div", Pe, [m.value ? k("", !0) : (e(), n("div", xe, [(e(!0), n(U, null, H(c.menus, (o, p) => (e(), n(U, {
|
|
257
260
|
key: p
|
|
258
261
|
}, [o.children && o.children.length > 0 ? (e(), n("div", Te, [s("div", {
|
|
259
262
|
class: L(["headerLink hasChildren", {
|
|
260
|
-
activate:
|
|
263
|
+
activate: _(o)
|
|
261
264
|
}])
|
|
262
|
-
}, [ie(w(o.name) + " ", 1),
|
|
265
|
+
}, [ie(w(o.name) + " ", 1), y(h(V), {
|
|
263
266
|
icon: "mingcute:down-line",
|
|
264
267
|
class: "dropdown-arrow"
|
|
265
268
|
})], 2), s("div", Ae, [s("div", Le, [(e(!0), n(U, null, H(o.children, (i, A) => (e(), n("div", {
|
|
@@ -267,15 +270,15 @@ const de = {
|
|
|
267
270
|
class: L(["submenu-item", {
|
|
268
271
|
active: r(i)
|
|
269
272
|
}]),
|
|
270
|
-
onClick: (
|
|
271
|
-
}, [i.icon ? (e(), n("div",
|
|
273
|
+
onClick: (z) => f(i)
|
|
274
|
+
}, [i.icon ? (e(), n("div", qe, [y(h(V), {
|
|
272
275
|
icon: i.icon
|
|
273
|
-
}, null, 8, ["icon"])])) : k("", !0), s("div",
|
|
276
|
+
}, null, 8, ["icon"])])) : k("", !0), s("div", ze, [s("div", He, w(i.name), 1), i.description ? (e(), n("div", Ke, w(i.description), 1)) : k("", !0)])], 10, Ue))), 128))])])])) : (e(), n("div", {
|
|
274
277
|
key: 1,
|
|
275
278
|
class: L(["headerLink", {
|
|
276
|
-
activate:
|
|
279
|
+
activate: _(o)
|
|
277
280
|
}]),
|
|
278
|
-
onClick: (i) =>
|
|
281
|
+
onClick: (i) => v(o)
|
|
279
282
|
}, w(o.name), 11, Ve))], 64))), 128))])), m.value ? (e(), n("button", {
|
|
280
283
|
key: 1,
|
|
281
284
|
class: L(["mobile-menu-toggle", {
|
|
@@ -283,7 +286,7 @@ const de = {
|
|
|
283
286
|
}]),
|
|
284
287
|
"aria-label": "切换菜单",
|
|
285
288
|
onClick: C
|
|
286
|
-
}, [...
|
|
289
|
+
}, [...g[0] || (g[0] = [s("span", {
|
|
287
290
|
class: "hamburger-line"
|
|
288
291
|
}, null, -1), s("span", {
|
|
289
292
|
class: "hamburger-line"
|
|
@@ -298,13 +301,13 @@ const de = {
|
|
|
298
301
|
}, [o.children && o.children.length > 0 ? (e(), n("div", {
|
|
299
302
|
key: 0,
|
|
300
303
|
class: L(["mobile-menu-item has-children", {
|
|
301
|
-
activate:
|
|
304
|
+
activate: _(o),
|
|
302
305
|
expanded: b.value[p]
|
|
303
306
|
}])
|
|
304
307
|
}, [s("div", {
|
|
305
308
|
class: "mobile-menu-item-header",
|
|
306
309
|
onClick: (i) => T(p)
|
|
307
|
-
}, [s("span", null, w(o.name), 1),
|
|
310
|
+
}, [s("span", null, w(o.name), 1), y(h(V), {
|
|
308
311
|
icon: b.value[p] ? "mingcute:up-line" : "mingcute:down-line",
|
|
309
312
|
class: "mobile-submenu-arrow"
|
|
310
313
|
}, null, 8, ["icon"])], 8, Be), b.value[p] ? (e(), n("div", Oe, [(e(!0), n(U, null, H(o.children, (i, A) => (e(), n("div", {
|
|
@@ -312,11 +315,11 @@ const de = {
|
|
|
312
315
|
class: L(["mobile-submenu-item", {
|
|
313
316
|
active: r(i)
|
|
314
317
|
}]),
|
|
315
|
-
onClick: (
|
|
318
|
+
onClick: (z) => M(i)
|
|
316
319
|
}, w(i.name), 11, Re))), 128))])) : k("", !0)], 2)) : (e(), n("div", {
|
|
317
320
|
key: 1,
|
|
318
321
|
class: L(["mobile-menu-item", {
|
|
319
|
-
activate:
|
|
322
|
+
activate: _(o)
|
|
320
323
|
}]),
|
|
321
324
|
onClick: (i) => M(o)
|
|
322
325
|
}, w(o.name), 11, De))], 64))), 128))])])) : k("", !0)]));
|
|
@@ -398,33 +401,33 @@ const de = {
|
|
|
398
401
|
} = F(), {
|
|
399
402
|
menus: m,
|
|
400
403
|
hasPermission: b
|
|
401
|
-
} = j(t.menuType), $ =
|
|
402
|
-
function
|
|
404
|
+
} = j(t.menuType), $ = q(""), C = Y(), I = Z();
|
|
405
|
+
function f(r) {
|
|
403
406
|
return r.split("?")[0].split("#")[0];
|
|
404
407
|
}
|
|
405
|
-
function M(r,
|
|
406
|
-
const P =
|
|
408
|
+
function M(r, v) {
|
|
409
|
+
const P = f(v);
|
|
407
410
|
function l(o, p) {
|
|
408
411
|
for (const i of o) {
|
|
409
|
-
if (
|
|
412
|
+
if (f(i.path) === p)
|
|
410
413
|
return i.path;
|
|
411
414
|
if (i.children && i.children.length > 0) {
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
return
|
|
415
|
+
const z = l(i.children, p);
|
|
416
|
+
if (z)
|
|
417
|
+
return z;
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
420
|
return null;
|
|
418
421
|
}
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
421
|
-
return
|
|
422
|
+
const g = l(r, P);
|
|
423
|
+
if (g)
|
|
424
|
+
return g;
|
|
422
425
|
for (const o of r) {
|
|
423
|
-
const p =
|
|
426
|
+
const p = f(o.path);
|
|
424
427
|
if (P.startsWith(p + "/") || P === p) {
|
|
425
428
|
if (o.children && o.children.length > 0)
|
|
426
429
|
for (const i of o.children) {
|
|
427
|
-
const A =
|
|
430
|
+
const A = f(i.path);
|
|
428
431
|
if (P.startsWith(A + "/") || P === A)
|
|
429
432
|
return o.path;
|
|
430
433
|
}
|
|
@@ -443,14 +446,14 @@ const de = {
|
|
|
443
446
|
});
|
|
444
447
|
});
|
|
445
448
|
}
|
|
446
|
-
function
|
|
447
|
-
const
|
|
448
|
-
if (!b(
|
|
449
|
+
function _(r) {
|
|
450
|
+
const v = r.path;
|
|
451
|
+
if (!b(v)) {
|
|
449
452
|
d.value || (c.value = !0);
|
|
450
453
|
return;
|
|
451
454
|
}
|
|
452
455
|
W(() => {
|
|
453
|
-
C.push(
|
|
456
|
+
C.push(v), $.value = v, window.scrollTo({
|
|
454
457
|
top: 0,
|
|
455
458
|
behavior: "smooth"
|
|
456
459
|
});
|
|
@@ -461,14 +464,14 @@ const de = {
|
|
|
461
464
|
}, {
|
|
462
465
|
immediate: !0,
|
|
463
466
|
deep: !0
|
|
464
|
-
}), (r,
|
|
467
|
+
}), (r, v) => (e(), n("div", Je, [s("div", Qe, [y(te, {
|
|
465
468
|
icon: h(u).applicationLogoUrl,
|
|
466
469
|
name: h(u).name,
|
|
467
470
|
onTo: T
|
|
468
|
-
}, null, 8, ["icon", "name"])]), s("div", Xe, [
|
|
471
|
+
}, null, 8, ["icon", "name"])]), s("div", Xe, [y(Ne, {
|
|
469
472
|
menus: h(m),
|
|
470
473
|
activateKey: $.value,
|
|
471
|
-
onChange:
|
|
474
|
+
onChange: _
|
|
472
475
|
}, null, 8, ["menus", "activateKey"]), t.showUserPanel ? (e(), O(ee, {
|
|
473
476
|
key: 0,
|
|
474
477
|
onToHomePage: T,
|
|
@@ -508,10 +511,10 @@ const de = {
|
|
|
508
511
|
backgroundImage: t.backgroundImage || nt,
|
|
509
512
|
backgroundAttachment: "fixed"
|
|
510
513
|
})
|
|
511
|
-
}, [
|
|
514
|
+
}, [y(Ze, {
|
|
512
515
|
"menu-type": t.menuType,
|
|
513
516
|
"show-user-panel": t.showUserPanel
|
|
514
|
-
}, null, 8, ["menu-type", "show-user-panel"]), s("div", et, [h(d) ? (e(), n("div", tt, [
|
|
517
|
+
}, null, 8, ["menu-type", "show-user-panel"]), s("div", et, [h(d) ? (e(), n("div", tt, [y(h(D), {
|
|
515
518
|
size: 40
|
|
516
519
|
})])) : R(u.$slots, "default", {
|
|
517
520
|
key: 1
|
|
@@ -613,7 +616,7 @@ function lt(a, t) {
|
|
|
613
616
|
}
|
|
614
617
|
const Wt = /* @__PURE__ */ S(ct, [["render", lt], ["__scopeId", "data-v-d06aac1f"]]);
|
|
615
618
|
export {
|
|
616
|
-
|
|
619
|
+
zt as A,
|
|
617
620
|
Ht as C,
|
|
618
621
|
Kt as D,
|
|
619
622
|
Vt as G,
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-DY1G3Blk.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
|
|
4
4
|
import { M, a as g } from "./Menu-ejsosUdV.js";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { C as $4 } from "./Clipboard-07wvmu-K.js";
|
|
|
18
18
|
import { F as W4, a as R4, c as z4, b as j4, d as q4 } from "./FeedbackItem-CdNcEvhG.js";
|
|
19
19
|
import { L as J4, a as Q4, b as X4, c as Y4, B as e6, C as t6, d as o6, e as s6, x as a6, y as i6, f as n6, g as r6, z as c6, h as l6, i as C6, j as d6, k as p6, l as f6, m as h6, n as u6, D as _6, o as g6, p as m6, q as L6, r as y6, s as w6, T as F6, t as M6, A as v6, u as k6, v as x6, w as H6 } from "./LandingPageSectionTabs-Vk5dMIEO.js";
|
|
20
20
|
import { L as V6, a as E6, b as U6, c as S6, D as b6, d as A6, e as G6, f as D6, g as P6, h as T6, i as O6, j as B6, k as I6, l as $6, m as N6, n as W6 } from "./LandingPageSectionHeader-BWX7bHHG.js";
|
|
21
|
-
import { A as z6, a as j6, C as q6, D as K6, G as J6, H as Q6, b as X6, L as Y6, S as e7, W as t7 } from "./WidthContainer-
|
|
21
|
+
import { A as z6, a as j6, C as q6, D as K6, G as J6, H as Q6, b as X6, L as Y6, S as e7, W as t7 } from "./WidthContainer-DY1G3Blk.js";
|
|
22
22
|
import { C as s7, a as a7 } from "./CollapseItem-Cw1vcdLu.js";
|
|
23
23
|
import { C as n7, E as r7 } from "./CustomTable-B8i1SbFB.js";
|
|
24
24
|
import { M as l7, a as C7 } from "./Menu-ejsosUdV.js";
|