@huyooo/ui 0.6.6 → 0.6.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.
Files changed (29) hide show
  1. package/dist/{AuthkitAuthModal-GorxR6ZJ.js → AuthkitAuthModal-Bfcu3xeg.js} +132 -133
  2. package/dist/{AuthkitSignInPhone-CLW_u8AY.js → AuthkitSignInPhone-CZGGn8Ax.js} +1 -1
  3. package/dist/{FeedbackItem-r5WNpUmu.js → FeedbackItem-8-jd3QUl.js} +1 -1
  4. package/dist/{FeedbackModal-BmRx3EOj.js → FeedbackModal-scDtV6-8.js} +319 -321
  5. package/dist/MessageHandle-CRKV0GBm.js +1182 -0
  6. package/dist/MessageNotifications-CJtKlzc3.js +35 -0
  7. package/dist/{UserAccountMenu-DHDAWoPE.js → UserAccountMenu-B8dw6I3n.js} +22 -23
  8. package/dist/{WidthContainer-DzPQ94uA.js → WidthContainer-CdCvKjzU.js} +2 -2
  9. package/dist/api/Message/ChangelogNotifications.d.ts +46 -2
  10. package/dist/api/Message/EventNotifications.d.ts +49 -2
  11. package/dist/api/Message/MessageNotifications.d.ts +55 -5
  12. package/dist/api/Message/NoticeNotifications.d.ts +54 -2
  13. package/dist/authkit.js +2 -2
  14. package/dist/common.js +1 -1
  15. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +1 -1
  16. package/dist/components/Message/MessageItem.vue.d.ts +40 -0
  17. package/dist/components/Message/MessageList.vue.d.ts +31 -92
  18. package/dist/composables/useMessageList.d.ts +52 -0
  19. package/dist/composables/useMessageNotifications.d.ts +40 -4
  20. package/dist/composables.js +1 -1
  21. package/dist/feedback.js +2 -2
  22. package/dist/index.js +8 -8
  23. package/dist/message.js +2 -2
  24. package/dist/style.css +1 -1
  25. package/dist/useMessageNotifications-CnWbDToT.js +84 -0
  26. package/dist/user.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/MessageHandle-BlsLRmdj.js +0 -820
  29. package/dist/useMessageNotifications-BT84SOgI.js +0 -105
