@huyooo/ui 0.6.12 → 0.6.13

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,20 +1,20 @@
1
- import { defineComponent as N, createElementBlock as h, openBlock as i, normalizeStyle as te, normalizeClass as E, createElementVNode as I, computed as V, ref as g, createBlock as v, unref as s, withCtx as c, createVNode as b, createCommentVNode as k, renderSlot as x, toDisplayString as M, createTextVNode as C, Fragment as R, renderList as G, createSlots as se, mergeProps as U, watch as ne, mergeModels as W, useModel as ae, isRef as ie } from "vue";
1
+ import { defineComponent as N, createElementBlock as h, openBlock as o, normalizeStyle as te, normalizeClass as E, createElementVNode as M, computed as V, ref as g, createBlock as v, unref as s, withCtx as c, createVNode as b, createCommentVNode as k, toDisplayString as A, renderSlot as x, createTextVNode as C, Fragment as R, renderList as G, createSlots as se, mergeProps as U, watch as ne, mergeModels as W, useModel as ae, isRef as ie } 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 J, Empty as Q, Badge as oe, Tag as z, Button as le, Breadcrumb as F, BreadcrumbItem as B, Modal as re } from "@arco-design/web-vue";
7
+ import { Spin as J, Empty as Q, Tag as z, Button as oe, Breadcrumb as F, BreadcrumbItem as B, Modal as le } from "@arco-design/web-vue";
8
8
  import { c as D, g as O } from "./auth-bwwc2iT8.js";
