vue-color-ui 0.0.13 → 0.0.14

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,5 +1,5 @@
1
- import { defineComponent as f, openBlock as n, createElementBlock as l, Fragment as g, renderList as m, normalizeClass as i, normalizeStyle as v, createElementVNode as o, toDisplayString as c, createTextVNode as h, createCommentVNode as u, pushScopeId as le, popScopeId as ae, computed as y, renderSlot as $, createBlock as k, ref as j, provide as ee, watch as ce, inject as Q, onMounted as ie, withDirectives as re, vShow as ue, withCtx as J, createVNode as te } from "vue";
2
- const de = { class: "nav-list" }, pe = ["url"], _e = { class: "nav-title" }, fe = { class: "nav-name" }, ge = {
1
+ import { defineComponent as f, openBlock as n, createElementBlock as l, Fragment as g, renderList as m, normalizeClass as i, normalizeStyle as v, createElementVNode as o, toDisplayString as c, createTextVNode as h, createCommentVNode as d, pushScopeId as le, popScopeId as ae, computed as y, renderSlot as $, createBlock as k, ref as j, provide as ee, watch as ce, inject as W, onMounted as ie, withDirectives as re, vShow as ue, withCtx as Q, createVNode as te } from "vue";
2
+ const de = { class: "nav-list" }, _e = ["url"], pe = { class: "nav-title" }, fe = { class: "nav-name" }, ge = {
3
3
  name: "TNavCard"
4
4
  }, z = /* @__PURE__ */ f({
5
5
  ...ge,
@@ -16,12 +16,12 @@ const de = { class: "nav-list" }, pe = ["url"], _e = { class: "nav-title" }, fe
16
16
  style: v([{ animation: "show " + ((a + 1) * 0.2 + 1) + "s 1" }]),
17
17
  key: a
18
18
  }, [
19
- o("div", _e, c(t.title), 1),
19
+ o("div", pe, c(t.title), 1),
20
20
  o("div", fe, c(t.name), 1),
21
21
  o("text", {
22
22
  class: i("cuIcon-" + t.cuIcon)
23
23
  }, null, 2)
24
- ], 14, pe))), 128))
24
+ ], 14, _e))), 128))
25
25
  ]));
26
26
  }
27
27
  });
@@ -88,7 +88,7 @@ const Y = (s) => (le("data-v-bbdb83ff"), s = s(), ae(), s), he = { class: "cu-it
88
88
  o("div", je, c(e.footerInfo.author), 1),
89
89
  h(" " + c(e.footerInfo.timeAgo), 1)
90
90
  ])
91
- ])) : u("", !0)
91
+ ])) : d("", !0)
92
92
  ])
93
93
  ], 2));
94
94
  }
@@ -101,10 +101,10 @@ const Y = (s) => (le("data-v-bbdb83ff"), s = s(), ae(), s), he = { class: "cu-it
101
101
  q.install = (s) => {
102
102
  s.component(q.name, q);
103
103
  };
104
- const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, Ne = { class: "cu-item" }, De = { class: "content flex-sub" }, Ee = { class: "text-gray text-sm flex justify-between" }, Ae = { class: "text-content" }, Ue = { class: "text-gray text-sm text-right padding" }, Le = /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), Me = /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), Fe = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), Oe = { class: "cu-item" }, Re = { class: "content" }, Ge = { class: "text-grey" }, Xe = { class: "text-gray text-content text-df" }, Ke = { class: "flex" }, Pe = { class: "flex-sub" }, We = { class: "margin-top-sm flex justify-between" }, He = { class: "text-gray text-df" }, Je = {
104
+ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, Ne = { class: "cu-item" }, De = { class: "content flex-sub" }, Ee = { class: "text-gray text-sm flex justify-between" }, Ue = { class: "text-content" }, Ae = { class: "text-gray text-sm text-right padding" }, Le = /* @__PURE__ */ o("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), Me = /* @__PURE__ */ o("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), Fe = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), Oe = { class: "cu-item" }, Re = { class: "content" }, Ge = { class: "text-grey" }, Xe = { class: "text-gray text-content text-df" }, Ke = { class: "flex" }, Pe = { class: "flex-sub" }, He = { class: "margin-top-sm flex justify-between" }, Je = { class: "text-gray text-df" }, Qe = {
105
105
  key: 0,
106
106
  class: "cuIcon-appreciatefill text-red"
107
- }, Qe = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), Ye = { class: "text-gray margin-left-xs" }, Ze = {
107
+ }, We = /* @__PURE__ */ o("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), Ye = { class: "text-gray margin-left-xs" }, Ze = {
108
108
  name: "TShareCard"
109
109
  }, V = /* @__PURE__ */ f({
110
110
  ...Ze,
@@ -172,7 +172,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
172
172
  ])
173
173
  ])
174
174
  ]),
175
- o("div", Ae, c(e.content), 1),
175
+ o("div", Ue, c(e.content), 1),
176
176
  o("div", {
177
177
  class: i(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
178
178
  }, [
@@ -182,7 +182,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
182
182
  key: t
183
183
  }, null, 6))), 128))
184
184
  ], 2),
