@huyooo/ui 0.7.1 → 0.7.3

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.
@@ -1,19 +1,19 @@
1
- import { ref as p, defineComponent as N, createBlock as v, openBlock as n, unref as t, withCtx as d, createVNode as C, createCommentVNode as h, createElementBlock as k, normalizeClass as V, createElementVNode as T, renderSlot as x, toDisplayString as w, createTextVNode as b, Fragment as R, renderList as G, createSlots as ee, mergeProps as U, watch as te, computed as J, mergeModels as j, useModel as se, isRef as ae } from "vue";
1
+ import { ref as g, defineComponent as M, createBlock as v, openBlock as n, unref as t, withCtx as c, createVNode as N, createCommentVNode as h, createElementBlock as b, normalizeClass as V, createElementVNode as w, renderSlot as T, toDisplayString as L, createTextVNode as C, Fragment as E, renderList as W, createSlots as ee, mergeProps as U, watch as te, computed as X, mergeModels as J, useModel as se, isRef as ae } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { Spin as Q, Empty as W, Tag as S, Button as ne, Breadcrumb as E, BreadcrumbItem as B, Modal as ie } from "@arco-design/web-vue";
7
+ import { Spin as Y, Empty as Z, Tag as x, Button as ne, Breadcrumb as F, BreadcrumbItem as B, Modal as ie } from "@arco-design/web-vue";
8
8
  import { c as D, g as O } from "./auth-bwwc2iT8.js";
9
9
  import { TiptapEditor as oe, TiptapTitle as le } from "@huyooo/vue-tiptap";
10
- import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { useIntersectionObserver as re } from "@vueuse/core";
12
- import { m as P, a as ue, b as de, c as ce } from "./MessageNotifications-CJtKlzc3.js";
12
+ import { m as Q, a as ue, b as de, c as ce } from "./MessageNotifications-CJtKlzc3.js";
13
13
  import { Icon as fe } from "@iconify/vue";
