vue-color-ui 0.0.39 → 0.0.41

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 we = Object.defineProperty;
2
- var Ce = (t, e, i) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
- var M = (t, e, i) => (Ce(t, typeof e != "symbol" ? e + "" : e, i), i);
4
- import { defineComponent as _, openBlock as o, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as w, createElementVNode as n, toDisplayString as u, createTextVNode as k, createCommentVNode as f, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as S, createBlock as V, ref as T, withModifiers as de, unref as Se, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Be, withKeys as je, withDirectives as he, vShow as fe, provide as ve, watch as Ie, inject as pe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
2
+ var Ce = (t, e, c) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
3
+ var M = (t, e, c) => (Ce(t, typeof e != "symbol" ? e + "" : e, c), c);
4
+ import { defineComponent as _, openBlock as n, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as w, createElementVNode as o, toDisplayString as u, createTextVNode as k, createCommentVNode as p, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as S, createBlock as V, ref as T, withModifiers as de, unref as Se, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Be, withKeys as je, withDirectives as he, vShow as pe, provide as ve, watch as Ie, inject as fe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
5
5
  const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" }, Ne = { class: "nav-name" }, Pe = {
6
6
  name: "TNavCard"
7
7
  }, R = /* @__PURE__ */ _({
@@ -11,20 +11,20 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
11
11
  },
12
12
  emits: ["chickItem"],
13
13
  setup(t, { emit: e }) {
14
- const i = e, s = (c, a) => {
15
- i("chickItem", c, a);
14
+ const c = e, s = (i, a) => {
15
+ c("chickItem", i, a);
16
16
  };
17
- return (c, a) => (o(), l("div", ze, [
18
- (o(!0), l(b, null, y(c.items, (h, r) => (o(), l("div", {
17
+ return (i, a) => (n(), l("div", ze, [
18
+ (n(!0), l(b, null, y(i.items, (h, r) => (n(), l("div", {
19
19
  "hover-class": "none",
20
20
  class: d(["nav-li", "bg-" + h.color]),
21
21
  style: w([{ animation: "show " + ((r + 1) * 0.2 + 1) + "s 1" }]),
22
22
  key: r,
23
- onClick: (p) => s(h, r)
23
+ onClick: (f) => s(h, r)
24
24
  }, [
25
- n("div", Ae, u(h.title), 1),
26
- n("div", Ne, u(h.name), 1),
27
- n("text", {
25
+ o("div", Ae, u(h.title), 1),
26
+ o("div", Ne, u(h.name), 1),
27
+ o("text", {
28
28
  class: d("cuIcon-" + h.cuIcon)
29
29
  }, null, 2)
30
30
  ], 14, qe))), 128))
@@ -34,11 +34,11 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
34
34
  R.install = (t) => {
35
35
  t.component(R.name, R);
36
36
  };
37
- const me = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-item shadow" }, De = { class: "title" }, Fe = { class: "text-cut" }, Re = { class: "content" }, Ue = ["src", "alt"], Xe = { class: "desc" }, Ye = { class: "text-content" }, Oe = {
37
+ const ge = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-item shadow" }, De = { class: "title" }, Fe = { class: "text-cut" }, Re = { class: "content" }, Ue = ["src", "alt"], Xe = { class: "desc" }, Ye = { class: "text-content" }, Oe = {
38
38
  key: 0,
39
39
  class: "content flex-sub justify-between text-sm solid-top margin-top-sm",
40
40
  style: { padding: "5px 15px" }
41
- }, He = { class: "text-gray" }, Ge = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1)), Ke = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1)), Je = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1)), Qe = { class: "margin-left-sm text-gray flex justify-between" }, We = { class: "text-grey margin-right-xs" }, Ze = {
41
+ }, He = { class: "text-gray" }, Ge = /* @__PURE__ */ ge(() => /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1)), Ke = /* @__PURE__ */ ge(() => /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1)), Je = /* @__PURE__ */ ge(() => /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1)), Qe = { class: "margin-left-sm text-gray flex justify-between" }, We = { class: "text-grey margin-right-xs" }, Ze = {
42
42
  name: "TNewCard"
43
43
  // 组件名称
44
44
  }, et = /* @__PURE__ */ _({
@@ -59,30 +59,30 @@ const me = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
59
59
  }) }
60
60
  },
61
61
  setup(t) {
62
- return (e, i) => (o(), l("div", {
62
+ return (e, c) => (n(), l("div", {
63
63
  class: d(["cu-card article", e.isCard ? "" : "no-card"])
64
64
  }, [
65
- n("div", Le, [
66
- n("div", De, [
67
- n("div", Fe, u(e.title), 1)
65
+ o("div", Le, [
66
+ o("div", De, [
67
+ o("div", Fe, u(e.title), 1)
68
68
  ]),
69
- n("div", Re, [
70
- n("img", {
69
+ o("div", Re, [
70
+ o("img", {
71
71
  src: e.imageSrc,
72
72
  alt: e.imageAlt
73
73
  }, null, 8, Ue),
74
- n("div", Xe, [
75
- n("div", Ye, u(e.description), 1),
76
- n("div", null, [
77
- (o(!0), l(b, null, y(e.tags, (s) => (o(), l("div", {
74
+ o("div", Xe, [
75
+ o("div", Ye, u(e.description), 1),
76
+ o("div", null, [
77
+ (n(!0), l(b, null, y(e.tags, (s) => (n(), l("div", {
78
78
  key: s,
79
79
  class: "cu-tag bg-red light sm round"
80
80
  }, u(s), 1))), 128))
81
81
  ])
82
82
  ])
83
83
  ]),
84
- e.footerInfo ? (o(), l("div", Oe, [
85
- n("div", He, [
84
+ e.footerInfo ? (n(), l("div", Oe, [
85
+ o("div", He, [
86
86
  Ge,
87
87
  k(" " + u(e.footerInfo.likes) + " ", 1),
88
88
  Ke,
@@ -90,27 +90,27 @@ const me = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
90
90
  Je,
91
91
  k(" " + u(e.footerInfo.comments), 1)
92
92
  ]),
93
- n("div", Qe, [
94
- n("div", We, u(e.footerInfo.author), 1),
93
+ o("div", Qe, [
94
+ o("div", We, u(e.footerInfo.author), 1),
95
95
  k(" " + u(e.footerInfo.timeAgo), 1)
96
96
  ])
97
- ])) : f("", !0)
97
+ ])) : p("", !0)
98
98
  ])
99
99
  ], 2));
100
100
  }
101
101
  }), A = (t, e) => {
102
- const i = t.__vccOpts || t;
103
- for (const [s, c] of e)
104
- i[s] = c;
105
- return i;
102
+ const c = t.__vccOpts || t;
103
+ for (const [s, i] of e)
104
+ c[s] = i;
105
+ return c;
106
106
  }, U = /* @__PURE__ */ A(et, [["__scopeId", "data-v-bbdb83ff"]]);
107
107
  U.install = (t) => {
108
108
  t.component(U.name, U);
109
109
  };
110
- const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, ot = { class: "cu-item" }, nt = { class: "content flex-sub" }, lt = { class: "text-gray text-sm flex justify-between" }, at = { class: "text-content" }, ct = { class: "text-gray text-sm text-right padding" }, it = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), rt = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), ut = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), dt = { class: "cu-item" }, ht = { class: "content" }, ft = { class: "text-grey" }, pt = { class: "text-gray text-content text-df" }, gt = { class: "flex" }, mt = { class: "flex-sub" }, _t = { class: "margin-top-sm flex justify-between" }, vt = { class: "text-gray text-df" }, bt = {
110
+ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, nt = { class: "cu-item" }, ot = { class: "content flex-sub" }, lt = { class: "text-gray text-sm flex justify-between" }, at = { class: "text-content" }, it = { class: "text-gray text-sm text-right padding" }, ct = /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), rt = /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), ut = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), dt = { class: "cu-item" }, ht = { class: "content" }, pt = { class: "text-grey" }, ft = { class: "text-gray text-content text-df" }, mt = { class: "flex" }, gt = { class: "flex-sub" }, _t = { class: "margin-top-sm flex justify-between" }, vt = { class: "text-gray text-df" }, bt = {
111
111
  key: 0,
112
112
  class: "cuIcon-appreciatefill text-red"
113
- }, $t = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), yt = { class: "text-gray margin-left-xs" }, kt = {
113
+ }, $t = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), yt = { class: "text-gray margin-left-xs" }, kt = {
114
114
  name: "TShareCard"
115
115
  }, X = /* @__PURE__ */ _({
116
116
  ...kt,
@@ -161,70 +161,70 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, o
161
161
  ] }
162
162
  },
163
163
  setup(t) {
164
- return (e, i) => (o(), l("div", null, [
165
- n("div", {
164
+ return (e, c) => (n(), l("div", null, [
165
+ o("div", {
166
166
  class: d(["cu-card dynamic", e.isCard ? "is-card" : "no-card"])
167
167
  }, [
168
- n("div", tt, [
169
- n("div", st, [
170
- n("div", ot, [
171
- n("div", {
168
+ o("div", tt, [
169
+ o("div", st, [
170
+ o("div", nt, [
171
+ o("div", {
172
172
  class: "cu-avatar round lg",
173
173
  style: w({ backgroundImage: `url(${e.avatarUrl})` })
174
174
  }, null, 4),
175
- n("div", nt, [
176
- n("div", null, u(e.author), 1),
177
- n("div", lt, u(e.date), 1)
175
+ o("div", ot, [
176
+ o("div", null, u(e.author), 1),
177
+ o("div", lt, u(e.date), 1)
178
178
  ])
179
179
  ])
180
180
  ]),
181
- n("div", at, u(e.content), 1),
182
- n("div", {
181
+ o("div", at, u(e.content), 1),
182
+ o("div", {
183
183
  class: d(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
184
184
  }, [
185
- (o(!0), l(b, null, y(e.isCard ? 9 : 1, (s) => (o(), l("div", {
185
+ (n(!0), l(b, null, y(e.isCard ? 9 : 1, (s) => (n(), l("div", {
186
186
  class: d(["bg-img", e.isCard ? "" : "only-img"]),
187
187
  style: w({ backgroundImage: `url(${e.imageUrl})` }),
188
188
  key: s
189
189
  }, null, 6))), 128))
190
190
  ], 2),
191
- n("div", ct, [
192
- it,
191
+ o("div", it, [
192
+ ct,
193
193
  k(" " + u(e.likes) + " ", 1),
194
194
  rt,
195
195
  k(" " + u(e.appreciations) + " ", 1),
196
196
  ut,
197
197
  k(" " + u(e.comments), 1)
198
198
  ]),
199
- (o(!0), l(b, null, y(e.commentsList, (s) => {
200
- var c;
201
- return o(), l("div", {
199
+ (n(!0), l(b, null, y(e.commentsList, (s) => {
200
+ var i;
201
+ return n(), l("div", {
202
202
  class: "cu-list menu-avatar comment solids-top",
203
203
  key: s.id
204
204
  }, [
205
- n("div", dt, [
206
- n("div", {
205
+ o("div", dt, [
206
+ o("div", {
207
207
  class: "cu-avatar round",
208
208
  style: w({ backgroundImage: `url(${s.avatarUrl})` })
209
209
  }, null, 4),
210
- n("div", ht, [
211
- n("div", ft, u(s.author), 1),
212
- n("div", pt, u(s.text), 1),
213
- (o(!0), l(b, null, y(s.replies, (a) => (o(), l("div", {
210
+ o("div", ht, [
211
+ o("div", pt, u(s.author), 1),
212
+ o("div", ft, u(s.text), 1),
213
+ (n(!0), l(b, null, y(s.replies, (a) => (n(), l("div", {
214
214
  key: a.id,
215
215
  class: "bg-grey padding-sm radius margin-top-sm text-sm"
216
216
  }, [
217
- n("div", gt, [
218
- n("div", null, u(a.author) + ":", 1),
219
- n("div", mt, u(a.text), 1)
217
+ o("div", mt, [
218
+ o("div", null, u(a.author) + ":", 1),
219
+ o("div", gt, u(a.text), 1)
220
220
  ])
221
221
  ]))), 128)),
222
- n("div", _t, [
223
- n("div", vt, u(s.date), 1),
224
- n("div", null, [
225
- s.likes ? (o(), l("span", bt)) : f("", !0),
222
+ o("div", _t, [
223
+ o("div", vt, u(s.date), 1),
224
+ o("div", null, [
225
+ s.likes ? (n(), l("span", bt)) : p("", !0),
226
226
  $t,
227
- n("span", yt, u((c = s.replies) == null ? void 0 : c.length), 1)
227
+ o("span", yt, u((i = s.replies) == null ? void 0 : i.length), 1)
228
228
  ])
229
229
  ])
230
230
  ])
@@ -251,9 +251,9 @@ const It = {
251
251
  xxl: "30px",
252
252
  xxxl: "48px"
253
253
  };
254
- function wt(t, e, i = "px") {
254
+ function wt(t, e, c = "px") {
255
255
  if (typeof e == "number")
256
- return `${t}: ${e}${i};`;
256
+ return `${t}: ${e}${c};`;
257
257
  const s = It[e];
258
258
  return s ? `${t}: ${s};` : "";
259
259
  }
@@ -270,16 +270,16 @@ const xt = {
270
270
  size: { default: 15 }
271
271
  },
272
272
  setup(t) {
273
- const e = t, i = j(() => Ct(e.size));
274
- return (s, c) => (o(), l("i", {
273
+ const e = t, c = j(() => Ct(e.size));
274
+ return (s, i) => (n(), l("i", {
275
275
  class: d(`cuIcon-${s.name} text-${s.color}`),
276
- style: w(i.value)
276
+ style: w(c.value)
277
277
  }, null, 6));
278
278
  }
279
- }), Tt = { class: "action border-title" }, St = { class: "action border-title" }, Bt = { class: "tib text-xl text-bold text-blue" }, jt = /* @__PURE__ */ n("div", {
279
+ }), Tt = { class: "action border-title" }, St = { class: "action border-title" }, Bt = { class: "tib text-xl text-bold text-blue" }, jt = /* @__PURE__ */ o("div", {
280
280
  class: "tib bg-gradual-blue",
281
281
  style: { width: "3rem" }
282
- }, null, -1), Et = { class: "action sub-title" }, Vt = { class: "tib text-xl text-bold text-green" }, Mt = /* @__PURE__ */ n("div", {
282
+ }, null, -1), Et = { class: "action sub-title" }, Vt = { class: "tib text-xl text-bold text-green" }, Mt = /* @__PURE__ */ o("div", {
283
283
  class: "tib bg-green",
284
284
  style: { width: "2rem" }
285
285
  }, null, -1), zt = { class: "action sub-title" }, qt = { class: "action title-style-3" }, At = {
@@ -300,76 +300,76 @@ const xt = {
300
300
  center: { type: Boolean, default: !1 }
301
301
  },
302
302
  setup(t) {
303
- return (e, i) => e.mode === "default1" ? (o(), l("div", {
303
+ return (e, c) => e.mode === "default1" ? (n(), l("div", {
304
304
  key: 0,
305
305
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
306
306
  }, [
307
- n("div", Tt, [
308
- n("div", {
307
+ o("div", Tt, [
308
+ o("div", {
309
309
  class: d(["tib text-xl", `text-${e.color}`])
310
310
  }, u(e.title), 3),
311
- n("div", {
311
+ o("div", {
312
312
  class: d(["tib", `bg-${e.decorateColor}`]),
313
313
  style: { width: "2rem" }
314
314
  }, null, 2)
315
315
  ])
316
- ], 2)) : e.mode === "default2" ? (o(), l("div", {
316
+ ], 2)) : e.mode === "default2" ? (n(), l("div", {
317
317
  key: 1,
318
318
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
319
319
  }, [
320
- n("div", St, [
321
- n("div", Bt, u(e.title), 1),
320
+ o("div", St, [
321
+ o("div", Bt, u(e.title), 1),
322
322
  jt
323
323
  ])
324
- ], 2)) : e.mode === "default3" ? (o(), l("div", {
324
+ ], 2)) : e.mode === "default3" ? (n(), l("div", {
325
325
  key: 2,
326
326
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
327
327
  }, [
328
- n("div", Et, [
329
- n("div", Vt, u(e.title), 1),
328
+ o("div", Et, [
329
+ o("div", Vt, u(e.title), 1),
330
330
  Mt
331
331
  ])
332
- ], 2)) : e.mode === "default4" ? (o(), l("div", {
332
+ ], 2)) : e.mode === "default4" ? (n(), l("div", {
333
333
  key: 3,
334
334
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
335
335
  }, [
336
- n("div", zt, [
337
- n("div", {
336
+ o("div", zt, [
337
+ o("div", {
338
338
  class: d(["tib text-xl text-bold", `text-${e.color}`])
339
339
  }, u(e.title), 3),
340
- n("div", {
340
+ o("div", {
341
341
  class: d(["tib text-ABC", `text-${e.decorateColor}`])
342
342
  }, u(e.deputy), 3)
343
343
  ])
344
- ], 2)) : e.mode === "bilingual" ? (o(), l("div", {
344
+ ], 2)) : e.mode === "bilingual" ? (n(), l("div", {
345
345
  key: 4,
346
346
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
347
347
  }, [
348
- n("div", qt, [
349
- n("div", {
348
+ o("div", qt, [
349
+ o("div", {
350
350
  class: d(["tib", `text-${e.color}`])
351
351
  }, u(e.title), 3),
352
- n("div", {
352
+ o("div", {
353
353
  class: d(["tib text-Abc self-end margin-left-sm", `text-${e.decorateColor}`])
354
354
  }, u(e.deputy), 3)
355
355
  ])
356
- ], 2)) : e.mode === "icon-title" ? (o(), l("div", At, [
357
- n("div", Nt, [
358
- n("i", {
356
+ ], 2)) : e.mode === "icon-title" ? (n(), l("div", At, [
357
+ o("div", Nt, [
358
+ o("i", {
359
359
  class: d(`cuIcon-${e.icon} text-${e.color}`)
360
360
  }, null, 2),
361
- n("div", {
361
+ o("div", {
362
362
  class: d(["tib text-xl", `text-${e.decorateColor}`])
363
363
  }, u(e.title), 3)
364
364
  ])
365
- ])) : (o(), l("div", Pt, [
366
- n("div", Lt, [
367
- n("i", {
365
+ ])) : (n(), l("div", Pt, [
366
+ o("div", Lt, [
367
+ o("i", {
368
368
  class: d(`cuIcon-${e.icon} text-${e.color}`)
369
369
  }, null, 2),
370
370
  S(e.$slots, "default")
371
371
  ]),
372
- n("div", Dt, [
372
+ o("div", Dt, [
373
373
  S(e.$slots, "action")
374
374
  ])
375
375
  ]));
@@ -384,11 +384,11 @@ const xt = {
384
384
  mode: { default: "round" }
385
385
  },
386
386
  setup(t) {
387
- return (e, i) => e.url ? (o(), l("div", {
387
+ return (e, c) => e.url ? (n(), l("div", {
388
388
  key: 0,
389
389
  class: d(["cu-avatar", e.size, e.mode]),
390
390
  style: w({ backgroundImage: `url(${e.url})` })
391
- }, null, 6)) : (o(), l("div", {
391
+ }, null, 6)) : (n(), l("div", {
392
392
  key: 1,
393
393
  class: d(["padding-xs", ["cu-avatar", e.size, e.mode]])
394
394
  }, [
@@ -405,9 +405,9 @@ const xt = {
405
405
  mode: { default: "round" }
406
406
  },
407
407
  setup(t) {
408
- return (e, i) => (o(), l("div", Ut, [
409
- (o(!0), l(b, null, y(e.urls, (s, c) => (o(), V(z, {
410
- key: c,
408
+ return (e, c) => (n(), l("div", Ut, [
409
+ (n(!0), l(b, null, y(e.urls, (s, i) => (n(), V(z, {
410
+ key: i,
411
411
  url: s,
412
412
  size: e.size
413
413
  }, null, 8, ["url", "size"]))), 128))
@@ -427,7 +427,7 @@ const xt = {
427
427
  shadow: { type: Boolean, default: !1 }
428
428
  },
429
429
  setup(t) {
430
- const e = t, i = j(() => [
430
+ const e = t, c = j(() => [
431
431
  "cu-btn",
432
432
  e.rounded ? "round" : "radius",
433
433
  e.shadow ? "shadow" : "",
@@ -435,21 +435,21 @@ const xt = {
435
435
  e.size !== "default" ? e.size : ""
436
436
  ].join(" ")), s = j(() => ({
437
437
  cursor: e.disabled ? "not-allowed" : "pointer"
438
- })), c = j(() => ({
438
+ })), i = j(() => ({
439
439
  marginRight: e.text ? "8px" : "0"
440
440
  }));
441
- return (a, h) => (o(), l("button", {
442
- class: d(i.value),
441
+ return (a, h) => (n(), l("button", {
442
+ class: d(c.value),
443
443
  style: w(s.value),
444
444
  disabled: a.disabled
445
445
  }, [
446
446
  S(a.$slots, "default"),
447
- a.icon ? (o(), l("i", {
447
+ a.icon ? (n(), l("i", {
448
448
  key: 0,
449
449
  class: d(`cuIcon-${a.icon}`),
450
- style: w(c.value)
451
- }, null, 6)) : f("", !0),
452
- a.text ? (o(), l("span", Ot, u(a.text), 1)) : f("", !0)
450
+ style: w(i.value)
451
+ }, null, 6)) : p("", !0),
452
+ a.text ? (n(), l("span", Ot, u(a.text), 1)) : p("", !0)
453
453
  ], 14, Yt));
454
454
  }
455
455
  }), Gt = { key: 0 }, Kt = {
@@ -465,19 +465,19 @@ const xt = {
465
465
  line: { type: Boolean, default: !1 }
466
466
  },
467
467
  setup(t) {
468
- const e = t, i = j(() => [
468
+ const e = t, c = j(() => [
469
469
  "cu-tag",
470
470
  e.shape !== "default" ? e.shape : "",
471
471
  e.light !== !1 ? "light" : "",
472
472
  `${e.line !== !1 ? "line" : "bg"}-${e.bg}`,
473
473
  e.size !== "default" ? e.size : ""
474
474
  ].join(" ")), s = j(() => ({}));
475
- return (c, a) => (o(), l("div", {
476
- class: d(i.value),
475
+ return (i, a) => (n(), l("div", {
476
+ class: d(c.value),
477
477
  style: w(s.value)
478
478
  }, [
479
- S(c.$slots, "default"),
480
- c.text ? (o(), l("span", Gt, u(c.text), 1)) : f("", !0)
479
+ S(i.$slots, "default"),
480
+ i.text ? (n(), l("span", Gt, u(i.text), 1)) : p("", !0)
481
481
  ], 6));
482
482
  }
483
483
  });
@@ -545,31 +545,31 @@ const Jt = ["onClick"], Qt = {
545
545
  } }
546
546
  },
547
547
  setup(t) {
548
- const e = t, i = (s, c) => {
549
- e.onItemClick && e.onItemClick(s, c);
548
+ const e = t, c = (s, i) => {
549
+ e.onItemClick && e.onItemClick(s, i);
550
550
  };
551
- return (s, c) => (o(), l("div", {
551
+ return (s, i) => (n(), l("div", {
552
552
  class: d(["cu-bar tabbar", `bg-${s.bg} ${s.isFoot ? "foot" : ""}`])
553
553
  }, [
554
- (o(!0), l(b, null, y(s.items, (a, h) => (o(), l("div", {
554
+ (n(!0), l(b, null, y(s.items, (a, h) => (n(), l("div", {
555
555
  key: h,
556
556
  class: d(["action", `text-${h === s.activeIndex ? s.activeColor : s.color}`]),
557
- onClick: (r) => i(a, h)
557
+ onClick: (r) => c(a, h)
558
558
  }, [
559
- a.img ? (o(), l("div", Qt, [
560
- n("img", {
559
+ a.img ? (n(), l("div", Qt, [
560
+ o("img", {
561
561
  src: a.img,
562
562
  style: { width: "21px", height: "21px" },
563
563
  class: "radius"
564
564
  }, null, 8, Wt),
565
- a.badge ? (o(), l("div", Zt, u(a.badge), 1)) : f("", !0)
566
- ])) : (o(), l("div", {
565
+ a.badge ? (n(), l("div", Zt, u(a.badge), 1)) : p("", !0)
566
+ ])) : (n(), l("div", {
567
567
  key: 1,
568
568
  class: d(`cuIcon-${a.icon}`)
569
569
  }, [
570
- a.badge ? (o(), l("div", es, u(a.badge), 1)) : f("", !0)
570
+ a.badge ? (n(), l("div", es, u(a.badge), 1)) : p("", !0)
571
571
  ], 2)),
572
- n("div", null, u(a.label), 1)
572
+ o("div", null, u(a.label), 1)
573
573
  ], 10, Jt))), 128))
574
574
  ], 2));
575
575
  }
@@ -580,7 +580,7 @@ G.install = (t) => {
580
580
  const ss = {
581
581
  key: 0,
582
582
  class: "action"
583
- }, os = { key: 1 }, ns = { class: "content text-bold" }, ls = {
583
+ }, ns = { key: 1 }, os = { class: "content text-bold" }, ls = {
584
584
  key: 2,
585
585
  class: "action"
586
586
  }, as = { name: "TTopBar" }, K = /* @__PURE__ */ _({
@@ -596,40 +596,40 @@ const ss = {
596
596
  avatarUrl: {}
597
597
  },
598
598
  setup(t) {
599
- return (e, i) => (o(), l("div", {
599
+ return (e, c) => (n(), l("div", {
600
600
  class: d(["cu-bar", `bg-${e.bg}`])
601
601
  }, [
602
- e.leftIcon || e.leftText ? (o(), l("div", ss, [
603
- e.leftIcon ? (o(), l("text", {
602
+ e.leftIcon || e.leftText ? (n(), l("div", ss, [
603
+ e.leftIcon ? (n(), l("text", {
604
604
  key: 0,
605
605
  class: d(`cuIcon-${e.leftIcon} text-${e.leftIconColor}`)
606
- }, null, 2)) : f("", !0),
607
- e.leftText ? (o(), l("span", os, u(e.leftText), 1)) : f("", !0)
608
- ])) : f("", !0),
609
- e.avatarUrl ? (o(), l("div", {
606
+ }, null, 2)) : p("", !0),
607
+ e.leftText ? (n(), l("span", ns, u(e.leftText), 1)) : p("", !0)
608
+ ])) : p("", !0),
609
+ e.avatarUrl ? (n(), l("div", {
610
610
  key: 1,
611
611
  class: "cu-avatar round",
612
612
  style: w({ backgroundImage: `url(${e.avatarUrl})` })
613
- }, null, 4)) : f("", !0),
614
- n("div", ns, u(e.title), 1),
615
- e.rightIcon ? (o(), l("div", ls, [
616
- n("text", {
613
+ }, null, 4)) : p("", !0),
614
+ o("div", os, u(e.title), 1),
615
+ e.rightIcon ? (n(), l("div", ls, [
616
+ o("text", {
617
617
  class: d(`cuIcon-${e.rightIcon} text-${e.rightIconColor}`)
618
618
  }, null, 2)
619
- ])) : f("", !0)
619
+ ])) : p("", !0)
620
620
  ], 2));
621
621
  }
622
622
  });
623
623
  K.install = (t) => {
624
624
  t.component(K.name, K);
625
625
  };
626
- const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is = ["placeholder"], rs = { class: "action" }, us = {
626
+ const is = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), cs = ["placeholder"], rs = { class: "action" }, us = {
627
627
  key: 0,
628
628
  class: "cu-btn bg-green shadow-blur round"
629
- }, ds = { key: 0 }, hs = { key: 3 }, fs = {
629
+ }, ds = { key: 0 }, hs = { key: 3 }, ps = {
630
630
  name: "TSearchBar"
631
631
  }, J = /* @__PURE__ */ _({
632
- ...fs,
632
+ ...ps,
633
633
  props: {
634
634
  placeholder: { default: "" },
635
635
  bgColor: { default: "white" },
@@ -642,44 +642,44 @@ const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is =
642
642
  actionText: {}
643
643
  },
644
644
  setup(t) {
645
- const e = T(0), i = (c) => {
646
- e.value = c.detail.height;
645
+ const e = T(0), c = (i) => {
646
+ e.value = i.detail.height;
647
647
  }, s = () => {
648
648
  e.value = 0;
649
649
  };
650
- return (c, a) => (o(), l("div", {
651
- class: d(["cu-bar", `bg-${c.bgColor}`, "search"])
650
+ return (i, a) => (n(), l("div", {
651
+ class: d(["cu-bar", `bg-${i.bgColor}`, "search"])
652
652
  }, [
653
- c.avatarUrl ? (o(), l("div", {
653
+ i.avatarUrl ? (n(), l("div", {
654
654
  key: 0,
655
655
  class: "cu-avatar round",
656
- style: w({ backgroundImage: `url(${c.avatarUrl})` })
657
- }, null, 4)) : f("", !0),
658
- n("div", {
659
- class: d(["search-form", c.borderRadiusClass])
656
+ style: w({ backgroundImage: `url(${i.avatarUrl})` })
657
+ }, null, 4)) : p("", !0),
658
+ o("div", {
659
+ class: d(["search-form", i.borderRadiusClass])
660
660
  }, [
661
- cs,
662
- n("input", {
663
- onFocus: i,
661
+ is,
662
+ o("input", {
663
+ onFocus: c,
664
664
  onBlur: s,
665
665
  "adjust-position": !1,
666
666
  type: "text",
667
- placeholder: c.placeholder,
667
+ placeholder: i.placeholder,
668
668
  "confirm-type": "search"
669
- }, null, 40, is)
669
+ }, null, 40, cs)
670
670
  ], 2),
671
- n("div", rs, [
672
- c.buttonText ? (o(), l("button", us, u(c.buttonText), 1)) : (o(), l(b, { key: 1 }, [
673
- c.location ? (o(), l("text", ds, u(c.location), 1)) : f("", !0),
674
- c.locationIcon ? (o(), l("text", {
671
+ o("div", rs, [
672
+ i.buttonText ? (n(), l("button", us, u(i.buttonText), 1)) : (n(), l(b, { key: 1 }, [
673
+ i.location ? (n(), l("text", ds, u(i.location), 1)) : p("", !0),
674
+ i.locationIcon ? (n(), l("text", {
675
675
  key: 1,
676
- class: d(`cuIcon-${c.locationIcon}`)
677
- }, null, 2)) : f("", !0),
678
- c.actionIcon ? (o(), l("text", {
676
+ class: d(`cuIcon-${i.locationIcon}`)
677
+ }, null, 2)) : p("", !0),
678
+ i.actionIcon ? (n(), l("text", {
679
679
  key: 2,
680
- class: d(`cuIcon-${c.actionIcon}`)
681
- }, null, 2)) : f("", !0),
682
- c.actionText ? (o(), l("text", hs, u(c.actionText), 1)) : f("", !0)
680
+ class: d(`cuIcon-${i.actionIcon}`)
681
+ }, null, 2)) : p("", !0),
682
+ i.actionText ? (n(), l("text", hs, u(i.actionText), 1)) : p("", !0)
683
683
  ], 64))
684
684
  ])
685
685
  ], 2));
@@ -688,10 +688,10 @@ const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is =
688
688
  J.install = (t) => {
689
689
  t.component(J.name, J);
690
690
  };
691
- const ps = {
691
+ const fs = {
692
692
  key: 0,
693
693
  class: "string-list"
694
- }, gs = ["innerHTML", "onClick"], ms = /* @__PURE__ */ _({
694
+ }, ms = ["innerHTML", "onClick"], gs = /* @__PURE__ */ _({
695
695
  __name: "CandidateBox",
696
696
  props: {
697
697
  text: {},
@@ -699,25 +699,25 @@ const ps = {
699
699
  },
700
700
  emits: ["send"],
701
701
  setup(t, { emit: e }) {
702
- const i = e, s = t, c = (h = "", r) => {
703
- i("send", h, r);
702
+ const c = e, s = t, i = (h = "", r) => {
703
+ c("send", h, r);
704
704
  }, a = j(() => s.stringArray.map((h) => {
705
705
  if (!s.text)
706
706
  return h.text;
707
707
  let r = "";
708
- for (let p of h.text)
709
- s.text.includes(p) ? r += `<span style="color:#ff0000">${p}</span>` : r += p;
708
+ for (let f of h.text)
709
+ s.text.includes(f) ? r += `<span style="color:#ff0000">${f}</span>` : r += f;
710
710
  return r;
711
711
  }));
712
- return (h, r) => h.stringArray.length ? (o(), l("ul", ps, [
713
- (o(!0), l(b, null, y(a.value, (p, $) => (o(), l("li", {
712
+ return (h, r) => h.stringArray.length ? (n(), l("ul", fs, [
713
+ (n(!0), l(b, null, y(a.value, (f, $) => (n(), l("li", {
714
714
  key: $,
715
- innerHTML: p,
716
- onClick: (m) => c(h.stringArray[$].text, h.stringArray[$])
717
- }, null, 8, gs))), 128))
718
- ])) : f("", !0);
715
+ innerHTML: f,
716
+ onClick: (g) => i(h.stringArray[$].text, h.stringArray[$])
717
+ }, null, 8, ms))), 128))
718
+ ])) : p("", !0);
719
719
  }
720
- }), _s = /* @__PURE__ */ A(ms, [["__scopeId", "data-v-c7a21a1c"]]), vs = [
720
+ }), _s = /* @__PURE__ */ A(gs, [["__scopeId", "data-v-c7a21a1c"]]), vs = [
721
721
  "😀",
722
722
  "😁",
723
723
  "😂",
@@ -781,20 +781,59 @@ const ps = {
781
781
  "☠",
782
782
  "👻",
783
783
  "👽"
784
+ ], Hn = [
785
+ { title: "红色", name: "red" },
786
+ { title: "橙色", name: "orange" },
787
+ { title: "黄色", name: "yellow" },
788
+ { title: "橄榄色", name: "olive" },
789
+ { title: "绿色", name: "green" },
790
+ { title: "青色", name: "cyan" },
791
+ { title: "蓝色", name: "blue" },
792
+ { title: "紫色", name: "purple" },
793
+ { title: "淡紫色", name: "mauve" },
794
+ { title: "粉色", name: "pink" },
795
+ { title: "棕色", name: "brown" },
796
+ { title: "灰色", name: "grey" },
797
+ { title: "灰色", name: "gray" },
798
+ { title: "黑色", name: "black" },
799
+ { title: "白色", name: "white" },
800
+ { title: "渐变红", name: "gradual-red" },
801
+ { title: "渐变橙", name: "gradual-orange" },
802
+ { title: "渐变绿", name: "gradual-green" },
803
+ { title: "渐变紫", name: "gradual-purple" },
804
+ { title: "渐变粉", name: "gradual-pink" },
805
+ { title: "渐变蓝", name: "gradual-blue" },
806
+ { title: "渐变青", name: "gradual-teal" },
807
+ { title: "渐变日落", name: "gradual-sunset" },
808
+ { title: "渐变梦幻", name: "gradual-dream" },
809
+ { title: "渐变活力橙", name: "gradual-vibrant-orange" },
810
+ { title: "渐变紫蓝", name: "gradual-purple-blue" },
811
+ { title: "渐变柔粉蓝", name: "gradual-soft-pink-blue" },
812
+ { title: "渐变彩虹", name: "gradual-rainbow" },
813
+ { title: "渐变蓝紫", name: "gradual-blue-purple" },
814
+ { title: "渐变热带", name: "gradual-tropical" },
815
+ { title: "渐变梦幻蓝", name: "gradual-dreamy" },
816
+ { title: "渐变金色", name: "gradual-golden" },
817
+ { title: "渐变灰", name: "gradual-gray" },
818
+ { title: "渐变棕", name: "gradual-brown" },
819
+ { title: "渐变金属", name: "gradual-metal" },
820
+ { title: "渐变湖蓝", name: "gradual-lake-blue" },
821
+ { title: "渐变玫瑰金", name: "gradual-rose-gold" },
822
+ { title: "渐变海洋", name: "gradual-ocean" }
784
823
  ], bs = ["onClick"], $s = /* @__PURE__ */ _({
785
824
  __name: "EmojiPanel",
786
825
  emits: ["addEmoji"],
787
826
  setup(t, { emit: e }) {
788
- const i = e, s = (c) => {
789
- i("addEmoji", c);
827
+ const c = e, s = (i) => {
828
+ c("addEmoji", i);
790
829
  };
791
- return (c, a) => (o(), l("div", {
830
+ return (i, a) => (n(), l("div", {
792
831
  class: "emoji-panel",
793
832
  ref: "emojiPanel",
794
833
  onClick: a[0] || (a[0] = de(() => {
795
834
  }, ["stop"]))
796
835
  }, [
797
- (o(!0), l(b, null, y(Se(vs), (h) => (o(), l("span", {
836
+ (n(!0), l(b, null, y(Se(vs), (h) => (n(), l("span", {
798
837
  key: h,
799
838
  onClick: (r) => s(h)
800
839
  }, u(h), 9, bs))), 128))
@@ -808,25 +847,25 @@ const ps = {
808
847
  setup(t) {
809
848
  const e = T(null);
810
849
  return D(() => {
811
- }), (i, s) => {
812
- const c = ke("TIcon");
813
- return o(), l("div", ks, [
814
- n("div", {
850
+ }), (c, s) => {
851
+ const i = ke("TIcon");
852
+ return n(), l("div", ks, [
853
+ o("div", {
815
854
  class: "function-panel",
816
855
  ref_key: "functionPanel",
817
856
  ref: e
818
857
  }, [
819
- (o(!0), l(b, null, y(i.items, (a, h) => (o(), l("div", {
858
+ (n(!0), l(b, null, y(c.items, (a, h) => (n(), l("div", {
820
859
  key: h,
821
860
  class: "function-item",
822
861
  onClick: a.event
823
862
  }, [
824
- P(c, {
863
+ P(i, {
825
864
  name: a.icon,
826
865
  color: a.color,
827
866
  size: 26
828
867
  }, null, 8, ["name", "color"]),
829
- n("span", null, u(a.text), 1)
868
+ o("span", null, u(a.text), 1)
830
869
  ], 8, Is))), 128))
831
870
  ], 512)
832
871
  ]);
@@ -851,74 +890,74 @@ const ps = {
851
890
  },
852
891
  emits: ["update:modelValue", "send"],
853
892
  setup(t, { emit: e }) {
854
- const i = T(0), s = T(!1), c = T(!1), a = e, h = t, r = (g) => {
855
- i.value = g.detail.height;
856
- }, p = () => {
857
- i.value = 0;
858
- }, $ = (g = "", C) => {
859
- g ? a("send", g, C) : a("send", h.modelValue), a("update:modelValue", ""), s.value = !1;
860
- }, m = () => {
861
- c.value = !1, s.value = !s.value;
893
+ const c = T(0), s = T(!1), i = T(!1), a = e, h = t, r = (m) => {
894
+ c.value = m.detail.height;
895
+ }, f = () => {
896
+ c.value = 0;
897
+ }, $ = (m = "", C) => {
898
+ m ? a("send", m, C) : a("send", h.modelValue), a("update:modelValue", ""), s.value = !1;
899
+ }, g = () => {
900
+ i.value = !1, s.value = !s.value;
862
901
  }, I = () => {
863
- s.value = !1, c.value = !c.value;
864
- }, B = (g) => {
865
- a("update:modelValue", h.modelValue + g);
866
- }, E = (g) => {
867
- const C = g.target;
902
+ s.value = !1, i.value = !i.value;
903
+ }, B = (m) => {
904
+ a("update:modelValue", h.modelValue + m);
905
+ }, E = (m) => {
906
+ const C = m.target;
868
907
  a("update:modelValue", C.value);
869
908
  };
870
909
  return D(() => {
871
910
  }), Be(() => {
872
- }), (g, C) => (o(), l(b, null, [
911
+ }), (m, C) => (n(), l(b, null, [
873
912
  P(_s, {
874
- text: g.modelValue,
875
- "string-array": g.stringArray,
913
+ text: m.modelValue,
914
+ "string-array": m.stringArray,
876
915
  onSend: $
877
916
  }, null, 8, ["text", "string-array"]),
878
- n("div", xs, [
879
- g.leftIcon ? (o(), l("div", Ts, [
880
- n("text", {
881
- class: d(`cuIcon-${g.leftIcon} text-grey`)
917
+ o("div", xs, [
918
+ m.leftIcon ? (n(), l("div", Ts, [
919
+ o("text", {
920
+ class: d(`cuIcon-${m.leftIcon} text-grey`)
882
921
  }, null, 2)
883
- ])) : f("", !0),
884
- g.middleIcon ? (o(), l("div", Ss, [
885
- n("text", {
886
- class: d(`cuIcon-${g.middleIcon} text-grey`)
922
+ ])) : p("", !0),
923
+ m.middleIcon ? (n(), l("div", Ss, [
924
+ o("text", {
925
+ class: d(`cuIcon-${m.middleIcon} text-grey`)
887
926
  }, null, 2)
888
- ])) : f("", !0),
889
- n("input", {
927
+ ])) : p("", !0),
928
+ o("input", {
890
929
  onFocus: r,
891
- onBlur: p,
930
+ onBlur: f,
892
931
  onKeydown: C[0] || (C[0] = je((N) => $(), ["enter"])),
893
932
  onConfirm: C[1] || (C[1] = (N) => $()),
894
933
  "adjust-position": !1,
895
934
  class: "solid-bottom",
896
935
  maxlength: "300",
897
936
  "cursor-spacing": "10",
898
- value: g.modelValue,
937
+ value: m.modelValue,
899
938
  onInput: E
900
939
  }, null, 40, Bs),
901
- n("div", js, [
902
- n("text", {
903
- class: d(`cuIcon-${g.rightIcon} text-grey`),
904
- onClick: de(m, ["stop"])
940
+ o("div", js, [
941
+ o("text", {
942
+ class: d(`cuIcon-${m.rightIcon} text-grey`),
943
+ onClick: de(g, ["stop"])
905
944
  }, null, 2),
906
- g.functionItems && g.functionItems.length > 0 ? (o(), l("text", {
945
+ m.functionItems && m.functionItems.length > 0 ? (n(), l("text", {
907
946
  key: 0,
908
947
  class: d("cuIcon-roundaddfill text-grey"),
909
948
  onClick: de(I, ["stop"])
910
- })) : f("", !0)
949
+ })) : p("", !0)
911
950
  ]),
912
- n("button", {
951
+ o("button", {
913
952
  class: "cu-btn bg-green shadow-blur round",
914
953
  onClick: C[2] || (C[2] = (N) => $())
915
- }, u(g.buttonText), 1)
954
+ }, u(m.buttonText), 1)
916
955
  ]),
917
956
  he(P(ys, { onAddEmoji: B }, null, 512), [
918
- [fe, s.value]
957
+ [pe, s.value]
919
958
  ]),
920
- he(P(Cs, { items: g.functionItems }, null, 8, ["items"]), [
921
- [fe, c.value]
959
+ he(P(Cs, { items: m.functionItems }, null, 8, ["items"]), [
960
+ [pe, i.value]
922
961
  ])
923
962
  ], 64));
924
963
  }
@@ -943,44 +982,44 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
943
982
  },
944
983
  emits: ["update:modelValue", "select"],
945
984
  setup(t, { emit: e }) {
946
- const i = t, s = e, c = T([]), a = T(i.modelValue), h = (m, I) => {
947
- a.value = m, s("update:modelValue", m), s("select", I);
985
+ const c = t, s = e, i = T([]), a = T(c.modelValue), h = (g, I) => {
986
+ a.value = g, s("update:modelValue", g), s("select", I);
948
987
  };
949
- ve("registerTab", (m) => (c.value.push(m), c.value.length - 1)), ve("activeTab", a);
950
- const p = j(() => i.center !== !1 ? "justify-content:center;" : `justify-content:${i.mode}`), $ = j(() => (m) => {
988
+ ve("registerTab", (g) => (i.value.push(g), i.value.length - 1)), ve("activeTab", a);
989
+ const f = j(() => c.center !== !1 ? "justify-content:center;" : `justify-content:${c.mode}`), $ = j(() => (g) => {
951
990
  let I = [];
952
- return a.value === m && (I.push(`text-${i.color}`), i.bold !== !1 && I.push("text-bold"), i.line !== !1 && I.push("cur")), I;
991
+ return a.value === g && (I.push(`text-${c.color}`), c.bold !== !1 && I.push("text-bold"), c.line !== !1 && I.push("cur")), I;
953
992
  });
954
993
  return Ie(
955
- () => i.modelValue,
956
- (m) => {
957
- a.value = m;
994
+ () => c.modelValue,
995
+ (g) => {
996
+ a.value = g;
958
997
  },
959
998
  {
960
999
  immediate: !0
961
1000
  }
962
- ), (m, I) => (o(), l("div", {
963
- class: d(m.isCard !== !1 ? "is-card" : "")
1001
+ ), (g, I) => (n(), l("div", {
1002
+ class: d(g.isCard !== !1 ? "is-card" : "")
964
1003
  }, [
965
- n("div", {
966
- class: d(["nav flex", [, `bg-${m.bg}`, `text-${m.text}`]]),
967
- style: w(p.value)
1004
+ o("div", {
1005
+ class: d(["nav flex", [, `bg-${g.bg}`, `text-${g.text}`]]),
1006
+ style: w(f.value)
968
1007
  }, [
969
- (o(!0), l(b, null, y(c.value, (B, E) => (o(), l("div", {
1008
+ (n(!0), l(b, null, y(i.value, (B, E) => (n(), l("div", {
970
1009
  class: d(["cu-item", $.value(E)]),
971
1010
  key: E,
972
- onClick: (g) => h(E, B)
1011
+ onClick: (m) => h(E, B)
973
1012
  }, [
974
- B.icon ? (o(), l("i", {
1013
+ B.icon ? (n(), l("i", {
975
1014
  key: 0,
976
- class: d(`cuIcon-${B.icon} text-${a.value === E ? m.color : B.iconColor}`)
977
- }, null, 2)) : f("", !0),
1015
+ class: d(`cuIcon-${B.icon} text-${a.value === E ? g.color : B.iconColor}`)
1016
+ }, null, 2)) : p("", !0),
978
1017
  k(" " + u(B.label), 1)
979
1018
  ], 10, Ms))), 128))
980
1019
  ], 6),
981
- n("div", zs, [
982
- S(m.$slots, "default", {
983
- tab: c.value[a.value]
1020
+ o("div", zs, [
1021
+ S(g.$slots, "default", {
1022
+ tab: i.value[a.value]
984
1023
  })
985
1024
  ])
986
1025
  ], 2));
@@ -995,24 +1034,24 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
995
1034
  iconColor: { default: "black" }
996
1035
  },
997
1036
  setup(t) {
998
- const e = t, i = pe(
1037
+ const e = t, c = fe(
999
1038
  "registerTab"
1000
- ), s = pe("activeTab"), c = T(null), a = j(() => (s == null ? void 0 : s.value) === c.value), h = j(() => ({
1039
+ ), s = fe("activeTab"), i = T(null), a = j(() => (s == null ? void 0 : s.value) === i.value), h = j(() => ({
1001
1040
  label: e.label,
1002
1041
  icon: e.icon,
1003
1042
  iconColor: e.iconColor
1004
1043
  }));
1005
1044
  return D(() => {
1006
- i && (c.value = i({
1045
+ c && (i.value = c({
1007
1046
  label: e.label,
1008
1047
  icon: e.icon,
1009
1048
  iconColor: e.iconColor
1010
1049
  }));
1011
- }), (r, p) => he((o(), l("div", null, [
1050
+ }), (r, f) => he((n(), l("div", null, [
1012
1051
  S(r.$slots, "default"),
1013
1052
  S(r.$slots, "custom", { tab: h.value })
1014
1053
  ], 512)), [
1015
- [fe, a.value]
1054
+ [pe, a.value]
1016
1055
  ]);
1017
1056
  }
1018
1057
  });
@@ -1046,7 +1085,7 @@ const Ns = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
1046
1085
  Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
1047
1086
  Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
1048
1087
  function Ps() {
1049
- return pe(Ns);
1088
+ return fe(Ns);
1050
1089
  }
1051
1090
  const Ls = ["onClick"], Ds = {
1052
1091
  key: 0,
@@ -1124,37 +1163,37 @@ const Ls = ["onClick"], Ds = {
1124
1163
  routeFn: { type: Function, default: void 0 }
1125
1164
  },
1126
1165
  setup(t) {
1127
- const e = t, i = Ps(), s = (c) => {
1128
- if (c.path) {
1166
+ const e = t, c = Ps(), s = (i) => {
1167
+ if (i.path) {
1129
1168
  e.routeFn ? e.routeFn().push({
1130
- path: c.path
1131
- }) : i.push({
1132
- path: c.path
1169
+ path: i.path
1170
+ }) : c.push({
1171
+ path: i.path
1133
1172
  });
1134
1173
  return;
1135
1174
  }
1136
- if (c.link) {
1137
- window.location.href = c.link;
1175
+ if (i.link) {
1176
+ window.location.href = i.link;
1138
1177
  return;
1139
1178
  }
1140
1179
  };
1141
- return (c, a) => (o(), l("div", {
1142
- class: d(["cu-list grid", ["col-" + c.gridCol, c.gridBorder ? "" : "no-border"]])
1180
+ return (i, a) => (n(), l("div", {
1181
+ class: d(["cu-list grid", ["col-" + i.gridCol, i.gridBorder ? "" : "no-border"]])
1143
1182
  }, [
1144
- (o(!0), l(b, null, y(c.cuIconList, (h, r) => (o(), l("div", {
1183
+ (n(!0), l(b, null, y(i.cuIconList, (h, r) => (n(), l("div", {
1145
1184
  class: "cu-item",
1146
1185
  key: r,
1147
- style: w(`width: calc(100% / ${c.gridCol})`),
1148
- onClick: (p) => s(h)
1186
+ style: w(`width: calc(100% / ${i.gridCol})`),
1187
+ onClick: (f) => s(h)
1149
1188
  }, [
1150
- n("div", {
1189
+ o("div", {
1151
1190
  class: d(["cuIcon-" + h.cuIcon, "text-" + h.color])
1152
1191
  }, [
1153
- h.badge != 0 ? (o(), l("div", Ds, [
1154
- h.badge != 1 ? (o(), l("i", Fs, u((h.badge || 0) > 99 ? "99+" : h.badge), 1)) : f("", !0)
1155
- ])) : f("", !0)
1192
+ h.badge != 0 ? (n(), l("div", Ds, [
1193
+ h.badge != 1 ? (n(), l("i", Fs, u((h.badge || 0) > 99 ? "99+" : h.badge), 1)) : p("", !0)
1194
+ ])) : p("", !0)
1156
1195
  ], 2),
1157
- n("text", null, u(h.name), 1)
1196
+ o("text", null, u(h.name), 1)
1158
1197
  ], 12, Ls))), 128))
1159
1198
  ], 2));
1160
1199
  }
@@ -1250,56 +1289,56 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
1250
1289
  setup(t) {
1251
1290
  const e = (s) => {
1252
1291
  s.event && s.event(s);
1253
- }, i = (s) => {
1292
+ }, c = (s) => {
1254
1293
  s && s();
1255
1294
  };
1256
- return (s, c) => (o(), l("div", {
1295
+ return (s, i) => (n(), l("div", {
1257
1296
  class: d(["cu-list menu", [s.menuBorder ? "sm-border" : "", s.menuCard ? "card-menu" : ""]])
1258
1297
  }, [
1259
- (o(!0), l(b, null, y(s.menuItems, (a, h) => (o(), l("div", {
1298
+ (n(!0), l(b, null, y(s.menuItems, (a, h) => (n(), l("div", {
1260
1299
  key: h,
1261
1300
  class: d(["cu-item", s.menuArrow ? "arrow" : ""]),
1262
1301
  onClick: (r) => e(a)
1263
1302
  }, [
1264
- n("div", Xs, [
1265
- a.icon ? (o(), V(L, {
1303
+ o("div", Xs, [
1304
+ a.icon ? (n(), V(L, {
1266
1305
  key: 0,
1267
1306
  class: "icon",
1268
1307
  name: a.icon.name,
1269
1308
  color: a.icon.color
1270
- }, null, 8, ["name", "color"])) : f("", !0),
1271
- a.img ? (o(), l("img", {
1309
+ }, null, 8, ["name", "color"])) : p("", !0),
1310
+ a.img ? (n(), l("img", {
1272
1311
  key: 1,
1273
1312
  class: "icon",
1274
1313
  src: a.img.url,
1275
1314
  alt: a.img.alt
1276
- }, null, 8, Ys)) : f("", !0),
1277
- n("text", Os, u(a.title), 1)
1315
+ }, null, 8, Ys)) : p("", !0),
1316
+ o("text", Os, u(a.title), 1)
1278
1317
  ]),
1279
- n("div", Hs, [
1280
- a.group ? (o(), V(O, {
1318
+ o("div", Hs, [
1319
+ a.group ? (n(), V(O, {
1281
1320
  key: 0,
1282
1321
  urls: a.group
1283
- }, null, 8, ["urls"])) : f("", !0),
1284
- a.group ? (o(), l("text", Gs, u(a.group.length) + "人", 1)) : f("", !0),
1285
- a.btn ? (o(), l("button", {
1322
+ }, null, 8, ["urls"])) : p("", !0),
1323
+ a.group ? (n(), l("text", Gs, u(a.group.length) + "人", 1)) : p("", !0),
1324
+ a.btn ? (n(), l("button", {
1286
1325
  key: 2,
1287
1326
  class: d(["cu-btn round shadow", `bg-${a.btn.bg}`]),
1288
1327
  onClick: (r) => {
1289
- var p;
1290
- return i((p = a.btn) == null ? void 0 : p.event);
1328
+ var f;
1329
+ return c((f = a.btn) == null ? void 0 : f.event);
1291
1330
  }
1292
1331
  }, [
1293
- a.btn.icon ? (o(), V(L, {
1332
+ a.btn.icon ? (n(), V(L, {
1294
1333
  key: 0,
1295
1334
  name: a.btn.icon,
1296
1335
  color: "white"
1297
- }, null, 8, ["name"])) : f("", !0),
1336
+ }, null, 8, ["name"])) : p("", !0),
1298
1337
  k(" " + u(a.btn.text), 1)
1299
- ], 10, Ks)) : f("", !0),
1300
- a.tags ? (o(!0), l(b, { key: 3 }, y(a.tags, (r, p) => (o(), V(q, {
1338
+ ], 10, Ks)) : p("", !0),
1339
+ a.tags ? (n(!0), l(b, { key: 3 }, y(a.tags, (r, f) => (n(), V(q, {
1301
1340
  size: r.size,
1302
- key: p,
1341
+ key: f,
1303
1342
  bg: r.bg,
1304
1343
  light: r.light,
1305
1344
  shape: "round"
@@ -1308,8 +1347,8 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
1308
1347
  k(u(r.text), 1)
1309
1348
  ]),
1310
1349
  _: 2
1311
- }, 1032, ["size", "bg", "light"]))), 128)) : f("", !0),
1312
- a.text ? (o(), l("text", Js, u(a.text), 1)) : f("", !0)
1350
+ }, 1032, ["size", "bg", "light"]))), 128)) : p("", !0),
1351
+ a.text ? (n(), l("text", Js, u(a.text), 1)) : p("", !0)
1313
1352
  ])
1314
1353
  ], 10, Us))), 128))
1315
1354
  ], 2));
@@ -1321,10 +1360,10 @@ te.install = (t) => {
1321
1360
  const Ws = {
1322
1361
  key: 1,
1323
1362
  class: "cu-tag badge"
1324
- }, Zs = { class: "content" }, eo = { class: "flex align-center" }, to = { class: "text-cut text-black" }, so = { class: "text-gray text-sm flex" }, oo = { class: "text-cut" }, no = { class: "action" }, lo = { class: "text-grey text-xs" }, ao = {
1363
+ }, Zs = { class: "content" }, en = { class: "flex align-center" }, tn = { class: "text-cut text-black" }, sn = { class: "text-gray text-sm flex" }, nn = { class: "text-cut" }, on = { class: "action" }, ln = { class: "text-grey text-xs" }, an = {
1325
1364
  name: "ChatListItem"
1326
- }, ge = /* @__PURE__ */ _({
1327
- ...ao,
1365
+ }, me = /* @__PURE__ */ _({
1366
+ ...an,
1328
1367
  props: {
1329
1368
  userinfo: {},
1330
1369
  roomId: {},
@@ -1345,68 +1384,68 @@ const Ws = {
1345
1384
  },
1346
1385
  setup(t) {
1347
1386
  const e = t;
1348
- return (i, s) => {
1387
+ return (c, s) => {
1349
1388
  var a;
1350
- const c = ke("TIcon");
1351
- return o(), l("div", {
1352
- class: d(["cu-item", { grayscale: i.isDisconnected, cur: i.isCurrent }]),
1353
- onClick: s[0] || (s[0] = (h) => i.event(e))
1389
+ const i = ke("TIcon");
1390
+ return n(), l("div", {
1391
+ class: d(["cu-item", { grayscale: c.isDisconnected, cur: c.isCurrent }]),
1392
+ onClick: s[0] || (s[0] = (h) => c.event(e))
1354
1393
  }, [
1355
- n("div", {
1356
- class: d(["cu-avatar", i.userinfo.avatarShape, "lg", `bg-${i.avatarBg}`]),
1394
+ o("div", {
1395
+ class: d(["cu-avatar", c.userinfo.avatarShape, "lg", `bg-${c.avatarBg}`]),
1357
1396
  style: w({
1358
- backgroundImage: i.userinfo.avatar ? `url(${i.userinfo.avatar})` : ""
1397
+ backgroundImage: c.userinfo.avatar ? `url(${c.userinfo.avatar})` : ""
1359
1398
  })
1360
1399
  }, [
1361
- (a = i.userinfo) != null && a.avatar ? f("", !0) : (o(), V(c, {
1400
+ (a = c.userinfo) != null && a.avatar ? p("", !0) : (n(), V(i, {
1362
1401
  key: 0,
1363
- name: i.avatarName,
1402
+ name: c.avatarName,
1364
1403
  size: 36,
1365
1404
  color: "white"
1366
1405
  }, null, 8, ["name"])),
1367
- i.badge ? (o(), l("div", Ws, u(i.badge), 1)) : f("", !0)
1406
+ c.badge ? (n(), l("div", Ws, u(c.badge), 1)) : p("", !0)
1368
1407
  ], 6),
1369
- n("div", Zs, [
1370
- n("div", eo, [
1371
- n("div", to, u(i.userinfo.name), 1),
1372
- i.userinfo.tag ? (o(), l("div", {
1408
+ o("div", Zs, [
1409
+ o("div", en, [
1410
+ o("div", tn, u(c.userinfo.name), 1),
1411
+ c.userinfo.tag ? (n(), l("div", {
1373
1412
  key: 0,
1374
- class: d(["cu-tag", "round", `bg-${i.userinfo.tagColor}`, "sm"])
1375
- }, u(i.userinfo.tag), 3)) : f("", !0)
1413
+ class: d(["cu-tag", "round", `bg-${c.userinfo.tagColor}`, "sm"])
1414
+ }, u(c.userinfo.tag), 3)) : p("", !0)
1376
1415
  ]),
1377
- n("div", so, [
1378
- n("div", oo, [
1379
- S(i.$slots, "default")
1416
+ o("div", sn, [
1417
+ o("div", nn, [
1418
+ S(c.$slots, "default")
1380
1419
  ])
1381
1420
  ])
1382
1421
  ]),
1383
- n("div", no, [
1384
- n("div", lo, u(i.time), 1),
1385
- i.unread ? (o(), l("div", {
1422
+ o("div", on, [
1423
+ o("div", ln, u(c.time), 1),
1424
+ c.unread ? (n(), l("div", {
1386
1425
  key: 0,
1387
- class: d(["cu-tag", "round", `bg-${i.unreadColor}`, "sm"])
1388
- }, u(i.unread), 3)) : i.icon ? (o(), l("div", {
1426
+ class: d(["cu-tag", "round", `bg-${c.unreadColor}`, "sm"])
1427
+ }, u(c.unread), 3)) : c.icon ? (n(), l("div", {
1389
1428
  key: 1,
1390
- class: d(i.iconClass)
1391
- }, null, 2)) : f("", !0)
1429
+ class: d(c.iconClass)
1430
+ }, null, 2)) : p("", !0)
1392
1431
  ])
1393
1432
  ], 2);
1394
1433
  };
1395
1434
  }
1396
- }), co = { class: "cu-list menu-avatar" }, io = {
1435
+ }), cn = { class: "cu-list menu-avatar" }, rn = {
1397
1436
  name: "ChatList"
1398
1437
  }, se = /* @__PURE__ */ _({
1399
- ...io,
1438
+ ...rn,
1400
1439
  props: {
1401
1440
  items: {}
1402
1441
  },
1403
1442
  setup(t) {
1404
- return (e, i) => (o(), l("div", co, [
1405
- (o(!0), l(b, null, y(e.items, (s, c) => (o(), V(ge, {
1443
+ return (e, c) => (n(), l("div", cn, [
1444
+ (n(!0), l(b, null, y(e.items, (s, i) => (n(), V(me, {
1406
1445
  "avatar-name": s.avatarName,
1407
1446
  "avatar-bg": s.avatarBg,
1408
1447
  time: s.time,
1409
- key: c,
1448
+ key: i,
1410
1449
  userinfo: s.userinfo,
1411
1450
  unread: s.unread,
1412
1451
  unreadColor: s.unreadColor,
@@ -1428,91 +1467,91 @@ const Ws = {
1428
1467
  }
1429
1468
  });
1430
1469
  se.install = (t) => {
1431
- t.component(se.name, se), t.component(ge.name, ge);
1470
+ t.component(se.name, se), t.component(me.name, me);
1432
1471
  };
1433
- const ro = { class: "cu-chat" }, uo = {
1472
+ const un = { class: "cu-chat" }, dn = {
1434
1473
  key: 0,
1435
1474
  class: "cu-info round"
1436
- }, ho = {
1475
+ }, hn = {
1437
1476
  key: 1,
1438
1477
  class: "cu-info"
1439
- }, fo = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), po = { class: "main" }, go = ["src"], mo = {
1478
+ }, pn = /* @__PURE__ */ o("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), fn = { class: "main" }, mn = ["src"], gn = {
1440
1479
  key: 2,
1441
1480
  class: "content shadow"
1442
- }, _o = /* @__PURE__ */ n("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), vo = { class: "action text-bold text-grey" }, bo = {
1481
+ }, _n = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), vn = { class: "action text-bold text-grey" }, bn = {
1443
1482
  key: 3,
1444
1483
  class: "content shadow"
1445
- }, $o = /* @__PURE__ */ n("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), yo = { class: "content shadow" }, ko = /* @__PURE__ */ n("div", { class: "action text-grey" }, [
1446
- /* @__PURE__ */ n("text", { class: "cuIcon-warnfill text-red text-xxl" }),
1447
- /* @__PURE__ */ n("text", { class: "text-sm margin-left-sm" }, "翻译错误")
1448
- ], -1), Io = { class: "date" }, wo = { name: "ChatRoom" }, oe = /* @__PURE__ */ _({
1449
- ...wo,
1484
+ }, $n = /* @__PURE__ */ o("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), yn = { class: "content shadow" }, kn = /* @__PURE__ */ o("div", { class: "action text-grey" }, [
1485
+ /* @__PURE__ */ o("text", { class: "cuIcon-warnfill text-red text-xxl" }),
1486
+ /* @__PURE__ */ o("text", { class: "text-sm margin-left-sm" }, "翻译错误")
1487
+ ], -1), In = { class: "date" }, wn = { name: "ChatRoom" }, ne = /* @__PURE__ */ _({
1488
+ ...wn,
1450
1489
  props: {
1451
1490
  messages: {}
1452
1491
  },
1453
1492
  setup(t) {
1454
- return (e, i) => (o(), l("div", ro, [
1455
- (o(!0), l(b, null, y(e.messages, (s) => (o(), l("div", {
1493
+ return (e, c) => (n(), l("div", un, [
1494
+ (n(!0), l(b, null, y(e.messages, (s) => (n(), l("div", {
1456
1495
  key: s.id,
1457
1496
  class: d(["cu-item", { self: s.self }])
1458
1497
  }, [
1459
- s.type === "info" ? (o(), l(b, { key: 0 }, [
1460
- s.self ? (o(), l("div", uo, u(s.content), 1)) : (o(), l("div", ho, [
1461
- fo,
1498
+ s.type === "info" ? (n(), l(b, { key: 0 }, [
1499
+ s.self ? (n(), l("div", dn, u(s.content), 1)) : (n(), l("div", hn, [
1500
+ pn,
1462
1501
  k(" " + u(s.content), 1)
1463
1502
  ]))
1464
- ], 64)) : (o(), l(b, { key: 1 }, [
1465
- s.self ? f("", !0) : (o(), V(z, {
1503
+ ], 64)) : (n(), l(b, { key: 1 }, [
1504
+ s.self ? p("", !0) : (n(), V(z, {
1466
1505
  key: 0,
1467
1506
  mode: "radius",
1468
1507
  url: s.avatar
1469
1508
  }, null, 8, ["url"])),
1470
- n("div", po, [
1471
- s.type === "text" ? (o(), l("div", {
1509
+ o("div", fn, [
1510
+ s.type === "text" ? (n(), l("div", {
1472
1511
  key: 0,
1473
1512
  class: d(["content shadow", { "bg-green": s.self }])
1474
1513
  }, [
1475
- n("text", null, u(s.content), 1)
1476
- ], 2)) : s.type === "image" ? (o(), l("img", {
1514
+ o("text", null, u(s.content), 1)
1515
+ ], 2)) : s.type === "image" ? (n(), l("img", {
1477
1516
  key: 1,
1478
1517
  src: s.content,
1479
1518
  class: "radius",
1480
1519
  style: { "max-width": "100%" }
1481
- }, null, 8, go)) : s.type === "audio" ? (o(), l("div", mo, [
1482
- _o,
1483
- n("div", vo, u(s.content), 1)
1484
- ])) : s.type === "location" ? (o(), l("div", bo, [
1485
- $o,
1520
+ }, null, 8, mn)) : s.type === "audio" ? (n(), l("div", gn, [
1521
+ _n,
1522
+ o("div", vn, u(s.content), 1)
1523
+ ])) : s.type === "location" ? (n(), l("div", bn, [
1524
+ $n,
1486
1525
  k(" " + u(s.content), 1)
1487
- ])) : s.type === "warning" ? (o(), l(b, { key: 4 }, [
1488
- n("div", yo, u(s.content), 1),
1489
- ko
1526
+ ])) : s.type === "warning" ? (n(), l(b, { key: 4 }, [
1527
+ o("div", yn, u(s.content), 1),
1528
+ kn
1490
1529
  ], 64)) : S(e.$slots, "custom-message", {
1491
1530
  key: 5,
1492
1531
  message: s
1493
1532
  })
1494
1533
  ]),
1495
- s.self ? (o(), V(z, {
1534
+ s.self ? (n(), V(z, {
1496
1535
  key: 1,
1497
1536
  mode: "radius",
1498
1537
  url: s.avatar
1499
- }, null, 8, ["url"])) : f("", !0),
1500
- n("div", Io, u(s.date), 1)
1538
+ }, null, 8, ["url"])) : p("", !0),
1539
+ o("div", In, u(s.date), 1)
1501
1540
  ], 64))
1502
1541
  ], 2))), 128))
1503
1542
  ]));
1504
1543
  }
1505
1544
  });
1506
- oe.install = (t) => {
1507
- t.component(oe.name, oe);
1545
+ ne.install = (t) => {
1546
+ t.component(ne.name, ne);
1508
1547
  };
1509
- const Co = { class: "cu-time" }, xo = {
1548
+ const Cn = { class: "cu-time" }, xn = {
1510
1549
  key: 0,
1511
1550
  class: "cu-capsule radius"
1512
- }, To = {
1551
+ }, Tn = {
1513
1552
  name: "TimeLine"
1514
- }, ne = /* @__PURE__ */ _({
1515
- ...To,
1553
+ }, oe = /* @__PURE__ */ _({
1554
+ ...Tn,
1516
1555
  props: {
1517
1556
  items: { default: () => [] }
1518
1557
  },
@@ -1520,7 +1559,7 @@ const Co = { class: "cu-time" }, xo = {
1520
1559
  function e(s) {
1521
1560
  return s || "cyan";
1522
1561
  }
1523
- function i(s) {
1562
+ function c(s) {
1524
1563
  switch (s.status) {
1525
1564
  case "past":
1526
1565
  return `text-green cuIcon-${s.icon || "roundcheckfill"}`;
@@ -1532,22 +1571,22 @@ const Co = { class: "cu-time" }, xo = {
1532
1571
  return `text-gray cuIcon-${s.icon || "radioboxfill"}`;
1533
1572
  }
1534
1573
  }
1535
- return (s, c) => (o(), l("div", null, [
1536
- (o(!0), l(b, null, y(s.items, (a, h) => (o(), l("div", {
1574
+ return (s, i) => (n(), l("div", null, [
1575
+ (n(!0), l(b, null, y(s.items, (a, h) => (n(), l("div", {
1537
1576
  key: h,
1538
1577
  class: "cu-timeline"
1539
1578
  }, [
1540
- n("div", Co, u(a.date), 1),
1541
- (o(!0), l(b, null, y(a.items, (r) => {
1542
- var p, $, m;
1543
- return o(), l("div", {
1579
+ o("div", Cn, u(a.date), 1),
1580
+ (n(!0), l(b, null, y(a.items, (r) => {
1581
+ var f, $, g;
1582
+ return n(), l("div", {
1544
1583
  key: r.key,
1545
- class: d(["cu-item", i(r)])
1584
+ class: d(["cu-item", c(r)])
1546
1585
  }, [
1547
- n("div", {
1586
+ o("div", {
1548
1587
  class: d(["content", `bg-${r.bg || "gray"}`, "shadow-blur"])
1549
1588
  }, [
1550
- (p = r == null ? void 0 : r.capsule) != null && p.list && r.capsule.list.length ? (o(), l("div", xo, [
1589
+ (f = r == null ? void 0 : r.capsule) != null && f.list && r.capsule.list.length ? (n(), l("div", xn, [
1551
1590
  P(q, {
1552
1591
  bg: e(($ = r.capsule) == null ? void 0 : $.color)
1553
1592
  }, {
@@ -1557,7 +1596,7 @@ const Co = { class: "cu-time" }, xo = {
1557
1596
  _: 2
1558
1597
  }, 1032, ["bg"]),
1559
1598
  P(q, {
1560
- bg: e((m = r.capsule) == null ? void 0 : m.color),
1599
+ bg: e((g = r.capsule) == null ? void 0 : g.color),
1561
1600
  light: !0
1562
1601
  }, {
1563
1602
  default: re(() => [
@@ -1565,8 +1604,8 @@ const Co = { class: "cu-time" }, xo = {
1565
1604
  ]),
1566
1605
  _: 2
1567
1606
  }, 1032, ["bg"])
1568
- ])) : f("", !0),
1569
- n("div", {
1607
+ ])) : p("", !0),
1608
+ o("div", {
1570
1609
  class: d(r.capsule ? "margin-top-sm" : "")
1571
1610
  }, [
1572
1611
  S(s.$slots, `item-${r.key}`, {}, () => [
@@ -1580,13 +1619,13 @@ const Co = { class: "cu-time" }, xo = {
1580
1619
  ]));
1581
1620
  }
1582
1621
  });
1583
- ne.install = (t) => {
1584
- t.component(ne.name, ne);
1622
+ oe.install = (t) => {
1623
+ t.component(oe.name, oe);
1585
1624
  };
1586
- const So = { class: "bg-white padding" }, Bo = ["data-index"], jo = {
1625
+ const Sn = { class: "bg-white padding" }, Bn = ["data-index"], jn = {
1587
1626
  name: "TSteps"
1588
1627
  }, le = /* @__PURE__ */ _({
1589
- ...jo,
1628
+ ...jn,
1590
1629
  props: {
1591
1630
  steps: {},
1592
1631
  modelValue: {},
@@ -1595,19 +1634,19 @@ const So = { class: "bg-white padding" }, Bo = ["data-index"], jo = {
1595
1634
  },
1596
1635
  emits: ["update:modelValue"],
1597
1636
  setup(t, { emit: e }) {
1598
- return (i, s) => (o(), l("div", So, [
1599
- n("div", {
1600
- class: d(["cu-steps", { "scroll-x": i.scrollX }])
1637
+ return (c, s) => (n(), l("div", Sn, [
1638
+ o("div", {
1639
+ class: d(["cu-steps", { "scroll-x": c.scrollX }])
1601
1640
  }, [
1602
- (o(!0), l(b, null, y(i.steps, (c, a) => (o(), l("div", {
1603
- class: d(["cu-item", a > i.modelValue ? "" : `text-${i.color}`]),
1641
+ (n(!0), l(b, null, y(c.steps, (i, a) => (n(), l("div", {
1642
+ class: d(["cu-item", a > c.modelValue ? "" : `text-${c.color}`]),
1604
1643
  key: a
1605
1644
  }, [
1606
- n("text", {
1607
- class: d(c.cuIcon ? "cuIcon-" + c.cuIcon : "num"),
1645
+ o("text", {
1646
+ class: d(i.cuIcon ? "cuIcon-" + i.cuIcon : "num"),
1608
1647
  "data-index": a + 1
1609
- }, u(c.cuIcon ? "" : a + 1), 11, Bo),
1610
- k(" " + u(c.name), 1)
1648
+ }, u(i.cuIcon ? "" : a + 1), 11, Bn),
1649
+ k(" " + u(i.name), 1)
1611
1650
  ], 2))), 128))
1612
1651
  ], 2)
1613
1652
  ]));
@@ -1616,34 +1655,34 @@ const So = { class: "bg-white padding" }, Bo = ["data-index"], jo = {
1616
1655
  le.install = (t) => {
1617
1656
  t.component(le.name, le);
1618
1657
  };
1619
- const Eo = { class: "cu-dialog" }, Vo = { class: "cu-bar bg-white justify-end padding-right-sm" }, Mo = { class: "content" }, zo = /* @__PURE__ */ n("text", { class: "cuIcon-close text-red" }, null, -1), qo = [
1620
- zo
1621
- ], Ao = { class: "padding-xl" }, No = {
1658
+ const En = { class: "cu-dialog" }, Vn = { class: "cu-bar bg-white justify-end padding-right-sm" }, Mn = { class: "content" }, zn = /* @__PURE__ */ o("text", { class: "cuIcon-close text-red" }, null, -1), qn = [
1659
+ zn
1660
+ ], An = { class: "padding-xl" }, Nn = {
1622
1661
  name: "DrawerModal"
1623
1662
  }, ae = /* @__PURE__ */ _({
1624
- ...No,
1663
+ ...Nn,
1625
1664
  props: {
1626
1665
  title: {},
1627
1666
  modelValue: { type: Boolean }
1628
1667
  },
1629
1668
  emits: ["update:modelValue"],
1630
1669
  setup(t, { emit: e }) {
1631
- const i = e, s = () => {
1632
- i("update:modelValue", !1);
1670
+ const c = e, s = () => {
1671
+ c("update:modelValue", !1);
1633
1672
  };
1634
- return (c, a) => (o(), l("div", {
1635
- class: d(["cu-modal", c.modelValue ? "show" : ""])
1673
+ return (i, a) => (n(), l("div", {
1674
+ class: d(["cu-modal", i.modelValue ? "show" : ""])
1636
1675
  }, [
1637
- n("div", Eo, [
1638
- n("div", Vo, [
1639
- n("div", Mo, u(c.title), 1),
1640
- n("div", {
1676
+ o("div", En, [
1677
+ o("div", Vn, [
1678
+ o("div", Mn, u(i.title), 1),
1679
+ o("div", {
1641
1680
  class: "action",
1642
1681
  onClick: s
1643
- }, qo)
1682
+ }, qn)
1644
1683
  ]),
1645
- n("div", Ao, [
1646
- S(c.$slots, "default", {}, () => [
1684
+ o("div", An, [
1685
+ S(i.$slots, "default", {}, () => [
1647
1686
  k("Modal 内容~")
1648
1687
  ])
1649
1688
  ])
@@ -1654,10 +1693,10 @@ const Eo = { class: "cu-dialog" }, Vo = { class: "cu-bar bg-white justify-end pa
1654
1693
  ae.install = (t) => {
1655
1694
  t.component(ae.name, ae);
1656
1695
  };
1657
- const Po = { class: "loading-animation" }, Lo = {
1696
+ const Pn = { class: "loading-animation" }, Ln = {
1658
1697
  name: "Loading1"
1659
- }, Do = /* @__PURE__ */ _({
1660
- ...Lo,
1698
+ }, Dn = /* @__PURE__ */ _({
1699
+ ...Ln,
1661
1700
  props: {
1662
1701
  width: { default: 300 },
1663
1702
  height: { default: 300 },
@@ -1680,8 +1719,8 @@ const Po = { class: "loading-animation" }, Lo = {
1680
1719
  step(a, h) {
1681
1720
  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 && h.splice(a, 1);
1682
1721
  }
1683
- draw(a, h, r, p) {
1684
- a.fillStyle = a.strokeStyle = `hsla(${h + this.life * 120}, 100%, 60%, ${this.life})`, a.beginPath(), r[p - 1] && (a.moveTo(this.x, this.y), a.lineTo(r[p - 1].x, r[p - 1].y)), a.stroke(), a.beginPath(), a.arc(
1722
+ draw(a, h, r, f) {
1723
+ a.fillStyle = a.strokeStyle = `hsla(${h + this.life * 120}, 100%, 60%, ${this.life})`, a.beginPath(), r[f - 1] && (a.moveTo(this.x, this.y), a.lineTo(r[f - 1].x, r[f - 1].y)), a.stroke(), a.beginPath(), a.arc(
1685
1724
  this.x,
1686
1725
  this.y,
1687
1726
  Math.max(1e-3, this.life * this.radius),
@@ -1697,54 +1736,54 @@ const Po = { class: "loading-animation" }, Lo = {
1697
1736
  );
1698
1737
  }
1699
1738
  }
1700
- const i = t, s = T(null);
1739
+ const c = t, s = T(null);
1701
1740
  return D(() => {
1702
1741
  if (!s.value)
1703
1742
  return;
1704
- const c = s.value.getContext("2d"), { width: a, height: h, particleRadius: r, particleDecay: p } = i, $ = window.devicePixelRatio || 1;
1705
- s.value.width = a * $, s.value.height = h * $, s.value.style.width = a + "px", s.value.style.height = h + "px", c.scale($, $);
1706
- const m = a * 0.5, I = [];
1707
- let B = 0, E = 0, g = 0;
1708
- c.globalCompositeOperation = "lighter";
1743
+ const i = s.value.getContext("2d"), { width: a, height: h, particleRadius: r, particleDecay: f } = c, $ = window.devicePixelRatio || 1;
1744
+ s.value.width = a * $, s.value.height = h * $, s.value.style.width = a + "px", s.value.style.height = h + "px", i.scale($, $);
1745
+ const g = a * 0.5, I = [];
1746
+ let B = 0, E = 0, m = 0;
1747
+ i.globalCompositeOperation = "lighter";
1709
1748
  function C() {
1710
1749
  I.push(
1711
1750
  new e(
1712
1751
  {
1713
- x: a / 2 + Math.cos(g / 20) * m / 2,
1714
- y: h / 2 + Math.sin(g / 20) * m / 2,
1752
+ x: a / 2 + Math.cos(m / 20) * g / 2,
1753
+ y: h / 2 + Math.sin(m / 20) * g / 2,
1715
1754
  angle: E + B,
1716
1755
  speed: 0,
1717
1756
  accel: 0.01
1718
1757
  },
1719
1758
  r,
1720
- p
1759
+ f
1721
1760
  )
1722
1761
  ), I.forEach((v, x) => {
1723
1762
  v.step(x, I);
1724
1763
  }), E += Math.PI / 2, B += Math.PI / 2;
1725
1764
  }
1726
1765
  function N() {
1727
- c.clearRect(0, 0, a, h), I.forEach((v, x) => {
1728
- v.draw(c, g, I, x);
1766
+ i.clearRect(0, 0, a, h), I.forEach((v, x) => {
1767
+ v.draw(i, m, I, x);
1729
1768
  });
1730
1769
  }
1731
1770
  function F() {
1732
- requestAnimationFrame(F), C(), N(), g++;
1771
+ requestAnimationFrame(F), C(), N(), m++;
1733
1772
  }
1734
1773
  F();
1735
- }), (c, a) => (o(), l("div", Po, [
1736
- n("canvas", {
1774
+ }), (i, a) => (n(), l("div", Pn, [
1775
+ o("canvas", {
1737
1776
  ref_key: "canvas",
1738
1777
  ref: s
1739
1778
  }, null, 512)
1740
1779
  ]));
1741
1780
  }
1742
- }), ce = /* @__PURE__ */ A(Do, [["__scopeId", "data-v-022c82bd"]]);
1743
- ce.install = (t) => {
1744
- t.component(ce.name, ce);
1781
+ }), ie = /* @__PURE__ */ A(Dn, [["__scopeId", "data-v-022c82bd"]]);
1782
+ ie.install = (t) => {
1783
+ t.component(ie.name, ie);
1745
1784
  };
1746
- const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE__ */ _({
1747
- ...Ro,
1785
+ const Fn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Un = /* @__PURE__ */ _({
1786
+ ...Rn,
1748
1787
  props: {
1749
1788
  virtualTotal: {},
1750
1789
  render: { type: Function },
@@ -1752,88 +1791,88 @@ const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE
1752
1791
  },
1753
1792
  emits: ["slideLeft", "slideRight"],
1754
1793
  setup(t, { emit: e }) {
1755
- const i = t, s = e, c = T(null), a = T(null), h = T(0), r = Ee({
1794
+ const c = t, s = e, i = T(null), a = T(null), h = T(0), r = Ee({
1756
1795
  localIndex: 0,
1757
1796
  wrapperHeight: 0,
1758
1797
  touchStartY: 0,
1759
1798
  touchEndY: 0,
1760
1799
  touchStartX: 0,
1761
1800
  touchEndX: 0
1762
- }), p = T([]), $ = "slide-item";
1801
+ }), f = T([]), $ = "slide-item";
1763
1802
  Ie(
1764
- () => i.list,
1803
+ () => c.list,
1765
1804
  (v, x) => {
1766
- v.length !== x.length && m();
1805
+ v.length !== x.length && g();
1767
1806
  }
1768
1807
  ), D(() => {
1769
- c.value && (r.wrapperHeight = c.value.clientHeight, m());
1808
+ i.value && (r.wrapperHeight = i.value.clientHeight, g());
1770
1809
  });
1771
- const m = () => {
1810
+ const g = () => {
1772
1811
  const v = Math.max(0, r.localIndex), x = Math.min(
1773
- r.localIndex + i.virtualTotal,
1774
- i.list.length
1812
+ r.localIndex + c.virtualTotal,
1813
+ c.list.length
1775
1814
  );
1776
- p.value = i.list.slice(v, x), h.value = -r.localIndex * r.wrapperHeight;
1815
+ f.value = c.list.slice(v, x), h.value = -r.localIndex * r.wrapperHeight;
1777
1816
  }, I = (v) => {
1778
1817
  v.touches.length > 0 && (r.touchStartY = v.touches[0].clientY, r.touchStartX = v.touches[0].clientX);
1779
1818
  }, B = (v) => {
1780
1819
  v.touches.length > 0 && (r.touchEndY = v.touches[0].clientY, r.touchEndX = v.touches[0].clientX);
1781
1820
  }, E = () => {
1782
1821
  const v = r.touchEndY - r.touchStartY, x = r.touchEndX - r.touchStartX;
1783
- Math.abs(v) > Math.abs(x) && Math.abs(v) > 30 ? v < 0 ? g() : C() : Math.abs(x) > 30 && (x < 0 ? s("slideLeft", {
1784
- item: p.value[r.localIndex],
1822
+ Math.abs(v) > Math.abs(x) && Math.abs(v) > 30 ? v < 0 ? m() : C() : Math.abs(x) > 30 && (x < 0 ? s("slideLeft", {
1823
+ item: f.value[r.localIndex],
1785
1824
  index: r.localIndex
1786
1825
  }) : s("slideRight", {
1787
- item: p.value[r.localIndex],
1826
+ item: f.value[r.localIndex],
1788
1827
  index: r.localIndex
1789
1828
  })), r.touchStartY = 0, r.touchEndY = 0, r.touchStartX = 0, r.touchEndX = 0;
1790
- }, g = () => {
1791
- r.localIndex < i.list.length - 1 && (r.localIndex++, m());
1829
+ }, m = () => {
1830
+ r.localIndex < c.list.length - 1 && (r.localIndex++, g());
1792
1831
  }, C = () => {
1793
- r.localIndex > 0 && (r.localIndex--, m());
1794
- }, N = (v) => (r.localIndex + v) * r.wrapperHeight, F = j(() => p.value.map((v) => `video-${v.id}`).join(","));
1795
- return (v, x) => (o(), l("div", {
1832
+ r.localIndex > 0 && (r.localIndex--, g());
1833
+ }, N = (v) => (r.localIndex + v) * r.wrapperHeight, F = j(() => f.value.map((v) => `video-${v.id}`).join(","));
1834
+ return (v, x) => (n(), l("div", {
1796
1835
  class: "slide-wrapper",
1797
1836
  ref_key: "wrapper",
1798
- ref: c,
1837
+ ref: i,
1799
1838
  onTouchstart: I,
1800
1839
  onTouchmove: B,
1801
1840
  onTouchend: E
1802
1841
  }, [
1803
- n("div", {
1842
+ o("div", {
1804
1843
  class: "slide-list",
1805
1844
  ref_key: "slideList",
1806
1845
  ref: a,
1807
1846
  style: w({ transform: `translateY(${h.value}px)` })
1808
1847
  }, [
1809
- (o(), V(Ve, { include: F.value }, [
1810
- (o(!0), l(b, null, y(p.value, (_e, ue) => (o(), l("div", {
1848
+ (n(), V(Ve, { include: F.value }, [
1849
+ (n(!0), l(b, null, y(f.value, (_e, ue) => (n(), l("div", {
1811
1850
  key: _e.id,
1812
1851
  "data-index": ue,
1813
1852
  class: d($),
1814
1853
  style: w({ top: `${N(ue)}px` })
1815
1854
  }, [
1816
- (o(), V(Me(v.render(_e, ue))))
1817
- ], 12, Fo))), 128))
1855
+ (n(), V(Me(v.render(_e, ue))))
1856
+ ], 12, Fn))), 128))
1818
1857
  ], 1032, ["include"]))
1819
1858
  ], 4)
1820
1859
  ], 544));
1821
1860
  }
1822
- }), ie = /* @__PURE__ */ A(Uo, [["__scopeId", "data-v-8600af8d"]]);
1823
- ie.install = (t) => {
1824
- t.component(ie.name, ie);
1861
+ }), ce = /* @__PURE__ */ A(Un, [["__scopeId", "data-v-8600af8d"]]);
1862
+ ce.install = (t) => {
1863
+ t.component(ce.name, ce);
1825
1864
  };
1826
- const Xo = (t) => {
1827
- t.use(L), t.use(Y), t.use(z), t.use(R), t.use(U), t.use(X), t.use(G), t.use(K), t.use(J), t.use(Q), t.use(W), t.use(Z), t.use(ee), t.use(te), t.use(H), t.use(q), t.use(se), t.use(oe), t.use(ne), t.use(le), t.use(ae), t.use(ce), t.use(ie);
1828
- }, Ho = {
1829
- install: Xo
1865
+ const Xn = (t) => {
1866
+ t.use(L), t.use(Y), t.use(z), t.use(R), t.use(U), t.use(X), t.use(G), t.use(K), t.use(J), t.use(Q), t.use(W), t.use(Z), t.use(ee), t.use(te), t.use(H), t.use(q), t.use(se), t.use(ne), t.use(oe), t.use(le), t.use(ae), t.use(ie), t.use(ce);
1867
+ }, Gn = {
1868
+ install: Xn
1830
1869
  };
1831
1870
  export {
1832
1871
  se as ChatList,
1833
- oe as ChatRoom,
1872
+ ne as ChatRoom,
1834
1873
  ae as DrawerModal,
1835
1874
  ee as GridGroup,
1836
- ce as Loading1,
1875
+ ie as Loading1,
1837
1876
  te as Menu,
1838
1877
  z as TAvatar,
1839
1878
  H as TButton,
@@ -1850,6 +1889,7 @@ export {
1850
1889
  q as TTag,
1851
1890
  Y as TTitle,
1852
1891
  K as TTopBar,
1853
- ne as TimeLine,
1854
- Ho as default
1892
+ oe as TimeLine,
1893
+ Gn as default,
1894
+ Hn as textColor
1855
1895
  };