@huyooo/ui 0.7.1 → 0.7.2

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