@huyooo/ui 0.6.1 → 0.6.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,39 +1,26 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as R, createElementBlock as S, openBlock as r, normalizeStyle as M, normalizeClass as oe, createElementVNode as I, computed as O, createBlock as y, unref as l, withCtx as n, createVNode as u, createCommentVNode as L, Fragment as B, createTextVNode as $, toDisplayString as z, ref as m, onUnmounted as xe, h as X, renderList as ie, nextTick as A } from "vue";
5
- import { Space as ue, Image as ce, Avatar as de, Descriptions as Se, DescriptionsItem as K, Tag as E, Spin as we, Button as G, Form as Ie, FormItem as H, Input as $e, Select as Fe, Option as Ue, Textarea as Le, Message as Re, Breadcrumb as Be, BreadcrumbItem as ee, Modal as ze, Drawer as qe } from "@arco-design/web-vue";
4
+ import { defineComponent as B, createElementBlock as S, openBlock as r, normalizeStyle as T, normalizeClass as ue, createElementVNode as $, computed as O, createBlock as y, unref as a, withCtx as o, createVNode as u, createCommentVNode as L, Fragment as z, createTextVNode as F, toDisplayString as q, ref as m, onUnmounted as Se, h as te, renderList as ce, nextTick as N } from "vue";
5
+ import { Space as de, Image as pe, Avatar as fe, Descriptions as Ie, DescriptionsItem as H, Tag as j, Spin as $e, Button as Q, Form as Fe, FormItem as Y, Input as Ue, Select as Re, Option as Le, Textarea as Be, Message as ze, Breadcrumb as qe, BreadcrumbItem as le, Modal as Ve, Drawer as Ae } from "@arco-design/web-vue";
6
6
  import { M as De } from "./Menu-BjWB9hre.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { c as N, g as q } from "./auth-bwwc2iT8.js";
11
+ import { c as D, g as V } from "./auth-bwwc2iT8.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
- import { r as Ne, a as Ae, u as Oe } from "./useUploadCos-_xwV40NS.js";
15
- import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ import { u as Ne } from "./useUploadCos-EWMNJjRf.js";
15
+ import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  /* empty css */
17
- import { f as j } from "./index-Bb-d5pBq.js";
18
- import { C as Ve } from "./CustomTable-BCOwLyRJ.js";
19
- import { Bubble as fe, Prompts as Pe, Sender as Ee } from "ant-design-x-vue";
20
- import { C as pe } from "./Clipboard-BAn3vQlX.js";
17
+ import { f as M } from "./index-Bb-d5pBq.js";
18
+ import { C as Oe } from "./CustomTable-BCOwLyRJ.js";
19
+ import { Bubble as me, Prompts as Ee, Sender as Pe } from "ant-design-x-vue";
20
+ import { C as ve } from "./Clipboard-BAn3vQlX.js";
21
21
  import { Icon as je } from "@iconify/vue";
