@huyooo/ui 0.7.4 → 0.7.6
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/MessageHandle-CdBq2aDG.js +1231 -0
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-JL-A5Mot.js +143 -0
- package/dist/{UserAccountMenu-p5U7UNro.js → UserAccountMenu-B8HuXICE.js} +1 -1
- package/dist/{WidthContainer-Cg_13I5r.js → WidthContainer-BMroU2bt.js} +1 -1
- package/dist/api/Message/NoticeNotifications.d.ts +21 -1
- package/dist/common.js +1 -1
- package/dist/index.js +9 -9
- package/dist/message.js +7 -7
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/MessageHandle-Bn5JXhlv.js +0 -1130
- package/dist/MessageMenu-_RZJ9Mbi.js +0 -114
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as $, createElementBlock as c, createCommentVNode as _, openBlock as n, normalizeClass as x, createBlock as u, createElementVNode as i, unref as I, toDisplayString as K, Fragment as h, 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: "MessageMenuItem",
|
|
6
|
-
props: {
|
|
7
|
-
hidden: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
required: !0
|
|
10
|
-
},
|
|
11
|
-
path: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: !0
|
|
14
|
-
},
|
|
15
|
-
icon: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
name: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: !0
|
|
22
|
-
},
|
|
23
|
-
active: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
required: !0
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
setup(l) {
|
|
29
|
-
const t = l, o = $(!1);
|
|
30
|
-
function d() {
|
|
31
|
-
o.value = !0;
|
|
32
|
-
}
|
|
33
|
-
function s() {
|
|
34
|
-
o.value = !1;
|
|
35
|
-
}
|
|
36
|
-
return (r, p) => t.hidden ? _("", !0) : (n(), c("div", {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: x(["List", {
|
|
39
|
-
Active: t.active,
|
|
40
|
-
Hover: o.value && !t.active
|
|
41
|
-
}]),
|
|
42
|
-
onMouseover: d,
|
|
43
|
-
onMouseout: s
|
|
44
|
-
}, [t.icon ? (n(), u(I(S), {
|
|
45
|
-
key: 0,
|
|
46
|
-
class: "icon",
|
|
47
|
-
icon: t.icon
|
|
48
|
-
}, null, 8, ["icon"])) : _("", !0), i("span", null, K(t.name), 1)], 34));
|
|
49
|
-
}
|
|
50
|
-
}), q = /* @__PURE__ */ A(E, [["__scopeId", "data-v-9eaa7e6a"]]), H = {
|
|
51
|
-
class: "Menu"
|
|
52
|
-
}, L = {
|
|
53
|
-
class: "TitleContent"
|
|
54
|
-
}, N = {
|
|
55
|
-
class: "Title"
|
|
56
|
-
}, T = {
|
|
57
|
-
class: "MenuItem2"
|
|
58
|
-
}, V = /* @__PURE__ */ B({
|
|
59
|
-
__name: "MessageMenu",
|
|
60
|
-
props: {
|
|
61
|
-
menus: {
|
|
62
|
-
type: Array,
|
|
63
|
-
required: !0
|
|
64
|
-
},
|
|
65
|
-
selectedKeys: {
|
|
66
|
-
type: Array,
|
|
67
|
-
required: !0
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
emits: ["update:selectedKeys", "change"],
|
|
71
|
-
setup(l, {
|
|
72
|
-
emit: t
|
|
73
|
-
}) {
|
|
74
|
-
const o = l, d = t;
|
|
75
|
-
function s(r, p) {
|
|
76
|
-
console.log(r, "itemitemitemitem"), d("change", r, p);
|
|
77
|
-
}
|
|
78
|
-
return (r, p) => (n(), c("div", H, [(n(!0), c(h, null, C(o.menus, (e, m) => {
|
|
79
|
-
var v, y, f;
|
|
80
|
-
return n(), c("div", {
|
|
81
|
-
key: m
|
|
82
|
-
}, [e.children && e.children.length !== 0 ? (n(), c(h, {
|
|
83
|
-
key: 0
|
|
84
|
-
}, [i("span", L, [(v = e == null ? void 0 : e.meta) != null && v.icon ? (n(), u(I(S), {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "icon",
|
|
87
|
-
icon: e.meta.icon
|
|
88
|
-
}, null, 8, ["icon"])) : _("", !0), i("span", N, K(e.name), 1)]), i("span", T, [(n(!0), c(h, null, C(e.children, (a, k) => {
|
|
89
|
-
var g, M;
|
|
90
|
-
return n(), u(q, {
|
|
91
|
-
key: k,
|
|
92
|
-
hidden: ((g = a.meta) == null ? void 0 : g.hidden) || !1,
|
|
93
|
-
path: a.path,
|
|
94
|
-
icon: (M = a.meta) == null ? void 0 : M.icon,
|
|
95
|
-
name: a.name,
|
|
96
|
-
active: o.selectedKeys.includes(a.path),
|
|
97
|
-
onClick: (b) => s(a, k)
|
|
98
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
99
|
-
}), 128))])], 64)) : (n(), u(q, {
|
|
100
|
-
key: 1,
|
|
101
|
-
hidden: ((y = e.meta) == null ? void 0 : y.hidden) || !1,
|
|
102
|
-
path: e.path,
|
|
103
|
-
icon: (f = e.meta) == null ? void 0 : f.icon,
|
|
104
|
-
name: e.name,
|
|
105
|
-
active: o.selectedKeys.includes(e.path),
|
|
106
|
-
onClick: (a) => s(e, m)
|
|
107
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
108
|
-
}), 128))]));
|
|
109
|
-
}
|
|
110
|
-
}), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-660c1eb8"]]);
|
|
111
|
-
export {
|
|
112
|
-
j as M,
|
|
113
|
-
q as a
|
|
114
|
-
};
|