vue-color-ui 0.0.40 → 0.0.42

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.
package/lib/css/main.css CHANGED
@@ -1572,7 +1572,6 @@ button.cuIcon.lg {
1572
1572
  }
1573
1573
 
1574
1574
  .cu-bar .action:first-child {
1575
- margin-left: 15px;
1576
1575
  font-size: 15px;
1577
1576
  }
1578
1577
 
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-7b4ca731]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
1
+ .nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-cad7ccb4]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
@@ -1,7 +1,7 @@
1
1
  var we = Object.defineProperty;
2
2
  var Ce = (t, e, c) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
3
3
  var M = (t, e, c) => (Ce(t, typeof e != "symbol" ? e + "" : e, c), c);
4
- import { defineComponent as _, openBlock as n, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as w, createElementVNode as o, toDisplayString as u, createTextVNode as k, createCommentVNode as p, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as S, createBlock as V, ref as T, withModifiers as de, unref as Se, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Be, withKeys as je, withDirectives as he, vShow as pe, provide as ve, watch as Ie, inject as fe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
4
+ import { defineComponent as _, openBlock as n, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as w, createElementVNode as o, toDisplayString as u, createTextVNode as k, createCommentVNode as p, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as x, createBlock as V, ref as B, withModifiers as de, unref as Be, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Se, withKeys as je, withDirectives as he, vShow as pe, provide as ve, watch as Ie, inject as fe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
5
5
  const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" }, Ne = { class: "nav-name" }, Pe = {
6
6
  name: "TNavCard"
7
7
  }, R = /* @__PURE__ */ _({
@@ -276,7 +276,7 @@ const xt = {
276
276
  style: w(c.value)
277
277
  }, null, 6));
278
278
  }
279
- }), Tt = { class: "action border-title" }, St = { class: "action border-title" }, Bt = { class: "tib text-xl text-bold text-blue" }, jt = /* @__PURE__ */ o("div", {
279
+ }), Tt = { class: "action border-title" }, Bt = { class: "action border-title" }, St = { class: "tib text-xl text-bold text-blue" }, jt = /* @__PURE__ */ o("div", {
280
280
  class: "tib bg-gradual-blue",
281
281
  style: { width: "3rem" }
282
282
  }, null, -1), Et = { class: "action sub-title" }, Vt = { class: "tib text-xl text-bold text-green" }, Mt = /* @__PURE__ */ o("div", {
@@ -317,8 +317,8 @@ const xt = {
317
317
  key: 1,
318
318
  class: d(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
319
319
  }, [
320
- o("div", St, [
321
- o("div", Bt, u(e.title), 1),
320
+ o("div", Bt, [
321
+ o("div", St, u(e.title), 1),
322
322
  jt
323
323
  ])
324
324
  ], 2)) : e.mode === "default3" ? (n(), l("div", {
@@ -367,10 +367,10 @@ const xt = {
367
367
  o("i", {
368
368
  class: d(`cuIcon-${e.icon} text-${e.color}`)
369
369
  }, null, 2),
370
- S(e.$slots, "default")
370
+ x(e.$slots, "default")
371
371
  ]),
372
372
  o("div", Dt, [
373
- S(e.$slots, "action")
373
+ x(e.$slots, "action")
374
374
  ])
375
375
  ]));
376
376
  }
@@ -392,7 +392,7 @@ const xt = {
392
392
  key: 1,
393
393
  class: d(["padding-xs", ["cu-avatar", e.size, e.mode]])
394
394
  }, [
395
- S(e.$slots, "default")
395
+ x(e.$slots, "default")
396
396
  ], 2));
397
397
  }
