@huyooo/ui 0.7.3 → 0.7.5
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-BJVN7hp7.js +1223 -0
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-C6amsoZP.js +143 -0
- package/dist/{UserAccountMenu-DEoVmFrH.js → UserAccountMenu-C3KwDPVb.js} +1 -1
- package/dist/{WidthContainer-U9QrRW-u.js → WidthContainer-BmgqeRLU.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-eQlgrUIL.js +0 -1130
- package/dist/MessageMenu-_RZJ9Mbi.js +0 -114
package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-C6amsoZP.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent as m, ref as p, createElementBlock as l, createCommentVNode as v, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, toDisplayString as A, Fragment as h, renderList as N } from "vue";
|
|
2
|
+
import { Icon as D } from "@iconify/vue";
|
|
3
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import { D as $, n as x } from "./MessageHandle-BJVN7hp7.js";
|
|
5
|
+
const F = /* @__PURE__ */ m({
|
|
6
|
+
__name: "MessageMenuItem",
|
|
7
|
+
props: {
|
|
8
|
+
hidden: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
path: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
icon: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !0
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: !0
|
|
23
|
+
},
|
|
24
|
+
active: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
required: !0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(u) {
|
|
30
|
+
const n = u, o = p(!1);
|
|
31
|
+
function s() {
|
|
32
|
+
o.value = !0;
|
|
33
|
+
}
|
|
34
|
+
function r() {
|
|
35
|
+
o.value = !1;
|
|
36
|
+
}
|
|
37
|
+
return (i, a) => n.hidden ? v("", !0) : (t(), l("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: K(["List", {
|
|
40
|
+
Active: n.active,
|
|
41
|
+
Hover: o.value && !n.active
|
|
42
|
+
}]),
|
|
43
|
+
onMouseover: s,
|
|
44
|
+
onMouseout: r
|
|
45
|
+
}, [n.icon ? (t(), d(S(D), {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "icon",
|
|
48
|
+
icon: n.icon
|
|
49
|
+
}, null, 8, ["icon"])) : v("", !0), _("span", null, A(n.name), 1)], 34));
|
|
50
|
+
}
|
|
51
|
+
}), B = /* @__PURE__ */ I(F, [["__scopeId", "data-v-9eaa7e6a"]]), E = {
|
|
52
|
+
class: "Menu"
|
|
53
|
+
}, H = {
|
|
54
|
+
class: "TitleContent"
|
|
55
|
+
}, L = {
|
|
56
|
+
class: "Title"
|
|
57
|
+
}, O = {
|
|
58
|
+
class: "MenuItem2"
|
|
59
|
+
}, T = /* @__PURE__ */ m({
|
|
60
|
+
__name: "MessageMenu",
|
|
61
|
+
props: {
|
|
62
|
+
menus: {
|
|
63
|
+
type: Array,
|
|
64
|
+
required: !0
|
|
65
|
+
},
|
|
66
|
+
selectedKeys: {
|
|
67
|
+
type: Array,
|
|
68
|
+
required: !0
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
emits: ["update:selectedKeys", "change"],
|
|
72
|
+
setup(u, {
|
|
73
|
+
emit: n
|
|
74
|
+
}) {
|
|
75
|
+
const o = u, s = n;
|
|
76
|
+
function r(i, a) {
|
|
77
|
+
console.log(i, "itemitemitemitem"), s("change", i, a);
|
|
78
|
+
}
|
|
79
|
+
return (i, a) => (t(), l("div", E, [(t(!0), l(h, null, N(o.menus, (e, f) => {
|
|
80
|
+
var y, g, k;
|
|
81
|
+
return t(), l("div", {
|
|
82
|
+
key: f
|
|
83
|
+
}, [e.children && e.children.length !== 0 ? (t(), l(h, {
|
|
84
|
+
key: 0
|
|
85
|
+
}, [_("span", H, [(y = e == null ? void 0 : e.meta) != null && y.icon ? (t(), d(S(D), {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "icon",
|
|
88
|
+
icon: e.meta.icon
|
|
89
|
+
}, null, 8, ["icon"])) : v("", !0), _("span", L, A(e.name), 1)]), _("span", O, [(t(!0), l(h, null, N(e.children, (c, M) => {
|
|
90
|
+
var q, C;
|
|
91
|
+
return t(), d(B, {
|
|
92
|
+
key: M,
|
|
93
|
+
hidden: ((q = c.meta) == null ? void 0 : q.hidden) || !1,
|
|
94
|
+
path: c.path,
|
|
95
|
+
icon: (C = c.meta) == null ? void 0 : C.icon,
|
|
96
|
+
name: c.name,
|
|
97
|
+
active: o.selectedKeys.includes(c.path),
|
|
98
|
+
onClick: (V) => r(c, M)
|
|
99
|
+
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
100
|
+
}), 128))])], 64)) : (t(), d(B, {
|
|
101
|
+
key: 1,
|
|
102
|
+
hidden: ((g = e.meta) == null ? void 0 : g.hidden) || !1,
|
|
103
|
+
path: e.path,
|
|
104
|
+
icon: (k = e.meta) == null ? void 0 : k.icon,
|
|
105
|
+
name: e.name,
|
|
106
|
+
active: o.selectedKeys.includes(e.path),
|
|
107
|
+
onClick: (c) => r(e, f)
|
|
108
|
+
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
109
|
+
}), 128))]));
|
|
110
|
+
}
|
|
111
|
+
}), G = /* @__PURE__ */ I(T, [["__scopeId", "data-v-660c1eb8"]]), J = /* @__PURE__ */ m({
|
|
112
|
+
__name: "MessageNoticeNotificationsDetails",
|
|
113
|
+
props: {
|
|
114
|
+
id: {
|
|
115
|
+
type: String,
|
|
116
|
+
required: !0
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
setup(u) {
|
|
120
|
+
const n = p(!1), o = p(null), s = p(""), r = u;
|
|
121
|
+
function i() {
|
|
122
|
+
n.value = !0, x({
|
|
123
|
+
id: r.id
|
|
124
|
+
}).then(({
|
|
125
|
+
data: a
|
|
126
|
+
}) => {
|
|
127
|
+
o.value = a.content, s.value = a.title, n.value = !1;
|
|
128
|
+
}).catch((a) => {
|
|
129
|
+
console.error("获取通知详情失败:", a), n.value = !1;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
return i(), (a, e) => (t(), d($, {
|
|
133
|
+
content: o.value,
|
|
134
|
+
title: s.value,
|
|
135
|
+
loading: n.value
|
|
136
|
+
}, null, 8, ["content", "title", "loading"]));
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
G as M,
|
|
141
|
+
J as _,
|
|
142
|
+
B as a
|
|
143
|
+
};
|
|
@@ -9,7 +9,7 @@ import { R as je } from "./ReferrerReferees-CnYkGC5r.js";
|
|
|
9
9
|
import { a as N, u as He } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
10
10
|
import { u as Fe, g as oe } from "./auth-bwwc2iT8.js";
|
|
11
11
|
import { d as qe } from "./FeedbackModal-scDtV6-8.js";
|
|
12
|
-
import { M as Ee } from "./MessageHandle-
|
|
12
|
+
import { M as Ee } from "./MessageHandle-BJVN7hp7.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -10,7 +10,7 @@ import "./useUploadCos-EWMNJjRf.js";
|
|
|
10
10
|
import { useRouter as j, useRoute as J } from "vue-router";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { d as re, c as Q } from "./UserAccountMenu-
|
|
13
|
+
import { d as re, c as Q } from "./UserAccountMenu-C3KwDPVb.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
|
@@ -31,8 +31,10 @@ interface NoticeNotification {
|
|
|
31
31
|
updator: OperatorInfo | null;
|
|
32
32
|
createAt: string;
|
|
33
33
|
updateAt: string;
|
|
34
|
+
read?: boolean;
|
|
35
|
+
readAt?: string | null;
|
|
34
36
|
}
|
|
35
|
-
/**
|
|
37
|
+
/** 查询参数(管理端) */
|
|
36
38
|
interface FindParams {
|
|
37
39
|
current: number;
|
|
38
40
|
pageSize: number;
|
|
@@ -42,6 +44,16 @@ interface FindParams {
|
|
|
42
44
|
status?: NoticeStatus;
|
|
43
45
|
};
|
|
44
46
|
}
|
|
47
|
+
/** 查询参数(C端,支持已读过滤) */
|
|
48
|
+
interface OwnParams {
|
|
49
|
+
current: number;
|
|
50
|
+
pageSize: number;
|
|
51
|
+
where?: {
|
|
52
|
+
title?: string;
|
|
53
|
+
priority?: NoticePriority;
|
|
54
|
+
read?: boolean;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
45
57
|
/** 查询结果 */
|
|
46
58
|
interface FindResult {
|
|
47
59
|
items: NoticeNotification[];
|
|
@@ -51,4 +63,12 @@ export declare function noticeNotificationsFind(data: FindParams): Promise<impor
|
|
|
51
63
|
export declare function noticeNotificationsFindOne(data: {
|
|
52
64
|
id: string;
|
|
53
65
|
}): Promise<import('axios').AxiosResponse<NoticeNotification, any>>;
|
|
66
|
+
/** 查询用户可见的公告列表(C端,支持已读过滤) */
|
|
67
|
+
export declare function noticeNotificationsOwn(data: OwnParams): Promise<import('axios').AxiosResponse<FindResult, any>>;
|
|
68
|
+
/** 标记公告已读 */
|
|
69
|
+
export declare function noticeNotificationsRead(data: {
|
|
70
|
+
noticeId: string;
|
|
71
|
+
}): Promise<import('axios').AxiosResponse<Record<string, never>, any>>;
|
|
72
|
+
/** 标记所有公告已读 */
|
|
73
|
+
export declare function noticeNotificationsReadAll(): Promise<import('axios').AxiosResponse<Record<string, never>, any>>;
|
|
54
74
|
export {};
|
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-BmgqeRLU.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-BCOwLyRJ.js";
|
|
4
4
|
import { M, a as g } from "./Menu-BjWB9hre.js";
|
package/dist/index.js
CHANGED
|
@@ -11,21 +11,21 @@ import { b as b3, f as G3, g as D3, u as P3, a as T3, c as O3, e as B3, d as I3,
|
|
|
11
11
|
import { u as W3 } from "./useUploadCos-EWMNJjRf.js";
|
|
12
12
|
import { A as z3, a as j3, c as q3, b as K3, n as J3, E as Q3, k as X3, l as Y3, _ as e4, O as t4, _ as o4, O as s4, f as a4, o as i4, P as n4, j as r4, R as c4, S as l4, i as C4, m as d4, d as p4, e as f4, g as h4, h as u4, p as _4, u as g4 } from "./AuthkitAuthModal-Bfcu3xeg.js";
|
|
13
13
|
import { A as L4, a as y4, c as w4, d as F4, b as M4, b as k4, f as v4, e as x4 } from "./AuthkitSignInPhone-CZGGn8Ax.js";
|
|
14
|
-
import { I as Z4, A as V4, C as E4, _ as U4, a as A4, D as S4, E as b4, b as G4, M as D4, c as P4, N as T4,
|
|
15
|
-
import { M as
|
|
14
|
+
import { I as Z4, A as V4, C as E4, _ as U4, a as A4, D as S4, E as b4, b as G4, M as D4, c as P4, N as T4, d as O4, e as B4 } from "./MessageHandle-BJVN7hp7.js";
|
|
15
|
+
import { M as $4, a as N4, _ as W4 } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-C6amsoZP.js";
|
|
16
16
|
import { B as z4, a as j4, F as q4, b as K4, c as J4, d as Q4, R as X4 } from "./FeedbackModal-scDtV6-8.js";
|
|
17
17
|
import { C as e6 } from "./Clipboard-BAn3vQlX.js";
|
|
18
18
|
import { F as o6, a as s6, c as a6, b as i6, d as n6 } from "./FeedbackItem-8-jd3QUl.js";
|
|
19
19
|
import { L as c6, a as l6, b as C6, c as d6, B as p6, C as f6, d as h6, e as u6, x as _6, y as g6, f as m6, g as L6, z as y6, h as w6, i as F6, j as M6, k as k6, l as v6, m as x6, n as H6, D as Z6, o as V6, p as E6, q as U6, r as A6, s as S6, T as b6, t as G6, A as D6, u as P6, v as T6, w as O6 } from "./LandingPageSectionTabs-DYNXKElT.js";
|
|
20
20
|
import { L as I6, a as $6, b as N6, c as W6, D as R6, d as z6, e as j6, f as q6, g as K6, h as J6, i as Q6, j as X6, k as Y6, l as e7, m as t7, n as o7 } from "./LandingPageSectionHeader-BU7Qtxaj.js";
|
|
21
|
-
import { A as a7, a as i7, C as n7, D as r7, G as c7, H as l7, b as C7, L as d7, S as p7, W as f7 } from "./WidthContainer-
|
|
21
|
+
import { A as a7, a as i7, C as n7, D as r7, G as c7, H as l7, b as C7, L as d7, S as p7, W as f7 } from "./WidthContainer-BmgqeRLU.js";
|
|
22
22
|
import { C as u7, a as _7 } from "./CollapseItem-Cw1vcdLu.js";
|
|
23
23
|
import { C as m7, E as L7 } from "./CustomTable-BCOwLyRJ.js";
|
|
24
24
|
import { M as w7, a as F7 } from "./Menu-BjWB9hre.js";
|
|
25
25
|
import { S as k7 } from "./PaySubscriptions-C9LA8ZeX.js";
|
|
26
26
|
import { R as x7 } from "./ReferrerReferees-CnYkGC5r.js";
|
|
27
27
|
import { _ as Z7 } from "./Upload.vue_vue_type_script_setup_true_lang-BkqyMwbd.js";
|
|
28
|
-
import { d as E7, U as U7, a as A7, b as S7, c as b7, S as G7 } from "./UserAccountMenu-
|
|
28
|
+
import { d as E7, U as U7, a as A7, b as S7, c as b7, S as G7 } from "./UserAccountMenu-C3KwDPVb.js";
|
|
29
29
|
import { defineComponent as V, computed as U, createElementBlock as L, openBlock as g, normalizeStyle as g2, normalizeClass as o2, createElementVNode as d, createCommentVNode as x, toDisplayString as k, createVNode as Z, unref as H, createTextVNode as s2, withModifiers as a2, renderSlot as m2, withCtx as W, Fragment as T, renderList as O, createBlock as G, onMounted as i2, ref as $, watch as L2, onUnmounted as y2, withDirectives as w2, createStaticVNode as F2, vShow as M2 } from "vue";
|
|
30
30
|
import { Icon as A } from "@iconify/vue";
|
|
31
31
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1147,12 +1147,12 @@ export {
|
|
|
1147
1147
|
G4 as MessageEventNotificationsDetails,
|
|
1148
1148
|
D4 as MessageHandle,
|
|
1149
1149
|
P4 as MessageList,
|
|
1150
|
-
|
|
1151
|
-
|
|
1150
|
+
$4 as MessageMenu,
|
|
1151
|
+
N4 as MessageMenuItem,
|
|
1152
1152
|
T4 as MessageNoticeNotifications,
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
W4 as MessageNoticeNotificationsDetails,
|
|
1154
|
+
O4 as MessageNotifications,
|
|
1155
|
+
B4 as MessageTabs,
|
|
1156
1156
|
t3 as MobileDownloads,
|
|
1157
1157
|
k7 as PaySubscriptions,
|
|
1158
1158
|
x7 as ReferrerReferees,
|
package/dist/message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l,
|
|
2
|
-
import { M as
|
|
1
|
+
import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l, d as r, e as m } from "./MessageHandle-BJVN7hp7.js";
|
|
2
|
+
import { M as u, a as D, _ as C } from "./MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-C6amsoZP.js";
|
|
3
3
|
import { u as d } from "./useMessageNotifications-CnWbDToT.js";
|
|
4
4
|
export {
|
|
5
5
|
e as InfiniteLoading,
|
|
@@ -12,11 +12,11 @@ export {
|
|
|
12
12
|
f as MessageEventNotificationsDetails,
|
|
13
13
|
c as MessageHandle,
|
|
14
14
|
N as MessageList,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
u as MessageMenu,
|
|
16
|
+
D as MessageMenuItem,
|
|
17
17
|
l as MessageNoticeNotifications,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
C as MessageNoticeNotificationsDetails,
|
|
19
|
+
r as MessageNotifications,
|
|
20
|
+
m as MessageTabs,
|
|
21
21
|
d as useMessageNotifications
|
|
22
22
|
};
|