vue-color-ui 0.0.33 → 0.0.34

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,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
- var ye = (t, e, c) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
3
- var j = (t, e, c) => (ye(t, typeof e != "symbol" ? e + "" : e, c), c);
4
- import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as m, renderList as $, normalizeClass as u, normalizeStyle as I, createElementVNode as n, toDisplayString as r, createTextVNode as y, createCommentVNode as p, pushScopeId as ke, popScopeId as Ie, computed as x, renderSlot as w, createBlock as S, ref as V, withModifiers as ie, unref as we, onMounted as ae, resolveComponent as be, createVNode as E, onUnmounted as Ce, withKeys as xe, withDirectives as re, vShow as ue, provide as ge, watch as Te, inject as de, withCtx as ne } from "vue";
2
+ var ye = (s, e, i) => e in s ? $e(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
3
+ var j = (s, e, i) => (ye(s, typeof e != "symbol" ? e + "" : e, i), i);
4
+ import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as _, renderList as $, normalizeClass as u, normalizeStyle as I, createElementVNode as n, toDisplayString as r, createTextVNode as y, createCommentVNode as p, pushScopeId as ke, popScopeId as Ie, computed as x, renderSlot as w, createBlock as S, ref as V, withModifiers as ie, unref as we, onMounted as ae, resolveComponent as be, createVNode as q, onUnmounted as Ce, withKeys as xe, withDirectives as re, vShow as ue, provide as ge, watch as Te, inject as de, withCtx as ne } from "vue";
5
5
  const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve = { class: "nav-name" }, ze = {
6
6
  name: "TNavCard"
7
7
  }, P = /* @__PURE__ */ g({
@@ -9,29 +9,29 @@ const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve
9
9
  props: {
10
10
  items: {}
11
11
  },
12
- setup(t) {
13
- return (e, c) => (o(), a("div", Be, [
14
- (o(!0), a(m, null, $(e.items, (s, l) => (o(), a("div", {
12
+ setup(s) {
13
+ return (e, i) => (o(), a("div", Be, [
14
+ (o(!0), a(_, null, $(e.items, (t, c) => (o(), a("div", {
15
15
  "hover-class": "none",
16
- url: "/pages/basics/" + s.name,
17
- class: u(["nav-li", "bg-" + s.color]),
16
+ url: "/pages/basics/" + t.name,
17
+ class: u(["nav-li", "bg-" + t.color]),
18
18
  navigateTo: "",
19
- style: I([{ animation: "show " + ((l + 1) * 0.2 + 1) + "s 1" }]),
20
- key: l
19
+ style: I([{ animation: "show " + ((c + 1) * 0.2 + 1) + "s 1" }]),
20
+ key: c
21
21
  }, [
22
- n("div", Se, r(s.title), 1),
23
- n("div", Ve, r(s.name), 1),
22
+ n("div", Se, r(t.title), 1),
23
+ n("div", Ve, r(t.name), 1),
24
24
  n("text", {
25
- class: u("cuIcon-" + s.cuIcon)
25
+ class: u("cuIcon-" + t.cuIcon)
26
26
  }, null, 2)
27
27
  ], 14, je))), 128))
28
28
  ]));
29
29
  }
30
30
  });
31
- P.install = (t) => {
32
- t.component(P.name, P);
31
+ P.install = (s) => {
32
+ s.component(P.name, P);
33
33
  };
34
- const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-item shadow" }, Ee = { class: "title" }, Me = { class: "text-cut" }, Ae = { class: "content" }, Ne = ["src", "alt"], Pe = { class: "desc" }, De = { class: "text-content" }, Fe = {
34
+ const pe = (s) => (ke("data-v-bbdb83ff"), s = s(), Ie(), s), Ee = { class: "cu-item shadow" }, qe = { class: "title" }, Me = { class: "text-cut" }, Ae = { class: "content" }, Ne = ["src", "alt"], Pe = { class: "desc" }, De = { class: "text-content" }, Fe = {
35
35
  key: 0,
36
36
  class: "content flex-sub justify-between text-sm solid-top margin-top-sm",
37
37
  style: { padding: "5px 15px" }
@@ -55,12 +55,12 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
55
55
  timeAgo: "十天前"
56
56
  }) }
57
57
  },
58
- setup(t) {
59
- return (e, c) => (o(), a("div", {
58
+ setup(s) {
59
+ return (e, i) => (o(), a("div", {
60
60
  class: u(["cu-card article", e.isCard ? "" : "no-card"])
61
61
  }, [
62
- n("div", qe, [
63
- n("div", Ee, [
62
+ n("div", Ee, [
63
+ n("div", qe, [
64
64
  n("div", Me, r(e.title), 1)
65
65
  ]),
66
66
  n("div", Ae, [
@@ -71,10 +71,10 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
71
71
  n("div", Pe, [
72
72
  n("div", De, r(e.description), 1),
73
73
  n("div", null, [
74
- (o(!0), a(m, null, $(e.tags, (s) => (o(), a("div", {
75
- key: s,
74
+ (o(!0), a(_, null, $(e.tags, (t) => (o(), a("div", {
75
+ key: t,
76
76
  class: "cu-tag bg-red light sm round"
77
- }, r(s), 1))), 128))
77
+ }, r(t), 1))), 128))
78
78
  ])
79
79
  ])
80
80
  ]),
@@ -95,14 +95,14 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
95
95
  ])
96
96
  ], 2));
97
97
  }
98
- }), A = (t, e) => {
99
- const c = t.__vccOpts || t;
100
- for (const [s, l] of e)
101
- c[s] = l;
102
- return c;
98
+ }), A = (s, e) => {
99
+ const i = s.__vccOpts || s;
100
+ for (const [t, c] of e)
101
+ i[t] = c;
102
+ return i;
103
103
  }, D = /* @__PURE__ */ A(Xe, [["__scopeId", "data-v-bbdb83ff"]]);
104
- D.install = (t) => {
105
- t.component(D.name, D);
104
+ D.install = (s) => {
105
+ s.component(D.name, D);
106
106
  };
107
107
  const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, We = { class: "cu-item" }, Ye = { class: "content flex-sub" }, Ze = { class: "text-gray text-sm flex justify-between" }, et = { class: "text-content" }, tt = { class: "text-gray text-sm text-right padding" }, st = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), ot = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), nt = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), at = { class: "cu-item" }, lt = { class: "content" }, ct = { class: "text-grey" }, it = { class: "text-gray text-content text-df" }, rt = { class: "flex" }, ut = { class: "flex-sub" }, dt = { class: "margin-top-sm flex justify-between" }, ft = { class: "text-gray text-df" }, pt = {
108
108
  key: 0,
@@ -157,8 +157,8 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
157
157
  }
158
158
  ] }
159
159
  },
160
- setup(t) {
161
- return (e, c) => (o(), a("div", null, [
160
+ setup(s) {
161
+ return (e, i) => (o(), a("div", null, [
162
162
  n("div", {
163
163
  class: u(["cu-card dynamic", e.isCard ? "is-card" : "no-card"])
164
164
  }, [
@@ -179,10 +179,10 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
179
179
  n("div", {
180
180
  class: u(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
181
181
  }, [
182
- (o(!0), a(m, null, $(e.isCard ? 9 : 1, (s) => (o(), a("div", {
182
+ (o(!0), a(_, null, $(e.isCard ? 9 : 1, (t) => (o(), a("div", {
183
183
  class: u(["bg-img", e.isCard ? "" : "only-img"]),
184
184
  style: I({ backgroundImage: `url(${e.imageUrl})` }),
185
- key: s
185
+ key: t
186
186
  }, null, 6))), 128))
187
187
  ], 2),
188
188
  n("div", tt, [
@@ -193,35 +193,35 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
193
193
  nt,
194
194
  y(" " + r(e.comments), 1)
195
195
  ]),
196
- (o(!0), a(m, null, $(e.commentsList, (s) => {
197
- var l;
196
+ (o(!0), a(_, null, $(e.commentsList, (t) => {
197
+ var c;
198
198
  return o(), a("div", {
199
199
  class: "cu-list menu-avatar comment solids-top",
200
- key: s.id
200
+ key: t.id
201
201
  }, [
202
202
  n("div", at, [
203
203
  n("div", {
204
204
  class: "cu-avatar round",
205
- style: I({ backgroundImage: `url(${s.avatarUrl})` })
205
+ style: I({ backgroundImage: `url(${t.avatarUrl})` })
206
206
  }, null, 4),
207
207
  n("div", lt, [
208
- n("div", ct, r(s.author), 1),
209
- n("div", it, r(s.text), 1),
210
- (o(!0), a(m, null, $(s.replies, (i) => (o(), a("div", {
211
- key: i.id,
208
+ n("div", ct, r(t.author), 1),
209
+ n("div", it, r(t.text), 1),
210
+ (o(!0), a(_, null, $(t.replies, (l) => (o(), a("div", {
211
+ key: l.id,
212
212
  class: "bg-grey padding-sm radius margin-top-sm text-sm"
213
213
  }, [
214
214
  n("div", rt, [
215
- n("div", null, r(i.author) + ":", 1),
216
- n("div", ut, r(i.text), 1)
215
+ n("div", null, r(l.author) + ":", 1),
216
+ n("div", ut, r(l.text), 1)
217
217
  ])
218
218
  ]))), 128)),
219
219
  n("div", dt, [
220
- n("div", ft, r(s.date), 1),
220
+ n("div", ft, r(t.date), 1),
221
221
  n("div", null, [
222
- s.likes ? (o(), a("span", pt)) : p("", !0),
222
+ t.likes ? (o(), a("span", pt)) : p("", !0),
223
223
  ht,
224
- n("span", gt, r((l = s.replies) == null ? void 0 : l.length), 1)
224
+ n("span", gt, r((c = t.replies) == null ? void 0 : c.length), 1)
225
225
  ])
226
226
  ])
227
227
  ])
@@ -233,8 +233,8 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
233
233
  ]));
234
234
  }
235
235
  });
236
- F.install = (t) => {
237
- t.component(F.name, F);
236
+ F.install = (s) => {
237
+ s.component(F.name, F);
238
238
  };
239
239
  const _t = {
240
240
  ssss: "2px",
@@ -248,14 +248,14 @@ const _t = {
248
248
  xxl: "30px",
249
249
  xxxl: "48px"
250
250
  };
251
- function vt(t, e, c = "px") {
251
+ function vt(s, e, i = "px") {
252
252
  if (typeof e == "number")
253
- return `${t}: ${e}${c};`;
254
- const s = _t[e];
255
- return s ? `${t}: ${s};` : "";
253
+ return `${s}: ${e}${i};`;
254
+ const t = _t[e];
255
+ return t ? `${s}: ${t};` : "";
256
256
  }
257
- function bt(t) {
258
- return vt("font-size", t);
257
+ function bt(s) {
258
+ return vt("font-size", s);
259
259
  }
260
260
  const $t = {
261
261
  name: "TIcon"
@@ -266,11 +266,11 @@ const $t = {
266
266
  color: { default: "grey" },
267
267
  size: { default: 15 }
268
268
  },
269
- setup(t) {
270
- const e = t, c = x(() => bt(e.size));
271
- return (s, l) => (o(), a("i", {
272
- class: u(`cuIcon-${s.name} text-${s.color}`),
273
- style: I(c.value)
269
+ setup(s) {
270
+ const e = s, i = x(() => bt(e.size));
271
+ return (t, c) => (o(), a("i", {
272
+ class: u(`cuIcon-${t.name} text-${t.color}`),
273
+ style: I(i.value)
274
274
  }, null, 6));
275
275
  }
276
276
  }), yt = { class: "action border-title" }, kt = { class: "action border-title" }, It = { class: "tib text-xl text-bold text-blue" }, wt = /* @__PURE__ */ n("div", {
@@ -285,7 +285,7 @@ const $t = {
285
285
  }, Vt = { class: "action" }, zt = {
286
286
  key: 6,
287
287
  class: "cu-bar bg-white solid-bottom"
288
- }, qt = { class: "action" }, Et = { class: "action" }, Mt = { name: "TTitle" }, L = /* @__PURE__ */ g({
288
+ }, Et = { class: "action" }, qt = { class: "action" }, Mt = { name: "TTitle" }, L = /* @__PURE__ */ g({
289
289
  ...Mt,
290
290
  props: {
291
291
  title: { default: "主题名称" },
@@ -296,8 +296,8 @@ const $t = {
296
296
  mode: {},
297
297
  center: { type: Boolean, default: !1 }
298
298
  },
299
- setup(t) {
300
- return (e, c) => e.mode === "default1" ? (o(), a("div", {
299
+ setup(s) {
300
+ return (e, i) => e.mode === "default1" ? (o(), a("div", {
301
301
  key: 0,
302
302
  class: u(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
303
303
  }, [
@@ -360,13 +360,13 @@ const $t = {
360
360
  }, r(e.title), 3)
361
361
  ])
362
362
  ])) : (o(), a("div", zt, [
363
- n("div", qt, [
363
+ n("div", Et, [
364
364
  n("i", {
365
365
  class: u(`cuIcon-${e.icon} text-${e.color}`)
366
366
  }, null, 2),
367
367
  w(e.$slots, "default")
368
368
  ]),
369
- n("div", Et, [
369
+ n("div", qt, [
370
370
  w(e.$slots, "action")
371
371
  ])
372
372
  ]));
@@ -380,8 +380,8 @@ const $t = {
380
380
  size: { default: "lg" },
381
381
  mode: { default: "round" }
382
382
  },
383
- setup(t) {
384
- return (e, c) => e.url ? (o(), a("div", {
383
+ setup(s) {
384
+ return (e, i) => e.url ? (o(), a("div", {
385
385
  key: 0,
386
386
  class: u(["cu-avatar", e.size, e.mode]),
387
387
  style: I({ backgroundImage: `url(${e.url})` })
@@ -401,11 +401,11 @@ const $t = {
401
401
  size: { default: "sm" },
402
402
  mode: { default: "round" }
403
403
  },
404
- setup(t) {
405
- return (e, c) => (o(), a("div", Nt, [
406
- (o(!0), a(m, null, $(e.urls, (s, l) => (o(), S(z, {
407
- key: l,
408
- url: s,
404
+ setup(s) {
405
+ return (e, i) => (o(), a("div", Nt, [
406
+ (o(!0), a(_, null, $(e.urls, (t, c) => (o(), S(z, {
407
+ key: c,
408
+ url: t,
409
409
  size: e.size
410
410
  }, null, 8, ["url", "size"]))), 128))
411
411
  ]));
@@ -423,35 +423,35 @@ const $t = {
423
423
  disabled: { type: Boolean, default: !1 },
424
424
  shadow: { type: Boolean, default: !1 }
425
425
  },
426
- setup(t) {
427
- const e = t, c = x(() => [
426
+ setup(s) {
427
+ const e = s, i = x(() => [
428
428
  "cu-btn",
429
429
  e.rounded ? "round" : "radius",
430
430
  e.shadow ? "shadow" : "",
431
431
  `bg-${e.bg}`,
432
432
  e.size !== "default" ? e.size : ""
433
- ].join(" ")), s = x(() => ({
433
+ ].join(" ")), t = x(() => ({
434
434
  cursor: e.disabled ? "not-allowed" : "pointer"
435
- })), l = x(() => ({
435
+ })), c = x(() => ({
436
436
  marginRight: e.text ? "8px" : "0"
437
437
  }));
438
- return (i, d) => (o(), a("button", {
439
- class: u(c.value),
440
- style: I(s.value),
441
- disabled: i.disabled
438
+ return (l, d) => (o(), a("button", {
439
+ class: u(i.value),
440
+ style: I(t.value),
441
+ disabled: l.disabled
442
442
  }, [
443
- w(i.$slots, "default"),
444
- i.icon ? (o(), a("i", {
443
+ w(l.$slots, "default"),
444
+ l.icon ? (o(), a("i", {
445
445
  key: 0,
446
- class: u(`cuIcon-${i.icon}`),
447
- style: I(l.value)
446
+ class: u(`cuIcon-${l.icon}`),
447
+ style: I(c.value)
448
448
  }, null, 6)) : p("", !0),
449
- i.text ? (o(), a("span", Ft, r(i.text), 1)) : p("", !0)
449
+ l.text ? (o(), a("span", Ft, r(l.text), 1)) : p("", !0)
450
450
  ], 14, Dt));
451
451
  }
452
452
  }), Rt = { key: 0 }, Ut = {
453
453
  name: "TTag"
454
- }, q = /* @__PURE__ */ g({
454
+ }, E = /* @__PURE__ */ g({
455
455
  ...Ut,
456
456
  props: {
457
457
  text: {},
@@ -461,40 +461,40 @@ const $t = {
461
461
  light: { type: Boolean, default: !1 },
462
462
  line: { type: Boolean, default: !1 }
463
463
  },
464
- setup(t) {
465
- const e = t, c = x(() => [
464
+ setup(s) {
465
+ const e = s, i = x(() => [
466
466
  "cu-tag",
467
467
  e.shape !== "default" ? e.shape : "",
468
468
  e.light !== !1 ? "light" : "",
469
469
  `${e.line !== !1 ? "line" : "bg"}-${e.bg}`,
470
470
  e.size !== "default" ? e.size : ""
471
- ].join(" ")), s = x(() => ({}));
472
- return (l, i) => (o(), a("div", {
473
- class: u(c.value),
474
- style: I(s.value)
471
+ ].join(" ")), t = x(() => ({}));
472
+ return (c, l) => (o(), a("div", {
473
+ class: u(i.value),
474
+ style: I(t.value)
475
475
  }, [
476
- w(l.$slots, "default"),
477
- l.text ? (o(), a("span", Rt, r(l.text), 1)) : p("", !0)
476
+ w(c.$slots, "default"),
477
+ c.text ? (o(), a("span", Rt, r(c.text), 1)) : p("", !0)
478
478
  ], 6));
479
479
  }
480
480
  });
481
- M.install = (t) => {
482
- t.component(M.name, M);
481
+ M.install = (s) => {
482
+ s.component(M.name, M);
483
483
  };
484
- L.install = (t) => {
485
- t.component(L.name, L);
484
+ L.install = (s) => {
485
+ s.component(L.name, L);
486
486
  };
487
- z.install = (t) => {
488
- t.component(z.name, z);
487
+ z.install = (s) => {
488
+ s.component(z.name, z);
489
489
  };
490
- R.install = (t) => {
491
- t.component(R.name, R);
490
+ R.install = (s) => {
491
+ s.component(R.name, R);
492
492
  };
493
- U.install = (t) => {
494
- t.component(U.name, U);
493
+ U.install = (s) => {
494
+ s.component(U.name, U);
495
495
  };
496
- q.install = (t) => {
497
- t.component(q.name, q);
496
+ E.install = (s) => {
497
+ s.component(E.name, E);
498
498
  };
499
499
  const Ot = ["onClick"], Gt = {
500
500
  key: 0,
@@ -541,38 +541,38 @@ const Ot = ["onClick"], Gt = {
541
541
  onItemClick: { type: Function, default: () => {
542
542
  } }
543
543
  },
544
- setup(t) {
545
- const e = t, c = (s, l) => {
546
- e.onItemClick && e.onItemClick(s, l);
544
+ setup(s) {
545
+ const e = s, i = (t, c) => {
546
+ e.onItemClick && e.onItemClick(t, c);
547
547
  };
548
- return (s, l) => (o(), a("div", {
549
- class: u(["cu-bar tabbar", `bg-${s.bg} ${s.isFoot ? "foot" : ""}`])
548
+ return (t, c) => (o(), a("div", {
549
+ class: u(["cu-bar tabbar", `bg-${t.bg} ${t.isFoot ? "foot" : ""}`])
550
550
  }, [
551
- (o(!0), a(m, null, $(s.items, (i, d) => (o(), a("div", {
551
+ (o(!0), a(_, null, $(t.items, (l, d) => (o(), a("div", {
552
552
  key: d,
553
- class: u(["action", `text-${d === s.activeIndex ? s.activeColor : s.color}`]),
554
- onClick: (f) => c(i, d)
553
+ class: u(["action", `text-${d === t.activeIndex ? t.activeColor : t.color}`]),
554
+ onClick: (f) => i(l, d)
555
555
  }, [
556
- i.img ? (o(), a("div", Gt, [
556
+ l.img ? (o(), a("div", Gt, [
557
557
  n("img", {
558
- src: i.img,
558
+ src: l.img,
559
559
  style: { width: "21px", height: "21px" },
560
560
  class: "radius"
561
561
  }, null, 8, Kt),
562
- i.badge ? (o(), a("div", Ht, r(i.badge), 1)) : p("", !0)
562
+ l.badge ? (o(), a("div", Ht, r(l.badge), 1)) : p("", !0)
563
563
  ])) : (o(), a("div", {
564
564
  key: 1,
565
- class: u(`cuIcon-${i.icon}`)
565
+ class: u(`cuIcon-${l.icon}`)
566
566
  }, [
567
- i.badge ? (o(), a("div", Xt, r(i.badge), 1)) : p("", !0)
567
+ l.badge ? (o(), a("div", Xt, r(l.badge), 1)) : p("", !0)
568
568
  ], 2)),
569
- n("div", null, r(i.label), 1)
569
+ n("div", null, r(l.label), 1)
570
570
  ], 10, Ot))), 128))
571
571
  ], 2));
572
572
  }
573
573
  });
574
- O.install = (t) => {
575
- t.component(O.name, O);
574
+ O.install = (s) => {
575
+ s.component(O.name, O);
576
576
  };
577
577
  const Qt = {
578
578
  key: 0,
@@ -592,8 +592,8 @@ const Qt = {
592
592
  bg: { default: "white" },
593
593
  avatarUrl: {}
594
594
  },
595
- setup(t) {
596
- return (e, c) => (o(), a("div", {
595
+ setup(s) {
596
+ return (e, i) => (o(), a("div", {
597
597
  class: u(["cu-bar", `bg-${e.bg}`])
598
598
  }, [
599
599
  e.leftIcon || e.leftText ? (o(), a("div", Qt, [
@@ -617,8 +617,8 @@ const Qt = {
617
617
  ], 2));
618
618
  }
619
619
  });
620
- G.install = (t) => {
621
- t.component(G.name, G);
620
+ G.install = (s) => {
621
+ s.component(G.name, G);
622
622
  };
623
623
  const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss = ["placeholder"], os = { class: "action" }, ns = {
624
624
  key: 0,
@@ -638,52 +638,52 @@ const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss =
638
638
  actionIcon: {},
639
639
  actionText: {}
640
640
  },
641
- setup(t) {
642
- const e = V(0), c = (l) => {
643
- e.value = l.detail.height;
644
- }, s = () => {
641
+ setup(s) {
642
+ const e = V(0), i = (c) => {
643
+ e.value = c.detail.height;
644
+ }, t = () => {
645
645
  e.value = 0;
646
646
  };
647
- return (l, i) => (o(), a("div", {
648
- class: u(["cu-bar", `bg-${l.bgColor}`, "search"])
647
+ return (c, l) => (o(), a("div", {
648
+ class: u(["cu-bar", `bg-${c.bgColor}`, "search"])
649
649
  }, [
650
- l.avatarUrl ? (o(), a("div", {
650
+ c.avatarUrl ? (o(), a("div", {
651
651
  key: 0,
652
652
  class: "cu-avatar round",
653
- style: I({ backgroundImage: `url(${l.avatarUrl})` })
653
+ style: I({ backgroundImage: `url(${c.avatarUrl})` })
654
654
  }, null, 4)) : p("", !0),
655
655
  n("div", {
656
- class: u(["search-form", l.borderRadiusClass])
656
+ class: u(["search-form", c.borderRadiusClass])
657
657
  }, [
658
658
  ts,
659
659
  n("input", {
660
- onFocus: c,
661
- onBlur: s,
660
+ onFocus: i,
661
+ onBlur: t,
662
662
  "adjust-position": !1,
663
663
  type: "text",
664
- placeholder: l.placeholder,
664
+ placeholder: c.placeholder,
665
665
  "confirm-type": "search"
666
666
  }, null, 40, ss)
667
667
  ], 2),
668
668
  n("div", os, [
669
- l.buttonText ? (o(), a("button", ns, r(l.buttonText), 1)) : (o(), a(m, { key: 1 }, [
670
- l.location ? (o(), a("text", as, r(l.location), 1)) : p("", !0),
671
- l.locationIcon ? (o(), a("text", {
669
+ c.buttonText ? (o(), a("button", ns, r(c.buttonText), 1)) : (o(), a(_, { key: 1 }, [
670
+ c.location ? (o(), a("text", as, r(c.location), 1)) : p("", !0),
671
+ c.locationIcon ? (o(), a("text", {
672
672
  key: 1,
673
- class: u(`cuIcon-${l.locationIcon}`)
673
+ class: u(`cuIcon-${c.locationIcon}`)
674
674
  }, null, 2)) : p("", !0),
675
- l.actionIcon ? (o(), a("text", {
675
+ c.actionIcon ? (o(), a("text", {
676
676
  key: 2,
677
- class: u(`cuIcon-${l.actionIcon}`)
677
+ class: u(`cuIcon-${c.actionIcon}`)
678
678
  }, null, 2)) : p("", !0),
679
- l.actionText ? (o(), a("text", ls, r(l.actionText), 1)) : p("", !0)
679
+ c.actionText ? (o(), a("text", ls, r(c.actionText), 1)) : p("", !0)
680
680
  ], 64))
681
681
  ])
682
682
  ], 2));
683
683
  }
684
684
  });
685
- K.install = (t) => {
686
- t.component(K.name, K);
685
+ K.install = (s) => {
686
+ s.component(K.name, K);
687
687
  };
688
688
  const is = {
689
689
  key: 0,
@@ -695,22 +695,22 @@ const is = {
695
695
  stringArray: { default: () => [] }
696
696
  },
697
697
  emits: ["send"],
698
- setup(t, { emit: e }) {
699
- const c = e, s = t, l = (d = "", f) => {
700
- c("send", d, f);
701
- }, i = x(() => s.stringArray.map((d) => {
702
- if (!s.text)
698
+ setup(s, { emit: e }) {
699
+ const i = e, t = s, c = (d = "", f) => {
700
+ i("send", d, f);
701
+ }, l = x(() => t.stringArray.map((d) => {
702
+ if (!t.text)
703
703
  return d.text;
704
704
  let f = "";
705
- for (let b of d.text)
706
- s.text.includes(b) ? f += `<span style="color:#ff0000">${b}</span>` : f += b;
705
+ for (let m of d.text)
706
+ t.text.includes(m) ? f += `<span style="color:#ff0000">${m}</span>` : f += m;
707
707
  return f;
708
708
  }));
709
709
  return (d, f) => d.stringArray.length ? (o(), a("ul", is, [
710
- (o(!0), a(m, null, $(i.value, (b, v) => (o(), a("li", {
711
- key: v,
712
- innerHTML: b,
713
- onClick: (_) => l(d.stringArray[v].text, d.stringArray[v])
710
+ (o(!0), a(_, null, $(l.value, (m, b) => (o(), a("li", {
711
+ key: b,
712
+ innerHTML: m,
713
+ onClick: (v) => c(d.stringArray[b].text, d.stringArray[b])
714
714
  }, null, 8, rs))), 128))
715
715
  ])) : p("", !0);
716
716
  }
@@ -781,19 +781,19 @@ const is = {
781
781
  ], ps = ["onClick"], hs = /* @__PURE__ */ g({
782
782
  __name: "EmojiPanel",
783
783
  emits: ["addEmoji"],
784
- setup(t, { emit: e }) {
785
- const c = e, s = (l) => {
786
- c("addEmoji", l);
784
+ setup(s, { emit: e }) {
785
+ const i = e, t = (c) => {
786
+ i("addEmoji", c);
787
787
  };
788
- return (l, i) => (o(), a("div", {
788
+ return (c, l) => (o(), a("div", {
789
789
  class: "emoji-panel",
790
790
  ref: "emojiPanel",
791
- onClick: i[0] || (i[0] = ie(() => {
791
+ onClick: l[0] || (l[0] = ie(() => {
792
792
  }, ["stop"]))
793
793
  }, [
794
- (o(!0), a(m, null, $(we(fs), (d) => (o(), a("span", {
794
+ (o(!0), a(_, null, $(we(fs), (d) => (o(), a("span", {
795
795
  key: d,
796
- onClick: (f) => s(d)
796
+ onClick: (f) => t(d)
797
797
  }, r(d), 9, ps))), 128))
798
798
  ], 512));
799
799
  }
@@ -802,28 +802,28 @@ const is = {
802
802
  props: {
803
803
  items: {}
804
804
  },
805
- setup(t) {
805
+ setup(s) {
806
806
  const e = V(null);
807
807
  return ae(() => {
808
- }), (c, s) => {
809
- const l = be("TIcon");
808
+ }), (i, t) => {
809
+ const c = be("TIcon");
810
810
  return o(), a("div", ms, [
811
811
  n("div", {
812
812
  class: "function-panel",
813
813
  ref_key: "functionPanel",
814
814
  ref: e
815
815
  }, [
816
- (o(!0), a(m, null, $(c.items, (i, d) => (o(), a("div", {
816
+ (o(!0), a(_, null, $(i.items, (l, d) => (o(), a("div", {
817
817
  key: d,
818
818
  class: "function-item",
819
- onClick: i.event
819
+ onClick: l.event
820
820
  }, [
821
- E(l, {
822
- name: i.icon,
823
- color: i.color,
821
+ q(c, {
822
+ name: l.icon,
823
+ color: l.color,
824
824
  size: 26
825
825
  }, null, 8, ["name", "color"]),
826
- n("span", null, r(i.text), 1)
826
+ n("span", null, r(l.text), 1)
827
827
  ], 8, _s))), 128))
828
828
  ], 512)
829
829
  ]);
@@ -847,30 +847,30 @@ const is = {
847
847
  functionItems: { default: () => [] }
848
848
  },
849
849
  emits: ["update:modelValue", "send"],
850
- setup(t, { emit: e }) {
851
- const c = V(0), s = V(!1), l = V(!1), i = e, d = t, f = (h) => {
852
- c.value = h.detail.height;
853
- }, b = () => {
854
- c.value = 0;
855
- }, v = (h = "", C) => {
856
- h ? i("send", h, C) : i("send", d.modelValue), i("update:modelValue", ""), s.value = !1;
857
- }, _ = () => {
858
- l.value = !1, s.value = !s.value;
850
+ setup(s, { emit: e }) {
851
+ const i = V(0), t = V(!1), c = V(!1), l = e, d = s, f = (h) => {
852
+ i.value = h.detail.height;
853
+ }, m = () => {
854
+ i.value = 0;
855
+ }, b = (h = "", C) => {
856
+ h ? l("send", h, C) : l("send", d.modelValue), l("update:modelValue", ""), t.value = !1;
857
+ }, v = () => {
858
+ c.value = !1, t.value = !t.value;
859
859
  }, k = () => {
860
- s.value = !1, l.value = !l.value;
860
+ t.value = !1, c.value = !c.value;
861
861
  }, T = (h) => {
862
- i("update:modelValue", d.modelValue + h);
862
+ l("update:modelValue", d.modelValue + h);
863
863
  }, B = (h) => {
864
864
  const C = h.target;
865
- i("update:modelValue", C.value);
865
+ l("update:modelValue", C.value);
866
866
  };
867
867
  return ae(() => {
868
868
  }), Ce(() => {
869
- }), (h, C) => (o(), a(m, null, [
870
- E(ds, {
869
+ }), (h, C) => (o(), a(_, null, [
870
+ q(ds, {
871
871
  text: h.modelValue,
872
872
  "string-array": h.stringArray,
873
- onSend: v
873
+ onSend: b
874
874
  }, null, 8, ["text", "string-array"]),
875
875
  n("div", $s, [
876
876
  h.leftIcon ? (o(), a("div", ys, [
@@ -885,9 +885,9 @@ const is = {
885
885
  ])) : p("", !0),
886
886
  n("input", {
887
887
  onFocus: f,
888
- onBlur: b,
889
- onKeydown: C[0] || (C[0] = xe((N) => v(), ["enter"])),
890
- onConfirm: C[1] || (C[1] = (N) => v()),
888
+ onBlur: m,
889
+ onKeydown: C[0] || (C[0] = xe((N) => b(), ["enter"])),
890
+ onConfirm: C[1] || (C[1] = (N) => b()),
891
891
  "adjust-position": !1,
892
892
  class: "solid-bottom",
893
893
  maxlength: "300",
@@ -898,7 +898,7 @@ const is = {
898
898
  n("div", ws, [
899
899
  n("text", {
900
900
  class: u(`cuIcon-${h.rightIcon} text-grey`),
901
- onClick: ie(_, ["stop"])
901
+ onClick: ie(v, ["stop"])
902
902
  }, null, 2),
903
903
  h.functionItems && h.functionItems.length > 0 ? (o(), a("text", {
904
904
  key: 0,
@@ -908,20 +908,20 @@ const is = {
908
908
  ]),
909
909
  n("button", {
910
910
  class: "cu-btn bg-green shadow-blur round",
911
- onClick: C[2] || (C[2] = (N) => v())
911
+ onClick: C[2] || (C[2] = (N) => b())
912
912
  }, r(h.buttonText), 1)
913
913
  ]),
914
- re(E(gs, { onAddEmoji: T }, null, 512), [
915
- [ue, s.value]
914
+ re(q(gs, { onAddEmoji: T }, null, 512), [
915
+ [ue, t.value]
916
916
  ]),
917
- re(E(bs, { items: h.functionItems }, null, 8, ["items"]), [
918
- [ue, l.value]
917
+ re(q(bs, { items: h.functionItems }, null, 8, ["items"]), [
918
+ [ue, c.value]
919
919
  ])
920
920
  ], 64));
921
921
  }
922
922
  }), H = /* @__PURE__ */ A(xs, [["__scopeId", "data-v-7b4ca731"]]);
923
- H.install = (t) => {
924
- t.component(H.name, H);
923
+ H.install = (s) => {
924
+ s.component(H.name, H);
925
925
  };
926
926
  const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
927
927
  name: "TTabs"
@@ -939,45 +939,45 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
939
939
  line: { type: Boolean, default: !0 }
940
940
  },
941
941
  emits: ["update:modelValue", "select"],
942
- setup(t, { emit: e }) {
943
- const c = t, s = e, l = V([]), i = V(c.modelValue), d = (_, k) => {
944
- i.value = _, s("update:modelValue", _), s("select", k);
942
+ setup(s, { emit: e }) {
943
+ const i = s, t = e, c = V([]), l = V(i.modelValue), d = (v, k) => {
944
+ l.value = v, t("update:modelValue", v), t("select", k);
945
945
  };
946
- ge("registerTab", (_) => (l.value.push(_), l.value.length - 1)), ge("activeTab", i);
947
- const b = x(() => c.center !== !1 ? "justify-content:center;" : `justify-content:${c.mode}`), v = x(() => (_) => {
946
+ ge("registerTab", (v) => (c.value.push(v), c.value.length - 1)), ge("activeTab", l);
947
+ const m = x(() => i.center !== !1 ? "justify-content:center;" : `justify-content:${i.mode}`), b = x(() => (v) => {
948
948
  let k = [];
949
- return i.value === _ && (k.push(`text-${c.color}`), c.bold !== !1 && k.push("text-bold"), c.line !== !1 && k.push("cur")), k;
949
+ return l.value === v && (k.push(`text-${i.color}`), i.bold !== !1 && k.push("text-bold"), i.line !== !1 && k.push("cur")), k;
950
950
  });
951
951
  return Te(
952
- () => c.modelValue,
953
- (_) => {
954
- i.value = _;
952
+ () => i.modelValue,
953
+ (v) => {
954
+ l.value = v;
955
955
  },
956
956
  {
957
957
  immediate: !0
958
958
  }
959
- ), (_, k) => (o(), a("div", {
960
- class: u(_.isCard !== !1 ? "is-card" : "")
959
+ ), (v, k) => (o(), a("div", {
960
+ class: u(v.isCard !== !1 ? "is-card" : "")
961
961
  }, [
962
962
  n("div", {
963
- class: u(["nav flex", [, `bg-${_.bg}`, `text-${_.text}`]]),
964
- style: I(b.value)
963
+ class: u(["nav flex", [, `bg-${v.bg}`, `text-${v.text}`]]),
964
+ style: I(m.value)
965
965
  }, [
966
- (o(!0), a(m, null, $(l.value, (T, B) => (o(), a("div", {
967
- class: u(["cu-item", v.value(B)]),
966
+ (o(!0), a(_, null, $(c.value, (T, B) => (o(), a("div", {
967
+ class: u(["cu-item", b.value(B)]),
968
968
  key: B,
969
969
  onClick: (h) => d(B, T)
970
970
  }, [
971
971
  T.icon ? (o(), a("i", {
972
972
  key: 0,
973
- class: u(`cuIcon-${T.icon} text-${i.value === B ? _.color : T.iconColor}`)
973
+ class: u(`cuIcon-${T.icon} text-${l.value === B ? v.color : T.iconColor}`)
974
974
  }, null, 2)) : p("", !0),
975
975
  y(" " + r(T.label), 1)
976
976
  ], 10, Ts))), 128))
977
977
  ], 6),
978
978
  n("div", Bs, [
979
- w(_.$slots, "default", {
980
- tab: l.value[i.value]
979
+ w(v.$slots, "default", {
980
+ tab: c.value[l.value]
981
981
  })
982
982
  ])
983
983
  ], 2));
@@ -991,33 +991,33 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
991
991
  icon: { default: "" },
992
992
  iconColor: { default: "black" }
993
993
  },
994
- setup(t) {
995
- const e = t, c = de(
994
+ setup(s) {
995
+ const e = s, i = de(
996
996
  "registerTab"
997
- ), s = de("activeTab"), l = V(null), i = x(() => (s == null ? void 0 : s.value) === l.value), d = x(() => ({
997
+ ), t = de("activeTab"), c = V(null), l = x(() => (t == null ? void 0 : t.value) === c.value), d = x(() => ({
998
998
  label: e.label,
999
999
  icon: e.icon,
1000
1000
  iconColor: e.iconColor
1001
1001
  }));
1002
1002
  return ae(() => {
1003
- c && (l.value = c({
1003
+ i && (c.value = i({
1004
1004
  label: e.label,
1005
1005
  icon: e.icon,
1006
1006
  iconColor: e.iconColor
1007
1007
  }));
1008
- }), (f, b) => re((o(), a("div", null, [
1008
+ }), (f, m) => re((o(), a("div", null, [
1009
1009
  w(f.$slots, "default"),
1010
1010
  w(f.$slots, "custom", { tab: d.value })
1011
1011
  ], 512)), [
1012
- [ue, i.value]
1012
+ [ue, l.value]
1013
1013
  ]);
1014
1014
  }
1015
1015
  });
1016
- X.install = (t) => {
1017
- t.component(X.name, X);
1016
+ X.install = (s) => {
1017
+ s.component(X.name, X);
1018
1018
  };
1019
- J.install = (t) => {
1020
- t.component(J.name, J);
1019
+ J.install = (s) => {
1020
+ s.component(J.name, J);
1021
1021
  };
1022
1022
  /*!
1023
1023
  * vue-router v4.3.3
@@ -1025,17 +1025,17 @@ J.install = (t) => {
1025
1025
  * @license MIT
1026
1026
  */
1027
1027
  var me;
1028
- (function(t) {
1029
- t.pop = "pop", t.push = "push";
1028
+ (function(s) {
1029
+ s.pop = "pop", s.push = "push";
1030
1030
  })(me || (me = {}));
1031
1031
  var _e;
1032
- (function(t) {
1033
- t.back = "back", t.forward = "forward", t.unknown = "";
1032
+ (function(s) {
1033
+ s.back = "back", s.forward = "forward", s.unknown = "";
1034
1034
  })(_e || (_e = {}));
1035
1035
  Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
1036
1036
  var ve;
1037
- (function(t) {
1038
- t[t.aborted = 4] = "aborted", t[t.cancelled = 8] = "cancelled", t[t.duplicated = 16] = "duplicated";
1037
+ (function(s) {
1038
+ s[s.aborted = 4] = "aborted", s[s.cancelled = 8] = "cancelled", s[s.duplicated = 16] = "duplicated";
1039
1039
  })(ve || (ve = {}));
1040
1040
  Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
1041
1041
  Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
@@ -1045,7 +1045,7 @@ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
1045
1045
  function zs() {
1046
1046
  return de(Vs);
1047
1047
  }
1048
- const qs = ["onClick"], Es = {
1048
+ const Es = ["onClick"], qs = {
1049
1049
  key: 0,
1050
1050
  class: "cu-tag badge"
1051
1051
  }, Ms = { key: 0 }, As = {
@@ -1120,55 +1120,55 @@ const qs = ["onClick"], Es = {
1120
1120
  gridBorder: { type: Boolean, default: !1 },
1121
1121
  routeFn: { type: Function, default: void 0 }
1122
1122
  },
1123
- setup(t) {
1124
- const e = t, c = zs(), s = (l) => {
1125
- if (l.path) {
1123
+ setup(s) {
1124
+ const e = s, i = zs(), t = (c) => {
1125
+ if (c.path) {
1126
1126
  e.routeFn ? e.routeFn().push({
1127
- path: l.path
1128
- }) : c.push({
1129
- path: l.path
1127
+ path: c.path
1128
+ }) : i.push({
1129
+ path: c.path
1130
1130
  });
1131
1131
  return;
1132
1132
  }
1133
- if (l.link) {
1134
- window.location.href = l.link;
1133
+ if (c.link) {
1134
+ window.location.href = c.link;
1135
1135
  return;
1136
1136
  }
1137
1137
  };
1138
- return (l, i) => (o(), a("div", {
1139
- class: u(["cu-list grid", ["col-" + l.gridCol, l.gridBorder ? "" : "no-border"]])
1138
+ return (c, l) => (o(), a("div", {
1139
+ class: u(["cu-list grid", ["col-" + c.gridCol, c.gridBorder ? "" : "no-border"]])
1140
1140
  }, [
1141
- (o(!0), a(m, null, $(l.cuIconList, (d, f) => (o(), a("div", {
1141
+ (o(!0), a(_, null, $(c.cuIconList, (d, f) => (o(), a("div", {
1142
1142
  class: "cu-item",
1143
1143
  key: f,
1144
- style: I(`width: calc(100% / ${l.gridCol})`),
1145
- onClick: (b) => s(d)
1144
+ style: I(`width: calc(100% / ${c.gridCol})`),
1145
+ onClick: (m) => t(d)
1146
1146
  }, [
1147
1147
  n("div", {
1148
1148
  class: u(["cuIcon-" + d.cuIcon, "text-" + d.color])
1149
1149
  }, [
1150
- d.badge != 0 ? (o(), a("div", Es, [
1150
+ d.badge != 0 ? (o(), a("div", qs, [
1151
1151
  d.badge != 1 ? (o(), a("i", Ms, r((d.badge || 0) > 99 ? "99+" : d.badge), 1)) : p("", !0)
1152
1152
  ])) : p("", !0)
1153
1153
  ], 2),
1154
1154
  n("text", null, r(d.name), 1)
1155
- ], 12, qs))), 128))
1155
+ ], 12, Es))), 128))
1156
1156
  ], 2));
1157
1157
  }
1158
1158
  });
1159
- Q.install = (t) => {
1160
- t.component(Q.name, Q);
1159
+ Q.install = (s) => {
1160
+ s.component(Q.name, Q);
1161
1161
  };
1162
- const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey" }, Fs = { class: "action" }, Ls = {
1162
+ const Ns = ["onClick"], Ps = { class: "content" }, Ds = ["src", "alt"], Fs = { class: "text-grey" }, Ls = { class: "action" }, Rs = {
1163
1163
  key: 1,
1164
1164
  class: "text-grey text-sm"
1165
- }, Rs = ["onClick"], Us = {
1165
+ }, Us = ["onClick"], Os = {
1166
1166
  key: 4,
1167
1167
  class: "text-grey text-sm"
1168
- }, Os = {
1168
+ }, Gs = {
1169
1169
  name: "Menu"
1170
1170
  }, W = /* @__PURE__ */ g({
1171
- ...Os,
1171
+ ...Gs,
1172
1172
  props: {
1173
1173
  menuItems: { default: () => [
1174
1174
  {
@@ -1244,18 +1244,21 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
1244
1244
  menuArrow: { type: Boolean, default: !1 },
1245
1245
  menuCard: { type: Boolean, default: !1 }
1246
1246
  },
1247
- setup(t) {
1248
- const e = (c) => {
1249
- c && c();
1247
+ setup(s) {
1248
+ const e = (t) => {
1249
+ t.event && t.event(t);
1250
+ }, i = (t) => {
1251
+ t && t();
1250
1252
  };
1251
- return (c, s) => (o(), a("div", {
1252
- class: u(["cu-list menu", [c.menuBorder ? "sm-border" : "", c.menuCard ? "card-menu" : ""]])
1253
+ return (t, c) => (o(), a("div", {
1254
+ class: u(["cu-list menu", [t.menuBorder ? "sm-border" : "", t.menuCard ? "card-menu" : ""]])
1253
1255
  }, [
1254
- (o(!0), a(m, null, $(c.menuItems, (l, i) => (o(), a("div", {
1255
- key: i,
1256
- class: u(["cu-item", c.menuArrow ? "arrow" : ""])
1256
+ (o(!0), a(_, null, $(t.menuItems, (l, d) => (o(), a("div", {
1257
+ key: d,
1258
+ class: u(["cu-item", t.menuArrow ? "arrow" : ""]),
1259
+ onClick: (f) => e(l)
1257
1260
  }, [
1258
- n("div", Ns, [
1261
+ n("div", Ps, [
1259
1262
  l.icon ? (o(), S(M, {
1260
1263
  key: 0,
1261
1264
  class: "icon",
@@ -1267,21 +1270,21 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
1267
1270
  class: "icon",
1268
1271
  src: l.img.url,
1269
1272
  alt: l.img.alt
1270
- }, null, 8, Ps)) : p("", !0),
1271
- n("text", Ds, r(l.title), 1)
1273
+ }, null, 8, Ds)) : p("", !0),
1274
+ n("text", Fs, r(l.title), 1)
1272
1275
  ]),
1273
- n("div", Fs, [
1276
+ n("div", Ls, [
1274
1277
  l.group ? (o(), S(R, {
1275
1278
  key: 0,
1276
1279
  urls: l.group
1277
1280
  }, null, 8, ["urls"])) : p("", !0),
1278
- l.group ? (o(), a("text", Ls, r(l.group.length) + "人", 1)) : p("", !0),
1281
+ l.group ? (o(), a("text", Rs, r(l.group.length) + "人", 1)) : p("", !0),
1279
1282
  l.btn ? (o(), a("button", {
1280
1283
  key: 2,
1281
1284
  class: u(["cu-btn round shadow", `bg-${l.btn.bg}`]),
1282
- onClick: (d) => {
1283
- var f;
1284
- return e((f = l.btn) == null ? void 0 : f.event);
1285
+ onClick: (f) => {
1286
+ var m;
1287
+ return i((m = l.btn) == null ? void 0 : m.event);
1285
1288
  }
1286
1289
  }, [
1287
1290
  l.btn.icon ? (o(), S(M, {
@@ -1290,35 +1293,35 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
1290
1293
  color: "white"
1291
1294
  }, null, 8, ["name"])) : p("", !0),
1292
1295
  y(" " + r(l.btn.text), 1)
1293
- ], 10, Rs)) : p("", !0),
1294
- l.tags ? (o(!0), a(m, { key: 3 }, $(l.tags, (d, f) => (o(), S(q, {
1295
- size: d.size,
1296
- key: f,
1297
- bg: d.bg,
1298
- light: d.light,
1296
+ ], 10, Us)) : p("", !0),
1297
+ l.tags ? (o(!0), a(_, { key: 3 }, $(l.tags, (f, m) => (o(), S(E, {
1298
+ size: f.size,
1299
+ key: m,
1300
+ bg: f.bg,
1301
+ light: f.light,
1299
1302
  shape: "round"
1300
1303
  }, {
1301
1304
  default: ne(() => [
1302
- y(r(d.text), 1)
1305
+ y(r(f.text), 1)
1303
1306
  ]),
1304
1307
  _: 2
1305
1308
  }, 1032, ["size", "bg", "light"]))), 128)) : p("", !0),
1306
- l.text ? (o(), a("text", Us, r(l.text), 1)) : p("", !0)
1309
+ l.text ? (o(), a("text", Os, r(l.text), 1)) : p("", !0)
1307
1310
  ])
1308
- ], 2))), 128))
1311
+ ], 10, Ns))), 128))
1309
1312
  ], 2));
1310
1313
  }
1311
1314
  });
1312
- W.install = (t) => {
1313
- t.component(W.name, W);
1315
+ W.install = (s) => {
1316
+ s.component(W.name, W);
1314
1317
  };
1315
- const Gs = {
1318
+ const Ks = {
1316
1319
  key: 1,
1317
1320
  class: "cu-tag badge"
1318
- }, Ks = { class: "content" }, Hs = { class: "flex align-center" }, Xs = { class: "text-cut text-black" }, Js = { class: "text-gray text-sm flex" }, Qs = { class: "text-cut" }, Ws = { class: "action" }, Ys = { class: "text-grey text-xs" }, Zs = {
1321
+ }, Hs = { class: "content" }, Xs = { class: "flex align-center" }, Js = { class: "text-cut text-black" }, Qs = { class: "text-gray text-sm flex" }, Ws = { class: "text-cut" }, Ys = { class: "action" }, Zs = { class: "text-grey text-xs" }, eo = {
1319
1322
  name: "ChatListItem"
1320
1323
  }, fe = /* @__PURE__ */ g({
1321
- ...Zs,
1324
+ ...eo,
1322
1325
  props: {
1323
1326
  userinfo: {},
1324
1327
  roomId: {},
@@ -1337,81 +1340,81 @@ const Gs = {
1337
1340
  event: { type: Function, default: () => {
1338
1341
  } }
1339
1342
  },
1340
- setup(t) {
1341
- const e = t;
1342
- return (c, s) => {
1343
- var i;
1344
- const l = be("TIcon");
1343
+ setup(s) {
1344
+ const e = s;
1345
+ return (i, t) => {
1346
+ var l;
1347
+ const c = be("TIcon");
1345
1348
  return o(), a("div", {
1346
- class: u(["cu-item", { grayscale: c.isDisconnected, cur: c.isCurrent }]),
1347
- onClick: s[0] || (s[0] = (d) => c.event(e))
1349
+ class: u(["cu-item", { grayscale: i.isDisconnected, cur: i.isCurrent }]),
1350
+ onClick: t[0] || (t[0] = (d) => i.event(e))
1348
1351
  }, [
1349
1352
  n("div", {
1350
- class: u(["cu-avatar", c.userinfo.avatarShape, "lg", `bg-${c.avatarBg}`]),
1351
- style: I({ backgroundImage: `url(${c.userinfo.avatar})` })
1353
+ class: u(["cu-avatar", i.userinfo.avatarShape, "lg", `bg-${i.avatarBg}`]),
1354
+ style: I({ backgroundImage: `url(${i.userinfo.avatar})` })
1352
1355
  }, [
1353
- (i = c.userinfo) != null && i.avatar ? p("", !0) : (o(), S(l, {
1356
+ (l = i.userinfo) != null && l.avatar ? p("", !0) : (o(), S(c, {
1354
1357
  key: 0,
1355
- name: c.avatarName,
1358
+ name: i.avatarName,
1356
1359
  size: 36,
1357
1360
  color: "white"
1358
1361
  }, null, 8, ["name"])),
1359
- c.badge ? (o(), a("div", Gs, r(c.badge), 1)) : p("", !0)
1362
+ i.badge ? (o(), a("div", Ks, r(i.badge), 1)) : p("", !0)
1360
1363
  ], 6),
1361
- n("div", Ks, [
1362
- n("div", Hs, [
1363
- n("div", Xs, r(c.userinfo.name), 1),
1364
- c.userinfo.tag ? (o(), a("div", {
1364
+ n("div", Hs, [
1365
+ n("div", Xs, [
1366
+ n("div", Js, r(i.userinfo.name), 1),
1367
+ i.userinfo.tag ? (o(), a("div", {
1365
1368
  key: 0,
1366
- class: u(["cu-tag", "round", `bg-${c.userinfo.tagColor}`, "sm"])
1367
- }, r(c.userinfo.tag), 3)) : p("", !0)
1369
+ class: u(["cu-tag", "round", `bg-${i.userinfo.tagColor}`, "sm"])
1370
+ }, r(i.userinfo.tag), 3)) : p("", !0)
1368
1371
  ]),
1369
- n("div", Js, [
1370
- n("div", Qs, [
1371
- w(c.$slots, "default")
1372
+ n("div", Qs, [
1373
+ n("div", Ws, [
1374
+ w(i.$slots, "default")
1372
1375
  ])
1373
1376
  ])
1374
1377
  ]),
1375
- n("div", Ws, [
1376
- n("div", Ys, r(c.time), 1),
1377
- c.unread ? (o(), a("div", {
1378
+ n("div", Ys, [
1379
+ n("div", Zs, r(i.time), 1),
1380
+ i.unread ? (o(), a("div", {
1378
1381
  key: 0,
1379
- class: u(["cu-tag", "round", `bg-${c.unreadColor}`, "sm"])
1380
- }, r(c.unread), 3)) : c.icon ? (o(), a("div", {
1382
+ class: u(["cu-tag", "round", `bg-${i.unreadColor}`, "sm"])
1383
+ }, r(i.unread), 3)) : i.icon ? (o(), a("div", {
1381
1384
  key: 1,
1382
- class: u(c.iconClass)
1385
+ class: u(i.iconClass)
1383
1386
  }, null, 2)) : p("", !0)
1384
1387
  ])
1385
1388
  ], 2);
1386
1389
  };
1387
1390
  }
1388
- }), eo = { class: "cu-list menu-avatar" }, to = {
1391
+ }), to = { class: "cu-list menu-avatar" }, so = {
1389
1392
  name: "ChatList"
1390
1393
  }, Y = /* @__PURE__ */ g({
1391
- ...to,
1394
+ ...so,
1392
1395
  props: {
1393
1396
  items: {}
1394
1397
  },
1395
- setup(t) {
1396
- return (e, c) => (o(), a("div", eo, [
1397
- (o(!0), a(m, null, $(e.items, (s, l) => (o(), S(fe, {
1398
- "avatar-name": s.avatarName,
1399
- "avatar-bg": s.avatarBg,
1400
- time: s.time,
1401
- key: l,
1402
- userinfo: s.userinfo,
1403
- unread: s.unread,
1404
- unreadColor: s.unreadColor,
1405
- badge: s.badge,
1406
- icon: s.icon,
1407
- iconClass: s.iconClass,
1408
- isDisconnected: s.isDisconnected,
1409
- isCurrent: s.isCurrent,
1410
- event: s.event
1398
+ setup(s) {
1399
+ return (e, i) => (o(), a("div", to, [
1400
+ (o(!0), a(_, null, $(e.items, (t, c) => (o(), S(fe, {
1401
+ "avatar-name": t.avatarName,
1402
+ "avatar-bg": t.avatarBg,
1403
+ time: t.time,
1404
+ key: c,
1405
+ userinfo: t.userinfo,
1406
+ unread: t.unread,
1407
+ unreadColor: t.unreadColor,
1408
+ badge: t.badge,
1409
+ icon: t.icon,
1410
+ iconClass: t.iconClass,
1411
+ isDisconnected: t.isDisconnected,
1412
+ isCurrent: t.isCurrent,
1413
+ event: t.event
1411
1414
  }, {
1412
1415
  default: ne(() => [
1413
- w(e.$slots, "default", { item: s }, () => [
1414
- y(r(s.content), 1)
1416
+ w(e.$slots, "default", { item: t }, () => [
1417
+ y(r(t.content), 1)
1415
1418
  ])
1416
1419
  ]),
1417
1420
  _: 2
@@ -1419,137 +1422,137 @@ const Gs = {
1419
1422
  ]));
1420
1423
  }
1421
1424
  });
1422
- Y.install = (t) => {
1423
- t.component(Y.name, Y), t.component(fe.name, fe);
1425
+ Y.install = (s) => {
1426
+ s.component(Y.name, Y), s.component(fe.name, fe);
1424
1427
  };
1425
- const so = { class: "cu-chat" }, oo = {
1428
+ const oo = { class: "cu-chat" }, no = {
1426
1429
  key: 0,
1427
1430
  class: "cu-info round"
1428
- }, no = {
1431
+ }, ao = {
1429
1432
  key: 1,
1430
1433
  class: "cu-info"
1431
- }, ao = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), lo = { class: "main" }, co = ["src"], io = {
1434
+ }, lo = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), co = { class: "main" }, io = ["src"], ro = {
1432
1435
  key: 2,
1433
1436
  class: "content shadow"
1434
- }, ro = /* @__PURE__ */ n("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), uo = { class: "action text-bold text-grey" }, fo = {
1437
+ }, uo = /* @__PURE__ */ n("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), fo = { class: "action text-bold text-grey" }, po = {
1435
1438
  key: 3,
1436
1439
  class: "content shadow"
1437
- }, po = /* @__PURE__ */ n("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), ho = { class: "content shadow" }, go = /* @__PURE__ */ n("div", { class: "action text-grey" }, [
1440
+ }, ho = /* @__PURE__ */ n("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), go = { class: "content shadow" }, mo = /* @__PURE__ */ n("div", { class: "action text-grey" }, [
1438
1441
  /* @__PURE__ */ n("text", { class: "cuIcon-warnfill text-red text-xxl" }),
1439
1442
  /* @__PURE__ */ n("text", { class: "text-sm margin-left-sm" }, "翻译错误")
1440
- ], -1), mo = { class: "date" }, _o = { name: "ChatRoom" }, Z = /* @__PURE__ */ g({
1441
- ..._o,
1443
+ ], -1), _o = { class: "date" }, vo = { name: "ChatRoom" }, Z = /* @__PURE__ */ g({
1444
+ ...vo,
1442
1445
  props: {
1443
1446
  messages: {}
1444
1447
  },
1445
- setup(t) {
1446
- return (e, c) => (o(), a("div", so, [
1447
- (o(!0), a(m, null, $(e.messages, (s) => (o(), a("div", {
1448
- key: s.id,
1449
- class: u(["cu-item", { self: s.self }])
1448
+ setup(s) {
1449
+ return (e, i) => (o(), a("div", oo, [
1450
+ (o(!0), a(_, null, $(e.messages, (t) => (o(), a("div", {
1451
+ key: t.id,
1452
+ class: u(["cu-item", { self: t.self }])
1450
1453
  }, [
1451
- s.type === "info" ? (o(), a(m, { key: 0 }, [
1452
- s.self ? (o(), a("div", oo, r(s.content), 1)) : (o(), a("div", no, [
1453
- ao,
1454
- y(" " + r(s.content), 1)
1454
+ t.type === "info" ? (o(), a(_, { key: 0 }, [
1455
+ t.self ? (o(), a("div", no, r(t.content), 1)) : (o(), a("div", ao, [
1456
+ lo,
1457
+ y(" " + r(t.content), 1)
1455
1458
  ]))
1456
- ], 64)) : (o(), a(m, { key: 1 }, [
1457
- s.self ? p("", !0) : (o(), S(z, {
1459
+ ], 64)) : (o(), a(_, { key: 1 }, [
1460
+ t.self ? p("", !0) : (o(), S(z, {
1458
1461
  key: 0,
1459
1462
  mode: "radius",
1460
- url: s.avatar
1463
+ url: t.avatar
1461
1464
  }, null, 8, ["url"])),
1462
- n("div", lo, [
1463
- s.type === "text" ? (o(), a("div", {
1465
+ n("div", co, [
1466
+ t.type === "text" ? (o(), a("div", {
1464
1467
  key: 0,
1465
- class: u(["content shadow", { "bg-green": s.self }])
1468
+ class: u(["content shadow", { "bg-green": t.self }])
1466
1469
  }, [
1467
- n("text", null, r(s.content), 1)
1468
- ], 2)) : s.type === "image" ? (o(), a("img", {
1470
+ n("text", null, r(t.content), 1)
1471
+ ], 2)) : t.type === "image" ? (o(), a("img", {
1469
1472
  key: 1,
1470
- src: s.content,
1473
+ src: t.content,
1471
1474
  class: "radius",
1472
1475
  style: { "max-width": "100%" }
1473
- }, null, 8, co)) : s.type === "audio" ? (o(), a("div", io, [
1474
- ro,
1475
- n("div", uo, r(s.content), 1)
1476
- ])) : s.type === "location" ? (o(), a("div", fo, [
1477
- po,
1478
- y(" " + r(s.content), 1)
1479
- ])) : s.type === "warning" ? (o(), a(m, { key: 4 }, [
1480
- n("div", ho, r(s.content), 1),
1481
- go
1476
+ }, null, 8, io)) : t.type === "audio" ? (o(), a("div", ro, [
1477
+ uo,
1478
+ n("div", fo, r(t.content), 1)
1479
+ ])) : t.type === "location" ? (o(), a("div", po, [
1480
+ ho,
1481
+ y(" " + r(t.content), 1)
1482
+ ])) : t.type === "warning" ? (o(), a(_, { key: 4 }, [
1483
+ n("div", go, r(t.content), 1),
1484
+ mo
1482
1485
  ], 64)) : w(e.$slots, "custom-message", {
1483
1486
  key: 5,
1484
- message: s
1487
+ message: t
1485
1488
  })
1486
1489
  ]),
1487
- s.self ? (o(), S(z, {
1490
+ t.self ? (o(), S(z, {
1488
1491
  key: 1,
1489
1492
  mode: "radius",
1490
- url: s.avatar
1493
+ url: t.avatar
1491
1494
  }, null, 8, ["url"])) : p("", !0),
1492
- n("div", mo, r(s.date), 1)
1495
+ n("div", _o, r(t.date), 1)
1493
1496
  ], 64))
1494
1497
  ], 2))), 128))
1495
1498
  ]));
1496
1499
  }
1497
1500
  });
1498
- Z.install = (t) => {
1499
- t.component(Z.name, Z);
1501
+ Z.install = (s) => {
1502
+ s.component(Z.name, Z);
1500
1503
  };
1501
- const vo = { class: "cu-time" }, bo = {
1504
+ const bo = { class: "cu-time" }, $o = {
1502
1505
  key: 0,
1503
1506
  class: "cu-capsule radius"
1504
- }, $o = {
1507
+ }, yo = {
1505
1508
  name: "TimeLine"
1506
1509
  }, ee = /* @__PURE__ */ g({
1507
- ...$o,
1510
+ ...yo,
1508
1511
  props: {
1509
1512
  items: { default: () => [] }
1510
1513
  },
1511
- setup(t) {
1512
- function e(s) {
1513
- return s || "cyan";
1514
+ setup(s) {
1515
+ function e(t) {
1516
+ return t || "cyan";
1514
1517
  }
1515
- function c(s) {
1516
- switch (s.status) {
1518
+ function i(t) {
1519
+ switch (t.status) {
1517
1520
  case "past":
1518
- return `text-green cuIcon-${s.icon || "roundcheckfill"}`;
1521
+ return `text-green cuIcon-${t.icon || "roundcheckfill"}`;
1519
1522
  case "ongoing":
1520
1523
  return "text-red cuIcon-all";
1521
1524
  case "upcoming":
1522
- return `text-gray cuIcon-${s.icon || "radioboxfill"}`;
1525
+ return `text-gray cuIcon-${t.icon || "radioboxfill"}`;
1523
1526
  default:
1524
- return `text-gray cuIcon-${s.icon || "radioboxfill"}`;
1527
+ return `text-gray cuIcon-${t.icon || "radioboxfill"}`;
1525
1528
  }
1526
1529
  }
1527
- return (s, l) => (o(), a("div", null, [
1528
- (o(!0), a(m, null, $(s.items, (i, d) => (o(), a("div", {
1530
+ return (t, c) => (o(), a("div", null, [
1531
+ (o(!0), a(_, null, $(t.items, (l, d) => (o(), a("div", {
1529
1532
  key: d,
1530
1533
  class: "cu-timeline"
1531
1534
  }, [
1532
- n("div", vo, r(i.date), 1),
1533
- (o(!0), a(m, null, $(i.items, (f) => {
1534
- var b, v, _;
1535
+ n("div", bo, r(l.date), 1),
1536
+ (o(!0), a(_, null, $(l.items, (f) => {
1537
+ var m, b, v;
1535
1538
  return o(), a("div", {
1536
1539
  key: f.key,
1537
- class: u(["cu-item", c(f)])
1540
+ class: u(["cu-item", i(f)])
1538
1541
  }, [
1539
1542
  n("div", {
1540
1543
  class: u(["content", `bg-${f.bg || "gray"}`, "shadow-blur"])
1541
1544
  }, [
1542
- (b = f == null ? void 0 : f.capsule) != null && b.list && f.capsule.list.length ? (o(), a("div", bo, [
1543
- E(q, {
1544
- bg: e((v = f.capsule) == null ? void 0 : v.color)
1545
+ (m = f == null ? void 0 : f.capsule) != null && m.list && f.capsule.list.length ? (o(), a("div", $o, [
1546
+ q(E, {
1547
+ bg: e((b = f.capsule) == null ? void 0 : b.color)
1545
1548
  }, {
1546
1549
  default: ne(() => [
1547
1550
  y(r(f.capsule.list[0]), 1)
1548
1551
  ]),
1549
1552
  _: 2
1550
1553
  }, 1032, ["bg"]),
1551
- E(q, {
1552
- bg: e((_ = f.capsule) == null ? void 0 : _.color),
1554
+ q(E, {
1555
+ bg: e((v = f.capsule) == null ? void 0 : v.color),
1553
1556
  light: !0
1554
1557
  }, {
1555
1558
  default: ne(() => [
@@ -1561,7 +1564,7 @@ const vo = { class: "cu-time" }, bo = {
1561
1564
  n("div", {
1562
1565
  class: u(f.capsule ? "margin-top-sm" : "")
1563
1566
  }, [
1564
- w(s.$slots, `item-${f.key}`, {}, () => [
1567
+ w(t.$slots, `item-${f.key}`, {}, () => [
1565
1568
  y(r(f.content), 1)
1566
1569
  ])
1567
1570
  ], 2)
@@ -1572,13 +1575,13 @@ const vo = { class: "cu-time" }, bo = {
1572
1575
  ]));
1573
1576
  }
1574
1577
  });
1575
- ee.install = (t) => {
1576
- t.component(ee.name, ee);
1578
+ ee.install = (s) => {
1579
+ s.component(ee.name, ee);
1577
1580
  };
1578
- const yo = { class: "bg-white padding" }, ko = ["data-index"], Io = {
1581
+ const ko = { class: "bg-white padding" }, Io = ["data-index"], wo = {
1579
1582
  name: "TSteps"
1580
1583
  }, te = /* @__PURE__ */ g({
1581
- ...Io,
1584
+ ...wo,
1582
1585
  props: {
1583
1586
  steps: {},
1584
1587
  modelValue: {},
@@ -1586,56 +1589,56 @@ const yo = { class: "bg-white padding" }, ko = ["data-index"], Io = {
1586
1589
  color: { default: "blue" }
1587
1590
  },
1588
1591
  emits: ["update:modelValue"],
1589
- setup(t, { emit: e }) {
1590
- return (c, s) => (o(), a("div", yo, [
1592
+ setup(s, { emit: e }) {
1593
+ return (i, t) => (o(), a("div", ko, [
1591
1594
  n("div", {
1592
- class: u(["cu-steps", { "scroll-x": c.scrollX }])
1595
+ class: u(["cu-steps", { "scroll-x": i.scrollX }])
1593
1596
  }, [
1594
- (o(!0), a(m, null, $(c.steps, (l, i) => (o(), a("div", {
1595
- class: u(["cu-item", i > c.modelValue ? "" : `text-${c.color}`]),
1596
- key: i
1597
+ (o(!0), a(_, null, $(i.steps, (c, l) => (o(), a("div", {
1598
+ class: u(["cu-item", l > i.modelValue ? "" : `text-${i.color}`]),
1599
+ key: l
1597
1600
  }, [
1598
1601
  n("text", {
1599
- class: u(l.cuIcon ? "cuIcon-" + l.cuIcon : "num"),
1600
- "data-index": i + 1
1601
- }, r(l.cuIcon ? "" : i + 1), 11, ko),
1602
- y(" " + r(l.name), 1)
1602
+ class: u(c.cuIcon ? "cuIcon-" + c.cuIcon : "num"),
1603
+ "data-index": l + 1
1604
+ }, r(c.cuIcon ? "" : l + 1), 11, Io),
1605
+ y(" " + r(c.name), 1)
1603
1606
  ], 2))), 128))
1604
1607
  ], 2)
1605
1608
  ]));
1606
1609
  }
1607
1610
  });
1608
- te.install = (t) => {
1609
- t.component(te.name, te);
1611
+ te.install = (s) => {
1612
+ s.component(te.name, te);
1610
1613
  };
1611
- const wo = { class: "cu-dialog" }, Co = { class: "cu-bar bg-white justify-end padding-right-sm" }, xo = { class: "content" }, To = /* @__PURE__ */ n("text", { class: "cuIcon-close text-red" }, null, -1), Bo = [
1612
- To
1613
- ], jo = { class: "padding-xl" }, So = {
1614
+ const Co = { class: "cu-dialog" }, xo = { class: "cu-bar bg-white justify-end padding-right-sm" }, To = { class: "content" }, Bo = /* @__PURE__ */ n("text", { class: "cuIcon-close text-red" }, null, -1), jo = [
1615
+ Bo
1616
+ ], So = { class: "padding-xl" }, Vo = {
1614
1617
  name: "DrawerModal"
1615
1618
  }, se = /* @__PURE__ */ g({
1616
- ...So,
1619
+ ...Vo,
1617
1620
  props: {
1618
1621
  title: {},
1619
1622
  modelValue: { type: Boolean }
1620
1623
  },
1621
1624
  emits: ["update:modelValue"],
1622
- setup(t, { emit: e }) {
1623
- const c = e, s = () => {
1624
- c("update:modelValue", !1);
1625
+ setup(s, { emit: e }) {
1626
+ const i = e, t = () => {
1627
+ i("update:modelValue", !1);
1625
1628
  };
1626
- return (l, i) => (o(), a("div", {
1627
- class: u(["cu-modal", l.modelValue ? "show" : ""])
1629
+ return (c, l) => (o(), a("div", {
1630
+ class: u(["cu-modal", c.modelValue ? "show" : ""])
1628
1631
  }, [
1629
- n("div", wo, [
1630
- n("div", Co, [
1631
- n("div", xo, r(l.title), 1),
1632
+ n("div", Co, [
1633
+ n("div", xo, [
1634
+ n("div", To, r(c.title), 1),
1632
1635
  n("div", {
1633
1636
  class: "action",
1634
- onClick: s
1635
- }, Bo)
1637
+ onClick: t
1638
+ }, jo)
1636
1639
  ]),
1637
- n("div", jo, [
1638
- w(l.$slots, "default", {}, () => [
1640
+ n("div", So, [
1641
+ w(c.$slots, "default", {}, () => [
1639
1642
  y("Modal 内容~")
1640
1643
  ])
1641
1644
  ])
@@ -1643,22 +1646,22 @@ const wo = { class: "cu-dialog" }, Co = { class: "cu-bar bg-white justify-end pa
1643
1646
  ], 2));
1644
1647
  }
1645
1648
  });
1646
- se.install = (t) => {
1647
- t.component(se.name, se);
1649
+ se.install = (s) => {
1650
+ s.component(se.name, se);
1648
1651
  };
1649
- const Vo = { class: "loading-animation" }, zo = {
1652
+ const zo = { class: "loading-animation" }, Eo = {
1650
1653
  name: "Loading1"
1651
1654
  }, qo = /* @__PURE__ */ g({
1652
- ...zo,
1655
+ ...Eo,
1653
1656
  props: {
1654
1657
  width: { default: 300 },
1655
1658
  height: { default: 300 },
1656
1659
  particleRadius: { default: 7 },
1657
1660
  particleDecay: { default: 0.01 }
1658
1661
  },
1659
- setup(t) {
1662
+ setup(s) {
1660
1663
  class e {
1661
- constructor(i, d, f) {
1664
+ constructor(l, d, f) {
1662
1665
  j(this, "radius");
1663
1666
  j(this, "x");
1664
1667
  j(this, "y");
@@ -1667,78 +1670,78 @@ const Vo = { class: "loading-animation" }, zo = {
1667
1670
  j(this, "accel");
1668
1671
  j(this, "decay");
1669
1672
  j(this, "life");
1670
- this.radius = d, this.x = i.x, this.y = i.y, this.angle = i.angle, this.speed = i.speed, this.accel = i.accel, this.decay = f, this.life = 1;
1673
+ this.radius = d, this.x = l.x, this.y = l.y, this.angle = l.angle, this.speed = l.speed, this.accel = l.accel, this.decay = f, this.life = 1;
1671
1674
  }
1672
- step(i, d) {
1673
- this.speed += this.accel, this.x += Math.cos(this.angle) * this.speed, this.y += Math.sin(this.angle) * this.speed, this.angle += Math.PI / 64, this.accel *= 1.01, this.life -= this.decay, this.life <= 0 && d.splice(i, 1);
1675
+ step(l, d) {
1676
+ this.speed += this.accel, this.x += Math.cos(this.angle) * this.speed, this.y += Math.sin(this.angle) * this.speed, this.angle += Math.PI / 64, this.accel *= 1.01, this.life -= this.decay, this.life <= 0 && d.splice(l, 1);
1674
1677
  }
1675
- draw(i, d, f, b) {
1676
- i.fillStyle = i.strokeStyle = `hsla(${d + this.life * 120}, 100%, 60%, ${this.life})`, i.beginPath(), f[b - 1] && (i.moveTo(this.x, this.y), i.lineTo(f[b - 1].x, f[b - 1].y)), i.stroke(), i.beginPath(), i.arc(
1678
+ draw(l, d, f, m) {
1679
+ l.fillStyle = l.strokeStyle = `hsla(${d + this.life * 120}, 100%, 60%, ${this.life})`, l.beginPath(), f[m - 1] && (l.moveTo(this.x, this.y), l.lineTo(f[m - 1].x, f[m - 1].y)), l.stroke(), l.beginPath(), l.arc(
1677
1680
  this.x,
1678
1681
  this.y,
1679
1682
  Math.max(1e-3, this.life * this.radius),
1680
1683
  0,
1681
1684
  Math.PI * 2
1682
- ), i.fill();
1683
- const v = Math.random() * 1.25;
1684
- i.fillRect(
1685
+ ), l.fill();
1686
+ const b = Math.random() * 1.25;
1687
+ l.fillRect(
1685
1688
  ~~(this.x + (Math.random() - 0.5) * 35 * this.life),
1686
1689
  ~~(this.y + (Math.random() - 0.5) * 35 * this.life),
1687
- v,
1688
- v
1690
+ b,
1691
+ b
1689
1692
  );
1690
1693
  }
1691
1694
  }
1692
- const c = t, s = V(null);
1695
+ const i = s, t = V(null);
1693
1696
  return ae(() => {
1694
- if (!s.value)
1697
+ if (!t.value)
1695
1698
  return;
1696
- const l = s.value.getContext("2d"), { width: i, height: d, particleRadius: f, particleDecay: b } = c, v = window.devicePixelRatio || 1;
1697
- s.value.width = i * v, s.value.height = d * v, s.value.style.width = i + "px", s.value.style.height = d + "px", l.scale(v, v);
1698
- const _ = i * 0.5, k = [];
1699
+ const c = t.value.getContext("2d"), { width: l, height: d, particleRadius: f, particleDecay: m } = i, b = window.devicePixelRatio || 1;
1700
+ t.value.width = l * b, t.value.height = d * b, t.value.style.width = l + "px", t.value.style.height = d + "px", c.scale(b, b);
1701
+ const v = l * 0.5, k = [];
1699
1702
  let T = 0, B = 0, h = 0;
1700
- l.globalCompositeOperation = "lighter";
1703
+ c.globalCompositeOperation = "lighter";
1701
1704
  function C() {
1702
1705
  k.push(
1703
1706
  new e(
1704
1707
  {
1705
- x: i / 2 + Math.cos(h / 20) * _ / 2,
1706
- y: d / 2 + Math.sin(h / 20) * _ / 2,
1708
+ x: l / 2 + Math.cos(h / 20) * v / 2,
1709
+ y: d / 2 + Math.sin(h / 20) * v / 2,
1707
1710
  angle: B + T,
1708
1711
  speed: 0,
1709
1712
  accel: 0.01
1710
1713
  },
1711
1714
  f,
1712
- b
1715
+ m
1713
1716
  )
1714
1717
  ), k.forEach((le, ce) => {
1715
1718
  le.step(ce, k);
1716
1719
  }), B += Math.PI / 2, T += Math.PI / 2;
1717
1720
  }
1718
1721
  function N() {
1719
- l.clearRect(0, 0, i, d), k.forEach((le, ce) => {
1720
- le.draw(l, h, k, ce);
1722
+ c.clearRect(0, 0, l, d), k.forEach((le, ce) => {
1723
+ le.draw(c, h, k, ce);
1721
1724
  });
1722
1725
  }
1723
1726
  function he() {
1724
1727
  requestAnimationFrame(he), C(), N(), h++;
1725
1728
  }
1726
1729
  he();
1727
- }), (l, i) => (o(), a("div", Vo, [
1730
+ }), (c, l) => (o(), a("div", zo, [
1728
1731
  n("canvas", {
1729
1732
  ref_key: "canvas",
1730
- ref: s
1733
+ ref: t
1731
1734
  }, null, 512)
1732
1735
  ]));
1733
1736
  }
1734
1737
  }), oe = /* @__PURE__ */ A(qo, [["__scopeId", "data-v-022c82bd"]]);
1735
- oe.install = (t) => {
1736
- t.component(oe.name, oe);
1738
+ oe.install = (s) => {
1739
+ s.component(oe.name, oe);
1737
1740
  };
1738
- const Eo = (t) => {
1739
- t.use(M), t.use(L), t.use(z), t.use(P), t.use(D), t.use(F), t.use(O), t.use(G), t.use(K), t.use(H), t.use(X), t.use(J), t.use(Q), t.use(W), t.use(U), t.use(q), t.use(Y), t.use(Z), t.use(ee), t.use(te), t.use(se), t.use(oe);
1740
- }, No = {
1741
- install: Eo
1741
+ const Mo = (s) => {
1742
+ s.use(M), s.use(L), s.use(z), s.use(P), s.use(D), s.use(F), s.use(O), s.use(G), s.use(K), s.use(H), s.use(X), s.use(J), s.use(Q), s.use(W), s.use(U), s.use(E), s.use(Y), s.use(Z), s.use(ee), s.use(te), s.use(se), s.use(oe);
1743
+ }, Po = {
1744
+ install: Mo
1742
1745
  };
1743
1746
  export {
1744
1747
  Y as ChatList,
@@ -1759,9 +1762,9 @@ export {
1759
1762
  te as TSteps,
1760
1763
  J as TTab,
1761
1764
  X as TTabs,
1762
- q as TTag,
1765
+ E as TTag,
1763
1766
  L as TTitle,
1764
1767
  G as TTopBar,
1765
1768
  ee as TimeLine,
1766
- No as default
1769
+ Po as default
1767
1770
  };