22
- import { _ as me, g as ve, i as ye } from "./plugin-vue_export-helper-LjDO2Zua.js";
23
- const Me = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), te = {
24
- randomUUID: Me
25
- };
26
- function le(e, o, t) {
27
- var f;
28
- if (te.randomUUID && !e)
29
- return te.randomUUID();
30
- e = e || {};
31
- const a = e.random ?? ((f = e.rng) == null ? void 0 : f.call(e)) ?? Ne();
32
- if (a.length < 16)
33
- throw new Error("Random bytes length must be >= 16");
34
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ae(a);
35
- }
36
- const We = R({
22
+ import { _ as ye, g as ge, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
23
+ const Me = B({
37
24
  name: "IconExclamationCircle",
38
25
  props: {
39
26
  size: {
@@ -60,47 +47,47 @@ const We = R({
60
47
  click: (e) => !0
61
48
  },
62
49
  setup(e, {
63
- emit: o
50
+ emit: l
64
51
  }) {
65
- const t = ve("icon"), a = O(() => [t, `${t}-exclamation-circle`, {
52
+ const t = ge("icon"), n = O(() => [t, `${t}-exclamation-circle`, {
66
53
  [`${t}-spin`]: e.spin
67
- }]), f = O(() => {
54
+ }]), p = O(() => {
68
55
  const s = {};
69
- return e.size && (s.fontSize = ye(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
56
+ return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
70
57
  });
71
58
  return {
72
- cls: a,
73
- innerStyle: f,
59
+ cls: n,
60
+ innerStyle: p,
74
61
  onClick: (s) => {
75
- o("click", s);
62
+ l("click", s);
76
63
  }
77
64
  };
78
65
  }
79
66
  }), Te = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
80
- function Ke(e, o, t, a, f, c) {
67
+ function We(e, l, t, n, p, c) {
81
68
  return r(), S("svg", {
82
69
  viewBox: "0 0 48 48",
83
70
  fill: "none",
84
71
  xmlns: "http://www.w3.org/2000/svg",
85
72
  stroke: "currentColor",
86
- class: oe(e.cls),
87
- style: M(e.innerStyle),
73
+ class: ue(e.cls),
74
+ style: T(e.innerStyle),
88
75
  "stroke-width": e.strokeWidth,
89
76
  "stroke-linecap": e.strokeLinecap,
90
77
  "stroke-linejoin": e.strokeLinejoin,
91
- onClick: o[0] || (o[0] = (...s) => e.onClick && e.onClick(...s))
92
- }, o[1] || (o[1] = [I("path", {
78
+ onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
79
+ }, l[1] || (l[1] = [$("path", {
93
80
  d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"
94
81
  }, null, -1)]), 14, Te);
95
82
  }
96
- var Y = /* @__PURE__ */ me(We, [["render", Ke]]);
97
- const ae = Object.assign(Y, {
98
- install: (e, o) => {
83
+ var Z = /* @__PURE__ */ ye(Me, [["render", We]]);
84
+ const ae = Object.assign(Z, {
85
+ install: (e, l) => {
99
86
  var t;
100
- const a = (t = o == null ? void 0 : o.iconPrefix) != null ? t : "";
101
- e.component(a + Y.name, Y);
87
+ const n = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
88
+ e.component(n + Z.name, Z);
102
89
  }
103
- }), He = R({
90
+ }), Ke = B({
104
91
  name: "IconLink",
105
92
  props: {
106
93
  size: {
@@ -127,55 +114,55 @@ const ae = Object.assign(Y, {
127
114
  click: (e) => !0
128
115
  },
129
116
  setup(e, {
130
- emit: o
117
+ emit: l
131
118
  }) {
132
- const t = ve("icon"), a = O(() => [t, `${t}-link`, {
119
+ const t = ge("icon"), n = O(() => [t, `${t}-link`, {
133
120
  [`${t}-spin`]: e.spin
134
- }]), f = O(() => {
121
+ }]), p = O(() => {
135
122
  const s = {};
136
- return e.size && (s.fontSize = ye(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
123
+ return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
137
124
  });
138
125
  return {
139
- cls: a,
140
- innerStyle: f,
126
+ cls: n,
127
+ innerStyle: p,
141
128
  onClick: (s) => {
142
- o("click", s);
129
+ l("click", s);
143
130
  }
144
131
  };
145
132
  }
146
- }), Ye = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
147
- function Ze(e, o, t, a, f, c) {
133
+ }), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
134
+ function Ye(e, l, t, n, p, c) {
148
135
  return r(), S("svg", {
149
136
  viewBox: "0 0 48 48",
150
137
  fill: "none",
151
138
  xmlns: "http://www.w3.org/2000/svg",
152
139
  stroke: "currentColor",
153
- class: oe(e.cls),
154
- style: M(e.innerStyle),
140
+ class: ue(e.cls),
141
+ style: T(e.innerStyle),
155
142
  "stroke-width": e.strokeWidth,
156
143
  "stroke-linecap": e.strokeLinecap,
157
144
  "stroke-linejoin": e.strokeLinejoin,
158
- onClick: o[0] || (o[0] = (...s) => e.onClick && e.onClick(...s))
159
- }, o[1] || (o[1] = [I("path", {
145
+ onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
146
+ }, l[1] || (l[1] = [$("path", {
160
147
  d: "m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"
161
- }, null, -1)]), 14, Ye);
148
+ }, null, -1)]), 14, He);
162
149
  }
163
- var Z = /* @__PURE__ */ me(He, [["render", Ze]]);
164
- const Ge = Object.assign(Z, {
165
- install: (e, o) => {
150
+ var G = /* @__PURE__ */ ye(Ke, [["render", Ye]]);
151
+ const Ze = Object.assign(G, {
152
+ install: (e, l) => {
166
153
  var t;
167
- const a = (t = o == null ? void 0 : o.iconPrefix) != null ? t : "";
168
- e.component(a + Z.name, Z);
154
+ const n = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
155
+ e.component(n + G.name, G);
169
156
  }
170
- }), Je = /* @__PURE__ */ R({
157
+ }), Ge = /* @__PURE__ */ B({
171
158
  __name: "FeedbackRefresh",
172
159
  setup(e) {
173
- return (o, t) => (r(), y(l(je), {
160
+ return (l, t) => (r(), y(a(je), {
174
161
  class: "icon",
175
162
  icon: "mingcute:refresh-2-line"
176
163
  }));
177
164
  }
178
- }), Qe = /* @__PURE__ */ V(Je, [["__scopeId", "data-v-33249ffb"]]), Xe = ["src"], se = /* @__PURE__ */ R({
165
+ }), Je = /* @__PURE__ */ E(Ge, [["__scopeId", "data-v-33249ffb"]]), Qe = ["src"], ne = /* @__PURE__ */ B({
179
166
  __name: "FeedbackBubbleEnd",
180
167
  props: {
181
168
  value: {
@@ -209,50 +196,50 @@ const Ge = Object.assign(Z, {
209
196
  },
210
197
  emits: ["refresh"],
211
198
  setup(e, {
212
- emit: o
199
+ emit: l
213
200
  }) {
214
- const t = e, a = o;
215
- function f() {
216
- a("refresh");
201
+ const t = e, n = l;
202
+ function p() {
203
+ n("refresh");
217
204
  }
218
- return (c, s) => (r(), y(l(fe), {
205
+ return (c, s) => (r(), y(a(me), {
219
206
  placement: "end",
220
- style: M(t.bubbleStyle),
207
+ style: T(t.bubbleStyle),
221
208
  styles: {
222
209
  content: {
223
210
  padding: t.type === "image" ? "0px" : void 0
224
211
  }
225
212
  }
226
213
  }, {
227
- avatar: n(() => [u(l(de), null, {
228
- default: n(() => [I("img", {
214
+ avatar: o(() => [u(a(fe), null, {
215
+ default: o(() => [$("img", {
229
216
  alt: "avatar",
230
217
  src: t.avatarUrl
231
- }, null, 8, Xe)]),
218
+ }, null, 8, Qe)]),
232
219
  _: 1
233
220
  })]),
234
- message: n(() => [t.type === "text" ? (r(), S(B, {
221
+ message: o(() => [t.type === "text" ? (r(), S(z, {
235
222
  key: 0
236
- }, [$(z(t.value), 1)], 64)) : t.type === "image" ? (r(), y(l(ce), {
223
+ }, [F(q(t.value), 1)], 64)) : t.type === "image" ? (r(), y(a(pe), {
237
224
  key: 1,
238
225
  width: "100",
239
226
  src: t.value,
240
227
  "show-loader": ""
241
228
  }, null, 8, ["src"])) : L("", !0)]),
242
- footer: n(() => [u(l(ue), null, {
243
- default: n(() => [t.showClipboard && t.type === "text" ? (r(), y(pe, {
229
+ footer: o(() => [u(a(de), null, {
230
+ default: o(() => [t.showClipboard && t.type === "text" ? (r(), y(ve, {
244
231
  key: 0,
245
232
  value: e.value
246
- }, null, 8, ["value"])) : L("", !0), t.showRefresh ? (r(), y(Qe, {
233
+ }, null, 8, ["value"])) : L("", !0), t.showRefresh ? (r(), y(Je, {
247
234
  key: 1,
248
- onClick: f
235
+ onClick: p
249
236
  })) : L("", !0)]),
250
237
  _: 1
251
238
  })]),
252
239
  _: 1
253
240
  }, 8, ["style", "styles"]));
254
241
  }
255
- }), et = ["src"], ne = /* @__PURE__ */ R({
242
+ }), Xe = ["src"], se = /* @__PURE__ */ B({
256
243
  __name: "FeedbackBubbleStart",
257
244
  props: {
258
245
  value: {
@@ -282,35 +269,35 @@ const Ge = Object.assign(Z, {
282
269
  },
283
270
  emits: ["footer-click"],
284
271
  setup(e, {
285
- emit: o
272
+ emit: l
286
273
  }) {
287
274
  const t = e;
288
- return (a, f) => (r(), y(l(fe), {
275
+ return (n, p) => (r(), y(a(me), {
289
276
  placement: "start",
290
- style: M(t.bubbleStyle),
277
+ style: T(t.bubbleStyle),
291
278
  styles: {
292
279
  content: {
293
280
  padding: t.type === "image" ? "0px" : void 0
294
281
  }
295
282
  }
296
283
  }, {
297
- avatar: n(() => [u(l(de), null, {
298
- default: n(() => [I("img", {
284
+ avatar: o(() => [u(a(fe), null, {
285
+ default: o(() => [$("img", {
299
286
  alt: "avatar",
300
287
  src: t.avatarUrl
301
- }, null, 8, et)]),
288
+ }, null, 8, Xe)]),
302
289
  _: 1
303
290
  })]),
304
- message: n(() => [t.type === "text" ? (r(), S(B, {
291
+ message: o(() => [t.type === "text" ? (r(), S(z, {
305
292
  key: 0
306
- }, [$(z(t.value), 1)], 64)) : t.type === "image" ? (r(), y(l(ce), {
293
+ }, [F(q(t.value), 1)], 64)) : t.type === "image" ? (r(), y(a(pe), {
307
294
  key: 1,
308
295
  width: "100",
309
296
  src: t.value,
310
297
  "show-loader": ""
311
298
  }, null, 8, ["src"])) : L("", !0)]),
312
- footer: n(() => [u(l(ue), null, {
313
- default: n(() => [t.showClipboard && t.type === "text" ? (r(), y(pe, {
299
+ footer: o(() => [u(a(de), null, {
300
+ default: o(() => [t.showClipboard && t.type === "text" ? (r(), y(ve, {
314
301
  key: 0,
315
302
  value: t.value
316
303
  }, null, 8, ["value"])) : L("", !0)]),
@@ -319,19 +306,47 @@ const Ge = Object.assign(Z, {
319
306
  _: 1
320
307
  }, 8, ["style", "styles"]));
321
308
  }
322
- });
323
- function tt(e, o = {}) {
309
+ }), _ = [];
310
+ for (let e = 0; e < 256; ++e)
311
+ _.push((e + 256).toString(16).slice(1));
312
+ function et(e, l = 0) {
313
+ return (_[e[l + 0]] + _[e[l + 1]] + _[e[l + 2]] + _[e[l + 3]] + "-" + _[e[l + 4]] + _[e[l + 5]] + "-" + _[e[l + 6]] + _[e[l + 7]] + "-" + _[e[l + 8]] + _[e[l + 9]] + "-" + _[e[l + 10]] + _[e[l + 11]] + _[e[l + 12]] + _[e[l + 13]] + _[e[l + 14]] + _[e[l + 15]]).toLowerCase();
314
+ }
315
+ let J;
316
+ const tt = new Uint8Array(16);
317
+ function lt() {
318
+ if (!J) {
319
+ if (typeof crypto > "u" || !crypto.getRandomValues)
320
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
321
+ J = crypto.getRandomValues.bind(crypto);
322
+ }
323
+ return J(tt);
324
+ }
325
+ const at = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), oe = {
326
+ randomUUID: at
327
+ };
328
+ function re(e, l, t) {
329
+ var p;
330
+ if (oe.randomUUID && !e)
331
+ return oe.randomUUID();
332
+ e = e || {};
333
+ const n = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ?? lt();
334
+ if (n.length < 16)
335
+ throw new Error("Random bytes length must be >= 16");
336
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, et(n);
337
+ }
338
+ function nt(e, l = {}) {
324
339
  const {
325
340
  interval: t = 2e3,
326
- immediate: a = !1,
327
- autoStart: f = !1
328
- } = o, c = m(!1);
341
+ immediate: n = !1,
342
+ autoStart: p = !1
343
+ } = l, c = m(!1);
329
344
  let s = null;
330
- async function h() {
345
+ async function C() {
331
346
  try {
332
347
  await e();
333
- } catch (C) {
334
- console.error("轮询回调执行失败:", C);
348
+ } catch (x) {
349
+ console.error("轮询回调执行失败:", x);
335
350
  }
336
351
  }
337
352
  function i() {
@@ -339,66 +354,66 @@ function tt(e, o = {}) {
339
354
  console.warn("轮询已在运行中");
340
355
  return;
341
356
  }
342
- c.value = !0, a && h(), s = setInterval(h, t);
357
+ c.value = !0, n && C(), s = setInterval(C, t);
343
358
  }
344
359
  function v() {
345
360
  s && (clearInterval(s), s = null), c.value = !1;
346
361
  }
347
- function _() {
362
+ function h() {
348
363
  v(), i();
349
364
  }
350
- return f && i(), xe(() => {
365
+ return p && i(), Se(() => {
351
366
  v();
352
367
  }), {
353
368
  isPolling: c,
354
369
  start: i,
355
370
  stop: v,
356
- restart: _
371
+ restart: h
357
372
  };
358
373
  }
359
- function lt(e) {
360
- return N({
361
- url: `${q.prefixUrl}/restfulApi/feedbackCenter/create`,
374
+ function st(e) {
375
+ return D({
376
+ url: `${V.prefixUrl}/restfulApi/feedbackCenter/create`,
362
377
  method: "post",
363
378
  data: e
364
379
  });
365
380
  }
366
- function at(e) {
367
- return N({
368
- url: `${q.prefixUrl}/restfulApi/feedbackCenter/findOne`,
381
+ function ot(e) {
382
+ return D({
383
+ url: `${V.prefixUrl}/restfulApi/feedbackCenter/findOne`,
369
384
  method: "post",
370
385
  data: e
371
386
  });
372
387
  }
373
- function st(e) {
374
- return N({
375
- url: `${q.prefixUrl}/restfulApi/feedbackCenter/own`,
388
+ function rt(e) {
389
+ return D({
390
+ url: `${V.prefixUrl}/restfulApi/feedbackCenter/own`,
376
391
  method: "post",
377
392
  data: e
378
393
  });
379
394
  }
380
- function re(e) {
381
- return N({
382
- url: `${q.prefixUrl}/restfulApi/feedbackCenter/update/messages`,
395
+ function ie(e) {
396
+ return D({
397
+ url: `${V.prefixUrl}/restfulApi/feedbackCenter/update/messages`,
383
398
  method: "post",
384
399
  data: e
385
400
  });
386
401
  }
387
- function nt(e) {
388
- return N({
389
- url: `${q.prefixUrl}/restfulApi/messages/list/incremental`,
402
+ function it(e) {
403
+ return D({
404
+ url: `${V.prefixUrl}/restfulApi/messages/list/incremental`,
390
405
  method: "post",
391
406
  data: e
392
407
  });
393
408
  }
394
- function rt(e) {
395
- return N({
396
- url: `${q.prefixUrl}/restfulApi/messages/list`,
409
+ function ut(e) {
410
+ return D({
411
+ url: `${V.prefixUrl}/restfulApi/messages/list`,
397
412
  method: "post",
398
413
  data: e
399
414
  });
400
415
  }
401
- const J = [{
416
+ const X = [{
402
417
  key: "bugReports",
403
418
  label: "问题报告"
404
419
  }, {
@@ -410,7 +425,7 @@ const J = [{
410
425
  }, {
411
426
  key: "generalOpinions",
412
427
  label: "一般意见"
413
- }], ge = [{
428
+ }], be = [{
414
429
  key: "newFeedback",
415
430
  label: "新建反馈"
416
431
  }, {
@@ -419,16 +434,16 @@ const J = [{
419
434
  }, {
420
435
  key: "done",
421
436
  label: "已解决"
422
- }], ot = {
437
+ }], ct = {
423
438
  class: "FeedBackDetails"
424
- }, it = {
439
+ }, dt = {
425
440
  class: "content"
426
- }, ut = {
441
+ }, pt = {
427
442
  key: 1,
428
443
  class: "Bubbles"
429
- }, ct = {
444
+ }, ft = {
430
445
  class: "sender-container"
431
- }, dt = /* @__PURE__ */ R({
446
+ }, mt = /* @__PURE__ */ B({
432
447
  __name: "FeedbackDetails",
433
448
  props: {
434
449
  id: {
@@ -443,15 +458,15 @@ const J = [{
443
458
  }
444
459
  },
445
460
  setup(e) {
446
- function o(d) {
461
+ function l(d) {
447
462
  return d === "inProgress" ? "orangered" : d === "done" ? "green" : "arcoblue";
448
463
  }
449
- const t = m(""), a = m(!1), f = [{
464
+ const t = m(""), n = m(!1), p = [{
450
465
  key: "1",
451
466
  label: "如何补充更多信息",
452
467
  description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
453
468
  disabled: !0,
454
- icon: X(ae, {
469
+ icon: te(ae, {
455
470
  style: {
456
471
  color: "#722ED1"
457
472
  }
@@ -461,22 +476,22 @@ const J = [{
461
476
  label: "如何补充附件",
462
477
  description: "如有相关附件(如日志、截图等),请一并上传以便加快处理速度。",
463
478
  disabled: !0,
464
- icon: X(ae, {
479
+ icon: te(ae, {
465
480
  style: {
466
481
  color: "#722ED1"
467
482
  }
468
483
  })
469
- }], c = m(null), s = m(null), h = () => {
484
+ }], c = m(null), s = m(null), C = () => {
470
485
  var d;
471
486
  (d = c.value) == null || d.focus({
472
487
  cursor: "end"
473
- }), A(() => {
488
+ }), N(() => {
474
489
  s.value && (s.value.scrollTop = s.value.scrollHeight);
475
490
  });
476
491
  }, i = e;
477
492
  function v() {
478
493
  }
479
- const _ = m(!1), C = m([]), U = m(void 0), F = m({
494
+ const h = m(!1), x = m([]), R = m(void 0), U = m({
480
495
  id: void 0,
481
496
  title: "",
482
497
  description: "",
@@ -487,230 +502,230 @@ const J = [{
487
502
  }), g = () => {
488
503
  const {
489
504
  uploadFile: d
490
- } = Oe(), x = document.createElement("input");
491
- x.type = "file", x.accept = "image/*", x.style.display = "none", document.body.append(x), x.addEventListener("change", async (p) => {
492
- var Q;
493
- const D = (Q = p.target.files) == null ? void 0 : Q[0];
494
- if (D) {
495
- a.value = !0;
505
+ } = Ne(), w = document.createElement("input");
506
+ w.type = "file", w.accept = "image/*", w.style.display = "none", document.body.append(w), w.addEventListener("change", async (f) => {
507
+ var ee;
508
+ const A = (ee = f.target.files) == null ? void 0 : ee[0];
509
+ if (A) {
510
+ n.value = !0;
496
511
  try {
497
512
  d({
498
- bucketId: q.feedbackBucketId,
499
- file: D,
500
- onFileFinish(W, St, _e) {
501
- const he = {
502
- messageId: le(),
513
+ bucketId: V.feedbackBucketId,
514
+ file: A,
515
+ onFileFinish(W, $t, Ce) {
516
+ const xe = {
517
+ messageId: re(),
503
518
  senderRole: i.senderRole,
504
519
  type: "image",
505
- key: _e.Key
506
- }, Ce = {
520
+ key: Ce.Key
521
+ }, we = {
507
522
  id: i.id,
508
- message: he
523
+ message: xe
509
524
  };
510
- re(Ce).then(({
511
- data: T
525
+ ie(we).then(({
526
+ data: K
512
527
  }) => {
513
- C.value.push(T.message), typeof T.message.seq == "number" && (U.value = T.message.seq), A(() => {
514
- h();
515
- }), a.value = !1, i.senderRole === "support" && F.value.status === "newFeedback" && b();
528
+ x.value.push(K.message), typeof K.message.seq == "number" && (R.value = K.message.seq), N(() => {
529
+ C();
530
+ }), n.value = !1, i.senderRole === "support" && U.value.status === "newFeedback" && b();
516
531
  }).catch(() => {
517
- a.value = !1;
532
+ n.value = !1;
518
533
  });
519
534
  },
520
535
  onError(W) {
521
- console.error("上传图片失败"), a.value = !1;
536
+ console.error("上传图片失败"), n.value = !1;
522
537
  }
523
538
  });
524
539
  } catch (W) {
525
- console.error("上传图片失败", W), a.value = !1;
540
+ console.error("上传图片失败", W), n.value = !1;
526
541
  }
527
542
  }
528
- x.remove();
529
- }), x.click();
543
+ w.remove();
544
+ }), w.click();
530
545
  };
531
- function w(d) {
532
- a.value = !0;
533
- const p = {
534
- messageId: le(),
546
+ function I(d) {
547
+ n.value = !0;
548
+ const f = {
549
+ messageId: re(),
535
550
  senderRole: i.senderRole,
536
551
  type: "text",
537
552
  content: d
538
553
  }, P = {
539
554
  id: i.id,
540
- message: p
555
+ message: f
541
556
  };
542
- re(P).then(({
543
- data: D
557
+ ie(P).then(({
558
+ data: A
544
559
  }) => {
545
- a.value = !1, C.value.push(D.message), typeof D.message.seq == "number" && (U.value = D.message.seq), A(() => {
546
- h();
547
- }), t.value = "", i.senderRole === "support" && F.value.status === "newFeedback" && b();
560
+ n.value = !1, x.value.push(A.message), typeof A.message.seq == "number" && (R.value = A.message.seq), N(() => {
561
+ C();
562
+ }), t.value = "", i.senderRole === "support" && U.value.status === "newFeedback" && b();
548
563
  }).catch(() => {
549
- a.value = !1;
564
+ n.value = !1;
550
565
  });
551
566
  }
552
567
  function k() {
553
- w(t.value);
568
+ I(t.value);
554
569
  }
555
570
  function b() {
556
- _.value = !0, at({
571
+ h.value = !0, ot({
557
572
  id: i.id
558
573
  }).then(async ({
559
574
  data: d
560
575
  }) => {
561
- _.value = !1, F.value = d, d.messages && d.messages.length > 0 && (C.value = d.messages, U.value = d.messages.at(-1).seq);
576
+ h.value = !1, U.value = d, d.messages && d.messages.length > 0 && (x.value = d.messages, R.value = d.messages.at(-1).seq);
562
577
  }).catch(() => {
563
- _.value = !1;
578
+ h.value = !1;
564
579
  });
565
580
  }
566
- function ke() {
567
- nt({
581
+ function _e() {
582
+ it({
568
583
  id: i.id,
569
- lastSeq: U.value
584
+ lastSeq: R.value
570
585
  }).then(async ({
571
586
  data: d
572
587
  }) => {
573
- d && d.messages && d.messages.length > 0 && (C.value.push(...d.messages), U.value = d.messages.at(-1).seq, A(() => {
574
- h();
588
+ d && d.messages && d.messages.length > 0 && (x.value.push(...d.messages), R.value = d.messages.at(-1).seq, N(() => {
589
+ C();
575
590
  }));
576
591
  }).catch(() => {
577
592
  });
578
593
  }
579
- function be() {
580
- _.value = !0, rt({
594
+ function he() {
595
+ h.value = !0, ut({
581
596
  id: i.id
582
597
  }).then(async ({
583
598
  data: d
584
599
  }) => {
585
- _.value = !1, d && d.messages && d.messages.length > 0 && (C.value.push(...d.messages), U.value = d.messages.at(-1).seq, A(() => {
586
- h();
600
+ h.value = !1, d && d.messages && d.messages.length > 0 && (x.value.push(...d.messages), R.value = d.messages.at(-1).seq, N(() => {
601
+ C();
587
602
  }));
588
603
  }).catch(() => {
589
- _.value = !1;
604
+ h.value = !1;
590
605
  });
591
606
  }
592
- return tt(ke, {
607
+ return nt(_e, {
593
608
  interval: 2e3,
594
609
  autoStart: !0
595
- }), b(), be(), (d, x) => (r(), S("div", ot, [I("div", {
610
+ }), b(), he(), (d, w) => (r(), S("div", ct, [$("div", {
596
611
  ref_key: "scrollableContentRef",
597
612
  ref: s,
598
613
  class: "scrollable-content"
599
- }, [u(l(Se), {
614
+ }, [u(a(Ie), {
600
615
  title: "基本信息"
601
616
  }, {
602
- title: n(() => [...x[1] || (x[1] = [I("div", {
617
+ title: o(() => [...w[1] || (w[1] = [$("div", {
603
618
  class: "title"
604
619
  }, "基本信息", -1)])]),
605
- default: n(() => [u(l(K), {
620
+ default: o(() => [u(a(H), {
606
621
  label: "标题:",
607
622
  span: 3
608
623
  }, {
609
- default: n(() => [$(z(F.value.title), 1)]),
624
+ default: o(() => [F(q(U.value.title), 1)]),
610
625
  _: 1
611
- }), u(l(K), {
626
+ }), u(a(H), {
612
627
  label: "反馈类型:",
613
628
  span: 1
614
629
  }, {
615
- default: n(() => [u(l(E), {
630
+ default: o(() => [u(a(j), {
616
631
  color: "arcoblue"
617
632
  }, {
618
- default: n(() => {
619
- var p;
620
- return [$(z((p = l(j)(l(J), F.value.type)) == null ? void 0 : p.label), 1)];
633
+ default: o(() => {
634
+ var f;
635
+ return [F(q((f = a(M)(a(X), U.value.type)) == null ? void 0 : f.label), 1)];
621
636
  }),
622
637
  _: 1
623
638
  })]),
624
639
  _: 1
625
- }), u(l(K), {
640
+ }), u(a(H), {
626
641
  label: "状态:",
627
642
  span: 1
628
643
  }, {
629
- default: n(() => [u(l(E), {
630
- color: o(F.value.status)
644
+ default: o(() => [u(a(j), {
645
+ color: l(U.value.status)
631
646
  }, {
632
- default: n(() => {
633
- var p;
634
- return [$(z((p = l(j)(l(ge), F.value.status)) == null ? void 0 : p.label), 1)];
647
+ default: o(() => {
648
+ var f;
649
+ return [F(q((f = a(M)(a(be), U.value.status)) == null ? void 0 : f.label), 1)];
635
650
  }),
636
651
  _: 1
637
652
  }, 8, ["color"])]),
638
653
  _: 1
639
654
  })]),
640
655
  _: 1
641
- }), I("div", it, [x[2] || (x[2] = I("div", {
656
+ }), $("div", dt, [w[2] || (w[2] = $("div", {
642
657
  class: "title"
643
- }, "沟通记录", -1)), u(l(we), {
658
+ }, "沟通记录", -1)), u(a($e), {
644
659
  class: "messageContent",
645
- loading: _.value
660
+ loading: h.value
646
661
  }, {
647
- default: n(() => [C.value.length == 0 ? (r(), y(l(Pe), {
662
+ default: o(() => [x.value.length == 0 ? (r(), y(a(Ee), {
648
663
  key: 0,
649
664
  title: "☕️ 温馨提示!",
650
- items: f,
665
+ items: p,
651
666
  wrap: "",
652
667
  vertical: !1,
653
668
  onOnItemClick: v
654
- })) : (r(), S("div", ut, [(r(!0), S(B, null, ie(C.value, (p, P) => (r(), S(B, {
669
+ })) : (r(), S("div", pt, [(r(!0), S(z, null, ce(x.value, (f, P) => (r(), S(z, {
655
670
  key: P
656
- }, [p.type === "text" ? (r(), S(B, {
671
+ }, [f.type === "text" ? (r(), S(z, {
657
672
  key: 0
658
- }, [p.senderRole !== i.senderRole ? (r(), y(ne, {
673
+ }, [f.senderRole !== i.senderRole ? (r(), y(se, {
659
674
  key: 0,
660
- value: p.content,
661
- type: p.type,
662
- "avatar-url": p.senderInfo.avatarUrl
663
- }, null, 8, ["value", "type", "avatar-url"])) : (r(), y(se, {
675
+ value: f.content,
676
+ type: f.type,
677
+ "avatar-url": f.senderInfo.avatarUrl
678
+ }, null, 8, ["value", "type", "avatar-url"])) : (r(), y(ne, {
664
679
  key: 1,
665
- value: p.content,
666
- "avatar-url": p.senderInfo.avatarUrl,
667
- type: p.type
668
- }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (r(), S(B, {
680
+ value: f.content,
681
+ "avatar-url": f.senderInfo.avatarUrl,
682
+ type: f.type
683
+ }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (r(), S(z, {
669
684
  key: 1
670
- }, [p.senderRole !== i.senderRole ? (r(), y(ne, {
685
+ }, [f.senderRole !== i.senderRole ? (r(), y(se, {
671
686
  key: 0,
672
- type: p.type,
673
- value: p.url,
687
+ type: f.type,
688
+ value: f.url,
674
689
  "avatar-text": "S",
675
- "avatar-url": p.senderInfo.avatarUrl
676
- }, null, 8, ["type", "value", "avatar-url"])) : (r(), y(se, {
690
+ "avatar-url": f.senderInfo.avatarUrl
691
+ }, null, 8, ["type", "value", "avatar-url"])) : (r(), y(ne, {
677
692
  key: 1,
678
- type: p.type,
679
- value: p.url,
680
- "avatar-url": p.senderInfo.avatarUrl
693
+ type: f.type,
694
+ value: f.url,
695
+ "avatar-url": f.senderInfo.avatarUrl
681
696
  }, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))]))]),
682
697
  _: 1
683
- }, 8, ["loading"])])], 512), I("div", ct, [u(l(Ee), {
698
+ }, 8, ["loading"])])], 512), $("div", ft, [u(a(Pe), {
684
699
  ref_key: "senderRef",
685
700
  ref: c,
686
701
  value: t.value,
687
- "onUpdate:value": x[0] || (x[0] = (p) => t.value = p),
702
+ "onUpdate:value": w[0] || (w[0] = (f) => t.value = f),
688
703
  placeholder: "请输入你要咨询的问题?",
689
- loading: a.value,
704
+ loading: n.value,
690
705
  "allow-speech": !1,
691
- "read-only": a.value,
706
+ "read-only": n.value,
692
707
  onSubmit: k
693
708
  }, {
694
- prefix: n(() => [u(l(G), {
709
+ prefix: o(() => [u(a(Q), {
695
710
  type: "text",
696
711
  class: "IconLink",
697
712
  onClick: g
698
713
  }, {
699
- icon: n(() => [u(l(Ge))]),
714
+ icon: o(() => [u(a(Ze))]),
700
715
  _: 1
701
716
  })]),
702
717
  _: 1
703
718
  }, 8, ["value", "loading", "read-only"])])]));
704
719
  }
705
- }), ft = /* @__PURE__ */ V(dt, [["__scopeId", "data-v-a76c0f21"]]), pt = {
720
+ }), vt = /* @__PURE__ */ E(mt, [["__scopeId", "data-v-a76c0f21"]]), yt = {
706
721
  class: "FeedBackFrom"
707
- }, mt = /* @__PURE__ */ R({
722
+ }, gt = /* @__PURE__ */ B({
708
723
  __name: "FeedbackForm",
709
724
  emits: ["confirm"],
710
725
  setup(e, {
711
- emit: o
726
+ emit: l
712
727
  }) {
713
- const t = o, a = m(), f = m(!1), c = m({
728
+ const t = l, n = m(), p = m(!1), c = m({
714
729
  id: void 0,
715
730
  title: "",
716
731
  type: "bugReports",
@@ -719,31 +734,31 @@ const J = [{
719
734
  });
720
735
  m([]);
721
736
  function s() {
722
- a.value.validate().then((h) => {
723
- if (!h) {
724
- f.value = !0, console.log("create");
737
+ n.value.validate().then((C) => {
738
+ if (!C) {
739
+ p.value = !0, console.log("create");
725
740
  const i = {
726
741
  title: c.value.title,
727
742
  type: c.value.type,
728
743
  description: c.value.description,
729
744
  screenshots: c.value.screenshots
730
745
  };
731
- lt(i).then(() => {
732
- f.value = !1, Re.success("新建反馈成功"), t("confirm");
746
+ st(i).then(() => {
747
+ p.value = !1, ze.success("新建反馈成功"), t("confirm");
733
748
  }).catch(() => {
734
- f.value = !1;
749
+ p.value = !1;
735
750
  });
736
751
  }
737
752
  });
738
753
  }
739
- return (h, i) => (r(), S("div", pt, [u(l(Ie), {
754
+ return (C, i) => (r(), S("div", yt, [u(a(Fe), {
740
755
  ref_key: "formRef",
741
- ref: a,
756
+ ref: n,
742
757
  model: c.value,
743
758
  "auto-label-width": "",
744
759
  layout: "vertical"
745
760
  }, {
746
- default: n(() => [u(l(H), {
761
+ default: o(() => [u(a(Y), {
747
762
  field: "title",
748
763
  label: "标题",
749
764
  rules: [{
@@ -751,13 +766,13 @@ const J = [{
751
766
  message: "请输入标题"
752
767
  }]
753
768
  }, {
754
- default: n(() => [u(l($e), {
769
+ default: o(() => [u(a(Ue), {
755
770
  modelValue: c.value.title,
756
771
  "onUpdate:modelValue": i[0] || (i[0] = (v) => c.value.title = v),
757
772
  placeholder: "请输入标题"
758
773
  }, null, 8, ["modelValue"])]),
759
774
  _: 1
760
- }), u(l(H), {
775
+ }), u(a(Y), {
761
776
  field: "type",
762
777
  label: "反馈类型",
763
778
  rules: [{
@@ -765,22 +780,22 @@ const J = [{
765
780
  message: "请选择反馈类型"
766
781
  }]
767
782
  }, {
768
- default: n(() => [u(l(Fe), {
783
+ default: o(() => [u(a(Re), {
769
784
  modelValue: c.value.type,
770
785
  "onUpdate:modelValue": i[1] || (i[1] = (v) => c.value.type = v),
771
786
  placeholder: "请选择反馈类型"
772
787
  }, {
773
- default: n(() => [(r(!0), S(B, null, ie(l(J), (v, _) => (r(), y(l(Ue), {
774
- key: _,
788
+ default: o(() => [(r(!0), S(z, null, ce(a(X), (v, h) => (r(), y(a(Le), {
789
+ key: h,
775
790
  value: v.key
776
791
  }, {
777
- default: n(() => [$(z(v.label), 1)]),
792
+ default: o(() => [F(q(v.label), 1)]),
778
793
  _: 2
779
794
  }, 1032, ["value"]))), 128))]),
780
795
  _: 1
781
796
  }, 8, ["modelValue"])]),
782
797
  _: 1
783
- }), u(l(H), {
798
+ }), u(a(Y), {
784
799
  field: "description",
785
800
  label: "问题描述",
786
801
  rules: [{
@@ -788,7 +803,7 @@ const J = [{
788
803
  message: "请输入问题描述"
789
804
  }]
790
805
  }, {
791
- default: n(() => [u(l(Le), {
806
+ default: o(() => [u(a(Be), {
792
807
  modelValue: c.value.description,
793
808
  "onUpdate:modelValue": i[2] || (i[2] = (v) => c.value.description = v),
794
809
  placeholder: "请输入问题描述",
@@ -798,34 +813,34 @@ const J = [{
798
813
  }
799
814
  }, null, 8, ["modelValue"])]),
800
815
  _: 1
801
- }), L("", !0), u(l(G), {
802
- loading: f.value,
816
+ }), L("", !0), u(a(Q), {
817
+ loading: p.value,
803
818
  type: "primary",
804
819
  onClick: s
805
820
  }, {
806
- default: n(() => [...i[3] || (i[3] = [$(" 提交 ", -1)])]),
821
+ default: o(() => [...i[3] || (i[3] = [F(" 提交 ", -1)])]),
807
822
  _: 1
808
823
  }, 8, ["loading"])]),
809
824
  _: 1
810
825
  }, 8, ["model"])]));
811
826
  }
812
- }), vt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-e632f6f9"]]), yt = {
827
+ }), kt = /* @__PURE__ */ E(gt, [["__scopeId", "data-v-e632f6f9"]]), bt = {
813
828
  class: "messages"
814
- }, gt = {
829
+ }, _t = {
815
830
  key: 1,
816
831
  class: "list"
817
- }, kt = /* @__PURE__ */ R({
832
+ }, ht = /* @__PURE__ */ B({
818
833
  __name: "FeedbackList",
819
834
  emits: ["toDetail"],
820
835
  setup(e, {
821
- emit: o
836
+ emit: l
822
837
  }) {
823
- const t = m(!0), a = m([]), f = m(!1), c = m(""), s = m({
838
+ const t = m(!0), n = m([]), p = m(!1), c = m(""), s = m({
824
839
  total: 0,
825
840
  current: 1,
826
841
  pageSize: 10
827
842
  });
828
- function h() {
843
+ function C() {
829
844
  t.value = !0;
830
845
  }
831
846
  function i(g) {
@@ -871,114 +886,114 @@ const J = [{
871
886
  fixed: "right",
872
887
  minWidth: 80
873
888
  }];
874
- function _(g) {
889
+ function h(g) {
875
890
  return g === "inProgress" ? "orangered" : g === "done" ? "green" : "arcoblue";
876
891
  }
877
- function C() {
878
- f.value = !0, st({
892
+ function x() {
893
+ p.value = !0, rt({
879
894
  current: s.value.current,
880
895
  pageSize: s.value.pageSize
881
896
  }).then(async ({
882
897
  data: g
883
898
  }) => {
884
- f.value = !1, a.value = g.items, s.value.total = g.count;
899
+ p.value = !1, n.value = g.items, s.value.total = g.count;
885
900
  }).catch(() => {
886
- f.value = !1;
901
+ p.value = !1;
887
902
  });
888
903
  }
889
- const U = (g) => {
890
- s.value.current = g, C();
891
- }, F = (g) => {
892
- s.value.current = 1, s.value.pageSize = g, C();
904
+ const R = (g) => {
905
+ s.value.current = g, x();
906
+ }, U = (g) => {
907
+ s.value.current = 1, s.value.pageSize = g, x();
893
908
  };
894
- return C(), (g, w) => (r(), S("div", yt, [t.value ? L("", !0) : (r(), y(l(Be), {
909
+ return x(), (g, I) => (r(), S("div", bt, [t.value ? L("", !0) : (r(), y(a(qe), {
895
910
  key: 0,
896
911
  style: {
897
912
  "margin-bottom": "10px",
898
913
  cursor: "pointer"
899
914
  }
900
915
  }, {
901
- default: n(() => [u(l(ee), {
916
+ default: o(() => [u(a(le), {
902
917
  style: {
903
918
  padding: "0px"
904
919
  },
905
- onClick: h
920
+ onClick: C
906
921
  }, {
907
- default: n(() => [...w[0] || (w[0] = [$("我的反馈", -1)])]),
922
+ default: o(() => [...I[0] || (I[0] = [F("我的反馈", -1)])]),
908
923
  _: 1
909
- }), u(l(ee), {
924
+ }), u(a(le), {
910
925
  style: {
911
926
  padding: "0px"
912
927
  }
913
928
  }, {
914
- default: n(() => [...w[1] || (w[1] = [$("反馈详情", -1)])]),
929
+ default: o(() => [...I[1] || (I[1] = [F("反馈详情", -1)])]),
915
930
  _: 1
916
931
  })]),
917
932
  _: 1
918
- })), t.value ? (r(), S("div", gt, [u(Ve, {
933
+ })), t.value ? (r(), S("div", _t, [u(Oe, {
919
934
  columns: v,
920
- data: a.value,
921
- loading: f.value,
935
+ data: n.value,
936
+ loading: p.value,
922
937
  pagination: s.value,
923
- onPageChange: U,
924
- onPageSizeChange: F
938
+ onPageChange: R,
939
+ onPageSizeChange: U
925
940
  }, {
926
- type: n(({
941
+ type: o(({
927
942
  record: k
928
- }) => [u(l(E), {
943
+ }) => [u(a(j), {
929
944
  color: "arcoblue"
930
945
  }, {
931
- default: n(() => {
946
+ default: o(() => {
932
947
  var b;
933
- return [$(z((b = l(j)(l(J), k.type)) == null ? void 0 : b.label), 1)];
948
+ return [F(q((b = a(M)(a(X), k.type)) == null ? void 0 : b.label), 1)];
934
949
  }),
935
950
  _: 2
936
951
  }, 1024)]),
937
- status: n(({
952
+ status: o(({
938
953
  record: k
939
- }) => [u(l(E), {
940
- color: _(k.status)
954
+ }) => [u(a(j), {
955
+ color: h(k.status)
941
956
  }, {
942
- default: n(() => {
957
+ default: o(() => {
943
958
  var b;
944
- return [$(z((b = l(j)(l(ge), k.status)) == null ? void 0 : b.label), 1)];
959
+ return [F(q((b = a(M)(a(be), k.status)) == null ? void 0 : b.label), 1)];
945
960
  }),
946
961
  _: 2
947
962
  }, 1032, ["color"])]),
948
- actions: n(({
963
+ actions: o(({
949
964
  record: k
950
- }) => [u(l(G), {
965
+ }) => [u(a(Q), {
951
966
  type: "text",
952
967
  onClick: (b) => i(k)
953
968
  }, {
954
- default: n(() => [...w[2] || (w[2] = [$("查看", -1)])]),
969
+ default: o(() => [...I[2] || (I[2] = [F("查看", -1)])]),
955
970
  _: 1
956
971
  }, 8, ["onClick"])]),
957
972
  _: 1
958
- }, 8, ["data", "loading", "pagination"])])) : (r(), y(ft, {
973
+ }, 8, ["data", "loading", "pagination"])])) : (r(), y(vt, {
959
974
  key: 2,
960
975
  id: c.value,
961
976
  "sender-role": "user"
962
977
  }, null, 8, ["id"]))]));
963
978
  }
964
- }), bt = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-8e0383ef"]]), _t = {
979
+ }), Ct = /* @__PURE__ */ E(ht, [["__scopeId", "data-v-8e0383ef"]]), xt = {
965
980
  class: "content"
966
- }, ht = {
981
+ }, wt = {
967
982
  class: "left"
968
- }, Ct = {
983
+ }, St = {
969
984
  class: "right"
970
- }, xt = /* @__PURE__ */ R({
985
+ }, It = /* @__PURE__ */ B({
971
986
  __name: "FeedbackModal",
972
987
  emits: ["confirm", "cancel"],
973
988
  setup(e, {
974
- expose: o,
989
+ expose: l,
975
990
  emit: t
976
991
  }) {
977
- const a = m(!1), f = t;
992
+ const n = m(!1), p = t;
978
993
  function c() {
979
- f("cancel");
994
+ p("cancel");
980
995
  }
981
- const s = m(["FeedbackList"]), h = m(["功能变更"]), i = m([{
996
+ const s = m(["FeedbackList"]), C = m(["功能变更"]), i = m([{
982
997
  name: "我的反馈",
983
998
  path: "FeedbackList",
984
999
  meta: {
@@ -990,25 +1005,25 @@ const J = [{
990
1005
  meta: {
991
1006
  icon: "mingcute:cube-3d-fill"
992
1007
  }
993
- }]), v = m(!1), _ = O(() => s.value.length !== 0 ? s.value[0] : "");
994
- function C() {
1008
+ }]), v = m(!1), h = O(() => s.value.length !== 0 ? s.value[0] : "");
1009
+ function x() {
995
1010
  s.value = ["FeedbackList"];
996
1011
  }
997
- function U() {
1012
+ function R() {
998
1013
  v.value = !1;
999
1014
  }
1000
- function F(w, k) {
1001
- const b = w.path;
1002
- console.log(b, k, "lokokoko"), s.value = [b], h.value = w.name;
1015
+ function U(I, k) {
1016
+ const b = I.path;
1017
+ console.log(b, k, "lokokoko"), s.value = [b], C.value = I.name;
1003
1018
  }
1004
- function g(w) {
1005
- a.value = w;
1019
+ function g(I) {
1020
+ n.value = I;
1006
1021
  }
1007
- return o({
1022
+ return l({
1008
1023
  setData: g
1009
- }), (w, k) => (r(), y(l(ze), {
1010
- visible: a.value,
1011
- "onUpdate:visible": k[1] || (k[1] = (b) => a.value = b),
1024
+ }), (I, k) => (r(), y(a(Ve), {
1025
+ visible: n.value,
1026
+ "onUpdate:visible": k[1] || (k[1] = (b) => n.value = b),
1012
1027
  loading: !1,
1013
1028
  "body-class": "AppMessagebodyClass",
1014
1029
  "mask-closable": !1,
@@ -1018,39 +1033,39 @@ const J = [{
1018
1033
  "hide-title": !1,
1019
1034
  onCancel: c
1020
1035
  }, {
1021
- default: n(() => [a.value ? (r(), S(B, {
1036
+ default: o(() => [n.value ? (r(), S(z, {
1022
1037
  key: 0
1023
- }, [I("div", _t, [I("div", ht, [u(De, {
1038
+ }, [$("div", xt, [$("div", wt, [u(De, {
1024
1039
  "selected-keys": s.value,
1025
1040
  "onUpdate:selectedKeys": k[0] || (k[0] = (b) => s.value = b),
1026
1041
  menus: i.value,
1027
- onChange: F
1028
- }, null, 8, ["selected-keys", "menus"])]), I("div", Ct, [_.value === "FeedbackList" ? (r(), y(bt, {
1042
+ onChange: U
1043
+ }, null, 8, ["selected-keys", "menus"])]), $("div", St, [h.value === "FeedbackList" ? (r(), y(Ct, {
1029
1044
  key: 0
1030
- })) : L("", !0), _.value === "CreateFeedback" ? (r(), y(vt, {
1045
+ })) : L("", !0), h.value === "CreateFeedback" ? (r(), y(kt, {
1031
1046
  key: 1,
1032
- onConfirm: C
1033
- })) : L("", !0)])]), u(l(qe), {
1047
+ onConfirm: x
1048
+ })) : L("", !0)])]), u(a(Ae), {
1034
1049
  width: 400,
1035
1050
  visible: v.value,
1036
1051
  "unmount-on-close": "",
1037
1052
  footer: !1,
1038
- title: `${h.value}详情`,
1039
- onCancel: U
1053
+ title: `${C.value}详情`,
1054
+ onCancel: R
1040
1055
  }, {
1041
- default: n(() => [...k[2] || (k[2] = [I("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])]),
1056
+ default: o(() => [...k[2] || (k[2] = [$("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])]),
1042
1057
  _: 1
1043
1058
  }, 8, ["visible", "title"])], 64)) : L("", !0)]),
1044
1059
  _: 1
1045
1060
  }, 8, ["visible"]));
1046
1061
  }
1047
- }), Yt = /* @__PURE__ */ V(xt, [["__scopeId", "data-v-4df9453a"]]);
1062
+ }), Jt = /* @__PURE__ */ E(It, [["__scopeId", "data-v-4df9453a"]]);
1048
1063
  export {
1049
- ft as F,
1050
- Qe as R,
1051
- se as _,
1052
- ne as a,
1053
- vt as b,
1054
- bt as c,
1055
- Yt as d
1064
+ vt as F,
1065
+ Je as R,
1066
+ ne as _,
1067
+ se as a,
1068
+ kt as b,
1069
+ Ct as c,
1070
+ Jt as d
1056
1071
  };