185
- o("div", Ue, [
185
+ o("div", Ae, [
186
186
  Le,
187
187
  h(" " + c(e.likes) + " ", 1),
188
188
  Me,
@@ -204,20 +204,20 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
204
204
  o("div", Re, [
205
205
  o("div", Ge, c(t.author), 1),
206
206
  o("div", Xe, c(t.text), 1),
207
- (n(!0), l(g, null, m(t.replies, (d) => (n(), l("div", {
208
- key: d.id,
207
+ (n(!0), l(g, null, m(t.replies, (u) => (n(), l("div", {
208
+ key: u.id,
209
209
  class: "bg-grey padding-sm radius margin-top-sm text-sm"
210
210
  }, [
211
211
  o("div", Ke, [
212
- o("div", null, c(d.author) + ":", 1),
213
- o("div", Pe, c(d.text), 1)
212
+ o("div", null, c(u.author) + ":", 1),
213
+ o("div", Pe, c(u.text), 1)
214
214
  ])
215
215
  ]))), 128)),
216
- o("div", We, [
217
- o("div", He, c(t.date), 1),
216
+ o("div", He, [
217
+ o("div", Je, c(t.date), 1),
218
218
  o("div", null, [
219
- t.likes ? (n(), l("span", Je)) : u("", !0),
220
- Qe,
219
+ t.likes ? (n(), l("span", Qe)) : d("", !0),
220
+ We,
221
221
  o("span", Ye, c((a = t.replies) == null ? void 0 : a.length), 1)
222
222
  ])
223
223
  ])
@@ -276,7 +276,7 @@ const ot = {
276
276
  }, null, -1), it = { class: "action sub-title" }, rt = { class: "tib text-xl text-bold text-green" }, ut = /* @__PURE__ */ o("div", {
277
277
  class: "tib bg-green",
278
278
  style: { width: "2rem" }
279
- }, null, -1), dt = { class: "action sub-title" }, pt = { class: "tib text-xl text-bold text-blue" }, _t = { class: "tib text-ABC text-blue" }, ft = { class: "action title-style-3" }, gt = {
279
+ }, null, -1), dt = { class: "action sub-title" }, _t = { class: "tib text-xl text-bold text-blue" }, pt = { class: "tib text-ABC text-blue" }, ft = { class: "action title-style-3" }, gt = {
280
280
  key: 5,
281
281
  class: "cu-bar bg-white"
282
282
  }, ht = { class: "action" }, mt = {
@@ -328,8 +328,8 @@ const ot = {
328
328
  class: i(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
329
329
  }, [
330
330
  o("div", dt, [
331
- o("div", pt, c(e.title), 1),
332
- o("div", _t, c(e.deputy), 1)
331
+ o("div", _t, c(e.title), 1),
332
+ o("div", pt, c(e.deputy), 1)
333
333
  ])
334
334
  ], 2)) : e.mode === "bilingual" ? (n(), l("div", {
335
335
  key: 4,
@@ -366,7 +366,7 @@ const ot = {
366
366
  }
367
367
  }), yt = {
368
368
  name: "TAvatar"
369
- }, w = /* @__PURE__ */ f({
369
+ }, I = /* @__PURE__ */ f({
370
370
  ...yt,
371
371
  props: {
372
372
  url: {},
@@ -396,7 +396,7 @@ const ot = {
396
396
  },
397
397
  setup(s) {
398
398
  return (e, r) => (n(), l("div", kt, [
399
- (n(!0), l(g, null, m(e.urls, (t, a) => (n(), k(w, {
399
+ (n(!0), l(g, null, m(e.urls, (t, a) => (n(), k(I, {
400
400
  key: a,
401
401
  url: t,
402
402
  size: e.size
@@ -428,18 +428,18 @@ const ot = {
428
428
  })), a = y(() => ({
429
429
  marginRight: e.text ? "8px" : "0"
430
430
  }));
431
- return (d, p) => (n(), l("button", {
431
+ return (u, p) => (n(), l("button", {
432
432
  class: i(r.value),
433
433
  style: v(t.value),
434
- disabled: d.disabled
434
+ disabled: u.disabled
435
435
  }, [
436
- $(d.$slots, "default"),
437
- d.icon ? (n(), l("i", {
436
+ $(u.$slots, "default"),
437
+ u.icon ? (n(), l("i", {
438
438
  key: 0,
439
- class: i(`cuIcon-${d.icon}`),
439
+ class: i(`cuIcon-${u.icon}`),
440
440
  style: v(a.value)
441
- }, null, 6)) : u("", !0),
442
- d.text ? (n(), l("span", Ct, c(d.text), 1)) : u("", !0)
441
+ }, null, 6)) : d("", !0),
442
+ u.text ? (n(), l("span", Ct, c(u.text), 1)) : d("", !0)
443
443
  ], 14, wt));
444
444
  }
445
445
  }), Tt = { key: 0 }, Bt = {
@@ -462,23 +462,23 @@ const ot = {
462
462
  `${e.line ? "line" : "bg"}-${e.bg}`,
463
463
  e.size !== "default" ? e.size : ""
464
464
  ].join(" ")), t = y(() => ({}));
465
- return (a, d) => (n(), l("div", {
465
+ return (a, u) => (n(), l("div", {
466
466
  class: i(r.value),
467
467
  style: v(t.value)
468
468
  }, [
469
469
  $(a.$slots, "default", {}, void 0, !0),
470
- a.text ? (n(), l("span", Tt, c(a.text), 1)) : u("", !0)
470
+ a.text ? (n(), l("span", Tt, c(a.text), 1)) : d("", !0)
471
471
  ], 6));
472
472
  }
473
- }), C = /* @__PURE__ */ Z(jt, [["__scopeId", "data-v-3c2b82ce"]]);
473
+ }), w = /* @__PURE__ */ Z(jt, [["__scopeId", "data-v-3c2b82ce"]]);
474
474
  x.install = (s) => {
475
475
  s.component(x.name, x);
476
476
  };
477
477
  N.install = (s) => {
478
478
  s.component(N.name, N);
479
479
  };
480
- w.install = (s) => {
481
- s.component(w.name, w);
480
+ I.install = (s) => {
481
+ s.component(I.name, I);
482
482
  };
483
483
  D.install = (s) => {
484
484
  s.component(D.name, D);
@@ -486,8 +486,8 @@ D.install = (s) => {
486
486
  E.install = (s) => {
487
487
  s.component(E.name, E);
488
488
  };
489
- C.install = (s) => {
490
- s.component(C.name, C);
489
+ w.install = (s) => {
490
+ s.component(w.name, w);
491
491
  };
492
492
  const St = ["onClick"], zt = {
493
493
  key: 0,
@@ -500,7 +500,7 @@ const St = ["onClick"], zt = {
500
500
  class: "cu-tag badge"
501
501
  }, Dt = {
502
502
  name: "TNavBar"
503
- }, A = /* @__PURE__ */ f({
503
+ }, U = /* @__PURE__ */ f({
504
504
  ...Dt,
505
505
  props: {
506
506
  bg: { default: "white" },
@@ -509,77 +509,71 @@ const St = ["onClick"], zt = {
509
509
  items: { default: () => [
510
510
  {
511
511
  icon: "homefill",
512
- label: "首页",
513
- path: "/home",
514
- active: !0
512
+ label: "首页"
515
513
  },
516
514
  {
517
515
  icon: "similar",
518
- label: "分类",
519
- path: "/category"
516
+ label: "分类"
520
517
  },
521
518
  {
522
519
  img: "https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",
523
- label: "积分",
524
- path: "/points"
520
+ label: "积分"
525
521
  },
526
522
  {
527
523
  icon: "cart",
528
524
  label: "购物车",
529
- path: "/cart",
530
525
  badge: 99
531
526
  },
532
527
  {
533
528
  icon: "my",
534
- label: "我的",
535
- path: "/profile"
529
+ label: "我的"
536
530
  }
537
531
  ] },
538
532
  isFoot: { type: Boolean, default: !1 },
539
- onItemClick: {},
540
- router: {},
541
- route: {}
533
+ activeIndex: { default: 0 },
534
+ onItemClick: { type: Function, default: () => {
535
+ } }
542
536
  },
543
537
  setup(s) {
544
- const e = s, r = (a) => a ? e.route.path.startsWith(a) : !1, t = (a) => {
545
- a.path && e.router.push(a.path), e.onItemClick && e.onItemClick(a);
538
+ const e = s, r = (t, a) => {
539
+ e.onItemClick && e.onItemClick(t, a);
546
540
  };
547
- return (a, d) => (n(), l("div", {
548
- class: i(["cu-bar tabbar", `bg-${a.bg} ${a.isFoot ? "foot" : ""}`])
541
+ return (t, a) => (n(), l("div", {
542
+ class: i(["cu-bar tabbar", `bg-${t.bg} ${t.isFoot ? "foot" : ""}`])
549
543
  }, [
550
- (n(!0), l(g, null, m(a.items, (p, _) => (n(), l("div", {
551
- key: _,
552
- class: i(["action", `text-${r(p.path) ? a.activeColor : a.color}`]),
553
- onClick: (I) => t(p)
544
+ (n(!0), l(g, null, m(t.items, (u, p) => (n(), l("div", {
545
+ key: p,
546
+ class: i(["action", `text-${p === t.activeIndex ? t.activeColor : t.color}`]),
547
+ onClick: (_) => r(u, p)
554
548
  }, [
555
- p.img ? (n(), l("div", zt, [
549
+ u.img ? (n(), l("div", zt, [
556
550
  o("img", {
557
- src: p.img,
551
+ src: u.img,
558
552
  style: { width: "21px", height: "21px" },
559
553
  class: "radius"
560
554
  }, null, 8, qt),
561
- p.badge ? (n(), l("div", Vt, c(p.badge), 1)) : u("", !0)
555
+ u.badge ? (n(), l("div", Vt, c(u.badge), 1)) : d("", !0)
562
556
  ])) : (n(), l("div", {
563
557
  key: 1,
564
- class: i(`cuIcon-${p.icon}`)
558
+ class: i(`cuIcon-${u.icon}`)
565
559
  }, [
566
- p.badge ? (n(), l("div", Nt, c(p.badge), 1)) : u("", !0)
560
+ u.badge ? (n(), l("div", Nt, c(u.badge), 1)) : d("", !0)
567
561
  ], 2)),
568
- o("div", null, c(p.label), 1)
562
+ o("div", null, c(u.label), 1)
569
563
  ], 10, St))), 128))
570
564
  ], 2));
571
565
  }
572
566
  });
573
- A.install = (s) => {
574
- s.component(A.name, A);
567
+ U.install = (s) => {
568
+ s.component(U.name, U);
575
569
  };
576
570
  const Et = {
577
571
  key: 0,
578
572
  class: "action"
579
- }, At = { key: 1 }, Ut = { class: "content text-bold" }, Lt = {
573
+ }, Ut = { key: 1 }, At = { class: "content text-bold" }, Lt = {
580
574
  key: 2,
581
575
  class: "action"
582
- }, Mt = { name: "TTopBar" }, U = /* @__PURE__ */ f({
576
+ }, Mt = { name: "TTopBar" }, A = /* @__PURE__ */ f({
583
577
  ...Mt,
584
578
  props: {
585
579
  title: {},
@@ -599,25 +593,25 @@ const Et = {
599
593
  e.leftIcon ? (n(), l("text", {
600
594
  key: 0,
601
595
  class: i(`cuIcon-${e.leftIcon} text-${e.leftIconColor}`)
602
- }, null, 2)) : u("", !0),
603
- e.leftText ? (n(), l("span", At, c(e.leftText), 1)) : u("", !0)
604
- ])) : u("", !0),
596
+ }, null, 2)) : d("", !0),
597
+ e.leftText ? (n(), l("span", Ut, c(e.leftText), 1)) : d("", !0)
598
+ ])) : d("", !0),
605
599
  e.avatarUrl ? (n(), l("div", {
606
600
  key: 1,
607
601
  class: "cu-avatar round",
608
602
  style: v({ backgroundImage: `url(${e.avatarUrl})` })
609
- }, null, 4)) : u("", !0),
610
- o("div", Ut, c(e.title), 1),
603
+ }, null, 4)) : d("", !0),
604
+ o("div", At, c(e.title), 1),
611
605
  e.rightIcon ? (n(), l("div", Lt, [
612
606
  o("text", {
613
607
  class: i(`cuIcon-${e.rightIcon} text-${e.rightIconColor}`)
614
608
  }, null, 2)
615
- ])) : u("", !0)
609
+ ])) : d("", !0)
616
610
  ], 2));
617
611
  }
618
612
  });
619
- U.install = (s) => {
620
- s.component(U.name, U);
613
+ A.install = (s) => {
614
+ s.component(A.name, A);
621
615
  };
622
616
  const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot = { class: "action" }, Rt = {
623
617
  key: 0,
@@ -642,14 +636,14 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
642
636
  }, t = () => {
643
637
  e.value = 0;
644
638
  };
645
- return (a, d) => (n(), l("div", {
639
+ return (a, u) => (n(), l("div", {
646
640
  class: i(["cu-bar", `bg-${a.bgColor}`, "search"])
647
641
  }, [
648
642
  a.avatarUrl ? (n(), l("div", {
649
643
  key: 0,
650
644
  class: "cu-avatar round",
651
645
  style: v({ backgroundImage: `url(${a.avatarUrl})` })
652
- }, null, 4)) : u("", !0),
646
+ }, null, 4)) : d("", !0),
653
647
  o("div", {
654
648
  class: i(["search-form", a.borderRadiusClass])
655
649
  }, [
@@ -665,16 +659,16 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
665
659
  ], 2),
666
660
  o("div", Ot, [
667
661
  a.buttonText ? (n(), l("button", Rt, c(a.buttonText), 1)) : (n(), l(g, { key: 1 }, [
668
- a.location ? (n(), l("text", Gt, c(a.location), 1)) : u("", !0),
662
+ a.location ? (n(), l("text", Gt, c(a.location), 1)) : d("", !0),
669
663
  a.locationIcon ? (n(), l("text", {
670
664
  key: 1,
671
665
  class: i(`cuIcon-${a.locationIcon}`)
672
- }, null, 2)) : u("", !0),
666
+ }, null, 2)) : d("", !0),
673
667
  a.actionIcon ? (n(), l("text", {
674
668
  key: 2,
675
669
  class: i(`cuIcon-${a.actionIcon}`)
676
- }, null, 2)) : u("", !0),
677
- a.actionText ? (n(), l("text", Xt, c(a.actionText), 1)) : u("", !0)
670
+ }, null, 2)) : d("", !0),
671
+ a.actionText ? (n(), l("text", Xt, c(a.actionText), 1)) : d("", !0)
678
672
  ], 64))
679
673
  ])
680
674
  ], 2));
@@ -683,13 +677,13 @@ const Ft = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), Ot =
683
677
  L.install = (s) => {
684
678
  s.component(L.name, L);
685
679
  };
686
- const Pt = { class: "cu-bar input" }, Wt = {
680
+ const Pt = { class: "cu-bar input" }, Ht = {
687
681
  key: 0,
688
682
  class: "action"
689
- }, Ht = {
683
+ }, Jt = {
690
684
  key: 1,
691
685
  class: "action"
692
- }, Jt = { class: "action" }, Qt = { class: "cu-btn bg-green shadow-blur" }, Yt = { name: "TInputBar" }, M = /* @__PURE__ */ f({
686
+ }, Qt = { class: "action" }, Wt = { class: "cu-btn bg-green shadow-blur" }, Yt = { name: "TInputBar" }, M = /* @__PURE__ */ f({
693
687
  ...Yt,
694
688
  props: {
695
689
  leftIcon: {},
@@ -703,17 +697,17 @@ const Pt = { class: "cu-bar input" }, Wt = {
703
697
  }, t = () => {
704
698
  e.value = 0;
705
699
  };
706
- return (a, d) => (n(), l("div", Pt, [
707
- a.leftIcon ? (n(), l("div", Wt, [
700
+ return (a, u) => (n(), l("div", Pt, [
701
+ a.leftIcon ? (n(), l("div", Ht, [
708
702
  o("text", {
709
703
  class: i(`cuIcon-${a.leftIcon} text-grey`)
710
704
  }, null, 2)
711
- ])) : u("", !0),
712
- a.middleIcon ? (n(), l("div", Ht, [
705
+ ])) : d("", !0),
706
+ a.middleIcon ? (n(), l("div", Jt, [
713
707
  o("text", {
714
708
  class: i(`cuIcon-${a.middleIcon} text-grey`)
715
709
  }, null, 2)
716
- ])) : u("", !0),
710
+ ])) : d("", !0),
717
711
  o("input", {
718
712
  onFocus: r,
719
713
  onBlur: t,
@@ -722,12 +716,12 @@ const Pt = { class: "cu-bar input" }, Wt = {
722
716
  maxlength: "300",
723
717
  "cursor-spacing": "10"
724
718
  }, null, 32),
725
- o("div", Jt, [
719
+ o("div", Qt, [
726
720
  o("text", {
727
721
  class: i(`cuIcon-${a.rightIcon} text-grey`)
728
722
  }, null, 2)
729
723
  ]),
730
- o("button", Qt, c(a.buttonText), 1)
724
+ o("button", Wt, c(a.buttonText), 1)
731
725
  ]));
732
726
  }
733
727
  });
@@ -748,11 +742,11 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
748
742
  },
749
743
  emits: ["update:modelValue", "select"],
750
744
  setup(s, { emit: e }) {
751
- const r = j([]), t = j(0), a = e, d = (b, T) => {
745
+ const r = j([]), t = j(0), a = e, u = (b, T) => {
752
746
  t.value = b, a("update:modelValue", b), a("select", T);
753
747
  };
754
748
  ee("registerTab", (b) => (r.value.push(b), r.value.length - 1)), ee("activeTab", t);
755
- const _ = s, I = y(() => _.center !== !1 ? "justify-content:center;" : `justify-content:${_.mode}`);
749
+ const _ = s, C = y(() => _.center !== !1 ? "justify-content:center;" : `justify-content:${_.mode}`);
756
750
  return ce(
757
751
  () => _.modelValue,
758
752
  (b) => {
@@ -763,17 +757,17 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
763
757
  }, [
764
758
  o("div", {
765
759
  class: i(["nav flex", [, `bg-${b.bg}`, `text-${b.text}`]]),
766
- style: v(I.value)
760
+ style: v(C.value)
767
761
  }, [
768
762
  (n(!0), l(g, null, m(r.value, (B, S) => (n(), l("div", {
769
763
  class: i(["cu-item", [t.value === S ? "cur text-blue" : ""]]),
770
764
  key: S,
771
- onClick: (no) => d(S, B)
765
+ onClick: (no) => u(S, B)
772
766
  }, [
773
767
  B.icon ? (n(), l("i", {
774
768
  key: 0,
775
769
  class: i(`cuIcon-${B.icon} text-${t.value === S ? "blue" : B.iconColor}`)
776
- }, null, 2)) : u("", !0),
770
+ }, null, 2)) : d("", !0),
777
771
  h(" " + c(B.label), 1)
778
772
  ], 10, Zt))), 128))
779
773
  ], 6),
@@ -795,9 +789,9 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
795
789
  iconColor: { default: "black" }
796
790
  },
797
791
  setup(s) {
798
- const e = s, r = Q(
792
+ const e = s, r = W(
799
793
  "registerTab"
800
- ), t = Q("activeTab"), a = j(null), d = y(() => (t == null ? void 0 : t.value) === a.value), p = y(() => ({
794
+ ), t = W("activeTab"), a = j(null), u = y(() => (t == null ? void 0 : t.value) === a.value), p = y(() => ({
801
795
  label: e.label,
802
796
  icon: e.icon,
803
797
  iconColor: e.iconColor
@@ -808,11 +802,11 @@ const Zt = ["onClick"], es = { class: "tab-content" }, ts = {
808
802
  icon: e.icon,
809
803
  iconColor: e.iconColor
810
804
  }));
811
- }), (_, I) => re((n(), l("div", null, [
805
+ }), (_, C) => re((n(), l("div", null, [
812
806
  $(_.$slots, "default"),
813
807
  $(_.$slots, "custom", { tab: p.value })
814
808
  ], 512)), [
815
- [ue, d.value]
809
+ [ue, u.value]
816
810
  ]);
817
811
  }
818
812
  });
@@ -846,7 +840,7 @@ const os = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
846
840
  Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
847
841
  Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
848
842
  function ns() {
849
- return Q(os);
843
+ return W(os);
850
844
  }
851
845
  const ls = ["onClick"], as = {
852
846
  key: 0,
@@ -938,21 +932,21 @@ const ls = ["onClick"], as = {
938
932
  return;
939
933
  }
940
934
  };
941
- return (a, d) => (n(), l("div", {
935
+ return (a, u) => (n(), l("div", {
942
936
  class: i(["cu-list grid", ["col-" + a.gridCol, a.gridBorder ? "" : "no-border"]])
943
937
  }, [
944
938
  (n(!0), l(g, null, m(a.cuIconList, (p, _) => (n(), l("div", {
945
939
  class: "cu-item",
946
940
  key: _,
947
941
  style: v(`width: calc(100% / ${a.gridCol})`),
948
- onClick: (I) => t(p)
942
+ onClick: (C) => t(p)
949
943
  }, [
950
944
  o("div", {
951
945
  class: i(["cuIcon-" + p.cuIcon, "text-" + p.color])
952
946
  }, [
953
947
  p.badge != 0 ? (n(), l("div", as, [
954
- p.badge != 1 ? (n(), l("i", cs, c((p.badge || 0) > 99 ? "99+" : p.badge), 1)) : u("", !0)
955
- ])) : u("", !0)
948
+ p.badge != 1 ? (n(), l("i", cs, c((p.badge || 0) > 99 ? "99+" : p.badge), 1)) : d("", !0)
949
+ ])) : d("", !0)
956
950
  ], 2),
957
951
  o("text", null, c(p.name), 1)
958
952
  ], 12, ls))), 128))
@@ -962,7 +956,7 @@ const ls = ["onClick"], as = {
962
956
  R.install = (s) => {
963
957
  s.component(R.name, R);
964
958
  };
965
- const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey" }, ps = { class: "action" }, _s = {
959
+ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey" }, _s = { class: "action" }, ps = {
966
960
  key: 1,
967
961
  class: "text-grey text-sm"
968
962
  }, fs = ["onClick"], gs = {
@@ -1052,7 +1046,7 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1052
1046
  class: i(["cu-list menu", [e.menuBorder ? "sm-border" : "", e.menuCard ? "card-menu" : ""]])
1053
1047
  }, [
1054
1048
  (n(!0), l(g, null, m(e.menuItems, (t, a) => {
1055
- var d;
1049
+ var u;
1056
1050
  return n(), l("div", {
1057
1051
  key: a,
1058
1052
  class: i(["cu-item", e.menuArrow ? "arrow" : ""])
@@ -1063,46 +1057,46 @@ const rs = { class: "content" }, us = ["src", "alt"], ds = { class: "text-grey"
1063
1057
  class: "icon",
1064
1058
  name: t.icon.name,
1065
1059
  color: t.icon.color
1066
- }, null, 8, ["name", "color"])) : u("", !0),
1060
+ }, null, 8, ["name", "color"])) : d("", !0),
1067
1061
  t.img ? (n(), l("img", {
1068
1062
  key: 1,
1069
1063
  class: "icon",
1070
1064
  src: t.img.url,
1071
1065
  alt: t.img.alt
1072
- }, null, 8, us)) : u("", !0),
1066
+ }, null, 8, us)) : d("", !0),
1073
1067
  o("text", ds, c(t.title), 1)
1074
1068
  ]),
1075
- o("div", ps, [
1069
+ o("div", _s, [
1076
1070
  t.group ? (n(), k(D, {
1077
1071
  key: 0,
1078
1072
  urls: t.group
1079
- }, null, 8, ["urls"])) : u("", !0),
1080
- t.group ? (n(), l("text", _s, c(t.group.length) + "人", 1)) : u("", !0),
1073
+ }, null, 8, ["urls"])) : d("", !0),
1074
+ t.group ? (n(), l("text", ps, c(t.group.length) + "人", 1)) : d("", !0),
1081
1075
  t.btn ? (n(), l("button", {
1082
1076
  key: 2,
1083
1077
  class: i(["cu-btn round shadow", `bg-${t.btn.bg}`]),
1084
- onClick: (d = t.btn) == null ? void 0 : d.event
1078
+ onClick: (u = t.btn) == null ? void 0 : u.event
1085
1079
  }, [
1086
1080
  t.btn.icon ? (n(), k(x, {
1087
1081
  key: 0,
1088
1082
  name: t.btn.icon,
1089
1083
  color: "white"
1090
- }, null, 8, ["name"])) : u("", !0),
1084
+ }, null, 8, ["name"])) : d("", !0),
1091
1085
  h(" " + c(t.btn.text), 1)
1092
- ], 10, fs)) : u("", !0),
1093
- t.tags ? (n(!0), l(g, { key: 3 }, m(t.tags, (p, _) => (n(), k(C, {
1086
+ ], 10, fs)) : d("", !0),
1087
+ t.tags ? (n(!0), l(g, { key: 3 }, m(t.tags, (p, _) => (n(), k(w, {
1094
1088
  size: p.size,
1095
1089
  key: _,
1096
1090
  bg: p.bg,
1097
1091
  light: p.light,
1098
1092
  shape: "round"
1099
1093
  }, {
1100
- default: J(() => [
1094
+ default: Q(() => [
1101
1095
  h(c(p.text), 1)
1102
1096
  ]),
1103
1097
  _: 2
1104
- }, 1032, ["size", "bg", "light"]))), 128)) : u("", !0),
1105
- t.text ? (n(), l("text", gs, c(t.text), 1)) : u("", !0)
1098
+ }, 1032, ["size", "bg", "light"]))), 128)) : d("", !0),
1099
+ t.text ? (n(), l("text", gs, c(t.text), 1)) : d("", !0)
1106
1100
  ])
1107
1101
  ], 2);
1108
1102
  }), 128))
@@ -1135,7 +1129,7 @@ const ms = {
1135
1129
  class: i(["cu-avatar", e.userinfo.avatarShape, "lg"]),
1136
1130
  style: v({ backgroundImage: `url(${e.userinfo.avatar})` })
1137
1131
  }, [
1138
- e.badge ? (n(), l("div", ms, c(e.badge), 1)) : u("", !0)
1132
+ e.badge ? (n(), l("div", ms, c(e.badge), 1)) : d("", !0)
1139
1133
  ], 6),
1140
1134
  o("div", bs, [
1141
1135
  o("div", vs, [
@@ -1143,7 +1137,7 @@ const ms = {
1143
1137
  e.userinfo.tag ? (n(), l("div", {
1144
1138
  key: 0,
1145
1139
  class: i(["cu-tag", "round", `bg-${e.userinfo.tagColor}`, "sm"])
1146
- }, c(e.userinfo.tag), 3)) : u("", !0)
1140
+ }, c(e.userinfo.tag), 3)) : d("", !0)
1147
1141
  ]),
1148
1142
  o("div", ys, [
1149
1143
  o("div", ks, [
@@ -1159,7 +1153,7 @@ const ms = {
1159
1153
  }, c(e.unread), 3)) : e.icon ? (n(), l("div", {
1160
1154
  key: 1,
1161
1155
  class: i(e.iconClass)
1162
- }, null, 2)) : u("", !0)
1156
+ }, null, 2)) : d("", !0)
1163
1157
  ])
1164
1158
  ], 2));
1165
1159
  }
@@ -1183,7 +1177,7 @@ const ms = {
1183
1177
  isDisconnected: t.isDisconnected,
1184
1178
  isCurrent: t.isCurrent
1185
1179
  }, {
1186
- default: J(() => [
1180
+ default: Q(() => [
1187
1181
  $(e.$slots, "default", { item: t }, () => [
1188
1182
  h(c(t.content), 1)
1189
1183
  ])
@@ -1205,7 +1199,7 @@ const js = { class: "cu-chat" }, Ss = {
1205
1199
  }, qs = /* @__PURE__ */ o("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), Vs = { class: "main" }, Ns = ["src"], Ds = {
1206
1200
  key: 2,
1207
1201
  class: "content shadow"
1208
- }, Es = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), As = { class: "action text-bold text-grey" }, Us = {
1202
+ }, Es = /* @__PURE__ */ o("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), Us = { class: "action text-bold text-grey" }, As = {
1209
1203
  key: 3,
1210
1204
  class: "content shadow"
1211
1205
  }, Ls = /* @__PURE__ */ o("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), Ms = { class: "content shadow" }, Fs = /* @__PURE__ */ o("div", { class: "action text-grey" }, [
@@ -1228,7 +1222,7 @@ const js = { class: "cu-chat" }, Ss = {
1228
1222
  h(" " + c(t.content), 1)
1229
1223
  ]))
1230
1224
  ], 64)) : (n(), l(g, { key: 1 }, [
1231
- t.self ? u("", !0) : (n(), k(w, {
1225
+ t.self ? d("", !0) : (n(), k(I, {
1232
1226
  key: 0,
1233
1227
  mode: "radius",
1234
1228
  url: t.avatar
@@ -1246,20 +1240,20 @@ const js = { class: "cu-chat" }, Ss = {
1246
1240
  style: { "max-width": "100%" }
1247
1241
  }, null, 8, Ns)) : t.type === "audio" ? (n(), l("div", Ds, [
1248
1242
  Es,
1249
- o("div", As, c(t.content), 1)
1250
- ])) : t.type === "location" ? (n(), l("div", Us, [
1243
+ o("div", Us, c(t.content), 1)
1244
+ ])) : t.type === "location" ? (n(), l("div", As, [
1251
1245
  Ls,
1252
1246
  h(" " + c(t.content), 1)
1253
1247
  ])) : t.type === "warning" ? (n(), l(g, { key: 4 }, [
1254
1248
  o("div", Ms, c(t.content), 1),
1255
1249
  Fs
1256
- ], 64)) : u("", !0)
1250
+ ], 64)) : d("", !0)
1257
1251
  ]),
1258
- t.self ? (n(), k(w, {
1252
+ t.self ? (n(), k(I, {
1259
1253
  key: 1,
1260
1254
  mode: "radius",
1261
1255
  url: t.avatar
1262
- }, null, 8, ["url"])) : u("", !0),
1256
+ }, null, 8, ["url"])) : d("", !0),
1263
1257
  o("div", Os, c(t.date), 1)
1264
1258
  ], 64))
1265
1259
  ], 2))), 128))
@@ -1296,13 +1290,13 @@ const Gs = { class: "cu-time" }, Xs = {
1296
1290
  }
1297
1291
  }
1298
1292
  return (t, a) => (n(), l("div", null, [
1299
- (n(!0), l(g, null, m(t.items, (d, p) => (n(), l("div", {
1293
+ (n(!0), l(g, null, m(t.items, (u, p) => (n(), l("div", {
1300
1294
  key: p,
1301
1295
  class: "cu-timeline"
1302
1296
  }, [
1303
- o("div", Gs, c(d.date), 1),
1304
- (n(!0), l(g, null, m(d.items, (_) => {
1305
- var I, b, T;
1297
+ o("div", Gs, c(u.date), 1),
1298
+ (n(!0), l(g, null, m(u.items, (_) => {
1299
+ var C, b, T;
1306
1300
  return n(), l("div", {
1307
1301
  key: _.key,
1308
1302
  class: i(["cu-item", r(_)])
@@ -1310,25 +1304,25 @@ const Gs = { class: "cu-time" }, Xs = {
1310
1304
  o("div", {
1311
1305
  class: i(["content", `bg-${_.bg || "gray"}`, "shadow-blur"])
1312
1306
  }, [
1313
- (I = _ == null ? void 0 : _.capsule) != null && I.list && _.capsule.list.length ? (n(), l("div", Xs, [
1314
- te(C, {
1307
+ (C = _ == null ? void 0 : _.capsule) != null && C.list && _.capsule.list.length ? (n(), l("div", Xs, [
1308
+ te(w, {
1315
1309
  bg: e((b = _.capsule) == null ? void 0 : b.color)
1316
1310
  }, {
1317
- default: J(() => [
1311
+ default: Q(() => [
1318
1312
  h(c(_.capsule.list[0]), 1)
1319
1313
  ]),
1320
1314
  _: 2
1321
1315
  }, 1032, ["bg"]),
1322
- te(C, {
1316
+ te(w, {
1323
1317
  bg: e((T = _.capsule) == null ? void 0 : T.color),
1324
1318
  light: !0
1325
1319
  }, {
1326
- default: J(() => [
1320
+ default: Q(() => [
1327
1321
  h(c(_.capsule.list[1]), 1)
1328
1322
  ]),
1329
1323
  _: 2
1330
1324
  }, 1032, ["bg"])
1331
- ])) : u("", !0),
1325
+ ])) : d("", !0),
1332
1326
  o("div", {
1333
1327
  class: i(_.capsule ? "margin-top-sm" : "")
1334
1328
  }, [
@@ -1346,10 +1340,10 @@ const Gs = { class: "cu-time" }, Xs = {
1346
1340
  P.install = (s) => {
1347
1341
  s.component(P.name, P);
1348
1342
  };
1349
- const Ps = { class: "bg-white padding" }, Ws = ["data-index"], Hs = {
1343
+ const Ps = { class: "bg-white padding" }, Hs = ["data-index"], Js = {
1350
1344
  name: "TSteps"
1351
- }, W = /* @__PURE__ */ f({
1352
- ...Hs,
1345
+ }, H = /* @__PURE__ */ f({
1346
+ ...Js,
1353
1347
  props: {
1354
1348
  steps: {},
1355
1349
  modelValue: {},
@@ -1362,28 +1356,28 @@ const Ps = { class: "bg-white padding" }, Ws = ["data-index"], Hs = {
1362
1356
  o("div", {
1363
1357
  class: i(["cu-steps", { "scroll-x": r.scrollX }])
1364
1358
  }, [
1365
- (n(!0), l(g, null, m(r.steps, (a, d) => (n(), l("div", {
1366
- class: i(["cu-item", d > r.modelValue ? "" : `text-${r.color}`]),
1367
- key: d
1359
+ (n(!0), l(g, null, m(r.steps, (a, u) => (n(), l("div", {
1360
+ class: i(["cu-item", u > r.modelValue ? "" : `text-${r.color}`]),
1361
+ key: u
1368
1362
  }, [
1369
1363
  o("text", {
1370
1364
  class: i(a.cuIcon ? "cuIcon-" + a.cuIcon : "num"),
1371
- "data-index": d + 1
1372
- }, c(a.cuIcon ? "" : d + 1), 11, Ws),
1365
+ "data-index": u + 1
1366
+ }, c(a.cuIcon ? "" : u + 1), 11, Hs),
1373
1367
  h(" " + c(a.name), 1)
1374
1368
  ], 2))), 128))
1375
1369
  ], 2)
1376
1370
  ]));
1377
1371
  }
1378
1372
  });
1379
- W.install = (s) => {
1380
- s.component(W.name, W);
1373
+ H.install = (s) => {
1374
+ s.component(H.name, H);
1381
1375
  };
1382
- const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end padding-right-sm" }, Ys = { class: "content" }, Zs = /* @__PURE__ */ o("text", { class: "cuIcon-close text-red" }, null, -1), eo = [
1376
+ const Qs = { class: "cu-dialog" }, Ws = { class: "cu-bar bg-white justify-end padding-right-sm" }, Ys = { class: "content" }, Zs = /* @__PURE__ */ o("text", { class: "cuIcon-close text-red" }, null, -1), eo = [
1383
1377
  Zs
1384
1378
  ], to = { class: "padding-xl" }, so = {
1385
1379
  name: "DrawerModal"
1386
- }, H = /* @__PURE__ */ f({
1380
+ }, J = /* @__PURE__ */ f({
1387
1381
  ...so,
1388
1382
  props: {
1389
1383
  title: {},
@@ -1394,11 +1388,11 @@ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end pa
1394
1388
  const r = e, t = () => {
1395
1389
  r("update:modelValue", !1);
1396
1390
  };
1397
- return (a, d) => (n(), l("div", {
1391
+ return (a, u) => (n(), l("div", {
1398
1392
  class: i(["cu-modal", a.modelValue ? "show" : ""])
1399
1393
  }, [
1400
- o("div", Js, [
1401
- o("div", Qs, [
1394
+ o("div", Qs, [
1395
+ o("div", Ws, [
1402
1396
  o("div", Ys, c(a.title), 1),
1403
1397
  o("div", {
1404
1398
  class: "action",
@@ -1414,35 +1408,35 @@ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end pa
1414
1408
  ], 2));
1415
1409
  }
1416
1410
  });
1417
- H.install = (s) => {
1418
- s.component(H.name, H);
1411
+ J.install = (s) => {
1412
+ s.component(J.name, J);
1419
1413
  };
1420
1414
  const oo = (s) => {
1421
- s.use(x), s.use(N), s.use(w), s.use(z), s.use(q), s.use(V), s.use(A), s.use(U), s.use(L), s.use(M), s.use(F), s.use(O), s.use(R), s.use(G), s.use(E), s.use(C), s.use(X), s.use(K), s.use(P), s.use(W), s.use(H);
1415
+ s.use(x), s.use(N), s.use(I), s.use(z), s.use(q), s.use(V), s.use(U), s.use(A), s.use(L), s.use(M), s.use(F), s.use(O), s.use(R), s.use(G), s.use(E), s.use(w), s.use(X), s.use(K), s.use(P), s.use(H), s.use(J);
1422
1416
  }, ao = {
1423
1417
  install: oo
1424
1418
  };
1425
1419
  export {
1426
1420
  X as ChatList,
1427
1421
  K as ChatRoom,
1428
- H as DrawerModal,
1422
+ J as DrawerModal,
1429
1423
  R as GridGroup,
1430
1424
  G as Menu,
1431
- w as TAvatar,
1425
+ I as TAvatar,
1432
1426
  E as TButton,
1433
1427
  x as TIcon,
1434
1428
  M as TInputBar,
1435
- A as TNavBar,
1429
+ U as TNavBar,
1436
1430
  z as TNavCard,
1437
1431
  q as TNewCard,
1438
1432
  L as TSearchBar,
1439
1433
  V as TShareCard,
1440
- W as TSteps,
1434
+ H as TSteps,
1441
1435
  O as TTab,
1442
1436
  F as TTabs,
1443
- C as TTag,
1437
+ w as TTag,
1444
1438
  N as TTitle,
1445
- U as TTopBar,
1439
+ A as TTopBar,
1446
1440
  P as TimeLine,
1447
1441
  ao as default
1448
1442
  };
@@ -1,5 +1,5 @@
1
- (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.TempColorUI={},r.Vue))})(this,function(r,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+o.name,class:e.normalizeClass(["nav-li","bg-"+o.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(o.title),1),e.createElementVNode("div",X,e.toDisplayString(o.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+o.cuIcon)},null,2)],14,G))),128))]))}});k.install=l=>{l.component(k.name,k)};const q=l=>(e.pushScopeId("data-v-bbdb83ff"),l=l(),e.popScopeId(),l),W={class:"cu-item shadow"},H={class:"title"},J={class:"text-cut"},Q={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",W,[e.createElementVNode("div",H,[e.createElementVNode("div",J,e.toDisplayString(t.title),1)]),e.createElementVNode("div",Q,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(l,t)=>{const a=l.__vccOpts||l;for(const[o,n]of t)a[o]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=l=>{l.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(o.author),1),e.createElementVNode("div",$e,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=o.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=l=>{l.component(h.name,h)};const Te={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function De(l,t,a="px"){if(typeof t=="number")return`${l}: ${t}${a};`;const o=Te[t];return o?`${l}: ${o};`:""}function xe(l){return De("font-size",l)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(l){const t=l,a=e.computed(()=>xe(t.size));return(o,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"tib text-xl text-bold text-blue"},Pe={class:"tib text-ABC text-blue"},Xe={class:"action title-style-3"},Ke={key:5,class:"cu-bar bg-white"},We={class:"action"},He={key:6,class:"cu-bar bg-white solid-bottom"},Je={class:"action"},Qe={class:"action"},Ye={name:"TTitle"},y=e.defineComponent({...Ye,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(l){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",Ge,e.toDisplayString(t.title),1),e.createElementVNode("div",Pe,e.toDisplayString(t.deputy),1)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",We,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",He,[e.createElementVNode("div",Je,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Qe,[e.renderSlot(t.$slots,"action")])]))}}),Ze={name:"TAvatar"},m=e.defineComponent({...Ze,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(l){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ve={class:"cu-avatar-group"},et={name:"TAvatarGroup"},F=e.defineComponent({...et,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),tt=["disabled"],ot={key:1},lt={name:"TButton"},b=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,tt))}}),nt={key:0},at={name:"TTag"},st=e.defineComponent({...at,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light?"light":"",`${t.line?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value)},[e.renderSlot(n.$slots,"default",{},void 0,!0),n.text?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}}),p=U(st,[["__scopeId","data-v-3c2b82ce"]]);g.install=l=>{l.component(g.name,g)},y.install=l=>{l.component(y.name,y)},m.install=l=>{l.component(m.name,m)},F.install=l=>{l.component(F.name,F)},b.install=l=>{l.component(b.name,b)},p.install=l=>{l.component(p.name,p)};const ct=["onClick"],rt={key:0,class:"cuIcon-cu-image"},it=["src"],dt={key:0,class:"cu-tag badge"},mt={key:0,class:"cu-tag badge"},pt={name:"TNavBar"},B=e.defineComponent({...pt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页",path:"/home",active:!0},{icon:"similar",label:"分类",path:"/category"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分",path:"/points"},{icon:"cart",label:"购物车",path:"/cart",badge:99},{icon:"my",label:"我的",path:"/profile"}]},isFoot:{type:Boolean,default:!1},onItemClick:{},router:{},route:{}},setup(l){const t=l,a=n=>n?t.route.path.startsWith(n):!1,o=n=>{n.path&&t.router.push(n.path),t.onItemClick&&t.onItemClick(n)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${n.bg} ${n.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(c,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${a(c.path)?n.activeColor:n.color}`]),onClick:f=>o(c)},[c.img?(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("img",{src:c.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,it),c.badge?(e.openBlock(),e.createElementBlock("div",dt,e.toDisplayString(c.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${c.icon}`)},[c.badge?(e.openBlock(),e.createElementBlock("div",mt,e.toDisplayString(c.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(c.label),1)],10,ct))),128))],2))}});B.install=l=>{l.component(B.name,B)};const gt={key:0,class:"action"},ft={key:1},kt={class:"content text-bold"},_t={key:2,class:"action"},ht={name:"TTopBar"},E=e.defineComponent({...ht,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",gt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",kt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=l=>{l.component(E.name,E)};const yt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),bt={class:"action"},Bt={key:0,class:"cu-btn bg-green shadow-blur round"},Et={key:0},$t={key:3},Ct={name:"TSearchBar"},$=e.defineComponent({...Ct,props:{bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[yt,e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,type:"text",placeholder:"搜索图片、文章、视频","confirm-type":"search"},null,32)],2),e.createElementVNode("div",bt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",Bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",$t,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=l=>{l.component($.name,$)};const Vt={class:"cu-bar input"},Nt={key:0,class:"action"},ut={key:1,class:"action"},St={class:"action"},It={class:"cu-btn bg-green shadow-blur"},zt={name:"TInputBar"},C=e.defineComponent({...zt,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",St,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",It,e.toDisplayString(n.buttonText),1)]))}});C.install=l=>{l.component(C.name,C)};const wt=["onClick"],Tt={class:"tab-content"},Dt={name:"TTabs"},V=e.defineComponent({...Dt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"}},emits:["update:modelValue","select"],setup(l,{emit:t}){const a=e.ref([]),o=e.ref(0),n=t,s=(d,x)=>{o.value=d,n("update:modelValue",d),n("select",x)},c=d=>(a.value.push(d),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",o);const i=l,f=e.computed(()=>i.center!==!1?"justify-content:center;":`justify-content:${i.mode}`);return e.watch(()=>i.modelValue,d=>{o.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[o.value===L?"cur text-blue":""]]),key:L,onClick:qo=>s(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${o.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,wt))),128))],6),e.createElementVNode("div",Tt,[e.renderSlot(d.$slots,"default",{tab:a.value[o.value]}),e.createTextVNode("·")])],2))}}),xt={name:"TTab"},N=e.defineComponent({...xt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(l){const t=l,a=e.inject("registerTab"),o=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(o==null?void 0:o.value)===n.value),c=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(i,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(i.$slots,"default"),e.renderSlot(i.$slots,"custom",{tab:c.value})],512)),[[e.vShow,s.value]])}});V.install=l=>{l.component(V.name,V)},N.install=l=>{l.component(N.name,N)};/*!
1
+ (function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+o.name,class:e.normalizeClass(["nav-li","bg-"+o.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(o.title),1),e.createElementVNode("div",X,e.toDisplayString(o.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+o.cuIcon)},null,2)],14,G))),128))]))}});k.install=l=>{l.component(k.name,k)};const q=l=>(e.pushScopeId("data-v-bbdb83ff"),l=l(),e.popScopeId(),l),H={class:"cu-item shadow"},J={class:"title"},Q={class:"text-cut"},W={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",H,[e.createElementVNode("div",J,[e.createElementVNode("div",Q,e.toDisplayString(t.title),1)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(l,t)=>{const a=l.__vccOpts||l;for(const[o,n]of t)a[o]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=l=>{l.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(o.author),1),e.createElementVNode("div",$e,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=o.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=l=>{l.component(h.name,h)};const Te={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function De(l,t,a="px"){if(typeof t=="number")return`${l}: ${t}${a};`;const o=Te[t];return o?`${l}: ${o};`:""}function xe(l){return De("font-size",l)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(l){const t=l,a=e.computed(()=>xe(t.size));return(o,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"tib text-xl text-bold text-blue"},Pe={class:"tib text-ABC text-blue"},Xe={class:"action title-style-3"},Ke={key:5,class:"cu-bar bg-white"},He={class:"action"},Je={key:6,class:"cu-bar bg-white solid-bottom"},Qe={class:"action"},We={class:"action"},Ye={name:"TTitle"},y=e.defineComponent({...Ye,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(l){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",Ge,e.toDisplayString(t.title),1),e.createElementVNode("div",Pe,e.toDisplayString(t.deputy),1)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Xe,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",He,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",We,[e.renderSlot(t.$slots,"action")])]))}}),Ze={name:"TAvatar"},m=e.defineComponent({...Ze,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(l){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ve={class:"cu-avatar-group"},et={name:"TAvatarGroup"},F=e.defineComponent({...et,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),tt=["disabled"],ot={key:1},lt={name:"TButton"},b=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,tt))}}),nt={key:0},at={name:"TTag"},st=e.defineComponent({...at,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(l){const t=l,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light?"light":"",`${t.line?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(o.value)},[e.renderSlot(n.$slots,"default",{},void 0,!0),n.text?(e.openBlock(),e.createElementBlock("span",nt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}}),p=U(st,[["__scopeId","data-v-3c2b82ce"]]);g.install=l=>{l.component(g.name,g)},y.install=l=>{l.component(y.name,y)},m.install=l=>{l.component(m.name,m)},F.install=l=>{l.component(F.name,F)},b.install=l=>{l.component(b.name,b)},p.install=l=>{l.component(p.name,p)};const ct=["onClick"],rt={key:0,class:"cuIcon-cu-image"},it=["src"],dt={key:0,class:"cu-tag badge"},mt={key:0,class:"cu-tag badge"},pt={name:"TNavBar"},B=e.defineComponent({...pt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(l){const t=l,a=(o,n)=>{t.onItemClick&&t.onItemClick(o,n)};return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===o.activeIndex?o.activeColor:o.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,it),s.badge?(e.openBlock(),e.createElementBlock("div",dt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",mt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,ct))),128))],2))}});B.install=l=>{l.component(B.name,B)};const gt={key:0,class:"action"},ft={key:1},kt={class:"content text-bold"},_t={key:2,class:"action"},ht={name:"TTopBar"},E=e.defineComponent({...ht,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",gt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",kt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=l=>{l.component(E.name,E)};const yt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),bt={class:"action"},Bt={key:0,class:"cu-btn bg-green shadow-blur round"},Et={key:0},$t={key:3},Ct={name:"TSearchBar"},$=e.defineComponent({...Ct,props:{bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[yt,e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,type:"text",placeholder:"搜索图片、文章、视频","confirm-type":"search"},null,32)],2),e.createElementVNode("div",bt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",Bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",$t,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=l=>{l.component($.name,$)};const Vt={class:"cu-bar input"},Nt={key:0,class:"action"},ut={key:1,class:"action"},St={class:"action"},It={class:"cu-btn bg-green shadow-blur"},zt={name:"TInputBar"},C=e.defineComponent({...zt,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(l){const t=e.ref(0),a=n=>{t.value=n.detail.height},o=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Vt,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:o,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",St,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",It,e.toDisplayString(n.buttonText),1)]))}});C.install=l=>{l.component(C.name,C)};const wt=["onClick"],Tt={class:"tab-content"},Dt={name:"TTabs"},V=e.defineComponent({...Dt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"}},emits:["update:modelValue","select"],setup(l,{emit:t}){const a=e.ref([]),o=e.ref(0),n=t,s=(d,x)=>{o.value=d,n("update:modelValue",d),n("select",x)},i=d=>(a.value.push(d),a.value.length-1);e.provide("registerTab",i),e.provide("activeTab",o);const r=l,f=e.computed(()=>r.center!==!1?"justify-content:center;":`justify-content:${r.mode}`);return e.watch(()=>r.modelValue,d=>{o.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[o.value===L?"cur text-blue":""]]),key:L,onClick:qo=>s(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${o.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,wt))),128))],6),e.createElementVNode("div",Tt,[e.renderSlot(d.$slots,"default",{tab:a.value[o.value]}),e.createTextVNode("·")])],2))}}),xt={name:"TTab"},N=e.defineComponent({...xt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(l){const t=l,a=e.inject("registerTab"),o=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(o==null?void 0:o.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});V.install=l=>{l.component(V.name,V)},N.install=l=>{l.component(N.name,N)};/*!
2
2
  * vue-router v4.3.3
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */var A;(function(l){l.pop="pop",l.push="push"})(A||(A={}));var M;(function(l){l.back="back",l.forward="forward",l.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(l){l[l.aborted=4]="aborted",l[l.cancelled=8]="cancelled",l[l.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const jt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ft(){return e.inject(jt)}const Lt=["onClick"],qt={key:0,class:"cu-tag badge"},Ut={key:0},At={name:"GridGroup"},u=e.defineComponent({...At,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(l){const t=l,a=Ft(),o=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(c,i)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:i,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>o(c)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+c.cuIcon,"text-"+c.color])},[c.badge!=0?(e.openBlock(),e.createElementBlock("div",qt,[c.badge!=1?(e.openBlock(),e.createElementBlock("i",Ut,e.toDisplayString((c.badge||0)>99?"99+":c.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(c.name),1)],12,Lt))),128))],2))}});u.install=l=>{l.component(u.name,u)};const Mt={class:"content"},Ot=["src","alt"],Rt={class:"text-grey"},Gt={class:"action"},Pt={key:1,class:"text-grey text-sm"},Xt=["onClick"],Kt={key:4,class:"text-grey text-sm"},Wt={name:"Menu"},S=e.defineComponent({...Wt,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[t.menuBorder?"sm-border":"",t.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,(o,n)=>{var s;return e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["cu-item",t.menuArrow?"arrow":""])},[e.createElementVNode("div",Mt,[o.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:o.icon.name,color:o.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),o.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:o.img.url,alt:o.img.alt},null,8,Ot)):e.createCommentVNode("",!0),e.createElementVNode("text",Rt,e.toDisplayString(o.title),1)]),e.createElementVNode("div",Gt,[o.group?(e.openBlock(),e.createBlock(F,{key:0,urls:o.group},null,8,["urls"])):e.createCommentVNode("",!0),o.group?(e.openBlock(),e.createElementBlock("text",Pt,e.toDisplayString(o.group.length)+"人",1)):e.createCommentVNode("",!0),o.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${o.btn.bg}`]),onClick:(s=o.btn)==null?void 0:s.event},[o.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:o.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.btn.text),1)],10,Xt)):e.createCommentVNode("",!0),o.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(o.tags,(c,i)=>(e.openBlock(),e.createBlock(p,{size:c.size,key:i,bg:c.bg,light:c.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("text",Kt,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0)])],2)}),128))],2))}});S.install=l=>{l.component(S.name,S)};const Ht={key:0,class:"cu-tag badge"},Jt={class:"content"},Qt={class:"flex align-center"},Yt={class:"text-cut"},Zt={class:"text-gray text-sm flex"},vt={class:"text-cut"},eo={class:"action"},to={class:"text-grey text-xs"},oo=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",Yt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),lo={class:"cu-list menu-avatar"},no={name:"ChatList"},I=e.defineComponent({...no,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createBlock(oo,{key:n,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=l=>{l.component(I.name,I)};const ao={class:"cu-chat"},so={key:0,class:"cu-info round"},co={key:1,class:"cu-info"},ro=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),io={class:"main"},mo=["src"],po={key:2,class:"content shadow"},go=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),fo={class:"action text-bold text-grey"},ko={key:3,class:"content shadow"},_o=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),ho={class:"content shadow"},yo=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),bo={class:"date"},Bo={name:"ChatRoom"},z=e.defineComponent({...Bo,props:{messages:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:e.normalizeClass(["cu-item",{self:o.self}])},[o.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.self?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",co,[ro,e.createTextVNode(" "+e.toDisplayString(o.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",io,[o.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":o.self}])},[e.createElementVNode("text",null,e.toDisplayString(o.content),1)],2)):o.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.content,class:"radius",style:{"max-width":"100%"}},null,8,mo)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",po,[go,e.createElementVNode("div",fo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",ko,[_o,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",ho,e.toDisplayString(o.content),1),yo],64)):e.createCommentVNode("",!0)]),o.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",bo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});z.install=l=>{l.component(z.name,z)};const Eo={class:"cu-time"},$o={key:0,class:"cu-capsule radius"},Co={name:"TimeLine"},w=e.defineComponent({...Co,props:{items:{default:()=>[]}},setup(l){function t(o){return o||"cyan"}function a(o){switch(o.status){case"past":return`text-green cuIcon-${o.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${o.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${o.icon||"radioboxfill"}`}}return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"cu-timeline"},[e.createElementVNode("div",Eo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,i=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:i.key,class:e.normalizeClass(["cu-item",a(i)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${i.bg||"gray"}`,"shadow-blur"])},[(f=i==null?void 0:i.capsule)!=null&&f.list&&i.capsule.list.length?(e.openBlock(),e.createElementBlock("div",$o,[e.createVNode(p,{bg:t((d=i.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=i.capsule)==null?void 0:x.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(i.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${i.key}`,{},()=>[e.createTextVNode(e.toDisplayString(i.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=l=>{l.component(w.name,w)};const Vo={class:"bg-white padding"},No=["data-index"],uo={name:"TSteps"},T=e.defineComponent({...uo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(l,{emit:t}){return(a,o)=>(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,No),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});T.install=l=>{l.component(T.name,T)};const So={class:"cu-dialog"},Io={class:"cu-bar bg-white justify-end padding-right-sm"},zo={class:"content"},wo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],To={class:"padding-xl"},Do={name:"DrawerModal"},D=e.defineComponent({...Do,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(l,{emit:t}){const a=t,o=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",So,[e.createElementVNode("div",Io,[e.createElementVNode("div",zo,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:o},wo)]),e.createElementVNode("div",To,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});D.install=l=>{l.component(D.name,D)};const xo={install:l=>{l.use(g),l.use(y),l.use(m),l.use(k),l.use(_),l.use(h),l.use(B),l.use(E),l.use($),l.use(C),l.use(V),l.use(N),l.use(u),l.use(S),l.use(b),l.use(p),l.use(I),l.use(z),l.use(w),l.use(T),l.use(D)}};r.ChatList=I,r.ChatRoom=z,r.DrawerModal=D,r.GridGroup=u,r.Menu=S,r.TAvatar=m,r.TButton=b,r.TIcon=g,r.TInputBar=C,r.TNavBar=B,r.TNavCard=k,r.TNewCard=_,r.TSearchBar=$,r.TShareCard=h,r.TSteps=T,r.TTab=N,r.TTabs=V,r.TTag=p,r.TTitle=y,r.TTopBar=E,r.TimeLine=w,r.default=xo,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */var A;(function(l){l.pop="pop",l.push="push"})(A||(A={}));var M;(function(l){l.back="back",l.forward="forward",l.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(l){l[l.aborted=4]="aborted",l[l.cancelled=8]="cancelled",l[l.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const jt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ft(){return e.inject(jt)}const Lt=["onClick"],qt={key:0,class:"cu-tag badge"},Ut={key:0},At={name:"GridGroup"},u=e.defineComponent({...At,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(l){const t=l,a=Ft(),o=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:r,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>o(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",qt,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",Ut,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,Lt))),128))],2))}});u.install=l=>{l.component(u.name,u)};const Mt={class:"content"},Ot=["src","alt"],Rt={class:"text-grey"},Gt={class:"action"},Pt={key:1,class:"text-grey text-sm"},Xt=["onClick"],Kt={key:4,class:"text-grey text-sm"},Ht={name:"Menu"},S=e.defineComponent({...Ht,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[t.menuBorder?"sm-border":"",t.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,(o,n)=>{var s;return e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["cu-item",t.menuArrow?"arrow":""])},[e.createElementVNode("div",Mt,[o.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:o.icon.name,color:o.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),o.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:o.img.url,alt:o.img.alt},null,8,Ot)):e.createCommentVNode("",!0),e.createElementVNode("text",Rt,e.toDisplayString(o.title),1)]),e.createElementVNode("div",Gt,[o.group?(e.openBlock(),e.createBlock(F,{key:0,urls:o.group},null,8,["urls"])):e.createCommentVNode("",!0),o.group?(e.openBlock(),e.createElementBlock("text",Pt,e.toDisplayString(o.group.length)+"人",1)):e.createCommentVNode("",!0),o.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${o.btn.bg}`]),onClick:(s=o.btn)==null?void 0:s.event},[o.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:o.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.btn.text),1)],10,Xt)):e.createCommentVNode("",!0),o.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(o.tags,(i,r)=>(e.openBlock(),e.createBlock(p,{size:i.size,key:r,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),o.text?(e.openBlock(),e.createElementBlock("text",Kt,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0)])],2)}),128))],2))}});S.install=l=>{l.component(S.name,S)};const Jt={key:0,class:"cu-tag badge"},Qt={class:"content"},Wt={class:"flex align-center"},Yt={class:"text-cut"},Zt={class:"text-gray text-sm flex"},vt={class:"text-cut"},eo={class:"action"},to={class:"text-grey text-xs"},oo=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Jt,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Qt,[e.createElementVNode("div",Wt,[e.createElementVNode("div",Yt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),lo={class:"cu-list menu-avatar"},no={name:"ChatList"},I=e.defineComponent({...no,props:{items:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,n)=>(e.openBlock(),e.createBlock(oo,{key:n,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=l=>{l.component(I.name,I)};const ao={class:"cu-chat"},so={key:0,class:"cu-info round"},co={key:1,class:"cu-info"},ro=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),io={class:"main"},mo=["src"],po={key:2,class:"content shadow"},go=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),fo={class:"action text-bold text-grey"},ko={key:3,class:"content shadow"},_o=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),ho={class:"content shadow"},yo=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),bo={class:"date"},Bo={name:"ChatRoom"},z=e.defineComponent({...Bo,props:{messages:{}},setup(l){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:e.normalizeClass(["cu-item",{self:o.self}])},[o.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.self?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",co,[ro,e.createTextVNode(" "+e.toDisplayString(o.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",io,[o.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":o.self}])},[e.createElementVNode("text",null,e.toDisplayString(o.content),1)],2)):o.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.content,class:"radius",style:{"max-width":"100%"}},null,8,mo)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",po,[go,e.createElementVNode("div",fo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",ko,[_o,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",ho,e.toDisplayString(o.content),1),yo],64)):e.createCommentVNode("",!0)]),o.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",bo,e.toDisplayString(o.date),1)],64))],2))),128))]))}});z.install=l=>{l.component(z.name,z)};const Eo={class:"cu-time"},$o={key:0,class:"cu-capsule radius"},Co={name:"TimeLine"},w=e.defineComponent({...Co,props:{items:{default:()=>[]}},setup(l){function t(o){return o||"cyan"}function a(o){switch(o.status){case"past":return`text-green cuIcon-${o.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${o.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${o.icon||"radioboxfill"}`}}return(o,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",Eo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:r.key,class:e.normalizeClass(["cu-item",a(r)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${r.bg||"gray"}`,"shadow-blur"])},[(f=r==null?void 0:r.capsule)!=null&&f.list&&r.capsule.list.length?(e.openBlock(),e.createElementBlock("div",$o,[e.createVNode(p,{bg:t((d=r.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=r.capsule)==null?void 0:x.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${r.key}`,{},()=>[e.createTextVNode(e.toDisplayString(r.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=l=>{l.component(w.name,w)};const Vo={class:"bg-white padding"},No=["data-index"],uo={name:"TSteps"},T=e.defineComponent({...uo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(l,{emit:t}){return(a,o)=>(e.openBlock(),e.createElementBlock("div",Vo,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,No),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});T.install=l=>{l.component(T.name,T)};const So={class:"cu-dialog"},Io={class:"cu-bar bg-white justify-end padding-right-sm"},zo={class:"content"},wo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],To={class:"padding-xl"},Do={name:"DrawerModal"},D=e.defineComponent({...Do,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(l,{emit:t}){const a=t,o=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",So,[e.createElementVNode("div",Io,[e.createElementVNode("div",zo,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:o},wo)]),e.createElementVNode("div",To,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});D.install=l=>{l.component(D.name,D)};const xo={install:l=>{l.use(g),l.use(y),l.use(m),l.use(k),l.use(_),l.use(h),l.use(B),l.use(E),l.use($),l.use(C),l.use(V),l.use(N),l.use(u),l.use(S),l.use(b),l.use(p),l.use(I),l.use(z),l.use(w),l.use(T),l.use(D)}};c.ChatList=I,c.ChatRoom=z,c.DrawerModal=D,c.GridGroup=u,c.Menu=S,c.TAvatar=m,c.TButton=b,c.TIcon=g,c.TInputBar=C,c.TNavBar=B,c.TNavCard=k,c.TNewCard=_,c.TSearchBar=$,c.TShareCard=h,c.TSteps=T,c.TTab=N,c.TTabs=V,c.TTag=p,c.TTitle=y,c.TTopBar=E,c.TimeLine=w,c.default=xo,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vue-color-ui",
3
3
  "description": "ColorUI 临时代替的版本",
4
4
  "private": false,
5
- "version": "0.0.13",
5
+ "version": "0.0.14",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {
@@ -1,40 +1,73 @@
1
- import { Router, RouteLocationNormalizedLoaded } from "vue-router";
2
1
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
- bg?: string | undefined;
4
- color?: string | undefined;
5
- activeColor?: string | undefined;
2
+ bg?: ColorName | undefined;
3
+ color?: ColorName | undefined;
4
+ activeColor?: ColorName | undefined;
6
5
  items?: NavBarItem[] | undefined;
7
6
  isFoot?: boolean | undefined;
8
- onItemClick?: ((item: NavBarItem) => void) | undefined;
9
- router: Router;
10
- route: RouteLocationNormalizedLoaded;
7
+ activeIndex?: number | undefined;
8
+ onItemClick?: ((item: NavBarItem, index: number) => void) | undefined;
11
9
  }>, {
12
10
  bg: string;
13
11
  color: string;
14
12
  activeColor: string;
15
13
  isFoot: boolean;
16
- items: () => NavBarItem[];
14
+ items: () => ({
15
+ icon: string;
16
+ label: string;
17
+ img?: undefined;
18
+ badge?: undefined;
19
+ } | {
20
+ img: string;
21
+ label: string;
22
+ icon?: undefined;
23
+ badge?: undefined;
24
+ } | {
25
+ icon: string;
26
+ label: string;
27
+ badge: number;
28
+ img?: undefined;
29
+ })[];
30
+ activeIndex: number;
31
+ onItemClick: () => void;
17
32
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
18
- bg?: string | undefined;
19
- color?: string | undefined;
20
- activeColor?: string | undefined;
33
+ bg?: ColorName | undefined;
34
+ color?: ColorName | undefined;
35
+ activeColor?: ColorName | undefined;
21
36
  items?: NavBarItem[] | undefined;
22
37
  isFoot?: boolean | undefined;
23
- onItemClick?: ((item: NavBarItem) => void) | undefined;
24
- router: Router;
25
- route: RouteLocationNormalizedLoaded;
38
+ activeIndex?: number | undefined;
39
+ onItemClick?: ((item: NavBarItem, index: number) => void) | undefined;
26
40
  }>, {
27
41
  bg: string;
28
42
  color: string;
29
43
  activeColor: string;
30
44
  isFoot: boolean;
31
- items: () => NavBarItem[];
45
+ items: () => ({
46
+ icon: string;
47
+ label: string;
48
+ img?: undefined;
49
+ badge?: undefined;
50
+ } | {
51
+ img: string;
52
+ label: string;
53
+ icon?: undefined;
54
+ badge?: undefined;
55
+ } | {
56
+ icon: string;
57
+ label: string;
58
+ badge: number;
59
+ img?: undefined;
60
+ })[];
61
+ activeIndex: number;
62
+ onItemClick: () => void;
32
63
  }>>>, {
33
- bg: string;
34
- color: string;
64
+ bg: ColorName;
65
+ color: ColorName;
35
66
  items: NavBarItem[];
36
67
  isFoot: boolean;
37
- activeColor: string;
68
+ activeColor: ColorName;
69
+ activeIndex: number;
70
+ onItemClick: (item: NavBarItem, index: number) => void;
38
71
  }, {}>;
39
72
  export default _default;
40
73
  type __VLS_WithDefaults<P, D> = {