@huyooo/ui 0.7.6 → 0.7.8
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-Bfcu3xeg.js → AuthkitAuthModal-Bw33YdCV.js} +349 -349
- package/dist/{AuthkitSignInPhone-CZGGn8Ax.js → AuthkitSignInPhone-CTBx9Mnm.js} +1 -1
- package/dist/{FeedbackItem-8-jd3QUl.js → FeedbackItem-NfzYzsjj.js} +1 -1
- package/dist/{FeedbackModal-scDtV6-8.js → FeedbackModal-Fqr-csbR.js} +1 -1
- package/dist/Menu-BbmibpaB.js +148 -0
- package/dist/{MessageHandle-CdBq2aDG.js → MessageHandle-BqSF5Jch.js} +36 -36
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-JL-A5Mot.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-kolf7c7s.js} +1 -1
- package/dist/{UserAccountMenu-B8HuXICE.js → UserAccountMenu-DXWF1zNh.js} +3 -3
- package/dist/{WidthContainer-BMroU2bt.js → WidthContainer-BZLnyK2P.js} +3 -3
- package/dist/authkit.js +2 -2
- package/dist/common.js +2 -2
- package/dist/components/Menu.vue.d.ts +24 -31
- package/dist/components/MenuItem.vue.d.ts +14 -54
- 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-BjWB9hre.js +0 -121
package/dist/user.js
CHANGED
package/package.json
CHANGED
package/dist/Menu-BjWB9hre.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as $, createElementBlock as r, createCommentVNode as f, openBlock as o, normalizeClass as x, createBlock as l, createElementVNode as t, unref as I, toDisplayString as K, Fragment as _, renderList as C } from "vue";
|
|
2
|
-
import { Icon as S } from "@iconify/vue";
|
|
3
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const E = /* @__PURE__ */ B({
|
|
5
|
-
__name: "MenuItem",
|
|
6
|
-
props: {
|
|
7
|
-
hidden: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
required: !0,
|
|
10
|
-
default: () => !1
|
|
11
|
-
},
|
|
12
|
-
path: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: !0,
|
|
15
|
-
default: () => ""
|
|
16
|
-
},
|
|
17
|
-
icon: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: !0,
|
|
20
|
-
default: () => ""
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: !0,
|
|
25
|
-
default: () => ""
|
|
26
|
-
},
|
|
27
|
-
active: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
required: !0,
|
|
30
|
-
default: () => !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup(d) {
|
|
34
|
-
const c = d, a = $(!1);
|
|
35
|
-
function p() {
|
|
36
|
-
a.value = !0;
|
|
37
|
-
}
|
|
38
|
-
function s() {
|
|
39
|
-
a.value = !1;
|
|
40
|
-
}
|
|
41
|
-
return (u, h) => c.hidden ? f("", !0) : (o(), r("div", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: x(["List", {
|
|
44
|
-
Active: c.active,
|
|
45
|
-
Hover: a.value && !c.active
|
|
46
|
-
}]),
|
|
47
|
-
onMouseover: p,
|
|
48
|
-
onMouseout: s
|
|
49
|
-
}, [c.icon ? (o(), l(I(S), {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: "icon",
|
|
52
|
-
icon: c.icon
|
|
53
|
-
}, null, 8, ["icon"])) : f("", !0), t("span", null, K(c.name), 1)], 34));
|
|
54
|
-
}
|
|
55
|
-
}), q = /* @__PURE__ */ A(E, [["__scopeId", "data-v-5a5b4938"]]), H = {
|
|
56
|
-
class: "Menu"
|
|
57
|
-
}, L = {
|
|
58
|
-
class: "TitleContent"
|
|
59
|
-
}, N = {
|
|
60
|
-
class: "Title"
|
|
61
|
-
}, T = {
|
|
62
|
-
class: "MenuItem2"
|
|
63
|
-
}, V = /* @__PURE__ */ B({
|
|
64
|
-
__name: "Menu",
|
|
65
|
-
props: {
|
|
66
|
-
menus: {
|
|
67
|
-
type: Array,
|
|
68
|
-
required: !0,
|
|
69
|
-
default: () => []
|
|
70
|
-
},
|
|
71
|
-
selectedKeys: {
|
|
72
|
-
type: Array,
|
|
73
|
-
required: !0,
|
|
74
|
-
default: () => []
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
emits: ["update:selectedKeys", "change"],
|
|
78
|
-
setup(d, {
|
|
79
|
-
emit: c
|
|
80
|
-
}) {
|
|
81
|
-
const a = d, p = c;
|
|
82
|
-
function s(u, h) {
|
|
83
|
-
console.log(u, "itemitemitemitem"), p("change", u, h);
|
|
84
|
-
}
|
|
85
|
-
return (u, h) => (o(), r("div", H, [(o(!0), r(_, null, C(a.menus, (e, i) => {
|
|
86
|
-
var v, y, k;
|
|
87
|
-
return o(), r("div", {
|
|
88
|
-
key: i
|
|
89
|
-
}, [e.children && e.children.length !== 0 ? (o(), r(_, {
|
|
90
|
-
key: 0
|
|
91
|
-
}, [t("span", L, [(v = e == null ? void 0 : e.meta) != null && v.icon || e != null && e.icon ? (o(), l(I(S), {
|
|
92
|
-
key: 0,
|
|
93
|
-
class: "icon",
|
|
94
|
-
icon: ((y = e == null ? void 0 : e.meta) == null ? void 0 : y.icon) || (e == null ? void 0 : e.icon)
|
|
95
|
-
}, null, 8, ["icon"])) : f("", !0), t("span", N, K(e.name), 1)]), t("span", T, [(o(!0), r(_, null, C(e.children, (n, g) => {
|
|
96
|
-
var M;
|
|
97
|
-
return o(), l(q, {
|
|
98
|
-
key: g,
|
|
99
|
-
hidden: n == null ? void 0 : n.hidden,
|
|
100
|
-
path: n.path,
|
|
101
|
-
icon: ((M = n == null ? void 0 : n.meta) == null ? void 0 : M.icon) || (n == null ? void 0 : n.icon),
|
|
102
|
-
name: n.name,
|
|
103
|
-
active: a.selectedKeys.includes(n.path),
|
|
104
|
-
onClick: (b) => s(n, g)
|
|
105
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
106
|
-
}), 128))])], 64)) : (o(), l(q, {
|
|
107
|
-
key: 1,
|
|
108
|
-
hidden: e == null ? void 0 : e.hidden,
|
|
109
|
-
path: e.path,
|
|
110
|
-
icon: ((k = e == null ? void 0 : e.meta) == null ? void 0 : k.icon) || (e == null ? void 0 : e.icon),
|
|
111
|
-
name: e.name,
|
|
112
|
-
active: a.selectedKeys.includes(e.path),
|
|
113
|
-
onClick: (n) => s(e, i)
|
|
114
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
115
|
-
}), 128))]));
|
|
116
|
-
}
|
|
117
|
-
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-833736e4"]]);
|
|
118
|
-
export {
|
|
119
|
-
j as M,
|
|
120
|
-
q as a
|
|
121
|
-
};
|