398
398
  }), Ut = { class: "cu-avatar-group" }, Xt = {
@@ -443,7 +443,7 @@ const xt = {
443
443
  style: w(s.value),
444
444
  disabled: a.disabled
445
445
  }, [
446
- S(a.$slots, "default"),
446
+ x(a.$slots, "default"),
447
447
  a.icon ? (n(), l("i", {
448
448
  key: 0,
449
449
  class: d(`cuIcon-${a.icon}`),
@@ -476,7 +476,7 @@ const xt = {
476
476
  class: d(c.value),
477
477
  style: w(s.value)
478
478
  }, [
479
- S(i.$slots, "default"),
479
+ x(i.$slots, "default"),
480
480
  i.text ? (n(), l("span", Gt, u(i.text), 1)) : p("", !0)
481
481
  ], 6));
482
482
  }
@@ -642,7 +642,7 @@ const is = /* @__PURE__ */ o("text", { class: "cuIcon-search" }, null, -1), cs =
642
642
  actionText: {}
643
643
  },
644
644
  setup(t) {
645
- const e = T(0), c = (i) => {
645
+ const e = B(0), c = (i) => {
646
646
  e.value = i.detail.height;
647
647
  }, s = () => {
648
648
  e.value = 0;
@@ -833,7 +833,7 @@ const fs = {
833
833
  onClick: a[0] || (a[0] = de(() => {
834
834
  }, ["stop"]))
835
835
  }, [
836
- (n(!0), l(b, null, y(Se(vs), (h) => (n(), l("span", {
836
+ (n(!0), l(b, null, y(Be(vs), (h) => (n(), l("span", {
837
837
  key: h,
838
838
  onClick: (r) => s(h)
839
839
  }, u(h), 9, bs))), 128))
@@ -845,7 +845,7 @@ const fs = {
845
845
  items: {}
846
846
  },
847
847
  setup(t) {
848
- const e = T(null);
848
+ const e = B(null);
849
849
  return D(() => {
850
850
  }), (c, s) => {
851
851
  const i = ke("TIcon");
@@ -874,10 +874,10 @@ const fs = {
874
874
  }), Cs = /* @__PURE__ */ A(ws, [["__scopeId", "data-v-1fefca20"]]), xs = { class: "cu-bar input" }, Ts = {
875
875
  key: 0,
876
876
  class: "action"
877
- }, Ss = {
877
+ }, Bs = {
878
878
  key: 1,
879
879
  class: "action"
880
- }, Bs = ["value"], js = { class: "action" }, Es = { name: "TInputBar" }, Vs = /* @__PURE__ */ _({
880
+ }, Ss = ["value"], js = { class: "action" }, Es = { name: "TInputBar" }, Vs = /* @__PURE__ */ _({
881
881
  ...Es,
882
882
  props: {
883
883
  modelValue: {},
@@ -886,11 +886,12 @@ const fs = {
886
886
  rightIcon: {},
887
887
  buttonText: { default: "发送" },
888
888
  stringArray: { default: () => [] },
889
- functionItems: { default: () => [] }
889
+ functionItems: { default: () => [] },
890
+ buttonBg: { default: "green" }
890
891
  },
891
892
  emits: ["update:modelValue", "send"],
892
893
  setup(t, { emit: e }) {
893
- const c = T(0), s = T(!1), i = T(!1), a = e, h = t, r = (m) => {
894
+ const c = B(0), s = B(!1), i = B(!1), a = e, h = t, r = (m) => {
894
895
  c.value = m.detail.height;
895
896
  }, f = () => {
896
897
  c.value = 0;
@@ -900,14 +901,14 @@ const fs = {
900
901
  i.value = !1, s.value = !s.value;
901
902
  }, I = () => {
902
903
  s.value = !1, i.value = !i.value;
903
- }, B = (m) => {
904
+ }, S = (m) => {
904
905
  a("update:modelValue", h.modelValue + m);
905
906
  }, E = (m) => {
906
907
  const C = m.target;
907
908
  a("update:modelValue", C.value);
908
909
  };
909
910
  return D(() => {
910
- }), Be(() => {
911
+ }), Se(() => {
911
912
  }), (m, C) => (n(), l(b, null, [
912
913
  P(_s, {
913
914
  text: m.modelValue,
@@ -920,7 +921,7 @@ const fs = {
920
921
  class: d(`cuIcon-${m.leftIcon} text-grey`)
921
922
  }, null, 2)
922
923
  ])) : p("", !0),
923
- m.middleIcon ? (n(), l("div", Ss, [
924
+ m.middleIcon ? (n(), l("div", Bs, [
924
925
  o("text", {
925
926
  class: d(`cuIcon-${m.middleIcon} text-grey`)
926
927
  }, null, 2)
@@ -936,7 +937,7 @@ const fs = {
936
937
  "cursor-spacing": "10",
937
938
  value: m.modelValue,
938
939
  onInput: E
939
- }, null, 40, Bs),
940
+ }, null, 40, Ss),
940
941
  o("div", js, [
941
942
  o("text", {
942
943
  class: d(`cuIcon-${m.rightIcon} text-grey`),
@@ -949,11 +950,15 @@ const fs = {
949
950
  })) : p("", !0)
950
951
  ]),
951
952
  o("button", {
952
- class: "cu-btn bg-green shadow-blur round",
953
+ class: d(["cu-btn shadow-blur round", `bg-${m.buttonBg}`]),
953
954
  onClick: C[2] || (C[2] = (N) => $())
954
- }, u(m.buttonText), 1)
955
+ }, [
956
+ x(m.$slots, "default", {}, () => [
957
+ k(u(m.buttonText), 1)
958
+ ], !0)
959
+ ], 2)
955
960
  ]),
956
- he(P(ys, { onAddEmoji: B }, null, 512), [
961
+ he(P(ys, { onAddEmoji: S }, null, 512), [
957
962
  [pe, s.value]
958
963
  ]),
959
964
  he(P(Cs, { items: m.functionItems }, null, 8, ["items"]), [
@@ -961,7 +966,7 @@ const fs = {
961
966
  ])
962
967
  ], 64));
963
968
  }
964
- }), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-7b4ca731"]]);
969
+ }), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-cad7ccb4"]]);
965
970
  Q.install = (t) => {
966
971
  t.component(Q.name, Q);
967
972
  };
@@ -982,7 +987,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
982
987
  },
983
988
  emits: ["update:modelValue", "select"],
984
989
  setup(t, { emit: e }) {
985
- const c = t, s = e, i = T([]), a = T(c.modelValue), h = (g, I) => {
990
+ const c = t, s = e, i = B([]), a = B(c.modelValue), h = (g, I) => {
986
991
  a.value = g, s("update:modelValue", g), s("select", I);
987
992
  };
988
993
  ve("registerTab", (g) => (i.value.push(g), i.value.length - 1)), ve("activeTab", a);
@@ -1005,20 +1010,20 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
1005
1010
  class: d(["nav flex", [, `bg-${g.bg}`, `text-${g.text}`]]),
1006
1011
  style: w(f.value)
1007
1012
  }, [
1008
- (n(!0), l(b, null, y(i.value, (B, E) => (n(), l("div", {
1013
+ (n(!0), l(b, null, y(i.value, (S, E) => (n(), l("div", {
1009
1014
  class: d(["cu-item", $.value(E)]),
1010
1015
  key: E,
1011
- onClick: (m) => h(E, B)
1016
+ onClick: (m) => h(E, S)
1012
1017
  }, [
1013
- B.icon ? (n(), l("i", {
1018
+ S.icon ? (n(), l("i", {
1014
1019
  key: 0,
1015
- class: d(`cuIcon-${B.icon} text-${a.value === E ? g.color : B.iconColor}`)
1020
+ class: d(`cuIcon-${S.icon} text-${a.value === E ? g.color : S.iconColor}`)
1016
1021
  }, null, 2)) : p("", !0),
1017
- k(" " + u(B.label), 1)
1022
+ k(" " + u(S.label), 1)
1018
1023
  ], 10, Ms))), 128))
1019
1024
  ], 6),
1020
1025
  o("div", zs, [
1021
- S(g.$slots, "default", {
1026
+ x(g.$slots, "default", {
1022
1027
  tab: i.value[a.value]
1023
1028
  })
1024
1029
  ])
@@ -1036,7 +1041,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
1036
1041
  setup(t) {
1037
1042
  const e = t, c = fe(
1038
1043
  "registerTab"
1039
- ), s = fe("activeTab"), i = T(null), a = j(() => (s == null ? void 0 : s.value) === i.value), h = j(() => ({
1044
+ ), s = fe("activeTab"), i = B(null), a = j(() => (s == null ? void 0 : s.value) === i.value), h = j(() => ({
1040
1045
  label: e.label,
1041
1046
  icon: e.icon,
1042
1047
  iconColor: e.iconColor
@@ -1048,8 +1053,8 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
1048
1053
  iconColor: e.iconColor
1049
1054
  }));
1050
1055
  }), (r, f) => he((n(), l("div", null, [
1051
- S(r.$slots, "default"),
1052
- S(r.$slots, "custom", { tab: h.value })
1056
+ x(r.$slots, "default"),
1057
+ x(r.$slots, "custom", { tab: h.value })
1053
1058
  ], 512)), [
1054
1059
  [pe, a.value]
1055
1060
  ]);
@@ -1415,7 +1420,7 @@ const Ws = {
1415
1420
  ]),
1416
1421
  o("div", sn, [
1417
1422
  o("div", nn, [
1418
- S(c.$slots, "default")
1423
+ x(c.$slots, "default")
1419
1424
  ])
1420
1425
  ])
1421
1426
  ]),
@@ -1457,7 +1462,7 @@ const Ws = {
1457
1462
  event: s.event
1458
1463
  }, {
1459
1464
  default: re(() => [
1460
- S(e.$slots, "default", { item: s }, () => [
1465
+ x(e.$slots, "default", { item: s }, () => [
1461
1466
  k(u(s.content), 1)
1462
1467
  ])
1463
1468
  ]),
@@ -1526,7 +1531,7 @@ const un = { class: "cu-chat" }, dn = {
1526
1531
  ])) : s.type === "warning" ? (n(), l(b, { key: 4 }, [
1527
1532
  o("div", yn, u(s.content), 1),
1528
1533
  kn
1529
- ], 64)) : S(e.$slots, "custom-message", {
1534
+ ], 64)) : x(e.$slots, "custom-message", {
1530
1535
  key: 5,
1531
1536
  message: s
1532
1537
  })
@@ -1608,7 +1613,7 @@ const Cn = { class: "cu-time" }, xn = {
1608
1613
  o("div", {
1609
1614
  class: d(r.capsule ? "margin-top-sm" : "")
1610
1615
  }, [
1611
- S(s.$slots, `item-${r.key}`, {}, () => [
1616
+ x(s.$slots, `item-${r.key}`, {}, () => [
1612
1617
  k(u(r.content), 1)
1613
1618
  ])
1614
1619
  ], 2)
@@ -1622,7 +1627,7 @@ const Cn = { class: "cu-time" }, xn = {
1622
1627
  oe.install = (t) => {
1623
1628
  t.component(oe.name, oe);
1624
1629
  };
1625
- const Sn = { class: "bg-white padding" }, Bn = ["data-index"], jn = {
1630
+ const Bn = { class: "bg-white padding" }, Sn = ["data-index"], jn = {
1626
1631
  name: "TSteps"
1627
1632
  }, le = /* @__PURE__ */ _({
1628
1633
  ...jn,
@@ -1634,7 +1639,7 @@ const Sn = { class: "bg-white padding" }, Bn = ["data-index"], jn = {
1634
1639
  },
1635
1640
  emits: ["update:modelValue"],
1636
1641
  setup(t, { emit: e }) {
1637
- return (c, s) => (n(), l("div", Sn, [
1642
+ return (c, s) => (n(), l("div", Bn, [
1638
1643
  o("div", {
1639
1644
  class: d(["cu-steps", { "scroll-x": c.scrollX }])
1640
1645
  }, [
@@ -1645,7 +1650,7 @@ const Sn = { class: "bg-white padding" }, Bn = ["data-index"], jn = {
1645
1650
  o("text", {
1646
1651
  class: d(i.cuIcon ? "cuIcon-" + i.cuIcon : "num"),
1647
1652
  "data-index": a + 1
1648
- }, u(i.cuIcon ? "" : a + 1), 11, Bn),
1653
+ }, u(i.cuIcon ? "" : a + 1), 11, Sn),
1649
1654
  k(" " + u(i.name), 1)
1650
1655
  ], 2))), 128))
1651
1656
  ], 2)
@@ -1682,7 +1687,7 @@ const En = { class: "cu-dialog" }, Vn = { class: "cu-bar bg-white justify-end pa
1682
1687
  }, qn)
1683
1688
  ]),
1684
1689
  o("div", An, [
1685
- S(i.$slots, "default", {}, () => [
1690
+ x(i.$slots, "default", {}, () => [
1686
1691
  k("Modal 内容~")
1687
1692
  ])
1688
1693
  ])
@@ -1736,14 +1741,14 @@ const Pn = { class: "loading-animation" }, Ln = {
1736
1741
  );
1737
1742
  }
1738
1743
  }
1739
- const c = t, s = T(null);
1744
+ const c = t, s = B(null);
1740
1745
  return D(() => {
1741
1746
  if (!s.value)
1742
1747
  return;
1743
1748
  const i = s.value.getContext("2d"), { width: a, height: h, particleRadius: r, particleDecay: f } = c, $ = window.devicePixelRatio || 1;
1744
1749
  s.value.width = a * $, s.value.height = h * $, s.value.style.width = a + "px", s.value.style.height = h + "px", i.scale($, $);
1745
1750
  const g = a * 0.5, I = [];
1746
- let B = 0, E = 0, m = 0;
1751
+ let S = 0, E = 0, m = 0;
1747
1752
  i.globalCompositeOperation = "lighter";
1748
1753
  function C() {
1749
1754
  I.push(
@@ -1751,20 +1756,20 @@ const Pn = { class: "loading-animation" }, Ln = {
1751
1756
  {
1752
1757
  x: a / 2 + Math.cos(m / 20) * g / 2,
1753
1758
  y: h / 2 + Math.sin(m / 20) * g / 2,
1754
- angle: E + B,
1759
+ angle: E + S,
1755
1760
  speed: 0,
1756
1761
  accel: 0.01
1757
1762
  },
1758
1763
  r,
1759
1764
  f
1760
1765
  )
1761
- ), I.forEach((v, x) => {
1762
- v.step(x, I);
1763
- }), E += Math.PI / 2, B += Math.PI / 2;
1766
+ ), I.forEach((v, T) => {
1767
+ v.step(T, I);
1768
+ }), E += Math.PI / 2, S += Math.PI / 2;
1764
1769
  }
1765
1770
  function N() {
1766
- i.clearRect(0, 0, a, h), I.forEach((v, x) => {
1767
- v.draw(i, m, I, x);
1771
+ i.clearRect(0, 0, a, h), I.forEach((v, T) => {
1772
+ v.draw(i, m, I, T);
1768
1773
  });
1769
1774
  }
1770
1775
  function F() {
@@ -1791,35 +1796,35 @@ const Fn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Un = /* @__PURE
1791
1796
  },
1792
1797
  emits: ["slideLeft", "slideRight"],
1793
1798
  setup(t, { emit: e }) {
1794
- const c = t, s = e, i = T(null), a = T(null), h = T(0), r = Ee({
1799
+ const c = t, s = e, i = B(null), a = B(null), h = B(0), r = Ee({
1795
1800
  localIndex: 0,
1796
1801
  wrapperHeight: 0,
1797
1802
  touchStartY: 0,
1798
1803
  touchEndY: 0,
1799
1804
  touchStartX: 0,
1800
1805
  touchEndX: 0
1801
- }), f = T([]), $ = "slide-item";
1806
+ }), f = B([]), $ = "slide-item";
1802
1807
  Ie(
1803
1808
  () => c.list,
1804
- (v, x) => {
1805
- v.length !== x.length && g();
1809
+ (v, T) => {
1810
+ v.length !== T.length && g();
1806
1811
  }
1807
1812
  ), D(() => {
1808
1813
  i.value && (r.wrapperHeight = i.value.clientHeight, g());
1809
1814
  });
1810
1815
  const g = () => {
1811
- const v = Math.max(0, r.localIndex), x = Math.min(
1816
+ const v = Math.max(0, r.localIndex), T = Math.min(
1812
1817
  r.localIndex + c.virtualTotal,
1813
1818
  c.list.length
1814
1819
  );
1815
- f.value = c.list.slice(v, x), h.value = -r.localIndex * r.wrapperHeight;
1820
+ f.value = c.list.slice(v, T), h.value = -r.localIndex * r.wrapperHeight;
1816
1821
  }, I = (v) => {
1817
1822
  v.touches.length > 0 && (r.touchStartY = v.touches[0].clientY, r.touchStartX = v.touches[0].clientX);
1818
- }, B = (v) => {
1823
+ }, S = (v) => {
1819
1824
  v.touches.length > 0 && (r.touchEndY = v.touches[0].clientY, r.touchEndX = v.touches[0].clientX);
1820
1825
  }, E = () => {
1821
- const v = r.touchEndY - r.touchStartY, x = r.touchEndX - r.touchStartX;
1822
- Math.abs(v) > Math.abs(x) && Math.abs(v) > 30 ? v < 0 ? m() : C() : Math.abs(x) > 30 && (x < 0 ? s("slideLeft", {
1826
+ const v = r.touchEndY - r.touchStartY, T = r.touchEndX - r.touchStartX;
1827
+ Math.abs(v) > Math.abs(T) && Math.abs(v) > 30 ? v < 0 ? m() : C() : Math.abs(T) > 30 && (T < 0 ? s("slideLeft", {
1823
1828
  item: f.value[r.localIndex],
1824
1829
  index: r.localIndex
1825
1830
  }) : s("slideRight", {
@@ -1831,12 +1836,12 @@ const Fn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Un = /* @__PURE
1831
1836
  }, C = () => {
1832
1837
  r.localIndex > 0 && (r.localIndex--, g());
1833
1838
  }, N = (v) => (r.localIndex + v) * r.wrapperHeight, F = j(() => f.value.map((v) => `video-${v.id}`).join(","));
1834
- return (v, x) => (n(), l("div", {
1839
+ return (v, T) => (n(), l("div", {
1835
1840
  class: "slide-wrapper",
1836
1841
  ref_key: "wrapper",
1837
1842
  ref: i,
1838
1843
  onTouchstart: I,
1839
- onTouchmove: B,
1844
+ onTouchmove: S,
1840
1845
  onTouchend: E
1841
1846
  }, [
1842
1847
  o("div", {
@@ -1,4 +1,4 @@
1
- (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,$)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):i[e]=$;var B=(i,e,$)=>(mn(i,typeof e!="symbol"?e+"":e,$),$);const $={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,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",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),C=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=C(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,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",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},V=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>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",Ke,[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",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],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",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],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",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],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",ot,[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",nt,[e.createElementVNode("div",lt,[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",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>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))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,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(n){const t=n,s=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"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=n=>{n.component(V.name,V)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,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(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(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,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[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",Ct,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",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=C(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=C(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=C(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u},null,40,Kt),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=N=>f())},e.toDisplayString(m.buttonText),1)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=C(Wt,[["__scopeId","data-v-7b4ca731"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
1
+ (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,$)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):i[e]=$;var B=(i,e,$)=>(mn(i,typeof e!="symbol"?e+"":e,$),$);const $={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,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",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),C=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=C(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,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(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,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",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},V=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>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",Ke,[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",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],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",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],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",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],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",ot,[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",nt,[e.createElementVNode("div",lt,[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",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>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))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,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(n){const t=n,s=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"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=n=>{n.component(V.name,V)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,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(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(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,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[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",Ct,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",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=C(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=C(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=C(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u},null,40,Kt),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:k[2]||(k[2]=N=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=C(Wt,[["__scopeId","data-v-cad7ccb4"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
2
2
  * vue-router v4.3.3
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
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.40",
5
+ "version": "0.0.42",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
2
  modelValue: string;
3
3
  leftIcon?: string | undefined;
4
4
  middleIcon?: string | undefined;
@@ -9,8 +9,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
9
9
  text: string;
10
10
  }[] | undefined;
11
11
  functionItems?: FunctionItem[] | undefined;
12
+ buttonBg?: string | undefined;
12
13
  }>, {
13
14
  buttonText: string;
15
+ buttonBg: string;
14
16
  stringArray: () => {
15
17
  id: string;
16
18
  text: string;
@@ -30,8 +32,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
30
32
  text: string;
31
33
  }[] | undefined;
32
34
  functionItems?: FunctionItem[] | undefined;
35
+ buttonBg?: string | undefined;
33
36
  }>, {
34
37
  buttonText: string;
38
+ buttonBg: string;
35
39
  stringArray: () => {
36
40
  id: string;
37
41
  text: string;
@@ -47,7 +51,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
47
51
  text: string;
48
52
  }[];
49
53
  functionItems: FunctionItem[];
50
- }, {}>;
54
+ buttonBg: string;
55
+ }, {}>, {
56
+ default?(_: {}): any;
57
+ }>;
51
58
  export default _default;
52
59
  type __VLS_WithDefaults<P, D> = {
53
60
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -57,6 +64,11 @@ type __VLS_WithDefaults<P, D> = {
57
64
  type __VLS_Prettify<T> = {
58
65
  [K in keyof T]: T[K];
59
66
  } & {};
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
60
72
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
73
  type __VLS_TypePropsToOption<T> = {
62
74
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,3 +1,9 @@
1
+ /// <reference path="../../type/chat.d.ts" />
2
+ /// <reference path="../../type/color.d.ts" />
3
+ /// <reference path="../../type/grid.d.ts" />
4
+ /// <reference path="../../type/icon.d.ts" />
5
+ /// <reference path="../../type/Menu.d.ts" />
6
+ /// <reference path="../../type/timeline.d.ts" />
1
7
  import TNavCard from "./NavCard";
2
8
  import TNewCard from "./NewCard";
3
9
  import TShareCard from "./ShareCard";