9
- import { TiptapEditor as ue, TiptapTitle as ce } from "@huyooo/vue-tiptap";
10
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { useIntersectionObserver as de } from "@vueuse/core";
12
- import { _ as fe, g as me, i as pe } from "./plugin-vue_export-helper-LjDO2Zua.js";
13
- import { m as Z, a as ge, b as ve, c as ye } from "./MessageNotifications-CJtKlzc3.js";
14
- import { Icon as _e } from "@iconify/vue";
15
- import { u as he } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
16
- import { M as ke } from "./Menu-BjWB9hre.js";
17
- const be = N({
9
+ import { TiptapEditor as re, TiptapTitle as ue } from "@huyooo/vue-tiptap";
10
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { useIntersectionObserver as ce } from "@vueuse/core";
12
+ import { _ as de, g as fe, i as me } from "./plugin-vue_export-helper-LjDO2Zua.js";
13
+ import { m as Z, a as pe, b as ge, c as ve } from "./MessageNotifications-CJtKlzc3.js";
14
+ import { Icon as ye } from "@iconify/vue";
15
+ import { u as _e } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
16
+ import { M as he } from "./Menu-BjWB9hre.js";
17
+ const ke = N({
18
18
  name: "IconPushpin",
19
19
  props: {
20
20
  size: {
@@ -43,11 +43,11 @@ const be = N({
43
43
  setup(e, {
44
44
  emit: n
45
45
  }) {
46
- const t = me("icon"), l = V(() => [t, `${t}-pushpin`, {
46
+ const t = fe("icon"), l = V(() => [t, `${t}-pushpin`, {
47
47
  [`${t}-spin`]: e.spin
48
48
  }]), r = V(() => {
49
49
  const a = {};
50
- return e.size && (a.fontSize = pe(e.size) ? `${e.size}px` : e.size), e.rotate && (a.transform = `rotate(${e.rotate}deg)`), a;
50
+ return e.size && (a.fontSize = me(e.size) ? `${e.size}px` : e.size), e.rotate && (a.transform = `rotate(${e.rotate}deg)`), a;
51
51
  });
52
52
  return {
53
53
  cls: l,
@@ -57,9 +57,9 @@ const be = N({
57
57
  }
58
58
  };
59
59
  }
60
- }), Ce = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
61
- function $e(e, n, t, l, r, o) {
62
- return i(), h("svg", {
60
+ }), be = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
61
+ function Ce(e, n, t, l, r, i) {
62
+ return o(), h("svg", {
63
63
  viewBox: "0 0 48 48",
64
64
  fill: "none",
65
65
  xmlns: "http://www.w3.org/2000/svg",
@@ -70,26 +70,26 @@ function $e(e, n, t, l, r, o) {
70
70
  "stroke-linecap": e.strokeLinecap,
71
71
  "stroke-linejoin": e.strokeLinejoin,
72
72
  onClick: n[0] || (n[0] = (...a) => e.onClick && e.onClick(...a))
73
- }, n[1] || (n[1] = [I("path", {
73
+ }, n[1] || (n[1] = [M("path", {
74
74
  d: "M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"
75
- }, null, -1)]), 14, Ce);
75
+ }, null, -1)]), 14, be);
76
76
  }
77
- var P = /* @__PURE__ */ fe(be, [["render", $e]]);
78
- const Ne = Object.assign(P, {
77
+ var P = /* @__PURE__ */ de(ke, [["render", Ce]]);
78
+ const $e = Object.assign(P, {
79
79
  install: (e, n) => {
80
80
  var t;
81
81
  const l = (t = n == null ? void 0 : n.iconPrefix) != null ? t : "";
82
82
  e.component(l + P.name, P);
83
83
  }
84
84
  });
85
- function Se(e) {
85
+ function Ne(e) {
86
86
  return D({
87
87
  url: `${O.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
88
88
  method: "post",
89
89
  data: e
90
90
  });
91
91
  }
92
- function we(e) {
92
+ function Se(e) {
93
93
  return D({
94
94
  url: `${O.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
95
95
  method: "post",
@@ -100,7 +100,7 @@ function H(e, n = {}) {
100
100
  const {
101
101
  pageSize: t = 10,
102
102
  where: l = {}
103
- } = n, r = g(!0), o = g(""), a = g(!1), u = g(!1), d = g([]), p = g({
103
+ } = n, r = g(!0), i = g(""), a = g(!1), u = g(!1), d = g([]), p = g({
104
104
  current: 1,
105
105
  pageSize: t,
106
106
  total: 0
@@ -110,13 +110,13 @@ function H(e, n = {}) {
110
110
  a.value = !0;
111
111
  try {
112
112
  const {
113
- data: L
113
+ data: I
114
114
  } = await e({
115
115
  current: p.value.current,
116
116
  pageSize: p.value.pageSize,
117
117
  where: l
118
118
  });
119
- d.value = L.items, p.value.total = L.count, u.value = L.items.length < p.value.pageSize;
119
+ d.value = I.items, p.value.total = I.count, u.value = I.items.length < p.value.pageSize;
120
120
  } finally {
121
121
  a.value = !1;
122
122
  }
@@ -127,13 +127,13 @@ function H(e, n = {}) {
127
127
  p.value.current += 1, a.value = !0;
128
128
  try {
129
129
  const {
130
- data: L
130
+ data: I
131
131
  } = await e({
132
132
  current: p.value.current,
133
133
  pageSize: p.value.pageSize,
134
134
  where: l
135
135
  });
136
- d.value = [...d.value, ...L.items], p.value.total = L.count, u.value = L.items.length < p.value.pageSize;
136
+ d.value = [...d.value, ...I.items], p.value.total = I.count, u.value = I.items.length < p.value.pageSize;
137
137
  } finally {
138
138
  a.value = !1;
139
139
  }
@@ -143,15 +143,15 @@ function H(e, n = {}) {
143
143
  p.value.current = 1, u.value = !1, await $();
144
144
  }
145
145
  function m() {
146
- r.value = !0, o.value = "";
146
+ r.value = !0, i.value = "";
147
147
  }
148
- function T(L) {
149
- o.value = L.id, r.value = !1;
148
+ function T(I) {
149
+ i.value = I.id, r.value = !1;
150
150
  }
151
151
  return $(), {
152
152
  // 状态
153
153
  isList: r,
154
- detailId: o,
154
+ detailId: i,
155
155
  loading: a,
156
156
  finished: u,
157
157
  messageList: d,
@@ -164,7 +164,7 @@ function H(e, n = {}) {
164
164
  openDetail: T
165
165
  };
166
166
  }
167
- const Me = /* @__PURE__ */ N({
167
+ const we = /* @__PURE__ */ N({
168
168
  __name: "MessageDetails",
169
169
  props: {
170
170
  content: {
@@ -184,17 +184,17 @@ const Me = /* @__PURE__ */ N({
184
184
  setup(e, {
185
185
  emit: n
186
186
  }) {
187
- const t = g([]), l = e, r = g(!1), o = n, a = g();
187
+ const t = g([]), l = e, r = g(!1), i = n, a = g();
188
188
  function u(d) {
189
- t.value = d, o("tableOfContentsUpdate", d);
189
+ t.value = d, i("tableOfContentsUpdate", d);
190
190
  }
191
- return (d, p) => (i(), v(s(J), {
191
+ return (d, p) => (o(), v(s(J), {
192
192
  loading: l.loading,
193
193
  tip: "文档加载中...",
194
194
  class: "Spin",
195
195
  dot: ""
196
196
  }, {
197
- default: c(() => [b(s(ue), {
197
+ default: c(() => [b(s(re), {
198
198
  ref_key: "TiptapEditorRef",
199
199
  ref: a,
200
200
  "model-value": l.content,
@@ -202,7 +202,7 @@ const Me = /* @__PURE__ */ N({
202
202
  "tiptap-editor-content-class": "tiptapEditorContentClass",
203
203
  onTableOfContentsUpdate: u
204
204
  }, {
205
- title: c(() => [b(s(ce), {
205
+ title: c(() => [b(s(ue), {
206
206
  "model-value": l.title,
207
207
  editable: r.value
208
208
  }, null, 8, ["model-value", "editable"])]),
@@ -211,7 +211,7 @@ const Me = /* @__PURE__ */ N({
211
211
  _: 1
212
212
  }, 8, ["loading"]));
213
213
  }
214
- }), K = /* @__PURE__ */ A(Me, [["__scopeId", "data-v-8eec0226"]]), Ae = /* @__PURE__ */ N({
214
+ }), K = /* @__PURE__ */ L(we, [["__scopeId", "data-v-8eec0226"]]), Me = /* @__PURE__ */ N({
215
215
  __name: "MessageChangelogNotificationsDetails",
216
216
  props: {
217
217
  id: {
@@ -221,8 +221,8 @@ const Me = /* @__PURE__ */ N({
221
221
  },
222
222
  setup(e) {
223
223
  const n = g(!1), t = g(null), l = g(""), r = e;
224
- function o() {
225
- n.value = !0, we({
224
+ function i() {
225
+ n.value = !0, Se({
226
226
  id: r.id
227
227
  }).then(({
228
228
  data: a
@@ -232,19 +232,19 @@ const Me = /* @__PURE__ */ N({
232
232
  console.error("获取变更日志详情失败:", a), n.value = !1;
233
233
  });
234
234
  }
235
- return o(), (a, u) => (i(), v(K, {
235
+ return i(), (a, u) => (o(), v(K, {
236
236
  content: t.value,
237
237
  title: l.value,
238
238
  loading: n.value
239
239
  }, null, 8, ["content", "title", "loading"]));
240
240
  }
241
- }), Le = {
241
+ }), Ae = {
242
242
  key: 0,
243
243
  class: "loading"
244
- }, Ie = {
244
+ }, Le = {
245
245
  key: 1,
246
246
  class: "none"
247
- }, ze = /* @__PURE__ */ N({
247
+ }, Ie = /* @__PURE__ */ N({
248
248
  __name: "InfiniteLoading",
249
249
  props: {
250
250
  loading: {
@@ -277,35 +277,37 @@ const Me = /* @__PURE__ */ N({
277
277
  emit: n
278
278
  }) {
279
279
  const t = e, l = n, r = g(null);
280
- return de(r, ([{
281
- isIntersecting: o
280
+ return ce(r, ([{
281
+ isIntersecting: i
282
282
  }]) => {
283
- o && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
283
+ i && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
284
284
  !t.loading && !t.finished && l("infinite");
285
285
  }, {
286
286
  threshold: t.threshold
287
- }), (o, a) => (i(), h("div", {
287
+ }), (i, a) => (o(), h("div", {
288
288
  ref_key: "container",
289
289
  ref: r,
290
290
  class: "infinite-loading"
291
- }, [e.loading ? (i(), h("div", Le, [b(s(J), {
291
+ }, [e.loading ? (o(), h("div", Ae, [b(s(J), {
292
292
  tip: e.loadingText
293
- }, null, 8, ["tip"])])) : k("", !0), e.finished && e.showFinishedText ? (i(), h("div", Ie, [b(s(Q), {
293
+ }, null, 8, ["tip"])])) : k("", !0), e.finished && e.showFinishedText ? (o(), h("div", Le, [b(s(Q), {
294
294
  description: e.finishedText
295
295
  }, null, 8, ["description"])])) : k("", !0)], 512));
296
296
  }
297
- }), Te = /* @__PURE__ */ A(ze, [["__scopeId", "data-v-b513f798"]]), xe = {
297
+ }), ze = /* @__PURE__ */ L(Ie, [["__scopeId", "data-v-b513f798"]]), Te = {
298
298
  class: "message-item__content"
299
- }, Be = {
299
+ }, xe = {
300
300
  class: "message-item__header"
301
- }, De = {
301
+ }, Be = {
302
302
  key: 0,
303
303
  class: "message-item__pin"
304
+ }, De = {
305
+ key: 1,
306
+ class: "message-item__unread-dot"
304
307
  }, Oe = {
305
308
  class: "message-item__title"
306
309
  }, Ue = {
307
- key: 2,
308
- class: "message-item__title"
310
+ class: "message-item__tags"
309
311
  }, Ve = {
310
312
  class: "message-item__description"
311
313
  }, Re = {
@@ -327,49 +329,42 @@ const Me = /* @__PURE__ */ N({
327
329
  },
328
330
  emits: ["click"],
329
331
  setup(e) {
330
- return (n, t) => (i(), h("div", {
332
+ return (n, t) => (o(), h("div", {
331
333
  class: E(["message-item", {
332
334
  "message-item--pinned": e.item.pinned,
333
335
  "message-item--unread": e.showReadStatus && !e.item.read
334
336
  }]),
335
337
  onClick: t[0] || (t[0] = (l) => n.$emit("click", e.item))
336
- }, [I("div", xe, [I("div", Be, [e.item.pinned ? (i(), h("span", De, [b(s(Ne))])) : k("", !0), e.showReadStatus && !e.item.read ? (i(), v(s(oe), {
337
- key: 1,
338
- dot: !0,
339
- offset: [6, -2]
340
- }, {
341
- default: c(() => [I("span", Oe, M(e.item.title), 1)]),
342
- _: 1
343
- })) : (i(), h("span", Ue, M(e.item.title), 1)), x(n.$slots, "tags", {
338
+ }, [M("div", Te, [M("div", xe, [e.item.pinned ? (o(), h("span", Be, [b(s($e))])) : k("", !0), e.showReadStatus && !e.item.read ? (o(), h("span", De)) : k("", !0), M("span", Oe, A(e.item.title), 1), M("div", Ue, [x(n.$slots, "tags", {
344
339
  item: e.item
345
- }, () => [e.item.priority === "urgent" ? (i(), v(s(z), {
340
+ }, () => [e.item.priority === "urgent" ? (o(), v(s(z), {
346
341
  key: 0,
347
342
  color: "red",
348
343
  size: "small"
349
344
  }, {
350
345
  default: c(() => [...t[1] || (t[1] = [C("紧急", -1)])]),
351
346
  _: 1
352
- })) : e.item.priority === "important" ? (i(), v(s(z), {
347
+ })) : e.item.priority === "important" ? (o(), v(s(z), {
353
348
  key: 1,
354
349
  color: "orange",
355
350
  size: "small"
356
351
  }, {
357
352
  default: c(() => [...t[2] || (t[2] = [C("重要", -1)])]),
358
353
  _: 1
359
- })) : e.item.priority === "high" ? (i(), v(s(z), {
354
+ })) : e.item.priority === "high" ? (o(), v(s(z), {
360
355
  key: 2,
361
356
  color: "orange",
362
357
  size: "small"
363
358
  }, {
364
359
  default: c(() => [...t[3] || (t[3] = [C("高", -1)])]),
365
360
  _: 1
366
- })) : k("", !0)], !0)]), I("div", Ve, [x(n.$slots, "description", {
361
+ })) : k("", !0)], !0)])]), M("div", Ve, [x(n.$slots, "description", {
367
362
  item: e.item
368
- }, () => [C(M(e.item.description), 1)], !0)]), I("div", Re, [I("span", Ee, M(e.item.createAt), 1), x(n.$slots, "footer", {
363
+ }, () => [C(A(e.item.description), 1)], !0)]), M("div", Re, [M("span", Ee, A(e.item.createAt), 1), x(n.$slots, "footer", {
369
364
  item: e.item
370
- }, void 0, !0)])]), I("div", Fe, [x(n.$slots, "actions", {
365
+ }, void 0, !0)])]), M("div", Fe, [x(n.$slots, "actions", {
371
366
  item: e.item
372
- }, () => [e.showViewButton ? (i(), v(s(le), {
367
+ }, () => [e.showViewButton ? (o(), v(s(oe), {
373
368
  key: 0,
374
369
  type: "text",
375
370
  size: "small"
@@ -378,7 +373,7 @@ const Me = /* @__PURE__ */ N({
378
373
  _: 1
379
374
  })) : k("", !0)], !0)])], 2));
380
375
  }
381
- }), qe = /* @__PURE__ */ A(Ke, [["__scopeId", "data-v-3f41343c"]]), Pe = {
376
+ }), qe = /* @__PURE__ */ L(Ke, [["__scopeId", "data-v-e7326b2a"]]), Pe = {
382
377
  class: "message-list"
383
378
  }, je = {
384
379
  key: 0,
@@ -405,14 +400,14 @@ const Me = /* @__PURE__ */ N({
405
400
  emit: n
406
401
  }) {
407
402
  const t = e, l = n;
408
- function r(o) {
409
- l("itemClick", o);
403
+ function r(i) {
404
+ l("itemClick", i);
410
405
  }
411
- return (o, a) => (i(), h("div", Pe, [t.messageList.length === 0 && !t.loading ? (i(), h("div", je, [b(s(Q), {
406
+ return (i, a) => (o(), h("div", Pe, [t.messageList.length === 0 && !t.loading ? (o(), h("div", je, [b(s(Q), {
412
407
  description: "暂无消息"
413
- })])) : (i(), h(R, {
408
+ })])) : (o(), h(R, {
414
409
  key: 1
415
- }, [(i(!0), h(R, null, G(t.messageList, (u) => (i(), v(qe, {
410
+ }, [(o(!0), h(R, null, G(t.messageList, (u) => (o(), v(qe, {
416
411
  key: u.id,
417
412
  item: u,
418
413
  "show-read-status": t.showReadStatus,
@@ -420,37 +415,37 @@ const Me = /* @__PURE__ */ N({
420
415
  onClick: (d) => r(u)
421
416
  }, se({
422
417
  _: 2
423
- }, [o.$slots.tags ? {
418
+ }, [i.$slots.tags ? {
424
419
  name: "tags",
425
- fn: c((d) => [x(o.$slots, "tags", U({
420
+ fn: c((d) => [x(i.$slots, "tags", U({
426
421
  ref_for: !0
427
422
  }, d), void 0, !0)]),
428
423
  key: "0"
429
- } : void 0, o.$slots.description ? {
424
+ } : void 0, i.$slots.description ? {
430
425
  name: "description",
431
- fn: c((d) => [x(o.$slots, "description", U({
426
+ fn: c((d) => [x(i.$slots, "description", U({
432
427
  ref_for: !0
433
428
  }, d), void 0, !0)]),
434
429
  key: "1"
435
- } : void 0, o.$slots.footer ? {
430
+ } : void 0, i.$slots.footer ? {
436
431
  name: "footer",
437
- fn: c((d) => [x(o.$slots, "footer", U({
432
+ fn: c((d) => [x(i.$slots, "footer", U({
438
433
  ref_for: !0
439
434
  }, d), void 0, !0)]),
440
435
  key: "2"
441
- } : void 0, o.$slots.actions ? {
436
+ } : void 0, i.$slots.actions ? {
442
437
  name: "actions",
443
- fn: c((d) => [x(o.$slots, "actions", U({
438
+ fn: c((d) => [x(i.$slots, "actions", U({
444
439
  ref_for: !0
445
440
  }, d), void 0, !0)]),
446
441
  key: "3"
447
- } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), b(Te, {
442
+ } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), b(ze, {
448
443
  loading: t.loading,
449
444
  finished: t.finished,
450
- onInfinite: a[0] || (a[0] = (u) => o.$emit("loadMore"))
445
+ onInfinite: a[0] || (a[0] = (u) => i.$emit("loadMore"))
451
446
  }, null, 8, ["loading", "finished"])], 64))]));
452
447
  }
453
- }), q = /* @__PURE__ */ A(He, [["__scopeId", "data-v-c5ca5bf4"]]), We = {
448
+ }), q = /* @__PURE__ */ L(He, [["__scopeId", "data-v-c5ca5bf4"]]), We = {
454
449
  class: "message-panel"
455
450
  }, Ze = {
456
451
  key: 0,
@@ -463,11 +458,11 @@ const Me = /* @__PURE__ */ N({
463
458
  detailId: t,
464
459
  loading: l,
465
460
  finished: r,
466
- messageList: o,
461
+ messageList: i,
467
462
  loadMore: a,
468
463
  toList: u,
469
464
  openDetail: d
470
- } = H(Se);
465
+ } = H(Ne);
471
466
  function p(y) {
472
467
  return {
473
468
  feature: "green",
@@ -486,7 +481,7 @@ const Me = /* @__PURE__ */ N({
486
481
  breaking: "重大变更"
487
482
  }[y] || "更新";
488
483
  }
489
- return (y, f) => (i(), h("div", We, [s(n) ? k("", !0) : (i(), v(s(F), {
484
+ return (y, f) => (o(), h("div", We, [s(n) ? k("", !0) : (o(), v(s(F), {
490
485
  key: 0,
491
486
  class: "message-panel__breadcrumb"
492
487
  }, {
@@ -500,9 +495,9 @@ const Me = /* @__PURE__ */ N({
500
495
  _: 1
501
496
  })]),
502
497
  _: 1
503
- })), s(n) ? (i(), v(q, {
498
+ })), s(n) ? (o(), v(q, {
504
499
  key: 1,
505
- "message-list": s(o),
500
+ "message-list": s(i),
506
501
  loading: s(l),
507
502
  finished: s(r),
508
503
  onItemClick: s(d),
@@ -514,25 +509,25 @@ const Me = /* @__PURE__ */ N({
514
509
  color: "arcoblue",
515
510
  size: "small"
516
511
  }, {
517
- default: c(() => [C(M(m.version), 1)]),
512
+ default: c(() => [C(A(m.version), 1)]),
518
513
  _: 2
519
514
  }, 1024), b(s(z), {
520
515
  color: p(m.changeType),
521
516
  size: "small"
522
517
  }, {
523
- default: c(() => [C(M($(m.changeType)), 1)]),
518
+ default: c(() => [C(A($(m.changeType)), 1)]),
524
519
  _: 2
525
520
  }, 1032, ["color"])]),
526
521
  footer: c(({
527
522
  item: m
528
- }) => [m.publishedAt ? (i(), h("span", Ze, " 发布于 " + M(m.publishedAt), 1)) : k("", !0)]),
523
+ }) => [m.publishedAt ? (o(), h("span", Ze, " 发布于 " + A(m.publishedAt), 1)) : k("", !0)]),
529
524
  _: 1
530
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (i(), v(Ae, {
525
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (o(), v(Me, {
531
526
  key: 2,
532
527
  id: s(t)
533
528
  }, null, 8, ["id"]))]));
534
529
  }
535
- }), Je = /* @__PURE__ */ A(Ge, [["__scopeId", "data-v-0a479cd6"]]);
530
+ }), Je = /* @__PURE__ */ L(Ge, [["__scopeId", "data-v-0a479cd6"]]);
536
531
  function Qe(e) {
537
532
  return D({
538
533
  url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
@@ -557,7 +552,7 @@ const Ye = /* @__PURE__ */ N({
557
552
  },
558
553
  setup(e) {
559
554
  const n = g(!1), t = g(null), l = g(""), r = e;
560
- function o() {
555
+ function i() {
561
556
  n.value = !0, Xe({
562
557
  id: r.id
563
558
  }).then(({
@@ -568,7 +563,7 @@ const Ye = /* @__PURE__ */ N({
568
563
  console.error("获取事件通知详情失败:", a), n.value = !1;
569
564
  });
570
565
  }
571
- return o(), (a, u) => (i(), v(K, {
566
+ return i(), (a, u) => (o(), v(K, {
572
567
  content: t.value,
573
568
  title: l.value,
574
569
  loading: n.value
@@ -587,7 +582,7 @@ const Ye = /* @__PURE__ */ N({
587
582
  detailId: t,
588
583
  loading: l,
589
584
  finished: r,
590
- messageList: o,
585
+ messageList: i,
591
586
  loadMore: a,
592
587
  toList: u,
593
588
  openDetail: d
@@ -613,7 +608,7 @@ const Ye = /* @__PURE__ */ N({
613
608
  published: "已发布"
614
609
  }[y] || "未知";
615
610
  }
616
- return (y, f) => (i(), h("div", et, [s(n) ? k("", !0) : (i(), v(s(F), {
611
+ return (y, f) => (o(), h("div", et, [s(n) ? k("", !0) : (o(), v(s(F), {
617
612
  key: 0,
618
613
  class: "message-panel__breadcrumb"
619
614
  }, {
@@ -627,9 +622,9 @@ const Ye = /* @__PURE__ */ N({
627
622
  _: 1
628
623
  })]),
629
624
  _: 1
630
- })), s(n) ? (i(), v(q, {
625
+ })), s(n) ? (o(), v(q, {
631
626
  key: 1,
632
- "message-list": s(o),
627
+ "message-list": s(i),
633
628
  loading: s(l),
634
629
  finished: s(r),
635
630
  onItemClick: s(d),
@@ -641,19 +636,19 @@ const Ye = /* @__PURE__ */ N({
641
636
  color: p(m.displayStatus),
642
637
  size: "small"
643
638
  }, {
644
- default: c(() => [C(M($(m.displayStatus)), 1)]),
639
+ default: c(() => [C(A($(m.displayStatus)), 1)]),
645
640
  _: 2
646
641
  }, 1032, ["color"])]),
647
642
  footer: c(({
648
643
  item: m
649
- }) => [m.startAt || m.endAt ? (i(), h("span", tt, M(m.startAt || "无") + " ~ " + M(m.endAt || "无"), 1)) : k("", !0)]),
644
+ }) => [m.startAt || m.endAt ? (o(), h("span", tt, A(m.startAt || "无") + " ~ " + A(m.endAt || "无"), 1)) : k("", !0)]),
650
645
  _: 1
651
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (i(), v(Ye, {
646
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (o(), v(Ye, {
652
647
  key: 2,
653
648
  id: s(t)
654
649
  }, null, 8, ["id"]))]));
655
650
  }
656
- }), nt = /* @__PURE__ */ A(st, [["__scopeId", "data-v-13297e28"]]), at = {
651
+ }), nt = /* @__PURE__ */ L(st, [["__scopeId", "data-v-13297e28"]]), at = {
657
652
  style: {
658
653
  display: "flex",
659
654
  gap: "16px"
@@ -681,18 +676,18 @@ const Ye = /* @__PURE__ */ N({
681
676
  emit: n
682
677
  }) {
683
678
  const t = e, l = n;
684
- function r(o) {
685
- o !== t.modelValue && (l("update:modelValue", o), l("change", o));
679
+ function r(i) {
680
+ i !== t.modelValue && (l("update:modelValue", i), l("change", i));
686
681
  }
687
- return (o, a) => (i(), h("div", at, [(i(!0), h(R, null, G(e.tabs, (u) => (i(), h("span", {
682
+ return (i, a) => (o(), h("div", at, [(o(!0), h(R, null, G(e.tabs, (u) => (o(), h("span", {
688
683
  key: u.key,
689
684
  class: E(["custom-tab", [{
690
685
  active: e.modelValue === u.key
691
686
  }]]),
692
687
  onClick: (d) => r(u.key)
693
- }, M(u.label), 11, it))), 128))]));
688
+ }, A(u.label), 11, it))), 128))]));
694
689
  }
695
- }), lt = /* @__PURE__ */ A(ot, [["__scopeId", "data-v-fafcc3ad"]]), rt = {
690
+ }), lt = /* @__PURE__ */ L(ot, [["__scopeId", "data-v-fafcc3ad"]]), rt = {
696
691
  class: "tabs"
697
692
  }, ut = /* @__PURE__ */ N({
698
693
  __name: "MessageTabs",
@@ -718,29 +713,29 @@ const Ye = /* @__PURE__ */ N({
718
713
  ne(() => t.activeTab, (u) => {
719
714
  r.value = u;
720
715
  });
721
- function o(u) {
716
+ function i(u) {
722
717
  r.value = u, l("update:activeTab", u), l("change", u);
723
718
  }
724
719
  function a() {
725
720
  t.messageList.length !== 0 && l("readAll");
726
721
  }
727
- return (u, d) => (i(), h("div", rt, [b(lt, {
722
+ return (u, d) => (o(), h("div", rt, [b(lt, {
728
723
  modelValue: r.value,
729
724
  "onUpdate:modelValue": d[0] || (d[0] = (p) => r.value = p),
730
725
  tabs: e.tabs,
731
- onChange: o
732
- }, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (i(), h("div", {
726
+ onChange: i
727
+ }, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (o(), h("div", {
733
728
  key: 0,
734
729
  class: E(["readAll", {
735
730
  disabled: e.messageList.length === 0
736
731
  }]),
737
732
  onClick: a
738
- }, [b(s(_e), {
733
+ }, [b(s(ye), {
739
734
  class: "icon",
740
735
  icon: "icon-park-outline:clear"
741
- }), d[1] || (d[1] = I("span", null, " 全部已读", -1))], 2)) : k("", !0)]));
736
+ }), d[1] || (d[1] = M("span", null, " 全部已读", -1))], 2)) : k("", !0)]));
742
737
  }
743
- }), ct = /* @__PURE__ */ A(ut, [["__scopeId", "data-v-91277265"]]), dt = {
738
+ }), ct = /* @__PURE__ */ L(ut, [["__scopeId", "data-v-91277265"]]), dt = {
744
739
  class: "message-panel"
745
740
  }, j = "system", ft = /* @__PURE__ */ N({
746
741
  __name: "MessageNotifications",
@@ -748,7 +743,7 @@ const Ye = /* @__PURE__ */ N({
748
743
  const n = g(!0), t = g(""), l = g(!1), r = g({
749
744
  title: "",
750
745
  content: null
751
- }), o = g(!1), a = g(!1), u = g([]), d = g("unread"), p = g({
746
+ }), i = g(!1), a = g(!1), u = g([]), d = g("unread"), p = g({
752
747
  current: 1,
753
748
  pageSize: 10,
754
749
  total: 0
@@ -760,7 +755,7 @@ const Ye = /* @__PURE__ */ N({
760
755
  key: "read"
761
756
  }], y = V(() => d.value === "read");
762
757
  async function f() {
763
- o.value = !0;
758
+ i.value = !0;
764
759
  try {
765
760
  const {
766
761
  data: S
@@ -784,12 +779,12 @@ const Ye = /* @__PURE__ */ N({
784
779
  readAt: _.readAt ?? null
785
780
  })), p.value.total = S.count, a.value = S.items.length < p.value.pageSize;
786
781
  } finally {
787
- o.value = !1;
782
+ i.value = !1;
788
783
  }
789
784
  }
790
785
  async function m() {
791
- if (!(o.value || a.value)) {
792
- p.value.current += 1, o.value = !0;
786
+ if (!(i.value || a.value)) {
787
+ p.value.current += 1, i.value = !0;
793
788
  try {
794
789
  const {
795
790
  data: S
@@ -813,15 +808,15 @@ const Ye = /* @__PURE__ */ N({
813
808
  }));
814
809
  u.value = [...u.value, ..._], a.value = S.items.length < p.value.pageSize;
815
810
  } finally {
816
- o.value = !1;
811
+ i.value = !1;
817
812
  }
818
813
  }
819
814
  }
820
815
  function T() {
821
816
  p.value.current = 1, a.value = !1, f();
822
817
  }
823
- async function L() {
824
- u.value.length !== 0 && (await ge({
818
+ async function I() {
819
+ u.value.length !== 0 && (await pe({
825
820
  type: j
826
821
  }), f());
827
822
  }
@@ -836,7 +831,7 @@ const Ye = /* @__PURE__ */ N({
836
831
  try {
837
832
  const {
838
833
  data: _
839
- } = await ye({
834
+ } = await ve({
840
835
  id: S
841
836
  });
842
837
  r.value = {
@@ -848,11 +843,11 @@ const Ye = /* @__PURE__ */ N({
848
843
  }
849
844
  }
850
845
  async function ee(S) {
851
- t.value = S.id, n.value = !1, S.read || await ve({
846
+ t.value = S.id, n.value = !1, S.read || await ge({
852
847
  messageId: S.id
853
848
  }), Y(S.id);
854
849
  }
855
- return f(), (S, _) => (i(), h("div", dt, [n.value ? k("", !0) : (i(), v(s(F), {
850
+ return f(), (S, _) => (o(), h("div", dt, [n.value ? k("", !0) : (o(), v(s(F), {
856
851
  key: 0,
857
852
  class: "message-panel__breadcrumb"
858
853
  }, {
@@ -866,18 +861,18 @@ const Ye = /* @__PURE__ */ N({
866
861
  _: 1
867
862
  })]),
868
863
  _: 1
869
- })), n.value ? (i(), v(ct, {
864
+ })), n.value ? (o(), v(ct, {
870
865
  key: 1,
871
866
  "active-tab": d.value,
872
867
  "onUpdate:activeTab": _[0] || (_[0] = (w) => d.value = w),
873
868
  tabs: $,
874
869
  "message-list": u.value,
875
870
  onChange: T,
876
- onReadAll: L
877
- }, null, 8, ["active-tab", "message-list"])) : k("", !0), n.value ? (i(), v(q, {
871
+ onReadAll: I
872
+ }, null, 8, ["active-tab", "message-list"])) : k("", !0), n.value ? (o(), v(q, {
878
873
  key: 2,
879
874
  "message-list": u.value,
880
- loading: o.value,
875
+ loading: i.value,
881
876
  finished: a.value,
882
877
  "show-read-status": !0,
883
878
  "show-view-button": !1,
@@ -886,14 +881,14 @@ const Ye = /* @__PURE__ */ N({
886
881
  }, {
887
882
  tags: c(({
888
883
  item: w
889
- }) => [w.priority === "urgent" ? (i(), v(s(z), {
884
+ }) => [w.priority === "urgent" ? (o(), v(s(z), {
890
885
  key: 0,
891
886
  color: "red",
892
887
  size: "small"
893
888
  }, {
894
889
  default: c(() => [..._[3] || (_[3] = [C("紧急", -1)])]),
895
890
  _: 1
896
- })) : w.priority === "high" ? (i(), v(s(z), {
891
+ })) : w.priority === "high" ? (o(), v(s(z), {
897
892
  key: 1,
898
893
  color: "orange",
899
894
  size: "small"
@@ -902,14 +897,14 @@ const Ye = /* @__PURE__ */ N({
902
897
  _: 1
903
898
  })) : k("", !0)]),
904
899
  _: 1
905
- }, 8, ["message-list", "loading", "finished"])) : (i(), v(K, {
900
+ }, 8, ["message-list", "loading", "finished"])) : (o(), v(K, {
906
901
  key: 3,
907
902
  title: r.value.title,
908
903
  content: r.value.content,
909
904
  loading: l.value
910
905
  }, null, 8, ["title", "content", "loading"]))]));
911
906
  }
912
- }), mt = /* @__PURE__ */ A(ft, [["__scopeId", "data-v-2fe260dd"]]);
907
+ }), mt = /* @__PURE__ */ L(ft, [["__scopeId", "data-v-2fe260dd"]]);
913
908
  function pt(e) {
914
909
  return D({
915
910
  url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
@@ -934,7 +929,7 @@ const vt = /* @__PURE__ */ N({
934
929
  },
935
930
  setup(e) {
936
931
  const n = g(!1), t = g(null), l = g(""), r = e;
937
- function o() {
932
+ function i() {
938
933
  n.value = !0, gt({
939
934
  id: r.id
940
935
  }).then(({
@@ -945,7 +940,7 @@ const vt = /* @__PURE__ */ N({
945
940
  console.error("获取通知详情失败:", a), n.value = !1;
946
941
  });
947
942
  }
948
- return o(), (a, u) => (i(), v(K, {
943
+ return i(), (a, u) => (o(), v(K, {
949
944
  content: t.value,
950
945
  title: l.value,
951
946
  loading: n.value
@@ -964,7 +959,7 @@ const vt = /* @__PURE__ */ N({
964
959
  detailId: t,
965
960
  loading: l,
966
961
  finished: r,
967
- messageList: o,
962
+ messageList: i,
968
963
  loadMore: a,
969
964
  toList: u,
970
965
  openDetail: d
@@ -986,7 +981,7 @@ const vt = /* @__PURE__ */ N({
986
981
  expired: "已过期"
987
982
  }[y] || "未知";
988
983
  }
989
- return (y, f) => (i(), h("div", yt, [s(n) ? k("", !0) : (i(), v(s(F), {
984
+ return (y, f) => (o(), h("div", yt, [s(n) ? k("", !0) : (o(), v(s(F), {
990
985
  key: 0,
991
986
  class: "message-panel__breadcrumb"
992
987
  }, {
@@ -1000,9 +995,9 @@ const vt = /* @__PURE__ */ N({
1000
995
  _: 1
1001
996
  })]),
1002
997
  _: 1
1003
- })), s(n) ? (i(), v(q, {
998
+ })), s(n) ? (o(), v(q, {
1004
999
  key: 1,
1005
- "message-list": s(o),
1000
+ "message-list": s(i),
1006
1001
  loading: s(l),
1007
1002
  finished: s(r),
1008
1003
  onItemClick: s(d),
@@ -1010,14 +1005,14 @@ const vt = /* @__PURE__ */ N({
1010
1005
  }, {
1011
1006
  tags: c(({
1012
1007
  item: m
1013
- }) => [m.priority === "urgent" ? (i(), v(s(z), {
1008
+ }) => [m.priority === "urgent" ? (o(), v(s(z), {
1014
1009
  key: 0,
1015
1010
  color: "red",
1016
1011
  size: "small"
1017
1012
  }, {
1018
1013
  default: c(() => [...f[2] || (f[2] = [C("紧急", -1)])]),
1019
1014
  _: 1
1020
- })) : m.priority === "important" ? (i(), v(s(z), {
1015
+ })) : m.priority === "important" ? (o(), v(s(z), {
1021
1016
  key: 1,
1022
1017
  color: "orange",
1023
1018
  size: "small"
@@ -1028,19 +1023,19 @@ const vt = /* @__PURE__ */ N({
1028
1023
  color: p(m.displayStatus),
1029
1024
  size: "small"
1030
1025
  }, {
1031
- default: c(() => [C(M($(m.displayStatus)), 1)]),
1026
+ default: c(() => [C(A($(m.displayStatus)), 1)]),
1032
1027
  _: 2
1033
1028
  }, 1032, ["color"])]),
1034
1029
  footer: c(({
1035
1030
  item: m
1036
- }) => [m.expireAt ? (i(), h("span", _t, M(m.displayStatus === "expired" ? "已过期" : `过期时间: ${m.expireAt}`), 1)) : k("", !0)]),
1031
+ }) => [m.expireAt ? (o(), h("span", _t, A(m.displayStatus === "expired" ? "已过期" : `过期时间: ${m.expireAt}`), 1)) : k("", !0)]),
1037
1032
  _: 1
1038
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (i(), v(vt, {
1033
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (o(), v(vt, {
1039
1034
  key: 2,
1040
1035
  id: s(t)
1041
1036
  }, null, 8, ["id"]))]));
1042
1037
  }
1043
- }), kt = /* @__PURE__ */ A(ht, [["__scopeId", "data-v-7bde4425"]]), bt = {
1038
+ }), kt = /* @__PURE__ */ L(ht, [["__scopeId", "data-v-7bde4425"]]), bt = {
1044
1039
  class: "content"
1045
1040
  }, Ct = {
1046
1041
  class: "left"
@@ -1062,24 +1057,24 @@ const vt = /* @__PURE__ */ N({
1062
1057
  expose: n,
1063
1058
  emit: t
1064
1059
  }) {
1065
- const l = e, r = t, o = ae(e, "selectedKeys"), a = V(() => o.value.length !== 0 ? o.value[0] : "");
1060
+ const l = e, r = t, i = ae(e, "selectedKeys"), a = V(() => i.value.length !== 0 ? i.value[0] : "");
1066
1061
  function u() {
1067
1062
  r("cancel");
1068
1063
  }
1069
1064
  function d(f, m) {
1070
1065
  const T = f.path;
1071
- o.value = [T], r("change", f, m);
1066
+ i.value = [T], r("change", f, m);
1072
1067
  }
1073
1068
  const {
1074
1069
  changeType: p,
1075
1070
  show: $
1076
- } = he(r);
1071
+ } = _e(r);
1077
1072
  function y(f) {
1078
1073
  $.value = f, p.value = "编辑";
1079
1074
  }
1080
1075
  return n({
1081
1076
  setData: y
1082
- }), (f, m) => (i(), v(s(re), {
1077
+ }), (f, m) => (o(), v(s(le), {
1083
1078
  visible: s($),
1084
1079
  "onUpdate:visible": m[1] || (m[1] = (T) => ie($) ? $.value = T : null),
1085
1080
  loading: !1,
@@ -1090,32 +1085,32 @@ const vt = /* @__PURE__ */ N({
1090
1085
  width: "880px",
1091
1086
  onCancel: u
1092
1087
  }, {
1093
- default: c(() => [I("div", bt, [I("div", Ct, [b(ke, {
1094
- "selected-keys": o.value,
1095
- "onUpdate:selectedKeys": m[0] || (m[0] = (T) => o.value = T),
1088
+ default: c(() => [M("div", bt, [M("div", Ct, [b(he, {
1089
+ "selected-keys": i.value,
1090
+ "onUpdate:selectedKeys": m[0] || (m[0] = (T) => i.value = T),
1096
1091
  menus: l.menus,
1097
1092
  onChange: d
1098
- }, null, 8, ["selected-keys", "menus"])]), s($) ? (i(), h(R, {
1093
+ }, null, 8, ["selected-keys", "menus"])]), s($) ? (o(), h(R, {
1099
1094
  key: 0
1100
- }, [a.value === "ChangelogNotifications" ? (i(), v(Je, {
1095
+ }, [a.value === "ChangelogNotifications" ? (o(), v(Je, {
1101
1096
  key: 0
1102
- })) : k("", !0), a.value === "EventNotifications" ? (i(), v(nt, {
1097
+ })) : k("", !0), a.value === "EventNotifications" ? (o(), v(nt, {
1103
1098
  key: 1
1104
- })) : k("", !0), a.value === "MessageNotifications" ? (i(), v(mt, {
1099
+ })) : k("", !0), a.value === "MessageNotifications" ? (o(), v(mt, {
1105
1100
  key: 2
1106
- })) : k("", !0), a.value === "NoticeNotifications" ? (i(), v(kt, {
1101
+ })) : k("", !0), a.value === "NoticeNotifications" ? (o(), v(kt, {
1107
1102
  key: 3
1108
1103
  })) : k("", !0)], 64)) : k("", !0)])]),
1109
1104
  _: 1
1110
1105
  }, 8, ["visible"]));
1111
1106
  }
1112
- }), Nt = /* @__PURE__ */ A($t, [["__scopeId", "data-v-8f921467"]]), St = /* @__PURE__ */ N({
1107
+ }), Nt = /* @__PURE__ */ L($t, [["__scopeId", "data-v-8f921467"]]), St = /* @__PURE__ */ N({
1113
1108
  __name: "MessageHandle",
1114
1109
  setup(e, {
1115
1110
  expose: n
1116
1111
  }) {
1117
1112
  const t = g(["ChangelogNotifications"]), l = g(), r = g(Symbol("key"));
1118
- function o() {
1113
+ function i() {
1119
1114
  l.value.setData(!0);
1120
1115
  }
1121
1116
  function a() {
@@ -1150,8 +1145,8 @@ const vt = /* @__PURE__ */ N({
1150
1145
  }
1151
1146
  }]);
1152
1147
  return n({
1153
- openNotification: o
1154
- }), (p, $) => (i(), v(Nt, {
1148
+ openNotification: i
1149
+ }), (p, $) => (o(), v(Nt, {
1155
1150
  ref_key: "MessageNotificationsRef",
1156
1151
  ref: l,
1157
1152
  key: r.value,
@@ -1163,16 +1158,16 @@ const vt = /* @__PURE__ */ N({
1163
1158
  onCancel: a
1164
1159
  }, null, 8, ["selected-keys", "menus"]));
1165
1160
  }
1166
- }), Kt = /* @__PURE__ */ A(St, [["__scopeId", "data-v-dd5fd3b4"]]);
1161
+ }), Kt = /* @__PURE__ */ L(St, [["__scopeId", "data-v-dd5fd3b4"]]);
1167
1162
  export {
1168
1163
  Nt as A,
1169
1164
  Je as C,
1170
1165
  K as D,
1171
1166
  nt as E,
1172
- Te as I,
1167
+ ze as I,
1173
1168
  Kt as M,
1174
1169
  kt as N,
1175
- Ae as _,
1170
+ Me as _,
1176
1171
  lt as a,
1177
1172
  Ye as b,
1178
1173
  q as c,