14
- import { u as ge } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
- import { M as me } from "./Menu-BjWB9hre.js";
16
- function pe(e) {
14
+ import { u as me } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
+ import { M as pe } from "./Menu-BjWB9hre.js";
16
+ function ge(e) {
17
17
  return D({
18
18
  url: `${O.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
19
19
  method: "post",
@@ -27,11 +27,11 @@ function ve(e) {
27
27
  data: e
28
28
  });
29
29
  }
30
- function H(e, o = {}) {
30
+ function G(e, o = {}) {
31
31
  const {
32
32
  pageSize: s = 10,
33
33
  where: u = {}
34
- } = o, l = p(!0), a = p(""), i = p(!1), r = p(!1), c = p([]), m = p({
34
+ } = o, l = g(!0), a = g(""), i = g(!1), r = g(!1), d = g([]), p = g({
35
35
  current: 1,
36
36
  pageSize: s,
37
37
  total: 0
@@ -41,43 +41,51 @@ function H(e, o = {}) {
41
41
  i.value = !0;
42
42
  try {
43
43
  const {
44
- data: I
44
+ data: A
45
45
  } = await e({
46
- current: m.value.current,
47
- pageSize: m.value.pageSize,
46
+ current: p.value.current,
47
+ pageSize: p.value.pageSize,
48
48
  where: u
49
49
  });
50
- c.value = I.items, m.value.total = I.count, r.value = I.items.length < m.value.pageSize;
50
+ d.value = A.items, p.value.total = A.count, r.value = A.items.length < p.value.pageSize;
51
51
  } finally {
52
52
  i.value = !1;
53
53
  }
54
54
  }
55
55
  }
56
- async function y() {
56
+ async function _() {
57
57
  if (!(i.value || r.value)) {
58
- m.value.current += 1, i.value = !0;
58
+ p.value.current += 1, i.value = !0;
59
59
  try {
60
60
  const {
61
- data: I
61
+ data: A
62
62
  } = await e({
63
- current: m.value.current,
64
- pageSize: m.value.pageSize,
63
+ current: p.value.current,
64
+ pageSize: p.value.pageSize,
65
65
  where: u
66
66
  });
67
- c.value = [...c.value, ...I.items], m.value.total = I.count, r.value = I.items.length < m.value.pageSize;
67
+ d.value = [...d.value, ...A.items], p.value.total = A.count, r.value = A.items.length < p.value.pageSize;
68
68
  } finally {
69
69
  i.value = !1;
70
70
  }
71
71
  }
72
72
  }
73
73
  async function f() {
74
- m.value.current = 1, r.value = !1, await $();
74
+ p.value.current = 1, r.value = !1, await $();
75
75
  }
76
- function g() {
76
+ function m() {
77
77
  l.value = !0, a.value = "";
78
78
  }
79
- function z(I) {
80
- a.value = I.id, l.value = !1;
79
+ function z(A) {
80
+ a.value = A.id, l.value = !1, R(A.id);
81
+ }
82
+ function R(A) {
83
+ const k = d.value.find((y) => y.id === A);
84
+ k && k.read !== void 0 && (k.read = !0);
85
+ }
86
+ function H(A) {
87
+ const k = d.value.find((y) => y.id === A);
88
+ k && k.read !== void 0 && (k.read = !1);
81
89
  }
82
90
  return $(), {
83
91
  // 状态
@@ -85,17 +93,19 @@ function H(e, o = {}) {
85
93
  detailId: a,
86
94
  loading: i,
87
95
  finished: r,
88
- messageList: c,
89
- pagination: m,
96
+ messageList: d,
97
+ pagination: p,
90
98
  // 方法
91
99
  loadData: $,
92
- loadMore: y,
100
+ loadMore: _,
93
101
  refresh: f,
94
- toList: g,
95
- openDetail: z
102
+ toList: m,
103
+ openDetail: z,
104
+ markAsRead: R,
105
+ markAsUnread: H
96
106
  };
97
107
  }
98
- const ye = /* @__PURE__ */ N({
108
+ const ye = /* @__PURE__ */ M({
99
109
  __name: "MessageDetails",
100
110
  props: {
101
111
  content: {
@@ -115,17 +125,17 @@ const ye = /* @__PURE__ */ N({
115
125
  setup(e, {
116
126
  emit: o
117
127
  }) {
118
- const s = p([]), u = e, l = p(!1), a = o, i = p();
119
- function r(c) {
120
- s.value = c, a("tableOfContentsUpdate", c);
128
+ const s = g([]), u = e, l = g(!1), a = o, i = g();
129
+ function r(d) {
130
+ s.value = d, a("tableOfContentsUpdate", d);
121
131
  }
122
- return (c, m) => (n(), v(t(Q), {
132
+ return (d, p) => (n(), v(t(Y), {
123
133
  loading: u.loading,
124
134
  tip: "文档加载中...",
125
135
  class: "Spin",
126
136
  dot: ""
127
137
  }, {
128
- default: d(() => [C(t(oe), {
138
+ default: c(() => [N(t(oe), {
129
139
  ref_key: "TiptapEditorRef",
130
140
  ref: i,
131
141
  "model-value": u.content,
@@ -133,7 +143,7 @@ const ye = /* @__PURE__ */ N({
133
143
  "tiptap-editor-content-class": "tiptapEditorContentClass",
134
144
  onTableOfContentsUpdate: r
135
145
  }, {
136
- title: d(() => [C(t(le), {
146
+ title: c(() => [N(t(le), {
137
147
  "model-value": u.title,
138
148
  editable: l.value
139
149
  }, null, 8, ["model-value", "editable"])]),
@@ -142,7 +152,7 @@ const ye = /* @__PURE__ */ N({
142
152
  _: 1
143
153
  }, 8, ["loading"]));
144
154
  }
145
- }), F = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-8eec0226"]]), _e = /* @__PURE__ */ N({
155
+ }), K = /* @__PURE__ */ I(ye, [["__scopeId", "data-v-8eec0226"]]), _e = /* @__PURE__ */ M({
146
156
  __name: "MessageChangelogNotificationsDetails",
147
157
  props: {
148
158
  id: {
@@ -151,7 +161,7 @@ const ye = /* @__PURE__ */ N({
151
161
  }
152
162
  },
153
163
  setup(e) {
154
- const o = p(!1), s = p(null), u = p(""), l = e;
164
+ const o = g(!1), s = g(null), u = g(""), l = e;
155
165
  function a() {
156
166
  o.value = !0, ve({
157
167
  id: l.id
@@ -163,7 +173,7 @@ const ye = /* @__PURE__ */ N({
163
173
  console.error("获取变更日志详情失败:", i), o.value = !1;
164
174
  });
165
175
  }
166
- return a(), (i, r) => (n(), v(F, {
176
+ return a(), (i, r) => (n(), v(K, {
167
177
  content: s.value,
168
178
  title: u.value,
169
179
  loading: o.value
@@ -172,10 +182,10 @@ const ye = /* @__PURE__ */ N({
172
182
  }), he = {
173
183
  key: 0,
174
184
  class: "loading"
175
- }, be = {
185
+ }, ke = {
176
186
  key: 1,
177
187
  class: "none"
178
- }, ke = /* @__PURE__ */ N({
188
+ }, be = /* @__PURE__ */ M({
179
189
  __name: "InfiniteLoading",
180
190
  props: {
181
191
  loading: {
@@ -207,7 +217,7 @@ const ye = /* @__PURE__ */ N({
207
217
  setup(e, {
208
218
  emit: o
209
219
  }) {
210
- const s = e, u = o, l = p(null);
220
+ const s = e, u = o, l = g(null);
211
221
  return re(l, ([{
212
222
  isIntersecting: a
213
223
  }]) => {
@@ -215,23 +225,23 @@ const ye = /* @__PURE__ */ N({
215
225
  !s.loading && !s.finished && u("infinite");
216
226
  }, {
217
227
  threshold: s.threshold
218
- }), (a, i) => (n(), k("div", {
228
+ }), (a, i) => (n(), b("div", {
219
229
  ref_key: "container",
220
230
  ref: l,
221
231
  class: "infinite-loading"
222
- }, [e.loading ? (n(), k("div", he, [C(t(Q), {
232
+ }, [e.loading ? (n(), b("div", he, [N(t(Y), {
223
233
  tip: e.loadingText
224
- }, null, 8, ["tip"])])) : h("", !0), e.finished && e.showFinishedText ? (n(), k("div", be, [C(t(W), {
234
+ }, null, 8, ["tip"])])) : h("", !0), e.finished && e.showFinishedText ? (n(), b("div", ke, [N(t(Z), {
225
235
  description: e.finishedText
226
236
  }, null, 8, ["description"])])) : h("", !0)], 512));
227
237
  }
228
- }), Ce = /* @__PURE__ */ L(ke, [["__scopeId", "data-v-b513f798"]]), $e = {
238
+ }), Ce = /* @__PURE__ */ I(be, [["__scopeId", "data-v-b513f798"]]), $e = {
229
239
  class: "message-item__content"
230
240
  }, Ne = {
231
241
  class: "message-item__header"
232
- }, Me = {
233
- class: "message-item__title"
234
242
  }, Ae = {
243
+ class: "message-item__title"
244
+ }, Me = {
235
245
  class: "message-item__tags"
236
246
  }, Se = {
237
247
  class: "message-item__description"
@@ -241,7 +251,7 @@ const ye = /* @__PURE__ */ N({
241
251
  class: "message-item__time"
242
252
  }, Ie = {
243
253
  class: "message-item__actions"
244
- }, Te = /* @__PURE__ */ N({
254
+ }, xe = /* @__PURE__ */ M({
245
255
  __name: "MessageItem",
246
256
  props: {
247
257
  item: {},
@@ -254,69 +264,69 @@ const ye = /* @__PURE__ */ N({
254
264
  },
255
265
  emits: ["click"],
256
266
  setup(e) {
257
- return (o, s) => (n(), k("div", {
267
+ return (o, s) => (n(), b("div", {
258
268
  class: V(["message-item", {
259
269
  "message-item--unread": e.showReadStatus && !e.item.read
260
270
  }]),
261
271
  onClick: s[0] || (s[0] = (u) => o.$emit("click", e.item))
262
- }, [T("div", $e, [T("div", Ne, [e.showReadStatus ? (n(), k("span", {
272
+ }, [w("div", $e, [w("div", Ne, [e.showReadStatus ? (n(), b("span", {
263
273
  key: 0,
264
274
  class: V(["message-item__dot", {
265
275
  "message-item__dot--unread": !e.item.read
266
276
  }])
267
- }, null, 2)) : h("", !0), x(o.$slots, "prefix", {
277
+ }, null, 2)) : h("", !0), T(o.$slots, "prefix", {
268
278
  item: e.item
269
- }, void 0, !0), T("span", Me, w(e.item.title), 1), T("div", Ae, [e.item.pinned ? (n(), v(t(S), {
279
+ }, void 0, !0), w("span", Ae, L(e.item.title), 1), w("div", Me, [e.item.pinned ? (n(), v(t(x), {
270
280
  key: 0,
271
281
  color: "arcoblue",
272
282
  size: "small"
273
283
  }, {
274
- default: d(() => [...s[1] || (s[1] = [b("置顶", -1)])]),
284
+ default: c(() => [...s[1] || (s[1] = [C("置顶", -1)])]),
275
285
  _: 1
276
- })) : h("", !0), x(o.$slots, "tags", {
286
+ })) : h("", !0), T(o.$slots, "tags", {
277
287
  item: e.item
278
- }, () => [e.item.priority === "urgent" ? (n(), v(t(S), {
288
+ }, () => [e.item.priority === "urgent" ? (n(), v(t(x), {
279
289
  key: 0,
280
290
  color: "red",
281
291
  size: "small"
282
292
  }, {
283
- default: d(() => [...s[2] || (s[2] = [b("紧急", -1)])]),
293
+ default: c(() => [...s[2] || (s[2] = [C("紧急", -1)])]),
284
294
  _: 1
285
- })) : e.item.priority === "important" ? (n(), v(t(S), {
295
+ })) : e.item.priority === "important" ? (n(), v(t(x), {
286
296
  key: 1,
287
297
  color: "orange",
288
298
  size: "small"
289
299
  }, {
290
- default: d(() => [...s[3] || (s[3] = [b("重要", -1)])]),
300
+ default: c(() => [...s[3] || (s[3] = [C("重要", -1)])]),
291
301
  _: 1
292
- })) : e.item.priority === "high" ? (n(), v(t(S), {
302
+ })) : e.item.priority === "high" ? (n(), v(t(x), {
293
303
  key: 2,
294
304
  color: "orange",
295
305
  size: "small"
296
306
  }, {
297
- default: d(() => [...s[4] || (s[4] = [b("高", -1)])]),
307
+ default: c(() => [...s[4] || (s[4] = [C("高", -1)])]),
298
308
  _: 1
299
- })) : h("", !0)], !0)])]), T("div", Se, [x(o.$slots, "description", {
309
+ })) : h("", !0)], !0)])]), w("div", Se, [T(o.$slots, "description", {
300
310
  item: e.item
301
- }, () => [b(w(e.item.description), 1)], !0)]), T("div", we, [T("span", Le, w(e.item.createAt), 1), x(o.$slots, "footer", {
311
+ }, () => [C(L(e.item.description), 1)], !0)]), w("div", we, [w("span", Le, L(e.item.createAt), 1), T(o.$slots, "footer", {
302
312
  item: e.item
303
- }, void 0, !0)])]), T("div", Ie, [x(o.$slots, "actions", {
313
+ }, void 0, !0)])]), w("div", Ie, [T(o.$slots, "actions", {
304
314
  item: e.item
305
315
  }, () => [e.showViewButton ? (n(), v(t(ne), {
306
316
  key: 0,
307
317
  type: "text",
308
318
  size: "small"
309
319
  }, {
310
- default: d(() => [...s[5] || (s[5] = [b("查看", -1)])]),
320
+ default: c(() => [...s[5] || (s[5] = [C("查看", -1)])]),
311
321
  _: 1
312
322
  })) : h("", !0)], !0)])], 2));
313
323
  }
314
- }), xe = /* @__PURE__ */ L(Te, [["__scopeId", "data-v-1cf5087b"]]), ze = {
324
+ }), Te = /* @__PURE__ */ I(xe, [["__scopeId", "data-v-1cf5087b"]]), ze = {
315
325
  class: "message-list"
316
326
  }, Be = {
317
327
  key: 0,
318
328
  class: "message-list__empty"
319
- }, De = /* @__PURE__ */ N({
329
+ }, De = /* @__PURE__ */ M({
320
330
  __name: "MessageList",
321
331
  props: {
322
332
  messageList: {},
@@ -341,60 +351,62 @@ const ye = /* @__PURE__ */ N({
341
351
  function l(a) {
342
352
  u("itemClick", a);
343
353
  }
344
- return (a, i) => (n(), k("div", ze, [s.messageList.length === 0 && !s.loading ? (n(), k("div", Be, [C(t(W), {
354
+ return (a, i) => (n(), b("div", ze, [s.messageList.length === 0 && !s.loading ? (n(), b("div", Be, [N(t(Z), {
345
355
  description: "暂无消息"
346
- })])) : (n(), k(R, {
356
+ })])) : (n(), b(E, {
347
357
  key: 1
348
- }, [(n(!0), k(R, null, G(s.messageList, (r) => (n(), v(xe, {
358
+ }, [(n(!0), b(E, null, W(s.messageList, (r) => (n(), v(Te, {
349
359
  key: r.id,
350
360
  item: r,
351
361
  "show-read-status": s.showReadStatus,
352
362
  "show-view-button": s.showViewButton,
353
- onClick: (c) => l(r)
363
+ onClick: (d) => l(r)
354
364
  }, ee({
355
365
  _: 2
356
366
  }, [a.$slots.prefix ? {
357
367
  name: "prefix",
358
- fn: d((c) => [x(a.$slots, "prefix", U({
368
+ fn: c((d) => [T(a.$slots, "prefix", U({
359
369
  ref_for: !0
360
- }, c), void 0, !0)]),
370
+ }, d), void 0, !0)]),
361
371
  key: "0"
362
372
  } : void 0, a.$slots.tags ? {
363
373
  name: "tags",
364
- fn: d((c) => [x(a.$slots, "tags", U({
374
+ fn: c((d) => [T(a.$slots, "tags", U({
365
375
  ref_for: !0
366
- }, c), void 0, !0)]),
376
+ }, d), void 0, !0)]),
367
377
  key: "1"
368
378
  } : void 0, a.$slots.description ? {
369
379
  name: "description",
370
- fn: d((c) => [x(a.$slots, "description", U({
380
+ fn: c((d) => [T(a.$slots, "description", U({
371
381
  ref_for: !0
372
- }, c), void 0, !0)]),
382
+ }, d), void 0, !0)]),
373
383
  key: "2"
374
384
  } : void 0, a.$slots.footer ? {
375
385
  name: "footer",
376
- fn: d((c) => [x(a.$slots, "footer", U({
386
+ fn: c((d) => [T(a.$slots, "footer", U({
377
387
  ref_for: !0
378
- }, c), void 0, !0)]),
388
+ }, d), void 0, !0)]),
379
389
  key: "3"
380
390
  } : void 0, a.$slots.actions ? {
381
391
  name: "actions",
382
- fn: d((c) => [x(a.$slots, "actions", U({
392
+ fn: c((d) => [T(a.$slots, "actions", U({
383
393
  ref_for: !0
384
- }, c), void 0, !0)]),
394
+ }, d), void 0, !0)]),
385
395
  key: "4"
386
- } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), C(Ce, {
396
+ } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), N(Ce, {
387
397
  loading: s.loading,
388
398
  finished: s.finished,
389
399
  onInfinite: i[0] || (i[0] = (r) => a.$emit("loadMore"))
390
400
  }, null, 8, ["loading", "finished"])], 64))]));
391
401
  }
392
- }), K = /* @__PURE__ */ L(De, [["__scopeId", "data-v-991c4730"]]), Oe = {
402
+ }), q = /* @__PURE__ */ I(De, [["__scopeId", "data-v-991c4730"]]), Oe = {
393
403
  class: "message-panel"
394
404
  }, Ue = {
405
+ class: "version-prefix"
406
+ }, Re = {
395
407
  key: 0,
396
408
  class: "publish-time"
397
- }, Ve = /* @__PURE__ */ N({
409
+ }, Ve = /* @__PURE__ */ M({
398
410
  __name: "MessageChangelogNotifications",
399
411
  setup(e) {
400
412
  const {
@@ -405,91 +417,85 @@ const ye = /* @__PURE__ */ N({
405
417
  messageList: a,
406
418
  loadMore: i,
407
419
  toList: r,
408
- openDetail: c
409
- } = H(pe);
410
- function m(y) {
420
+ openDetail: d
421
+ } = G(ge);
422
+ function p(_) {
411
423
  return {
412
424
  feature: "green",
413
425
  improvement: "blue",
414
426
  fix: "orange",
415
427
  security: "red",
416
428
  breaking: "magenta"
417
- }[y] || "blue";
429
+ }[_] || "blue";
418
430
  }
419
- function $(y) {
431
+ function $(_) {
420
432
  return {
421
433
  feature: "新功能",
422
434
  improvement: "优化",
423
435
  fix: "修复",
424
436
  security: "安全",
425
437
  breaking: "重大变更"
426
- }[y] || "更新";
438
+ }[_] || "更新";
427
439
  }
428
- return (y, f) => (n(), k("div", Oe, [t(o) ? h("", !0) : (n(), v(t(E), {
440
+ return (_, f) => (n(), b("div", Oe, [t(o) ? h("", !0) : (n(), v(t(F), {
429
441
  key: 0,
430
442
  class: "message-panel__breadcrumb"
431
443
  }, {
432
- default: d(() => [C(t(B), {
444
+ default: c(() => [N(t(B), {
433
445
  onClick: t(r)
434
446
  }, {
435
- default: d(() => [...f[0] || (f[0] = [b("更新日志", -1)])]),
447
+ default: c(() => [...f[0] || (f[0] = [C("更新日志", -1)])]),
436
448
  _: 1
437
- }, 8, ["onClick"]), C(t(B), null, {
438
- default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
449
+ }, 8, ["onClick"]), N(t(B), null, {
450
+ default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
439
451
  _: 1
440
452
  })]),
441
453
  _: 1
442
- })), t(o) ? (n(), v(K, {
454
+ })), t(o) ? (n(), v(q, {
443
455
  key: 1,
444
456
  "message-list": t(a),
445
457
  loading: t(u),
446
458
  finished: t(l),
447
- onItemClick: t(c),
459
+ onItemClick: t(d),
448
460
  onLoadMore: t(i)
449
461
  }, {
450
- prefix: d(({
451
- item: g
452
- }) => [C(t(S), {
453
- color: "arcoblue",
462
+ prefix: c(({
463
+ item: m
464
+ }) => [w("span", Ue, L(m.version), 1)]),
465
+ tags: c(({
466
+ item: m
467
+ }) => [N(t(x), {
468
+ color: p(m.changeType),
454
469
  size: "small"
455
470
  }, {
456
- default: d(() => [b(w(g.version), 1)]),
457
- _: 2
458
- }, 1024)]),
459
- tags: d(({
460
- item: g
461
- }) => [C(t(S), {
462
- color: m(g.changeType),
463
- size: "small"
464
- }, {
465
- default: d(() => [b(w($(g.changeType)), 1)]),
471
+ default: c(() => [C(L($(m.changeType)), 1)]),
466
472
  _: 2
467
473
  }, 1032, ["color"])]),
468
- footer: d(({
469
- item: g
470
- }) => [g.publishedAt ? (n(), k("span", Ue, " 发布于 " + w(g.publishedAt), 1)) : h("", !0)]),
474
+ footer: c(({
475
+ item: m
476
+ }) => [m.publishedAt ? (n(), b("span", Re, " 发布于 " + L(m.publishedAt), 1)) : h("", !0)]),
471
477
  _: 1
472
478
  }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(_e, {
473
479
  key: 2,
474
480
  id: t(s)
475
481
  }, null, 8, ["id"]))]));
476
482
  }
477
- }), Re = /* @__PURE__ */ L(Ve, [["__scopeId", "data-v-27c37cfc"]]);
478
- function Ee(e) {
483
+ }), Ee = /* @__PURE__ */ I(Ve, [["__scopeId", "data-v-20ecca66"]]);
484
+ function Fe(e) {
479
485
  return D({
480
486
  url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
481
487
  method: "post",
482
488
  data: e
483
489
  });
484
490
  }
485
- function Fe(e) {
491
+ function Ke(e) {
486
492
  return D({
487
493
  url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
488
494
  method: "post",
489
495
  data: e
490
496
  });
491
497
  }
492
- const Ke = /* @__PURE__ */ N({
498
+ const qe = /* @__PURE__ */ M({
493
499
  __name: "MessageEventNotificationsDetails",
494
500
  props: {
495
501
  id: {
@@ -498,9 +504,9 @@ const Ke = /* @__PURE__ */ N({
498
504
  }
499
505
  },
500
506
  setup(e) {
501
- const o = p(!1), s = p(null), u = p(""), l = e;
507
+ const o = g(!1), s = g(null), u = g(""), l = e;
502
508
  function a() {
503
- o.value = !0, Fe({
509
+ o.value = !0, Ke({
504
510
  id: l.id
505
511
  }).then(({
506
512
  data: i
@@ -510,18 +516,18 @@ const Ke = /* @__PURE__ */ N({
510
516
  console.error("获取事件通知详情失败:", i), o.value = !1;
511
517
  });
512
518
  }
513
- return a(), (i, r) => (n(), v(F, {
519
+ return a(), (i, r) => (n(), v(K, {
514
520
  content: s.value,
515
521
  title: u.value,
516
522
  loading: o.value
517
523
  }, null, 8, ["content", "title", "loading"]));
518
524
  }
519
- }), qe = {
525
+ }), He = {
520
526
  class: "message-panel"
521
- }, He = {
527
+ }, je = {
522
528
  key: 0,
523
529
  class: "time-range"
524
- }, je = /* @__PURE__ */ N({
530
+ }, Pe = /* @__PURE__ */ M({
525
531
  __name: "MessageEventNotifications",
526
532
  setup(e) {
527
533
  const {
@@ -532,75 +538,75 @@ const Ke = /* @__PURE__ */ N({
532
538
  messageList: a,
533
539
  loadMore: i,
534
540
  toList: r,
535
- openDetail: c
536
- } = H((y) => Ee({
537
- ...y,
541
+ openDetail: d
542
+ } = G((_) => Fe({
543
+ ..._,
538
544
  where: {
539
545
  status: "published"
540
546
  }
541
547
  }));
542
- function m(y) {
548
+ function p(_) {
543
549
  return {
544
550
  upcoming: "blue",
545
551
  ongoing: "green",
546
552
  ended: "gray",
547
553
  published: "arcoblue"
548
- }[y] || "gray";
554
+ }[_] || "gray";
549
555
  }
550
- function $(y) {
556
+ function $(_) {
551
557
  return {
552
558
  upcoming: "即将开始",
553
559
  ongoing: "进行中",
554
560
  ended: "已结束",
555
561
  published: "已发布"
556
- }[y] || "未知";
562
+ }[_] || "未知";
557
563
  }
558
- return (y, f) => (n(), k("div", qe, [t(o) ? h("", !0) : (n(), v(t(E), {
564
+ return (_, f) => (n(), b("div", He, [t(o) ? h("", !0) : (n(), v(t(F), {
559
565
  key: 0,
560
566
  class: "message-panel__breadcrumb"
561
567
  }, {
562
- default: d(() => [C(t(B), {
568
+ default: c(() => [N(t(B), {
563
569
  onClick: t(r)
564
570
  }, {
565
- default: d(() => [...f[0] || (f[0] = [b("活动通知", -1)])]),
571
+ default: c(() => [...f[0] || (f[0] = [C("活动通知", -1)])]),
566
572
  _: 1
567
- }, 8, ["onClick"]), C(t(B), null, {
568
- default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
573
+ }, 8, ["onClick"]), N(t(B), null, {
574
+ default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
569
575
  _: 1
570
576
  })]),
571
577
  _: 1
572
- })), t(o) ? (n(), v(K, {
578
+ })), t(o) ? (n(), v(q, {
573
579
  key: 1,
574
580
  "message-list": t(a),
575
581
  loading: t(u),
576
582
  finished: t(l),
577
- onItemClick: t(c),
583
+ onItemClick: t(d),
578
584
  onLoadMore: t(i)
579
585
  }, {
580
- tags: d(({
581
- item: g
582
- }) => [C(t(S), {
583
- color: m(g.displayStatus),
586
+ tags: c(({
587
+ item: m
588
+ }) => [N(t(x), {
589
+ color: p(m.displayStatus),
584
590
  size: "small"
585
591
  }, {
586
- default: d(() => [b(w($(g.displayStatus)), 1)]),
592
+ default: c(() => [C(L($(m.displayStatus)), 1)]),
587
593
  _: 2
588
594
  }, 1032, ["color"])]),
589
- footer: d(({
590
- item: g
591
- }) => [g.startAt || g.endAt ? (n(), k("span", He, w(g.startAt || "无") + " ~ " + w(g.endAt || "无"), 1)) : h("", !0)]),
595
+ footer: c(({
596
+ item: m
597
+ }) => [m.startAt || m.endAt ? (n(), b("span", je, L(m.startAt || "无") + " ~ " + L(m.endAt || "无"), 1)) : h("", !0)]),
592
598
  _: 1
593
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(Ke, {
599
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(qe, {
594
600
  key: 2,
595
601
  id: t(s)
596
602
  }, null, 8, ["id"]))]));
597
603
  }
598
- }), Pe = /* @__PURE__ */ L(je, [["__scopeId", "data-v-13297e28"]]), Ge = {
604
+ }), Ge = /* @__PURE__ */ I(Pe, [["__scopeId", "data-v-13297e28"]]), Je = {
599
605
  style: {
600
606
  display: "flex",
601
607
  gap: "16px"
602
608
  }
603
- }, Je = ["onClick"], Qe = /* @__PURE__ */ N({
609
+ }, Qe = ["onClick"], We = /* @__PURE__ */ M({
604
610
  __name: "MessageCustomTabs",
605
611
  props: {
606
612
  modelValue: {
@@ -626,17 +632,17 @@ const Ke = /* @__PURE__ */ N({
626
632
  function l(a) {
627
633
  a !== s.modelValue && (u("update:modelValue", a), u("change", a));
628
634
  }
629
- return (a, i) => (n(), k("div", Ge, [(n(!0), k(R, null, G(e.tabs, (r) => (n(), k("span", {
635
+ return (a, i) => (n(), b("div", Je, [(n(!0), b(E, null, W(e.tabs, (r) => (n(), b("span", {
630
636
  key: r.key,
631
637
  class: V(["custom-tab", [{
632
638
  active: e.modelValue === r.key
633
639
  }]]),
634
- onClick: (c) => l(r.key)
635
- }, w(r.label), 11, Je))), 128))]));
640
+ onClick: (d) => l(r.key)
641
+ }, L(r.label), 11, Qe))), 128))]));
636
642
  }
637
- }), We = /* @__PURE__ */ L(Qe, [["__scopeId", "data-v-fafcc3ad"]]), Xe = {
643
+ }), Xe = /* @__PURE__ */ I(We, [["__scopeId", "data-v-fafcc3ad"]]), Ye = {
638
644
  class: "tabs"
639
- }, Ye = /* @__PURE__ */ N({
645
+ }, Ze = /* @__PURE__ */ M({
640
646
  __name: "MessageTabs",
641
647
  props: {
642
648
  tabs: {
@@ -656,7 +662,7 @@ const Ke = /* @__PURE__ */ N({
656
662
  setup(e, {
657
663
  emit: o
658
664
  }) {
659
- const s = e, u = o, l = p(s.activeTab);
665
+ const s = e, u = o, l = g(s.activeTab);
660
666
  te(() => s.activeTab, (r) => {
661
667
  l.value = r;
662
668
  });
@@ -666,31 +672,31 @@ const Ke = /* @__PURE__ */ N({
666
672
  function i() {
667
673
  s.messageList.length !== 0 && u("readAll");
668
674
  }
669
- return (r, c) => (n(), k("div", Xe, [C(We, {
675
+ return (r, d) => (n(), b("div", Ye, [N(Xe, {
670
676
  modelValue: l.value,
671
- "onUpdate:modelValue": c[0] || (c[0] = (m) => l.value = m),
677
+ "onUpdate:modelValue": d[0] || (d[0] = (p) => l.value = p),
672
678
  tabs: e.tabs,
673
679
  onChange: a
674
- }, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (n(), k("div", {
680
+ }, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (n(), b("div", {
675
681
  key: 0,
676
682
  class: V(["readAll", {
677
683
  disabled: e.messageList.length === 0
678
684
  }]),
679
685
  onClick: i
680
- }, [C(t(fe), {
686
+ }, [N(t(fe), {
681
687
  class: "icon",
682
688
  icon: "icon-park-outline:clear"
683
- }), c[1] || (c[1] = T("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
689
+ }), d[1] || (d[1] = w("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
684
690
  }
685
- }), Ze = /* @__PURE__ */ L(Ye, [["__scopeId", "data-v-91277265"]]), et = {
691
+ }), et = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-91277265"]]), tt = {
686
692
  class: "message-panel"
687
- }, q = "system", tt = /* @__PURE__ */ N({
693
+ }, P = "system", st = /* @__PURE__ */ M({
688
694
  __name: "MessageNotifications",
689
695
  setup(e) {
690
- const o = p(!0), s = p(""), u = p(!1), l = p({
696
+ const o = g(!0), s = g(""), u = g(!1), l = g({
691
697
  title: "",
692
698
  content: null
693
- }), a = p(!1), i = p(!1), r = p([]), c = p("unread"), m = p({
699
+ }), a = g(!1), i = g(!1), r = g([]), d = g("unread"), p = g({
694
700
  current: 1,
695
701
  pageSize: 10,
696
702
  total: 0
@@ -700,173 +706,173 @@ const Ke = /* @__PURE__ */ N({
700
706
  }, {
701
707
  label: "已读消息",
702
708
  key: "read"
703
- }], y = J(() => c.value === "read");
709
+ }], _ = X(() => d.value === "read");
704
710
  async function f() {
705
711
  a.value = !0;
706
712
  try {
707
713
  const {
708
- data: M
709
- } = await P({
710
- current: m.value.current,
711
- pageSize: m.value.pageSize,
714
+ data: k
715
+ } = await Q({
716
+ current: p.value.current,
717
+ pageSize: p.value.pageSize,
712
718
  where: {
713
- type: q,
714
- read: y.value
719
+ type: P,
720
+ read: _.value
715
721
  }
716
722
  });
717
- r.value = M.items.map((_) => ({
718
- id: _.id,
719
- title: _.title,
720
- description: _.description,
721
- createAt: _.createAt,
722
- updateAt: _.updateAt,
723
- type: _.type,
724
- priority: _.priority,
725
- read: _.read ?? !1,
726
- readAt: _.readAt ?? null
727
- })), m.value.total = M.count, i.value = M.items.length < m.value.pageSize;
723
+ r.value = k.items.map((y) => ({
724
+ id: y.id,
725
+ title: y.title,
726
+ description: y.description,
727
+ createAt: y.createAt,
728
+ updateAt: y.updateAt,
729
+ type: y.type,
730
+ priority: y.priority,
731
+ read: y.read ?? !1,
732
+ readAt: y.readAt ?? null
733
+ })), p.value.total = k.count, i.value = k.items.length < p.value.pageSize;
728
734
  } finally {
729
735
  a.value = !1;
730
736
  }
731
737
  }
732
- async function g() {
738
+ async function m() {
733
739
  if (!(a.value || i.value)) {
734
- m.value.current += 1, a.value = !0;
740
+ p.value.current += 1, a.value = !0;
735
741
  try {
736
742
  const {
737
- data: M
738
- } = await P({
739
- current: m.value.current,
740
- pageSize: m.value.pageSize,
743
+ data: k
744
+ } = await Q({
745
+ current: p.value.current,
746
+ pageSize: p.value.pageSize,
741
747
  where: {
742
- type: q,
743
- read: y.value
748
+ type: P,
749
+ read: _.value
744
750
  }
745
- }), _ = M.items.map((A) => ({
746
- id: A.id,
747
- title: A.title,
748
- description: A.description,
749
- createAt: A.createAt,
750
- updateAt: A.updateAt,
751
- type: A.type,
752
- priority: A.priority,
753
- read: A.read ?? !1,
754
- readAt: A.readAt ?? null
751
+ }), y = k.items.map((S) => ({
752
+ id: S.id,
753
+ title: S.title,
754
+ description: S.description,
755
+ createAt: S.createAt,
756
+ updateAt: S.updateAt,
757
+ type: S.type,
758
+ priority: S.priority,
759
+ read: S.read ?? !1,
760
+ readAt: S.readAt ?? null
755
761
  }));
756
- r.value = [...r.value, ..._], i.value = M.items.length < m.value.pageSize;
762
+ r.value = [...r.value, ...y], i.value = k.items.length < p.value.pageSize;
757
763
  } finally {
758
764
  a.value = !1;
759
765
  }
760
766
  }
761
767
  }
762
768
  function z() {
763
- m.value.current = 1, i.value = !1, f();
769
+ p.value.current = 1, i.value = !1, f();
764
770
  }
765
- async function I() {
771
+ async function R() {
766
772
  r.value.length !== 0 && (await ue({
767
- type: q
773
+ type: P
768
774
  }), f());
769
775
  }
770
- function X() {
776
+ function H() {
771
777
  o.value = !0, s.value = "", l.value = {
772
778
  title: "",
773
779
  content: null
774
780
  };
775
781
  }
776
- async function Y(M) {
782
+ async function A(k) {
777
783
  u.value = !0;
778
784
  try {
779
785
  const {
780
- data: _
786
+ data: y
781
787
  } = await ce({
782
- id: M
788
+ id: k
783
789
  });
784
790
  l.value = {
785
- title: _.title,
786
- content: _.content
791
+ title: y.title,
792
+ content: y.content
787
793
  };
788
794
  } finally {
789
795
  u.value = !1;
790
796
  }
791
797
  }
792
- async function Z(M) {
793
- s.value = M.id, o.value = !1, M.read || await de({
794
- messageId: M.id
795
- }), Y(M.id);
798
+ async function j(k) {
799
+ s.value = k.id, o.value = !1, k.read || await de({
800
+ messageId: k.id
801
+ }), A(k.id);
796
802
  }
797
- return f(), (M, _) => (n(), k("div", et, [o.value ? h("", !0) : (n(), v(t(E), {
803
+ return f(), (k, y) => (n(), b("div", tt, [o.value ? h("", !0) : (n(), v(t(F), {
798
804
  key: 0,
799
805
  class: "message-panel__breadcrumb"
800
806
  }, {
801
- default: d(() => [C(t(B), {
802
- onClick: X
807
+ default: c(() => [N(t(B), {
808
+ onClick: H
803
809
  }, {
804
- default: d(() => [..._[1] || (_[1] = [b("消息通知", -1)])]),
810
+ default: c(() => [...y[1] || (y[1] = [C("消息通知", -1)])]),
805
811
  _: 1
806
- }), C(t(B), null, {
807
- default: d(() => [..._[2] || (_[2] = [b("详情", -1)])]),
812
+ }), N(t(B), null, {
813
+ default: c(() => [...y[2] || (y[2] = [C("详情", -1)])]),
808
814
  _: 1
809
815
  })]),
810
816
  _: 1
811
- })), o.value ? (n(), v(Ze, {
817
+ })), o.value ? (n(), v(et, {
812
818
  key: 1,
813
- "active-tab": c.value,
814
- "onUpdate:activeTab": _[0] || (_[0] = (A) => c.value = A),
819
+ "active-tab": d.value,
820
+ "onUpdate:activeTab": y[0] || (y[0] = (S) => d.value = S),
815
821
  tabs: $,
816
822
  "message-list": r.value,
817
823
  onChange: z,
818
- onReadAll: I
819
- }, null, 8, ["active-tab", "message-list"])) : h("", !0), o.value ? (n(), v(K, {
824
+ onReadAll: R
825
+ }, null, 8, ["active-tab", "message-list"])) : h("", !0), o.value ? (n(), v(q, {
820
826
  key: 2,
821
827
  "message-list": r.value,
822
828
  loading: a.value,
823
829
  finished: i.value,
824
830
  "show-read-status": !0,
825
831
  "show-view-button": !1,
826
- onItemClick: Z,
827
- onLoadMore: g
832
+ onItemClick: j,
833
+ onLoadMore: m
828
834
  }, {
829
- tags: d(({
830
- item: A
831
- }) => [A.priority === "urgent" ? (n(), v(t(S), {
835
+ tags: c(({
836
+ item: S
837
+ }) => [S.priority === "urgent" ? (n(), v(t(x), {
832
838
  key: 0,
833
839
  color: "red",
834
840
  size: "small"
835
841
  }, {
836
- default: d(() => [..._[3] || (_[3] = [b("紧急", -1)])]),
842
+ default: c(() => [...y[3] || (y[3] = [C("紧急", -1)])]),
837
843
  _: 1
838
- })) : A.priority === "high" ? (n(), v(t(S), {
844
+ })) : S.priority === "high" ? (n(), v(t(x), {
839
845
  key: 1,
840
846
  color: "orange",
841
847
  size: "small"
842
848
  }, {
843
- default: d(() => [..._[4] || (_[4] = [b("高", -1)])]),
849
+ default: c(() => [...y[4] || (y[4] = [C("高", -1)])]),
844
850
  _: 1
845
851
  })) : h("", !0)]),
846
852
  _: 1
847
- }, 8, ["message-list", "loading", "finished"])) : (n(), v(F, {
853
+ }, 8, ["message-list", "loading", "finished"])) : (n(), v(K, {
848
854
  key: 3,
849
855
  title: l.value.title,
850
856
  content: l.value.content,
851
857
  loading: u.value
852
858
  }, null, 8, ["title", "content", "loading"]))]));
853
859
  }
854
- }), st = /* @__PURE__ */ L(tt, [["__scopeId", "data-v-2fe260dd"]]);
855
- function at(e) {
860
+ }), at = /* @__PURE__ */ I(st, [["__scopeId", "data-v-2fe260dd"]]);
861
+ function nt(e) {
856
862
  return D({
857
863
  url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
858
864
  method: "post",
859
865
  data: e
860
866
  });
861
867
  }
862
- function nt(e) {
868
+ function it(e) {
863
869
  return D({
864
870
  url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
865
871
  method: "post",
866
872
  data: e
867
873
  });
868
874
  }
869
- const it = /* @__PURE__ */ N({
875
+ const ot = /* @__PURE__ */ M({
870
876
  __name: "MessageNoticeNotificationsDetails",
871
877
  props: {
872
878
  id: {
@@ -875,9 +881,9 @@ const it = /* @__PURE__ */ N({
875
881
  }
876
882
  },
877
883
  setup(e) {
878
- const o = p(!1), s = p(null), u = p(""), l = e;
884
+ const o = g(!1), s = g(null), u = g(""), l = e;
879
885
  function a() {
880
- o.value = !0, nt({
886
+ o.value = !0, it({
881
887
  id: l.id
882
888
  }).then(({
883
889
  data: i
@@ -887,18 +893,18 @@ const it = /* @__PURE__ */ N({
887
893
  console.error("获取通知详情失败:", i), o.value = !1;
888
894
  });
889
895
  }
890
- return a(), (i, r) => (n(), v(F, {
896
+ return a(), (i, r) => (n(), v(K, {
891
897
  content: s.value,
892
898
  title: u.value,
893
899
  loading: o.value
894
900
  }, null, 8, ["content", "title", "loading"]));
895
901
  }
896
- }), ot = {
902
+ }), lt = {
897
903
  class: "message-panel"
898
- }, lt = {
904
+ }, rt = {
899
905
  key: 0,
900
906
  class: "expire-time"
901
- }, rt = /* @__PURE__ */ N({
907
+ }, ut = /* @__PURE__ */ M({
902
908
  __name: "MessageNoticeNotifications",
903
909
  setup(e) {
904
910
  const {
@@ -909,86 +915,86 @@ const it = /* @__PURE__ */ N({
909
915
  messageList: a,
910
916
  loadMore: i,
911
917
  toList: r,
912
- openDetail: c
913
- } = H((y) => at({
914
- ...y,
918
+ openDetail: d
919
+ } = G((_) => nt({
920
+ ..._,
915
921
  where: {
916
922
  status: "published"
917
923
  }
918
924
  }));
919
- function m(y) {
925
+ function p(_) {
920
926
  return {
921
927
  published: "green",
922
928
  expired: "gray"
923
- }[y] || "gray";
929
+ }[_] || "gray";
924
930
  }
925
- function $(y) {
931
+ function $(_) {
926
932
  return {
927
933
  published: "有效",
928
934
  expired: "已过期"
929
- }[y] || "未知";
935
+ }[_] || "未知";
930
936
  }
931
- return (y, f) => (n(), k("div", ot, [t(o) ? h("", !0) : (n(), v(t(E), {
937
+ return (_, f) => (n(), b("div", lt, [t(o) ? h("", !0) : (n(), v(t(F), {
932
938
  key: 0,
933
939
  class: "message-panel__breadcrumb"
934
940
  }, {
935
- default: d(() => [C(t(B), {
941
+ default: c(() => [N(t(B), {
936
942
  onClick: t(r)
937
943
  }, {
938
- default: d(() => [...f[0] || (f[0] = [b("公告通知", -1)])]),
944
+ default: c(() => [...f[0] || (f[0] = [C("公告通知", -1)])]),
939
945
  _: 1
940
- }, 8, ["onClick"]), C(t(B), null, {
941
- default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
946
+ }, 8, ["onClick"]), N(t(B), null, {
947
+ default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
942
948
  _: 1
943
949
  })]),
944
950
  _: 1
945
- })), t(o) ? (n(), v(K, {
951
+ })), t(o) ? (n(), v(q, {
946
952
  key: 1,
947
953
  "message-list": t(a),
948
954
  loading: t(u),
949
955
  finished: t(l),
950
- onItemClick: t(c),
956
+ onItemClick: t(d),
951
957
  onLoadMore: t(i)
952
958
  }, {
953
- tags: d(({
954
- item: g
955
- }) => [g.priority === "urgent" ? (n(), v(t(S), {
959
+ tags: c(({
960
+ item: m
961
+ }) => [m.priority === "urgent" ? (n(), v(t(x), {
956
962
  key: 0,
957
963
  color: "red",
958
964
  size: "small"
959
965
  }, {
960
- default: d(() => [...f[2] || (f[2] = [b("紧急", -1)])]),
966
+ default: c(() => [...f[2] || (f[2] = [C("紧急", -1)])]),
961
967
  _: 1
962
- })) : g.priority === "important" ? (n(), v(t(S), {
968
+ })) : m.priority === "important" ? (n(), v(t(x), {
963
969
  key: 1,
964
970
  color: "orange",
965
971
  size: "small"
966
972
  }, {
967
- default: d(() => [...f[3] || (f[3] = [b("重要", -1)])]),
973
+ default: c(() => [...f[3] || (f[3] = [C("重要", -1)])]),
968
974
  _: 1
969
- })) : h("", !0), C(t(S), {
970
- color: m(g.displayStatus),
975
+ })) : h("", !0), N(t(x), {
976
+ color: p(m.displayStatus),
971
977
  size: "small"
972
978
  }, {
973
- default: d(() => [b(w($(g.displayStatus)), 1)]),
979
+ default: c(() => [C(L($(m.displayStatus)), 1)]),
974
980
  _: 2
975
981
  }, 1032, ["color"])]),
976
- footer: d(({
977
- item: g
978
- }) => [g.expireAt ? (n(), k("span", lt, w(g.displayStatus === "expired" ? "已过期" : `过期时间: ${g.expireAt}`), 1)) : h("", !0)]),
982
+ footer: c(({
983
+ item: m
984
+ }) => [m.expireAt ? (n(), b("span", rt, L(m.displayStatus === "expired" ? "已过期" : `过期时间: ${m.expireAt}`), 1)) : h("", !0)]),
979
985
  _: 1
980
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(it, {
986
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(ot, {
981
987
  key: 2,
982
988
  id: t(s)
983
989
  }, null, 8, ["id"]))]));
984
990
  }
985
- }), ut = /* @__PURE__ */ L(rt, [["__scopeId", "data-v-7bde4425"]]), dt = {
991
+ }), dt = /* @__PURE__ */ I(ut, [["__scopeId", "data-v-7bde4425"]]), ct = {
986
992
  class: "content"
987
- }, ct = {
993
+ }, ft = {
988
994
  class: "left"
989
- }, ft = /* @__PURE__ */ N({
995
+ }, mt = /* @__PURE__ */ M({
990
996
  __name: "MessageAppMessage",
991
- props: /* @__PURE__ */ j({
997
+ props: /* @__PURE__ */ J({
992
998
  menus: {
993
999
  type: Array,
994
1000
  required: !0
@@ -999,31 +1005,31 @@ const it = /* @__PURE__ */ N({
999
1005
  },
1000
1006
  selectedKeysModifiers: {}
1001
1007
  }),
1002
- emits: /* @__PURE__ */ j(["cancel", "change"], ["update:selectedKeys"]),
1008
+ emits: /* @__PURE__ */ J(["cancel", "change"], ["update:selectedKeys"]),
1003
1009
  setup(e, {
1004
1010
  expose: o,
1005
1011
  emit: s
1006
1012
  }) {
1007
- const u = e, l = s, a = se(e, "selectedKeys"), i = J(() => a.value.length !== 0 ? a.value[0] : "");
1013
+ const u = e, l = s, a = se(e, "selectedKeys"), i = X(() => a.value.length !== 0 ? a.value[0] : "");
1008
1014
  function r() {
1009
1015
  l("cancel");
1010
1016
  }
1011
- function c(f, g) {
1017
+ function d(f, m) {
1012
1018
  const z = f.path;
1013
- a.value = [z], l("change", f, g);
1019
+ a.value = [z], l("change", f, m);
1014
1020
  }
1015
1021
  const {
1016
- changeType: m,
1022
+ changeType: p,
1017
1023
  show: $
1018
- } = ge(l);
1019
- function y(f) {
1020
- $.value = f, m.value = "编辑";
1024
+ } = me(l);
1025
+ function _(f) {
1026
+ $.value = f, p.value = "编辑";
1021
1027
  }
1022
1028
  return o({
1023
- setData: y
1024
- }), (f, g) => (n(), v(t(ie), {
1029
+ setData: _
1030
+ }), (f, m) => (n(), v(t(ie), {
1025
1031
  visible: t($),
1026
- "onUpdate:visible": g[1] || (g[1] = (z) => ae($) ? $.value = z : null),
1032
+ "onUpdate:visible": m[1] || (m[1] = (z) => ae($) ? $.value = z : null),
1027
1033
  loading: !1,
1028
1034
  "body-class": "AppMessagebodyClass",
1029
1035
  "mask-closable": !1,
@@ -1032,31 +1038,31 @@ const it = /* @__PURE__ */ N({
1032
1038
  width: "880px",
1033
1039
  onCancel: r
1034
1040
  }, {
1035
- default: d(() => [T("div", dt, [T("div", ct, [C(me, {
1041
+ default: c(() => [w("div", ct, [w("div", ft, [N(pe, {
1036
1042
  "selected-keys": a.value,
1037
- "onUpdate:selectedKeys": g[0] || (g[0] = (z) => a.value = z),
1043
+ "onUpdate:selectedKeys": m[0] || (m[0] = (z) => a.value = z),
1038
1044
  menus: u.menus,
1039
- onChange: c
1040
- }, null, 8, ["selected-keys", "menus"])]), t($) ? (n(), k(R, {
1045
+ onChange: d
1046
+ }, null, 8, ["selected-keys", "menus"])]), t($) ? (n(), b(E, {
1041
1047
  key: 0
1042
- }, [i.value === "ChangelogNotifications" ? (n(), v(Re, {
1048
+ }, [i.value === "ChangelogNotifications" ? (n(), v(Ee, {
1043
1049
  key: 0
1044
- })) : h("", !0), i.value === "EventNotifications" ? (n(), v(Pe, {
1050
+ })) : h("", !0), i.value === "EventNotifications" ? (n(), v(Ge, {
1045
1051
  key: 1
1046
- })) : h("", !0), i.value === "MessageNotifications" ? (n(), v(st, {
1052
+ })) : h("", !0), i.value === "MessageNotifications" ? (n(), v(at, {
1047
1053
  key: 2
1048
- })) : h("", !0), i.value === "NoticeNotifications" ? (n(), v(ut, {
1054
+ })) : h("", !0), i.value === "NoticeNotifications" ? (n(), v(dt, {
1049
1055
  key: 3
1050
1056
  })) : h("", !0)], 64)) : h("", !0)])]),
1051
1057
  _: 1
1052
1058
  }, 8, ["visible"]));
1053
1059
  }
1054
- }), gt = /* @__PURE__ */ L(ft, [["__scopeId", "data-v-8f921467"]]), mt = /* @__PURE__ */ N({
1060
+ }), pt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-8f921467"]]), gt = /* @__PURE__ */ M({
1055
1061
  __name: "MessageHandle",
1056
1062
  setup(e, {
1057
1063
  expose: o
1058
1064
  }) {
1059
- const s = p(["ChangelogNotifications"]), u = p(), l = p(Symbol("key"));
1065
+ const s = g(["ChangelogNotifications"]), u = g(), l = g(Symbol("key"));
1060
1066
  function a() {
1061
1067
  u.value.setData(!0);
1062
1068
  }
@@ -1066,7 +1072,7 @@ const it = /* @__PURE__ */ N({
1066
1072
  function r() {
1067
1073
  l.value = Symbol("key");
1068
1074
  }
1069
- const c = p([{
1075
+ const d = g([{
1070
1076
  name: "功能变更",
1071
1077
  path: "ChangelogNotifications",
1072
1078
  meta: {
@@ -1093,32 +1099,32 @@ const it = /* @__PURE__ */ N({
1093
1099
  }]);
1094
1100
  return o({
1095
1101
  openNotification: a
1096
- }), (m, $) => (n(), v(gt, {
1102
+ }), (p, $) => (n(), v(pt, {
1097
1103
  ref_key: "MessageNotificationsRef",
1098
1104
  ref: u,
1099
1105
  key: l.value,
1100
1106
  "selected-keys": s.value,
1101
- "onUpdate:selectedKeys": $[0] || ($[0] = (y) => s.value = y),
1102
- menus: c.value,
1107
+ "onUpdate:selectedKeys": $[0] || ($[0] = (_) => s.value = _),
1108
+ menus: d.value,
1103
1109
  title: "消息中心",
1104
1110
  onConfirm: r,
1105
1111
  onCancel: i
1106
1112
  }, null, 8, ["selected-keys", "menus"]));
1107
1113
  }
1108
- }), It = /* @__PURE__ */ L(mt, [["__scopeId", "data-v-dd5fd3b4"]]);
1114
+ }), xt = /* @__PURE__ */ I(gt, [["__scopeId", "data-v-dd5fd3b4"]]);
1109
1115
  export {
1110
- gt as A,
1111
- Re as C,
1112
- F as D,
1113
- Pe as E,
1116
+ pt as A,
1117
+ Ee as C,
1118
+ K as D,
1119
+ Ge as E,
1114
1120
  Ce as I,
1115
- It as M,
1116
- ut as N,
1121
+ xt as M,
1122
+ dt as N,
1117
1123
  _e as _,
1118
- We as a,
1119
- Ke as b,
1120
- K as c,
1121
- st as d,
1122
- Ze as e,
1123
- it as f
1124
+ Xe as a,
1125
+ qe as b,
1126
+ q as c,
1127
+ at as d,
1128
+ et as e,
1129
+ ot as f
1124
1130
  };