@huyooo/ui 0.7.10 → 0.7.12
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/{AuthkitAuthModal-34-MrGlW.js → AuthkitAuthModal-CqSeo3BV.js} +1 -1
- package/dist/{AuthkitSignInPhone-CPqtVW0F.js → AuthkitSignInPhone-oEFPCnVb.js} +1 -1
- package/dist/{FeedbackItem-DfOTCslB.js → FeedbackItem-D_lHQd2Q.js} +1 -1
- package/dist/{FeedbackModal-C2kYQh20.js → FeedbackModal-DAH5wASp.js} +1 -1
- package/dist/Menu--8QKf-tD.js +160 -0
- package/dist/{MessageHandle-DkGWGr2h.js → MessageHandle-DKH4vc_Z.js} +1 -1
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-1n5OTgBa.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-7Wh43plX.js} +1 -1
- package/dist/{UserAccountMenu-CdZ7kWP9.js → UserAccountMenu-7mZBCMbv.js} +3 -3
- package/dist/{WidthContainer-FIiKTcYm.js → WidthContainer-5d3CjoqE.js} +3 -3
- package/dist/authkit.js +2 -2
- package/dist/common.js +2 -2
- package/dist/feedback.js +2 -2
- package/dist/index.js +9 -9
- package/dist/message.js +2 -2
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/Menu-9T1GmwX0.js +0 -153
package/dist/user.js
CHANGED
package/package.json
CHANGED
package/dist/Menu-9T1GmwX0.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, createElementBlock as r, createCommentVNode as y, openBlock as l, normalizeClass as B, createBlock as f, createElementVNode as p, unref as E, toDisplayString as M, ref as b, watch as C, Fragment as h, renderList as x, createVNode as w, Transition as N, withCtx as V, withDirectives as A, vShow as D } from "vue";
|
|
2
|
-
import { Icon as $ } from "@iconify/vue";
|
|
3
|
-
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const z = {
|
|
5
|
-
class: "menu-item__name"
|
|
6
|
-
}, F = /* @__PURE__ */ S({
|
|
7
|
-
__name: "MenuItem",
|
|
8
|
-
props: {
|
|
9
|
-
hidden: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: !1
|
|
12
|
-
},
|
|
13
|
-
path: {
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
icon: {
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
name: {},
|
|
20
|
-
active: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
emits: ["click"],
|
|
26
|
-
setup(_, {
|
|
27
|
-
emit: m
|
|
28
|
-
}) {
|
|
29
|
-
const n = _, i = m;
|
|
30
|
-
return (o, d) => n.hidden ? y("", !0) : (l(), r("div", {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: B(["menu-item", {
|
|
33
|
-
"menu-item--active": n.active
|
|
34
|
-
}]),
|
|
35
|
-
onClick: d[0] || (d[0] = (v) => i("click"))
|
|
36
|
-
}, [n.icon ? (l(), f(E($), {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "menu-item__icon",
|
|
39
|
-
icon: n.icon,
|
|
40
|
-
width: 16
|
|
41
|
-
}, null, 8, ["icon"])) : y("", !0), p("span", z, M(n.name), 1)], 2));
|
|
42
|
-
}
|
|
43
|
-
}), K = /* @__PURE__ */ I(F, [["__scopeId", "data-v-74b57084"]]), L = {
|
|
44
|
-
class: "menu"
|
|
45
|
-
}, O = ["onClick"], T = {
|
|
46
|
-
class: "menu-group__title"
|
|
47
|
-
}, j = {
|
|
48
|
-
class: "menu-group__children"
|
|
49
|
-
}, q = /* @__PURE__ */ S({
|
|
50
|
-
__name: "Menu",
|
|
51
|
-
props: {
|
|
52
|
-
menus: {
|
|
53
|
-
default: () => []
|
|
54
|
-
},
|
|
55
|
-
selectedKeys: {
|
|
56
|
-
default: () => []
|
|
57
|
-
},
|
|
58
|
-
defaultExpandAll: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !0
|
|
61
|
-
},
|
|
62
|
-
accordion: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: ["update:selectedKeys", "change"],
|
|
68
|
-
setup(_, {
|
|
69
|
-
emit: m
|
|
70
|
-
}) {
|
|
71
|
-
const n = _, i = m, o = b([]);
|
|
72
|
-
function d() {
|
|
73
|
-
var s;
|
|
74
|
-
if (n.defaultExpandAll && !n.accordion)
|
|
75
|
-
o.value = n.menus.filter((a) => a.children && a.children.length > 0).map((a, e) => a.path || e.toString());
|
|
76
|
-
else {
|
|
77
|
-
o.value = [];
|
|
78
|
-
for (let a = 0; a < n.menus.length; a++) {
|
|
79
|
-
const e = n.menus[a];
|
|
80
|
-
if ((s = e.children) != null && s.some((c) => n.selectedKeys.includes(c.path)) && (o.value.push(e.path || a.toString()), n.accordion))
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function v(s) {
|
|
86
|
-
const a = o.value.indexOf(s);
|
|
87
|
-
a > -1 ? o.value.splice(a, 1) : n.accordion ? o.value = [s] : o.value.push(s);
|
|
88
|
-
}
|
|
89
|
-
function g(s) {
|
|
90
|
-
i("change", s), i("update:selectedKeys", [s.path]);
|
|
91
|
-
}
|
|
92
|
-
return C(() => n.menus, d, {
|
|
93
|
-
immediate: !0,
|
|
94
|
-
deep: !0
|
|
95
|
-
}), C(() => n.selectedKeys, (s) => {
|
|
96
|
-
var a;
|
|
97
|
-
for (let e = 0; e < n.menus.length; e++) {
|
|
98
|
-
const c = n.menus[e], u = c.path || e.toString();
|
|
99
|
-
if ((a = c.children) != null && a.some((t) => s.includes(t.path))) {
|
|
100
|
-
o.value.includes(u) || (n.accordion ? o.value = [u] : o.value.push(u));
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
deep: !0
|
|
106
|
-
}), (s, a) => (l(), r("div", L, [(l(!0), r(h, null, x(n.menus, (e, c) => {
|
|
107
|
-
var u;
|
|
108
|
-
return l(), r("div", {
|
|
109
|
-
key: e.path || c,
|
|
110
|
-
class: "menu-group"
|
|
111
|
-
}, [e.children && e.children.length > 0 ? (l(), r(h, {
|
|
112
|
-
key: 0
|
|
113
|
-
}, [p("div", {
|
|
114
|
-
class: "menu-group__header",
|
|
115
|
-
onClick: (t) => v(e.path || c.toString())
|
|
116
|
-
}, [p("span", T, M(e.name), 1), w(E($), {
|
|
117
|
-
class: B(["menu-group__arrow", {
|
|
118
|
-
"menu-group__arrow--expanded": o.value.includes(e.path || c.toString())
|
|
119
|
-
}]),
|
|
120
|
-
icon: "mingcute:down-line",
|
|
121
|
-
width: 12
|
|
122
|
-
}, null, 8, ["class"])], 8, O), w(N, {
|
|
123
|
-
name: "collapse"
|
|
124
|
-
}, {
|
|
125
|
-
default: V(() => [A(p("div", j, [(l(!0), r(h, null, x(e.children, (t) => {
|
|
126
|
-
var k;
|
|
127
|
-
return l(), f(K, {
|
|
128
|
-
key: t.path,
|
|
129
|
-
hidden: t == null ? void 0 : t.hidden,
|
|
130
|
-
path: t.path,
|
|
131
|
-
icon: ((k = t == null ? void 0 : t.meta) == null ? void 0 : k.icon) || (t == null ? void 0 : t.icon),
|
|
132
|
-
name: t.name,
|
|
133
|
-
active: n.selectedKeys.includes(t.path),
|
|
134
|
-
onClick: (G) => g(t)
|
|
135
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
136
|
-
}), 128))], 512), [[D, o.value.includes(e.path || c.toString())]])]),
|
|
137
|
-
_: 2
|
|
138
|
-
}, 1024)], 64)) : (l(), f(K, {
|
|
139
|
-
key: 1,
|
|
140
|
-
hidden: e == null ? void 0 : e.hidden,
|
|
141
|
-
path: e.path,
|
|
142
|
-
icon: ((u = e == null ? void 0 : e.meta) == null ? void 0 : u.icon) || (e == null ? void 0 : e.icon),
|
|
143
|
-
name: e.name,
|
|
144
|
-
active: n.selectedKeys.includes(e.path),
|
|
145
|
-
onClick: (t) => g(e)
|
|
146
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
147
|
-
}), 128))]));
|
|
148
|
-
}
|
|
149
|
-
}), Q = /* @__PURE__ */ I(q, [["__scopeId", "data-v-32e0597b"]]);
|
|
150
|
-
export {
|
|
151
|
-
Q as M,
|
|
152
|
-
K as a
|
|
153
|
-
};
|