@@ -1,820 +0,0 @@
1
- import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref as u, withCtx as y, createVNode as v, createCommentVNode as _, createElementBlock as g, Fragment as T, renderList as z, createElementVNode as $, renderSlot as I, toDisplayString as L, createTextVNode as N, withModifiers as q, normalizeClass as E, watch as R, isRef as F, mergeModels as w, useModel as H, computed as j } from "vue";
2
- /* empty css */
3
- /* empty css */
4
- /* empty css */
5
- /* empty css */
6
- import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
7
- import { c as S, g as D } from "./auth-bwwc2iT8.js";
8
- import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
9
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- /* empty css */
11
- import { useIntersectionObserver as X } from "@vueuse/core";
12
- import { u as Y } from "./useMessageNotifications-BT84SOgI.js";
13
- import { Icon as Z } from "@iconify/vue";
14
- import { u as ee } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
- import { M as te } from "./Menu-BjWB9hre.js";
16
- function ne(a) {
17
- return S({
18
- url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
19
- method: "post",
20
- data: a
21
- });
22
- }
23
- function se(a) {
24
- return S({
25
- url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
26
- method: "post",
27
- data: a
28
- });
29
- }
30
- const ie = /* @__PURE__ */ b({
31
- __name: "MessageDetails",
32
- props: {
33
- content: {
34
- type: Object,
35
- default: null
36
- },
37
- title: {
38
- type: String,
39
- required: !0
40
- },
41
- loading: {
42
- type: Boolean,
43
- default: !1
44
- }
45
- },
46
- emits: ["itemClick", "tableOfContentsUpdate", "update:title", "update:content"],
47
- setup(a, {
48
- emit: i
49
- }) {
50
- const o = r([]), c = a, n = r(!1), e = i, t = r();
51
- function s(f) {
52
- o.value = f, e("tableOfContentsUpdate", f);
53
- }
54
- return (f, h) => (l(), p(u(V), {
55
- loading: c.loading,
56
- tip: "文档加载中...",
57
- class: "Spin",
58
- dot: ""
59
- }, {
60
- default: y(() => [v(u(Q), {
61
- ref_key: "TiptapEditorRef",
62
- ref: t,
63
- "model-value": c.content,
64
- editable: n.value,
65
- "tiptap-editor-content-class": "tiptapEditorContentClass",
66
- onTableOfContentsUpdate: s
67
- }, {
68
- title: y(() => [v(u(W), {
69
- "model-value": c.title,
70
- editable: n.value
71
- }, null, 8, ["model-value", "editable"])]),
72
- _: 1
73
- }, 8, ["model-value", "editable"]), _("", !0)]),
74
- _: 1
75
- }, 8, ["loading"]));
76
- }
77
- }), U = /* @__PURE__ */ C(ie, [["__scopeId", "data-v-8eec0226"]]), ae = /* @__PURE__ */ b({
78
- __name: "MessageChangelogNotificationsDetails",
79
- props: {
80
- id: {
81
- type: String,
82
- required: !0
83
- }
84
- },
85
- setup(a) {
86
- const i = r(!1), o = r(null), c = r(""), n = a;
87
- function e() {
88
- i.value = !0, se({
89
- id: n.id
90
- }).then(({
91
- data: t
92
- }) => {
93
- o.value = t.content, c.value = t.title, i.value = !1;
94
- }).catch((t) => {
95
- console.error("获取变更日志详情失败:", t), i.value = !1;
96
- });
97
- }
98
- return e(), (t, s) => (l(), p(U, {
99
- content: o.value,
100
- title: c.value,
101
- loading: i.value
102
- }, null, 8, ["content", "title", "loading"]));
103
- }
104
- }), oe = {
105
- key: 0,
106
- class: "loading"
107
- }, le = {
108
- key: 1,
109
- class: "none"
110
- }, ue = /* @__PURE__ */ b({
111
- __name: "InfiniteLoading",
112
- props: {
113
- loading: {
114
- type: Boolean,
115
- default: !1
116
- },
117
- finished: {
118
- type: Boolean,
119
- default: !1
120
- },
121
- loadingText: {
122
- type: String,
123
- default: "数据加载中..."
124
- },
125
- finishedText: {
126
- type: String,
127
- default: "亲,没有更多了!"
128
- },
129
- showFinishedText: {
130
- type: Boolean,
131
- default: !0
132
- },
133
- threshold: {
134
- type: Number,
135
- default: 0
136
- }
137
- },
138
- emits: ["infinite"],
139
- setup(a, {
140
- emit: i
141
- }) {
142
- const o = a, c = i, n = r(null);
143
- return X(n, ([{
144
- isIntersecting: e
145
- }]) => {
146
- e && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
147
- !o.loading && !o.finished && c("infinite");
148
- }, {
149
- threshold: o.threshold
150
- }), (e, t) => (l(), g("div", {
151
- ref_key: "container",
152
- ref: n,
153
- class: "infinite-loading"
154
- }, [a.loading ? (l(), g("div", oe, [v(u(V), {
155
- tip: a.loadingText
156
- }, null, 8, ["tip"])])) : _("", !0), a.finished && a.showFinishedText ? (l(), g("div", le, [v(u(K), {
157
- description: a.finishedText
158
- }, null, 8, ["description"])])) : _("", !0)], 512));
159
- }
160
- }), ce = /* @__PURE__ */ C(ue, [["__scopeId", "data-v-b513f798"]]), re = {
161
- class: "message-list-container"
162
- }, de = {
163
- key: 0,
164
- class: "empty-wrapper"
165
- }, fe = {
166
- class: "messsageItemBody"
167
- }, pe = {
168
- class: "messageBody"
169
- }, ge = {
170
- class: "messageHeader"
171
- }, me = {
172
- key: 1,
173
- class: "title"
174
- }, ve = {
175
- class: "description"
176
- }, _e = {
177
- class: "createAt"
178
- }, ye = {
179
- class: "messageHandle"
180
- }, he = /* @__PURE__ */ b({
181
- __name: "MessageList",
182
- props: {
183
- messageList: {
184
- type: Array,
185
- required: !0
186
- },
187
- loading: {
188
- type: Boolean,
189
- default: !1
190
- },
191
- finished: {
192
- type: Boolean,
193
- default: !1
194
- },
195
- showButton: {
196
- type: Boolean,
197
- default: !0
198
- }
199
- },
200
- emits: ["openDetails", "infinite"],
201
- setup(a, {
202
- emit: i
203
- }) {
204
- const o = a, c = i;
205
- function n(e, t) {
206
- c("openDetails", e, t);
207
- }
208
- return (e, t) => (l(), g("div", re, [o.messageList.length === 0 ? (l(), g("div", de, [v(u(K), {
209
- description: "暂无消息"
210
- })])) : (l(), g(T, {
211
- key: 1
212
- }, [(l(!0), g(T, null, z(o.messageList, (s, f) => (l(), g("div", {
213
- key: f,
214
- class: "messageItem"
215
- }, [$("span", fe, [$("span", pe, [$("span", ge, [e.$slots.title ? I(e.$slots, "title", {
216
- key: 0,
217
- item: s,
218
- index: f
219
- }, void 0, !0) : (l(), g("span", me, L(s.title), 1))]), $("span", ve, [e.$slots.description ? I(e.$slots, "description", {
220
- key: 0,
221
- item: s,
222
- index: f
223
- }, void 0, !0) : (l(), g(T, {
224
- key: 1
225
- }, [N(L(s.description), 1)], 64))]), $("span", _e, [e.$slots.createAt ? I(e.$slots, "createAt", {
226
- key: 0,
227
- item: s,
228
- index: f
229
- }, void 0, !0) : (l(), g(T, {
230
- key: 1
231
- }, [N(L(s.createAt), 1)], 64))])]), $("span", ye, [e.$slots.handle ? I(e.$slots, "handle", {
232
- key: 0,
233
- item: s,
234
- index: f
235
- }, void 0, !0) : o.showButton ? (l(), p(u(G), {
236
- key: 1,
237
- type: "text",
238
- onClick: q((h) => n(s, f), ["stop"])
239
- }, {
240
- default: y(() => [...t[1] || (t[1] = [N("查看", -1)])]),
241
- _: 1
242
- }, 8, ["onClick"])) : _("", !0)])]), v(u(J), {
243
- style: {
244
- margin: "0px"
245
- }
246
- })]))), 128)), v(ce, {
247
- loading: o.loading,
248
- finished: o.finished,
249
- onInfinite: t[0] || (t[0] = (s) => e.$emit("infinite"))
250
- }, null, 8, ["loading", "finished"])], 64))]));
251
- }
252
- }), B = /* @__PURE__ */ C(he, [["__scopeId", "data-v-7b39af6e"]]), be = {
253
- class: "right"
254
- }, ke = /* @__PURE__ */ b({
255
- __name: "MessageChangelogNotifications",
256
- setup(a) {
257
- const i = r(!0), o = r();
258
- function c() {
259
- i.value = !0;
260
- }
261
- const n = r(!1), e = r(!1), t = r([]), s = r({
262
- total: 0,
263
- current: 1,
264
- pageSize: 10
265
- });
266
- function f() {
267
- n.value = !0, ne({
268
- current: s.value.current,
269
- pageSize: s.value.pageSize,
270
- where: {}
271
- }).then(({
272
- data: d
273
- }) => {
274
- n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
275
- }).catch(() => {
276
- n.value = !1;
277
- });
278
- }
279
- function h(d) {
280
- console.log(d, "itemitem"), o.value = d.id, i.value = !1;
281
- }
282
- return f(), (d, m) => (l(), g("div", be, [i.value ? _("", !0) : (l(), p(u(O), {
283
- key: 0,
284
- style: {
285
- "margin-bottom": "10px",
286
- cursor: "pointer"
287
- }
288
- }, {
289
- default: y(() => [v(u(x), {
290
- style: {
291
- padding: "0px"
292
- },
293
- onClick: c
294
- }, {
295
- default: y(() => [...m[0] || (m[0] = [N("功能变更", -1)])]),
296
- _: 1
297
- }), v(u(x), {
298
- style: {
299
- padding: "0px"
300
- }
301
- }, {
302
- default: y(() => [...m[1] || (m[1] = [N("详情", -1)])]),
303
- _: 1
304
- })]),
305
- _: 1
306
- })), i.value ? (l(), p(B, {
307
- key: 1,
308
- "message-list": t.value,
309
- loading: n.value,
310
- finished: e.value,
311
- onOpenDetails: h,
312
- onInfinite: f
313
- }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(ae, {
314
- key: 2,
315
- id: o.value
316
- }, null, 8, ["id"]))]));
317
- }
318
- }), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
319
- function Ce(a) {
320
- return S({
321
- url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
322
- method: "post",
323
- data: a
324
- });
325
- }
326
- function $e(a) {
327
- return S({
328
- url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
329
- method: "post",
330
- data: a
331
- });
332
- }
333
- const xe = /* @__PURE__ */ b({
334
- __name: "MessageEventNotificationsDetails",
335
- props: {
336
- id: {
337
- type: String,
338
- required: !0
339
- }
340
- },
341
- setup(a) {
342
- const i = r(!1), o = r(null), c = r(""), n = a;
343
- function e() {
344
- i.value = !0, $e({
345
- id: n.id
346
- }).then(({
347
- data: t
348
- }) => {
349
- o.value = t.content, c.value = t.title, i.value = !1;
350
- }).catch((t) => {
351
- console.error("获取事件通知详情失败:", t), i.value = !1;
352
- });
353
- }
354
- return e(), (t, s) => (l(), p(U, {
355
- content: o.value,
356
- title: c.value,
357
- loading: i.value
358
- }, null, 8, ["content", "title", "loading"]));
359
- }
360
- }), Me = {
361
- class: "right"
362
- }, Ae = /* @__PURE__ */ b({
363
- __name: "MessageEventNotifications",
364
- setup(a) {
365
- const i = r(!0), o = r();
366
- function c() {
367
- i.value = !0;
368
- }
369
- const n = r(!1), e = r(!1), t = r([]), s = r({
370
- total: 0,
371
- current: 1,
372
- pageSize: 10
373
- });
374
- function f() {
375
- n.value = !0, Ce({
376
- current: s.value.current,
377
- pageSize: s.value.pageSize,
378
- where: {}
379
- }).then(({
380
- data: d
381
- }) => {
382
- n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
383
- }).catch(() => {
384
- n.value = !1;
385
- });
386
- }
387
- function h(d) {
388
- o.value = d.id, i.value = !1;
389
- }
390
- return f(), (d, m) => (l(), g("div", Me, [i.value ? _("", !0) : (l(), p(u(O), {
391
- key: 0,
392
- style: {
393
- "margin-bottom": "10px",
394
- cursor: "pointer"
395
- }
396
- }, {
397
- default: y(() => [v(u(x), {
398
- style: {
399
- padding: "0px"
400
- },
401
- onClick: c
402
- }, {
403
- default: y(() => [...m[0] || (m[0] = [N("活动通知", -1)])]),
404
- _: 1
405
- }), v(u(x), {
406
- style: {
407
- padding: "0px"
408
- }
409
- }, {
410
- default: y(() => [...m[1] || (m[1] = [N("详情", -1)])]),
411
- _: 1
412
- })]),
413
- _: 1
414
- })), i.value ? (l(), p(B, {
415
- key: 1,
416
- "message-list": t.value,
417
- loading: n.value,
418
- finished: e.value,
419
- onOpenDetails: h,
420
- onInfinite: f
421
- }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(xe, {
422
- key: 2,
423
- id: o.value
424
- }, null, 8, ["id"]))]));
425
- }
426
- }), Te = /* @__PURE__ */ C(Ae, [["__scopeId", "data-v-d7c05b07"]]), Se = {
427
- style: {
428
- display: "flex",
429
- gap: "16px"
430
- }
431
- }, De = ["onClick"], Ie = /* @__PURE__ */ b({
432
- __name: "MessageCustomTabs",
433
- props: {
434
- modelValue: {
435
- type: String,
436
- default: "1"
437
- },
438
- tabs: {
439
- type: Array,
440
- default: () => [{
441
- label: "未读消息",
442
- key: "1"
443
- }, {
444
- label: "已读消息",
445
- key: "2"
446
- }]
447
- }
448
- },
449
- emits: ["update:modelValue", "change"],
450
- setup(a, {
451
- emit: i
452
- }) {
453
- const o = a, c = i;
454
- function n(e) {
455
- e !== o.modelValue && (c("update:modelValue", e), c("change", e));
456
- }
457
- return (e, t) => (l(), g("div", Se, [(l(!0), g(T, null, z(a.tabs, (s) => (l(), g("span", {
458
- key: s.key,
459
- class: E(["custom-tab", [{
460
- active: a.modelValue === s.key
461
- }]]),
462
- onClick: (f) => n(s.key)
463
- }, L(s.label), 11, De))), 128))]));
464
- }
465
- }), Le = /* @__PURE__ */ C(Ie, [["__scopeId", "data-v-fafcc3ad"]]), Oe = {
466
- class: "tabs"
467
- }, Be = /* @__PURE__ */ b({
468
- __name: "MessageTabs",
469
- props: {
470
- tabs: {
471
- type: Array,
472
- required: !0
473
- },
474
- messageList: {
475
- type: Array,
476
- required: !0
477
- },
478
- activeTab: {
479
- type: String,
480
- required: !0
481
- }
482
- },
483
- emits: ["update:activeTab", "change", "readAll"],
484
- setup(a, {
485
- emit: i
486
- }) {
487
- const o = a, c = i, n = r(o.activeTab);
488
- R(() => o.activeTab, (s) => {
489
- n.value = s;
490
- });
491
- function e(s) {
492
- n.value = s, c("update:activeTab", s), c("change", s);
493
- }
494
- function t() {
495
- o.messageList.length !== 0 && c("readAll");
496
- }
497
- return (s, f) => (l(), g("div", Oe, [v(Le, {
498
- modelValue: n.value,
499
- "onUpdate:modelValue": f[0] || (f[0] = (h) => n.value = h),
500
- tabs: a.tabs,
501
- onChange: e
502
- }, null, 8, ["modelValue", "tabs"]), n.value === "unread" ? (l(), g("div", {
503
- key: 0,
504
- class: E(["readAll", {
505
- disabled: a.messageList.length === 0
506
- }]),
507
- onClick: t
508
- }, [v(u(Z), {
509
- class: "icon",
510
- icon: "icon-park-outline:clear"
511
- }), f[1] || (f[1] = $("span", null, " 全部已读", -1))], 2)) : _("", !0)]));
512
- }
513
- }), Ue = /* @__PURE__ */ C(Be, [["__scopeId", "data-v-91277265"]]), we = {
514
- class: "right"
515
- }, ze = /* @__PURE__ */ b({
516
- __name: "MessageNotifications",
517
- setup(a) {
518
- const {
519
- isList: i,
520
- loading: o,
521
- finished: c,
522
- messageList: n,
523
- activeTab: e,
524
- tabs: t,
525
- toList: s,
526
- onTabChange: f,
527
- readAll: h,
528
- getData: d,
529
- openDetails: m
530
- } = Y("system");
531
- return (A, k) => (l(), g("div", we, [u(i) ? _("", !0) : (l(), p(u(O), {
532
- key: 0,
533
- style: {
534
- "margin-bottom": "10px",
535
- cursor: "pointer"
536
- }
537
- }, {
538
- default: y(() => [v(u(x), {
539
- style: {
540
- padding: "0px"
541
- },
542
- onClick: u(s)
543
- }, {
544
- default: y(() => [...k[1] || (k[1] = [N("消息通知", -1)])]),
545
- _: 1
546
- }, 8, ["onClick"]), v(u(x), {
547
- style: {
548
- padding: "0px"
549
- }
550
- }, {
551
- default: y(() => [...k[2] || (k[2] = [N("详情", -1)])]),
552
- _: 1
553
- })]),
554
- _: 1
555
- })), u(i) ? (l(), p(Ue, {
556
- key: 1,
557
- "active-tab": u(e),
558
- "onUpdate:activeTab": k[0] || (k[0] = (M) => F(e) ? e.value = M : null),
559
- tabs: u(t),
560
- "message-list": u(n),
561
- onChange: u(f),
562
- onReadAll: u(h)
563
- }, null, 8, ["active-tab", "tabs", "message-list", "onChange", "onReadAll"])) : _("", !0), u(i) ? (l(), p(B, {
564
- key: 2,
565
- "message-list": u(n),
566
- loading: u(o),
567
- finished: u(c),
568
- "show-button": !1,
569
- onOpenDetails: u(m),
570
- onInfinite: u(d)
571
- }, null, 8, ["message-list", "loading", "finished", "onOpenDetails", "onInfinite"])) : _("", !0)]));
572
- }
573
- }), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
574
- function Fe(a) {
575
- return S({
576
- url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
577
- method: "post",
578
- data: a
579
- });
580
- }
581
- function Ve(a) {
582
- return S({
583
- url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
584
- method: "post",
585
- data: a
586
- });
587
- }
588
- const Ke = /* @__PURE__ */ b({
589
- __name: "MessageNoticeNotificationsDetails",
590
- props: {
591
- id: {
592
- type: String,
593
- required: !0
594
- }
595
- },
596
- setup(a) {
597
- const i = r(!1), o = r(null), c = r(""), n = a;
598
- function e() {
599
- i.value = !0, Ve({
600
- id: n.id
601
- }).then(({
602
- data: t
603
- }) => {
604
- o.value = t.content, c.value = t.title, i.value = !1;
605
- }).catch((t) => {
606
- console.error("获取通知详情失败:", t), i.value = !1;
607
- });
608
- }
609
- return e(), (t, s) => (l(), p(U, {
610
- content: o.value,
611
- title: c.value,
612
- loading: i.value
613
- }, null, 8, ["content", "title", "loading"]));
614
- }
615
- }), qe = {
616
- class: "right"
617
- }, Re = /* @__PURE__ */ b({
618
- __name: "MessageNoticeNotifications",
619
- setup(a) {
620
- const i = r(), o = r(!0);
621
- function c() {
622
- o.value = !0;
623
- }
624
- const n = r(!1), e = r(!1), t = r([]), s = r({
625
- total: 0,
626
- current: 1,
627
- pageSize: 10
628
- });
629
- function f() {
630
- n.value = !0, Fe({
631
- current: s.value.current,
632
- pageSize: s.value.pageSize,
633
- where: {}
634
- }).then(({
635
- data: d
636
- }) => {
637
- n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
638
- }).catch(() => {
639
- n.value = !1;
640
- });
641
- }
642
- function h(d) {
643
- i.value = d.id, o.value = !1;
644
- }
645
- return f(), (d, m) => (l(), g("div", qe, [o.value ? _("", !0) : (l(), p(u(O), {
646
- key: 0,
647
- style: {
648
- "margin-bottom": "10px",
649
- cursor: "pointer"
650
- }
651
- }, {
652
- default: y(() => [v(u(x), {
653
- style: {
654
- padding: "0px"
655
- },
656
- onClick: c
657
- }, {
658
- default: y(() => [...m[0] || (m[0] = [N("公告", -1)])]),
659
- _: 1
660
- }), v(u(x), {
661
- style: {
662
- padding: "0px"
663
- }
664
- }, {
665
- default: y(() => [...m[1] || (m[1] = [N("详情", -1)])]),
666
- _: 1
667
- })]),
668
- _: 1
669
- })), o.value ? (l(), p(B, {
670
- key: 1,
671
- "message-list": t.value,
672
- loading: n.value,
673
- finished: e.value,
674
- onOpenDetails: h,
675
- onInfinite: f
676
- }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(Ke, {
677
- key: 2,
678
- id: i.value
679
- }, null, 8, ["id"]))]));
680
- }
681
- }), He = /* @__PURE__ */ C(Re, [["__scopeId", "data-v-cacc5d25"]]), je = {
682
- class: "content"
683
- }, Ge = {
684
- class: "left"
685
- }, Je = /* @__PURE__ */ b({
686
- __name: "MessageAppMessage",
687
- props: /* @__PURE__ */ w({
688
- menus: {
689
- type: Array,
690
- required: !0
691
- }
692
- }, {
693
- selectedKeys: {
694
- default: ["ChangelogNotifications"]
695
- },
696
- selectedKeysModifiers: {}
697
- }),
698
- emits: /* @__PURE__ */ w(["cancel", "change"], ["update:selectedKeys"]),
699
- setup(a, {
700
- expose: i,
701
- emit: o
702
- }) {
703
- const c = a, n = o, e = H(a, "selectedKeys"), t = j(() => e.value.length !== 0 ? e.value[0] : "");
704
- function s() {
705
- n("cancel");
706
- }
707
- function f(A, k) {
708
- const M = A.path;
709
- e.value = [M], n("change", A, k);
710
- }
711
- const {
712
- changeType: h,
713
- show: d
714
- } = ee(n);
715
- function m(A) {
716
- d.value = A, h.value = "编辑";
717
- }
718
- return i({
719
- setData: m
720
- }), (A, k) => (l(), p(u(P), {
721
- visible: u(d),
722
- "onUpdate:visible": k[1] || (k[1] = (M) => F(d) ? d.value = M : null),
723
- loading: !1,
724
- "body-class": "AppMessagebodyClass",
725
- "mask-closable": !1,
726
- footer: !1,
727
- "hide-title": !1,
728
- width: "880px",
729
- onCancel: s
730
- }, {
731
- default: y(() => [$("div", je, [$("div", Ge, [v(te, {
732
- "selected-keys": e.value,
733
- "onUpdate:selectedKeys": k[0] || (k[0] = (M) => e.value = M),
734
- menus: c.menus,
735
- onChange: f
736
- }, null, 8, ["selected-keys", "menus"])]), u(d) ? (l(), g(T, {
737
- key: 0
738
- }, [t.value === "ChangelogNotifications" ? (l(), p(Ne, {
739
- key: 0
740
- })) : _("", !0), t.value === "EventNotifications" ? (l(), p(Te, {
741
- key: 1
742
- })) : _("", !0), t.value === "MessageNotifications" ? (l(), p(Ee, {
743
- key: 2
744
- })) : _("", !0), t.value === "NoticeNotifications" ? (l(), p(He, {
745
- key: 3
746
- })) : _("", !0)], 64)) : _("", !0)])]),
747
- _: 1
748
- }, 8, ["visible"]));
749
- }
750
- }), Pe = /* @__PURE__ */ C(Je, [["__scopeId", "data-v-8f921467"]]), Qe = /* @__PURE__ */ b({
751
- __name: "MessageHandle",
752
- setup(a, {
753
- expose: i
754
- }) {
755
- const o = r(["ChangelogNotifications"]), c = r(), n = r(Symbol("key"));
756
- function e() {
757
- c.value.setData(!0);
758
- }
759
- function t() {
760
- n.value = Symbol("key");
761
- }
762
- function s() {
763
- n.value = Symbol("key");
764
- }
765
- const f = r([{
766
- name: "功能变更",
767
- path: "ChangelogNotifications",
768
- meta: {
769
- icon: "mingcute:cube-3d-fill"
770
- }
771
- }, {
772
- name: "活动通知",
773
- path: "EventNotifications",
774
- meta: {
775
- icon: "mingcute:receive-money-fill"
776
- }
777
- }, {
778
- name: "消息通知",
779
- path: "MessageNotifications",
780
- meta: {
781
- icon: "mingcute:message-1-fill"
782
- }
783
- }, {
784
- name: "公告",
785
- path: "NoticeNotifications",
786
- meta: {
787
- icon: "mingcute:announcement-fill"
788
- }
789
- }]);
790
- return i({
791
- openNotification: e
792
- }), (h, d) => (l(), p(Pe, {
793
- ref_key: "MessageNotificationsRef",
794
- ref: c,
795
- key: n.value,
796
- "selected-keys": o.value,
797
- "onUpdate:selectedKeys": d[0] || (d[0] = (m) => o.value = m),
798
- menus: f.value,
799
- title: "消息中心",
800
- onConfirm: s,
801
- onCancel: t
802
- }, null, 8, ["selected-keys", "menus"]));
803
- }
804
- }), dt = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-dd5fd3b4"]]);
805
- export {
806
- Pe as A,
807
- Ne as C,
808
- U as D,
809
- Te as E,
810
- ce as I,
811
- dt as M,
812
- He as N,
813
- ae as _,
814
- Le as a,
815
- xe as b,
816
- B as c,
817
- Ee as d,
818
- Ue as e,
819
- Ke as f
820
- };