@huyooo/ui 0.6.14 → 0.7.1

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