vue-color-ui 0.0.46 → 0.0.47
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/temp-color-ui.js +33 -32
- package/lib/temp-color-ui.umd.cjs +2 -2
- package/package.json +1 -1
- package/types/pkg/index.d.ts +2 -2
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Ce = Object.defineProperty;
|
|
2
2
|
var we = (t, e, c) => e in t ? Ce(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
|
|
3
3
|
var M = (t, e, c) => we(t, typeof e != "symbol" ? e + "" : e, c);
|
|
4
|
-
import { defineComponent as _, createElementBlock as a, openBlock as o, Fragment as b, renderList as y, normalizeStyle as C, normalizeClass as d, createElementVNode as l, toDisplayString as u, createCommentVNode as p, createTextVNode as k, 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
|
|
4
|
+
import { defineComponent as _, createElementBlock as a, openBlock as o, Fragment as b, renderList as y, normalizeStyle as C, normalizeClass as d, createElementVNode as l, toDisplayString as u, createCommentVNode as p, createTextVNode as k, 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 R, resolveComponent as ke, createVNode as P, onUnmounted as Se, withDirectives as he, withKeys as je, 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
|
+
}, U = /* @__PURE__ */ _({
|
|
8
8
|
...Pe,
|
|
9
9
|
props: {
|
|
10
10
|
items: {}
|
|
@@ -31,8 +31,8 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
|
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
|
|
35
|
-
t.component(
|
|
34
|
+
U.install = (t) => {
|
|
35
|
+
t.component(U.name, U);
|
|
36
36
|
};
|
|
37
37
|
const ge = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-item shadow" }, De = { class: "title" }, Re = { class: "text-cut" }, Fe = { class: "content" }, Ue = ["src", "alt"], Xe = { class: "desc" }, Ye = { class: "text-content" }, Oe = {
|
|
38
38
|
key: 0,
|
|
@@ -103,16 +103,16 @@ const ge = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
|
|
|
103
103
|
for (const [s, i] of e)
|
|
104
104
|
c[s] = i;
|
|
105
105
|
return c;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
t.component(
|
|
106
|
+
}, X = /* @__PURE__ */ A(et, [["__scopeId", "data-v-bbdb83ff"]]);
|
|
107
|
+
X.install = (t) => {
|
|
108
|
+
t.component(X.name, X);
|
|
109
109
|
};
|
|
110
110
|
const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, nt = { class: "cu-item" }, ot = { class: "content flex-sub" }, lt = { class: "text-gray text-sm flex justify-between" }, at = { class: "text-content" }, it = { class: "text-gray text-sm text-right padding" }, ct = /* @__PURE__ */ l("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), rt = /* @__PURE__ */ l("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), ut = /* @__PURE__ */ l("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), dt = { class: "cu-item" }, ht = { class: "content" }, pt = { class: "text-grey" }, ft = { class: "text-gray text-content text-df" }, mt = { class: "flex" }, gt = { class: "flex-sub" }, _t = { class: "margin-top-sm flex justify-between" }, vt = { class: "text-gray text-df" }, bt = {
|
|
111
111
|
key: 0,
|
|
112
112
|
class: "cuIcon-appreciatefill text-red"
|
|
113
113
|
}, $t = /* @__PURE__ */ l("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), yt = { class: "text-gray margin-left-xs" }, kt = {
|
|
114
114
|
name: "TShareCard"
|
|
115
|
-
},
|
|
115
|
+
}, Y = /* @__PURE__ */ _({
|
|
116
116
|
...kt,
|
|
117
117
|
props: {
|
|
118
118
|
isCard: { type: Boolean, default: !0 },
|
|
@@ -236,8 +236,8 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, n
|
|
|
236
236
|
]));
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
|
|
240
|
-
t.component(
|
|
239
|
+
Y.install = (t) => {
|
|
240
|
+
t.component(Y.name, Y);
|
|
241
241
|
};
|
|
242
242
|
const It = {
|
|
243
243
|
ssss: "2px",
|
|
@@ -288,7 +288,7 @@ const xt = {
|
|
|
288
288
|
}, Nt = { class: "action" }, Pt = {
|
|
289
289
|
key: 6,
|
|
290
290
|
class: "cu-bar bg-white solid-bottom"
|
|
291
|
-
}, Lt = { class: "action" }, Dt = { class: "action" }, Rt = { name: "TTitle" },
|
|
291
|
+
}, Lt = { class: "action" }, Dt = { class: "action" }, Rt = { name: "TTitle" }, O = /* @__PURE__ */ _({
|
|
292
292
|
...Rt,
|
|
293
293
|
props: {
|
|
294
294
|
title: { default: "主题名称" },
|
|
@@ -397,7 +397,7 @@ const xt = {
|
|
|
397
397
|
}
|
|
398
398
|
}), Ut = { class: "cu-avatar-group" }, Xt = {
|
|
399
399
|
name: "TAvatarGroup"
|
|
400
|
-
},
|
|
400
|
+
}, D = /* @__PURE__ */ _({
|
|
401
401
|
...Xt,
|
|
402
402
|
props: {
|
|
403
403
|
urls: { default: () => [] },
|
|
@@ -484,14 +484,14 @@ const xt = {
|
|
|
484
484
|
L.install = (t) => {
|
|
485
485
|
t.component(L.name, L);
|
|
486
486
|
};
|
|
487
|
-
|
|
488
|
-
t.component(
|
|
487
|
+
O.install = (t) => {
|
|
488
|
+
t.component(O.name, O);
|
|
489
489
|
};
|
|
490
490
|
z.install = (t) => {
|
|
491
491
|
t.component(z.name, z);
|
|
492
492
|
};
|
|
493
|
-
|
|
494
|
-
t.component(
|
|
493
|
+
D.install = (t) => {
|
|
494
|
+
t.component(D.name, D);
|
|
495
495
|
};
|
|
496
496
|
H.install = (t) => {
|
|
497
497
|
t.component(H.name, H);
|
|
@@ -857,7 +857,7 @@ const ps = {
|
|
|
857
857
|
},
|
|
858
858
|
setup(t) {
|
|
859
859
|
const e = B(null);
|
|
860
|
-
return
|
|
860
|
+
return R(() => {
|
|
861
861
|
}), (c, s) => {
|
|
862
862
|
const i = ke("TIcon");
|
|
863
863
|
return o(), a("div", ys, [
|
|
@@ -919,7 +919,7 @@ const ps = {
|
|
|
919
919
|
const w = m.target;
|
|
920
920
|
n("update:modelValue", w.value);
|
|
921
921
|
};
|
|
922
|
-
return
|
|
922
|
+
return R(() => {
|
|
923
923
|
}), Se(() => {
|
|
924
924
|
}), (m, w) => (o(), a(b, null, [
|
|
925
925
|
P(gs, {
|
|
@@ -1059,7 +1059,7 @@ const Vs = ["onClick"], Ms = { class: "tab-content" }, zs = {
|
|
|
1059
1059
|
icon: e.icon,
|
|
1060
1060
|
iconColor: e.iconColor
|
|
1061
1061
|
}));
|
|
1062
|
-
return
|
|
1062
|
+
return R(() => {
|
|
1063
1063
|
c && (i.value = c({
|
|
1064
1064
|
label: e.label,
|
|
1065
1065
|
icon: e.icon,
|
|
@@ -1334,7 +1334,7 @@ const Fs = ["onClick"], Us = { class: "content" }, Xs = ["src", "alt"], Ys = { c
|
|
|
1334
1334
|
l("text", Ys, u(n.title), 1)
|
|
1335
1335
|
]),
|
|
1336
1336
|
l("div", Os, [
|
|
1337
|
-
n.group ? (o(), V(
|
|
1337
|
+
n.group ? (o(), V(D, {
|
|
1338
1338
|
key: 0,
|
|
1339
1339
|
urls: n.group
|
|
1340
1340
|
}, null, 8, ["urls"])) : p("", !0),
|
|
@@ -1755,7 +1755,7 @@ const Nn = { class: "loading-animation" }, Pn = {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
const c = t, s = B(null);
|
|
1758
|
-
return
|
|
1758
|
+
return R(() => {
|
|
1759
1759
|
if (!s.value) return;
|
|
1760
1760
|
const i = s.value.getContext("2d"), { width: n, height: h, particleRadius: r, particleDecay: f } = c, $ = window.devicePixelRatio || 1;
|
|
1761
1761
|
s.value.width = n * $, s.value.height = h * $, s.value.style.width = n + "px", s.value.style.height = h + "px", i.scale($, $);
|
|
@@ -1784,10 +1784,10 @@ const Nn = { class: "loading-animation" }, Pn = {
|
|
|
1784
1784
|
v.draw(i, m, I, T);
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1788
|
-
requestAnimationFrame(
|
|
1787
|
+
function F() {
|
|
1788
|
+
requestAnimationFrame(F), w(), N(), m++;
|
|
1789
1789
|
}
|
|
1790
|
-
|
|
1790
|
+
F();
|
|
1791
1791
|
}), (i, n) => (o(), a("div", Nn, [
|
|
1792
1792
|
l("canvas", {
|
|
1793
1793
|
ref_key: "canvas",
|
|
@@ -1821,7 +1821,7 @@ const Dn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Fn = /* @__PURE
|
|
|
1821
1821
|
(v, T) => {
|
|
1822
1822
|
v.length !== T.length && g();
|
|
1823
1823
|
}
|
|
1824
|
-
),
|
|
1824
|
+
), R(() => {
|
|
1825
1825
|
i.value && (r.wrapperHeight = i.value.clientHeight, g());
|
|
1826
1826
|
});
|
|
1827
1827
|
const g = () => {
|
|
@@ -1847,7 +1847,7 @@ const Dn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Fn = /* @__PURE
|
|
|
1847
1847
|
r.localIndex < c.list.length - 1 && (r.localIndex++, g());
|
|
1848
1848
|
}, w = () => {
|
|
1849
1849
|
r.localIndex > 0 && (r.localIndex--, g());
|
|
1850
|
-
}, N = (v) => (r.localIndex + v) * r.wrapperHeight,
|
|
1850
|
+
}, N = (v) => (r.localIndex + v) * r.wrapperHeight, F = j(() => f.value.map((v) => `video-${v.id}`).join(","));
|
|
1851
1851
|
return (v, T) => (o(), a("div", {
|
|
1852
1852
|
class: "slide-wrapper",
|
|
1853
1853
|
ref_key: "wrapper",
|
|
@@ -1862,7 +1862,7 @@ const Dn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Fn = /* @__PURE
|
|
|
1862
1862
|
ref: n,
|
|
1863
1863
|
style: C({ transform: `translateY(${h.value}px)` })
|
|
1864
1864
|
}, [
|
|
1865
|
-
(o(), V(Ve, { include:
|
|
1865
|
+
(o(), V(Ve, { include: F.value }, [
|
|
1866
1866
|
(o(!0), a(b, null, y(f.value, (_e, ue) => (o(), a("div", {
|
|
1867
1867
|
key: _e.id,
|
|
1868
1868
|
"data-index": ue,
|
|
@@ -1880,7 +1880,7 @@ ce.install = (t) => {
|
|
|
1880
1880
|
t.component(ce.name, ce);
|
|
1881
1881
|
};
|
|
1882
1882
|
const Un = (t) => {
|
|
1883
|
-
t.use(L), t.use(
|
|
1883
|
+
t.use(L), t.use(O), t.use(z), t.use(D), t.use(U), t.use(X), t.use(Y), t.use(G), t.use(K), t.use(J), t.use(Q), t.use(W), t.use(Z), t.use(ee), t.use(te), t.use(H), t.use(q), t.use(se), t.use(ne), t.use(oe), t.use(le), t.use(ae), t.use(ie), t.use(ce);
|
|
1884
1884
|
}, Hn = {
|
|
1885
1885
|
install: Un
|
|
1886
1886
|
};
|
|
@@ -1892,19 +1892,20 @@ export {
|
|
|
1892
1892
|
ie as Loading1,
|
|
1893
1893
|
te as Menu,
|
|
1894
1894
|
z as TAvatar,
|
|
1895
|
+
D as TAvatarGroup,
|
|
1895
1896
|
H as TButton,
|
|
1896
1897
|
L as TIcon,
|
|
1897
1898
|
Q as TInputBar,
|
|
1898
1899
|
G as TNavBar,
|
|
1899
|
-
|
|
1900
|
-
|
|
1900
|
+
U as TNavCard,
|
|
1901
|
+
X as TNewCard,
|
|
1901
1902
|
J as TSearchBar,
|
|
1902
|
-
|
|
1903
|
+
Y as TShareCard,
|
|
1903
1904
|
le as TSteps,
|
|
1904
1905
|
Z as TTab,
|
|
1905
1906
|
W as TTabs,
|
|
1906
1907
|
q as TTag,
|
|
1907
|
-
|
|
1908
|
+
O as TTitle,
|
|
1908
1909
|
K as TTopBar,
|
|
1909
1910
|
oe as TimeLine,
|
|
1910
1911
|
Hn as default,
|
|
@@ -1,5 +1,5 @@
|
|
|
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 rn=Object.defineProperty;var dn=(i,e,V)=>e in i?rn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:V}):i[e]=V;var u=(i,e,V)=>dn(i,typeof e!="symbol"?e+"":e,V);const V={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",V,[(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"},Be={class:"text-grey margin-right-xs"},ue={name:"TNewCard"},be=e.defineComponent({...ue,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",Be,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"},Ce={class:"cu-list menu-avatar"},$e={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"},Le={class:"flex"},Me={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",Ce,[e.createElementVNode("div",$e,[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",Le,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Me,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"},$=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))}});$.install=n=>{n.component($.name,$)},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"},Bt=["src"],ut={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,Bt),l.badge?(e.openBlock(),e.createElementBlock("div",ut,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 Ct={key:1},$t={class:"content text-bold"},Vt={key:1},Nt={name:"TTopBar"},D=e.defineComponent({...Nt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},rightText:{},bg:{default:"white"},avatarUrl:{}},emits:["leftClick","rightClick"],setup(n,{emit:t}){const s=t,o=()=>{s("leftClick")},a=()=>{s("rightClick")};return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bg}`])},[l.leftIcon||l.leftText?(e.openBlock(),e.createElementBlock("div",{key:0,class:"action",onClick:o},[l.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.leftIcon} text-${l.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),l.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(l.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",$t,e.toDisplayString(l.title),1),l.rightIcon||l.rightText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"action",onClick:a},[l.rightIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.rightIcon} text-${l.rightIconColor}`)},null,2)):e.createCommentVNode("",!0),l.rightText?(e.openBlock(),e.createElementBlock("span",Vt,e.toDisplayString(l.rightText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const It=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),St=["placeholder"],wt={class:"action"},zt={key:0,class:"cu-btn bg-green shadow-blur round"},Tt={key:0},xt={key:3},Dt={name:"TSearchBar"},j=e.defineComponent({...Dt,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])},[It,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,St)],2),e.createElementVNode("div",wt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",zt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",Tt,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",xt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const jt={key:0,class:"string-list"},Ft=["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",jt,[(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,Ft))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Mt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],qt=[{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"}],At=["onClick"],Pt=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(Mt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,At))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Rt={class:"function-panel-container"},Ut=["onClick"],Xt=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",Rt,[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,Ut))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Yt={class:"cu-bar input"},Ot={key:0,class:"action"},Ht={key:1,class:"action"},Gt=["value","placeholder"],Kt={class:"action"},Jt={name:"TInputBar"},Qt=e.defineComponent({...Jt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{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)},B=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",Yt,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Ht,[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:B,placeholder:m.placeholder},null,40,Gt),e.createElementVNode("div",Kt,[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(Pt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Xt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=C(Qt,[["__scopeId","data-v-626eda11"]]);F.install=n=>{n.component(F.name,F)};const Wt=["onClick"],Zt={class:"tab-content"},vt={name:"TTabs"},L=e.defineComponent({...vt,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,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(B)]),key:B,onClick:m=>r(B,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===B?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Wt))),128))],6),e.createElementVNode("div",Zt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),eo={name:"TTab"},M=e.defineComponent({...eo,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]])}});L.install=n=>{n.component(L.name,L)},M.install=n=>{n.component(M.name,M)};/*!
|
|
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 rn=Object.defineProperty;var dn=(i,e,V)=>e in i?rn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:V}):i[e]=V;var B=(i,e,V)=>dn(i,typeof e!="symbol"?e+"":e,V);const V={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},S=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",V,[(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))]))}});S.install=n=>{n.component(S.name,S)};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},w=C(be,[["__scopeId","data-v-bbdb83ff"]]);w.install=n=>{n.component(w.name,w)};const Ee={class:"cu-item shadow"},Ce={class:"cu-list menu-avatar"},$e={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),Te=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ze=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"},Le={class:"flex"},Me={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"},T=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",Ce,[e.createElementVNode("div",$e,[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),Te,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ze,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",Le,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Me,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)]))}});T.install=n=>{n.component(T.name,T)};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"},$=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"},N=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"},x=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))}});$.install=n=>{n.component($.name,$)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},N.install=n=>{n.component(N.name,N)},x.install=n=>{n.component(x.name,x)},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"},D=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))}});D.install=n=>{n.component(D.name,D)};const Ct={key:1},$t={class:"content text-bold"},Vt={key:1},Nt={name:"TTopBar"},j=e.defineComponent({...Nt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},rightText:{},bg:{default:"white"},avatarUrl:{}},emits:["leftClick","rightClick"],setup(n,{emit:t}){const s=t,o=()=>{s("leftClick")},a=()=>{s("rightClick")};return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bg}`])},[l.leftIcon||l.leftText?(e.openBlock(),e.createElementBlock("div",{key:0,class:"action",onClick:o},[l.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.leftIcon} text-${l.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),l.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(l.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",$t,e.toDisplayString(l.title),1),l.rightIcon||l.rightText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"action",onClick:a},[l.rightIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.rightIcon} text-${l.rightIconColor}`)},null,2)):e.createCommentVNode("",!0),l.rightText?(e.openBlock(),e.createElementBlock("span",Vt,e.toDisplayString(l.rightText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});j.install=n=>{n.component(j.name,j)};const It=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),St=["placeholder"],wt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},zt={key:0},xt={key:3},Dt={name:"TSearchBar"},F=e.defineComponent({...Dt,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])},[It,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,St)],2),e.createElementVNode("div",wt,[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",zt,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",xt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});F.install=n=>{n.component(F.name,F)};const jt={key:0,class:"string-list"},Ft=["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",jt,[(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,Ft))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Mt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],qt=[{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"}],At=["onClick"],Pt=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(Mt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,At))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Rt={class:"function-panel-container"},Ut=["onClick"],Xt=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",Rt,[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,Ut))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Yt={class:"cu-bar input"},Ot={key:0,class:"action"},Ht={key:1,class:"action"},Gt=["value","placeholder"],Kt={class:"action"},Jt={name:"TInputBar"},Qt=e.defineComponent({...Jt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{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",Yt,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Ht,[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(I=>f(),["enter"])),onConfirm:k[1]||(k[1]=I=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u,placeholder:m.placeholder},null,40,Gt),e.createElementVNode("div",Kt,[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]=I=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Pt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Xt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),L=C(Qt,[["__scopeId","data-v-626eda11"]]);L.install=n=>{n.component(L.name,L)};const Wt=["onClick"],Zt={class:"tab-content"},vt={name:"TTabs"},M=e.defineComponent({...vt,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,Wt))),128))],6),e.createElementVNode("div",Zt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),eo={name:"TTab"},q=e.defineComponent({...eo,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)},q.install=n=>{n.component(q.name,q)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var Z;(function(n){n.pop="pop",n.push="push"})(Z||(Z={}));var v;(function(n){n.back="back",n.forward="forward",n.unknown=""})(v||(v={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var ee;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ee||(ee={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const to=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 oo(){return e.inject(to)}const no=["onClick"],lo={key:0,class:"cu-tag badge"},ao={key:0},so={name:"GridGroup"},q=e.defineComponent({...so,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(n){const t=n,s=oo(),o=a=>{if(a.path){t.routeFn?t.routeFn().push({path:a.path}):s.push({path:a.path});return}if(a.link){window.location.href=a.link;return}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+a.gridCol,a.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cuIconList,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${a.gridCol})`),onClick:d=>o(r)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+r.cuIcon,"text-"+r.color])},[r.badge!=0?(e.openBlock(),e.createElementBlock("div",lo,[r.badge!=1?(e.openBlock(),e.createElementBlock("i",ao,e.toDisplayString((r.badge||0)>99?"99+":r.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(r.name),1)],12,no))),128))],2))}});q.install=n=>{n.component(q.name,q)};const co=["onClick"],ro={class:"content"},io=["src","alt"],mo={class:"text-grey"},po={class:"action"},go={key:1,class:"text-grey text-sm"},fo=["onClick"],ho={key:4,class:"text-grey text-sm"},ko={name:"Menu"},A=e.defineComponent({...ko,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(n){const t=o=>{o.event&&o.event(o)},s=o=>{o&&o()};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[o.menuBorder?"sm-border":"",o.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["cu-item",o.menuArrow?"arrow":""]),onClick:c=>t(l)},[e.createElementVNode("div",ro,[l.icon?(e.openBlock(),e.createBlock($,{key:0,class:"icon",name:l.icon.name,color:l.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),l.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:l.img.url,alt:l.img.alt},null,8,io)):e.createCommentVNode("",!0),e.createElementVNode("text",mo,e.toDisplayString(l.title),1)]),e.createElementVNode("div",po,[l.group?(e.openBlock(),e.createBlock(H,{key:0,urls:l.group},null,8,["urls"])):e.createCommentVNode("",!0),l.group?(e.openBlock(),e.createElementBlock("text",go,e.toDisplayString(l.group.length)+"人",1)):e.createCommentVNode("",!0),l.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${l.btn.bg}`]),onClick:c=>{var d;return s((d=l.btn)==null?void 0:d.event)}},[l.btn.icon?(e.openBlock(),e.createBlock($,{key:0,name:l.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.btn.text),1)],10,fo)):e.createCommentVNode("",!0),l.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.tags,(c,d)=>(e.openBlock(),e.createBlock(E,{size:c.size,key:d,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),l.text?(e.openBlock(),e.createElementBlock("text",ho,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)])],10,co))),128))],2))}});A.install=n=>{n.component(A.name,A)};const _o={key:1,class:"cu-tag badge"},yo={class:"content"},Bo={class:"flex align-center"},uo={class:"text-cut text-black"},bo={class:"text-gray text-sm flex"},Eo={class:"text-cut"},Co={class:"action"},$o={class:"text-grey text-xs"},Vo={name:"ChatListItem"},Q=e.defineComponent({...Vo,props:{userinfo:{},roomId:{},roomName:{},time:{default:""},avatarName:{default:"friendfill"},avatarBg:{default:"grey"},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean},content:{},event:{type:Function,default:()=>{}}},setup(n){const t=n;return(s,o)=>{var l;const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:s.isDisconnected,cur:s.isCurrent}]),onClick:o[0]||(o[0]=r=>s.event(t))},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",s.userinfo.avatarShape,"lg",`bg-${s.avatarBg}`]),style:e.normalizeStyle({backgroundImage:s.userinfo.avatar?`url(${s.userinfo.avatar})`:""})},[(l=s.userinfo)!=null&&l.avatar?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,name:s.avatarName,size:36,color:"white"},null,8,["name"])),s.badge?(e.openBlock(),e.createElementBlock("div",_o,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",yo,[e.createElementVNode("div",Bo,[e.createElementVNode("div",uo,e.toDisplayString(s.userinfo.name),1),s.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.userinfo.tagColor}`,"sm"])},e.toDisplayString(s.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",bo,[e.createElementVNode("div",Eo,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",Co,[e.createElementVNode("div",$o,e.toDisplayString(s.time),1),s.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.unreadColor}`,"sm"])},e.toDisplayString(s.unread),3)):s.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(s.iconClass)},null,2)):e.createCommentVNode("",!0)])],2)}}}),No={class:"cu-list menu-avatar"},Io={name:"ChatList"},P=e.defineComponent({...Io,props:{items:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,a)=>(e.openBlock(),e.createBlock(Q,{"avatar-name":o.avatarName,"avatar-bg":o.avatarBg,time:o.time,key:a,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent,event:o.event},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["avatar-name","avatar-bg","time","userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent","event"]))),128))]))}});P.install=n=>{n.component(P.name,P),n.component(Q.name,Q)};const So={class:"cu-chat"},wo={key:0,class:"cu-info round"},zo={key:1,class:"cu-info"},To=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),xo={class:"main"},Do=["src"],jo={key:2,class:"content shadow"},Fo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),Lo={class:"action text-bold text-grey"},Mo={key:3,class:"content shadow"},qo=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),Ao={class:"content shadow"},Po=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),Ro={class:"date"},Uo={name:"ChatRoom"},R=e.defineComponent({...Uo,props:{messages:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",So,[(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",wo,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",zo,[To,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(b,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",xo,[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,Do)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",jo,[Fo,e.createElementVNode("div",Lo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",Mo,[qo,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",Ao,e.toDisplayString(o.content),1),Po],64)):e.renderSlot(t.$slots,"custom-message",{key:5,message:o})]),o.self?(e.openBlock(),e.createBlock(b,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ro,e.toDisplayString(o.date),1)],64))],2))),128))]))}});R.install=n=>{n.component(R.name,R)};const Xo={class:"cu-time"},Yo={key:0,class:"cu-capsule radius"},Oo={name:"TimeLine"},U=e.defineComponent({...Oo,props:{items:{default:()=>[]}},setup(n){function t(o){return o||"cyan"}function s(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,a)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"cu-timeline"},[e.createElementVNode("div",Xo,e.toDisplayString(l.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,c=>{var d,f,p;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",s(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(d=c==null?void 0:c.capsule)!=null&&d.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(E,{bg:t((f=c.capsule)==null?void 0:f.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(E,{bg:t((p=c.capsule)==null?void 0:p.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});U.install=n=>{n.component(U.name,U)};const Ho={class:"bg-white padding"},Go=["data-index"],Ko={name:"TSteps"},X=e.defineComponent({...Ko,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(n,{emit:t}){return(s,o)=>(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":s.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",l>s.modelValue?"":`text-${s.color}`]),key:l},[e.createElementVNode("text",{class:e.normalizeClass(a.cuIcon?"cuIcon-"+a.cuIcon:"num"),"data-index":l+1},e.toDisplayString(a.cuIcon?"":l+1),11,Go),e.createTextVNode(" "+e.toDisplayString(a.name),1)],2))),128))],2)]))}});X.install=n=>{n.component(X.name,X)};const Jo={class:"cu-dialog"},Qo={class:"cu-bar bg-white justify-end padding-right-sm"},Wo={class:"content"},Zo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],vo={class:"padding-xl"},en={name:"DrawerModal"},Y=e.defineComponent({...en,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const s=t,o=()=>{s("update:modelValue",!1)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",a.modelValue?"show":""])},[e.createElementVNode("div",Jo,[e.createElementVNode("div",Qo,[e.createElementVNode("div",Wo,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"action",onClick:o},Zo)]),e.createElementVNode("div",vo,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});Y.install=n=>{n.component(Y.name,Y)};const tn={class:"loading-animation"},on={name:"Loading1"},nn=e.defineComponent({...on,props:{width:{default:300},height:{default:300},particleRadius:{default:7},particleDecay:{default:.01}},setup(n){class t{constructor(l,r,c){u(this,"radius");u(this,"x");u(this,"y");u(this,"angle");u(this,"speed");u(this,"accel");u(this,"decay");u(this,"life");this.radius=r,this.x=l.x,this.y=l.y,this.angle=l.angle,this.speed=l.speed,this.accel=l.accel,this.decay=c,this.life=1}step(l,r){this.speed+=this.accel,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.angle+=Math.PI/64,this.accel*=1.01,this.life-=this.decay,this.life<=0&&r.splice(l,1)}draw(l,r,c,d){l.fillStyle=l.strokeStyle=`hsla(${r+this.life*120}, 100%, 60%, ${this.life})`,l.beginPath(),c[d-1]&&(l.moveTo(this.x,this.y),l.lineTo(c[d-1].x,c[d-1].y)),l.stroke(),l.beginPath(),l.arc(this.x,this.y,Math.max(.001,this.life*this.radius),0,Math.PI*2),l.fill();const f=Math.random()*1.25;l.fillRect(~~(this.x+(Math.random()-.5)*35*this.life),~~(this.y+(Math.random()-.5)*35*this.life),f,f)}}const s=n,o=e.ref(null);return e.onMounted(()=>{if(!o.value)return;const a=o.value.getContext("2d"),{width:l,height:r,particleRadius:c,particleDecay:d}=s,f=window.devicePixelRatio||1;o.value.width=l*f,o.value.height=r*f,o.value.style.width=l+"px",o.value.style.height=r+"px",a.scale(f,f);const p=l*.5,h=[];let y=0,B=0,m=0;a.globalCompositeOperation="lighter";function k(){h.push(new t({x:l/2+Math.cos(m/20)*p/2,y:r/2+Math.sin(m/20)*p/2,angle:B+y,speed:0,accel:.01},c,d)),h.forEach((g,_)=>{g.step(_,h)}),B+=Math.PI/2,y+=Math.PI/2}function N(){a.clearRect(0,0,l,r),h.forEach((g,_)=>{g.draw(a,m,h,_)})}function K(){requestAnimationFrame(K),k(),N(),m++}K()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("canvas",{ref_key:"canvas",ref:o},null,512)]))}}),O=C(nn,[["__scopeId","data-v-022c82bd"]]);O.install=n=>{n.component(O.name,O)};const ln=["data-index"],an={name:"TVirtualScrollSlide"},sn=e.defineComponent({...an,props:{virtualTotal:{},render:{type:Function},list:{}},emits:["slideLeft","slideRight"],setup(n,{emit:t}){const s=n,o=t,a=e.ref(null),l=e.ref(null),r=e.ref(0),c=e.reactive({localIndex:0,wrapperHeight:0,touchStartY:0,touchEndY:0,touchStartX:0,touchEndX:0}),d=e.ref([]),f="slide-item";e.watch(()=>s.list,(g,_)=>{g.length!==_.length&&p()}),e.onMounted(()=>{a.value&&(c.wrapperHeight=a.value.clientHeight,p())});const p=()=>{const g=Math.max(0,c.localIndex),_=Math.min(c.localIndex+s.virtualTotal,s.list.length);d.value=s.list.slice(g,_),r.value=-c.localIndex*c.wrapperHeight},h=g=>{g.touches.length>0&&(c.touchStartY=g.touches[0].clientY,c.touchStartX=g.touches[0].clientX)},y=g=>{g.touches.length>0&&(c.touchEndY=g.touches[0].clientY,c.touchEndX=g.touches[0].clientX)},B=()=>{const g=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;Math.abs(g)>Math.abs(_)&&Math.abs(g)>30?g<0?m():k():Math.abs(_)>30&&(_<0?o("slideLeft",{item:d.value[c.localIndex],index:c.localIndex}):o("slideRight",{item:d.value[c.localIndex],index:c.localIndex})),c.touchStartY=0,c.touchEndY=0,c.touchStartX=0,c.touchEndX=0},m=()=>{c.localIndex<s.list.length-1&&(c.localIndex++,p())},k=()=>{c.localIndex>0&&(c.localIndex--,p())},N=g=>(c.localIndex+g)*c.wrapperHeight,K=e.computed(()=>d.value.map(g=>`video-${g.id}`).join(","));return(g,_)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-wrapper",ref_key:"wrapper",ref:a,onTouchstart:h,onTouchmove:y,onTouchend:B},[e.createElementVNode("div",{class:"slide-list",ref_key:"slideList",ref:l,style:e.normalizeStyle({transform:`translateY(${r.value}px)`})},[(e.openBlock(),e.createBlock(e.KeepAlive,{include:K.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(te,W)=>(e.openBlock(),e.createElementBlock("div",{key:te.id,"data-index":W,class:e.normalizeClass(f),style:e.normalizeStyle({top:`${N(W)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.render(te,W))))],12,ln))),128))],1032,["include"]))],4)],544))}}),G=C(sn,[["__scopeId","data-v-8600af8d"]]);G.install=n=>{n.component(G.name,G)};const cn={install:n=>{n.use($),n.use(z),n.use(b),n.use(I),n.use(S),n.use(w),n.use(x),n.use(D),n.use(j),n.use(F),n.use(L),n.use(M),n.use(q),n.use(A),n.use(T),n.use(E),n.use(P),n.use(R),n.use(U),n.use(X),n.use(Y),n.use(O),n.use(G)}};i.ChatList=P,i.ChatRoom=R,i.DrawerModal=Y,i.GridGroup=q,i.Loading1=O,i.Menu=A,i.TAvatar=b,i.TButton=T,i.TIcon=$,i.TInputBar=F,i.TNavBar=x,i.TNavCard=I,i.TNewCard=S,i.TSearchBar=j,i.TShareCard=w,i.TSteps=X,i.TTab=M,i.TTabs=L,i.TTag=E,i.TTitle=z,i.TTopBar=D,i.TimeLine=U,i.default=cn,i.textColor=qt,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/var Z;(function(n){n.pop="pop",n.push="push"})(Z||(Z={}));var v;(function(n){n.back="back",n.forward="forward",n.unknown=""})(v||(v={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var ee;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ee||(ee={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const to=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 oo(){return e.inject(to)}const no=["onClick"],lo={key:0,class:"cu-tag badge"},ao={key:0},so={name:"GridGroup"},A=e.defineComponent({...so,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(n){const t=n,s=oo(),o=a=>{if(a.path){t.routeFn?t.routeFn().push({path:a.path}):s.push({path:a.path});return}if(a.link){window.location.href=a.link;return}};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+a.gridCol,a.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cuIconList,(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${a.gridCol})`),onClick:d=>o(r)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+r.cuIcon,"text-"+r.color])},[r.badge!=0?(e.openBlock(),e.createElementBlock("div",lo,[r.badge!=1?(e.openBlock(),e.createElementBlock("i",ao,e.toDisplayString((r.badge||0)>99?"99+":r.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(r.name),1)],12,no))),128))],2))}});A.install=n=>{n.component(A.name,A)};const co=["onClick"],ro={class:"content"},io=["src","alt"],mo={class:"text-grey"},po={class:"action"},go={key:1,class:"text-grey text-sm"},fo=["onClick"],ho={key:4,class:"text-grey text-sm"},ko={name:"Menu"},P=e.defineComponent({...ko,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(n){const t=o=>{o.event&&o.event(o)},s=o=>{o&&o()};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[o.menuBorder?"sm-border":"",o.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.menuItems,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["cu-item",o.menuArrow?"arrow":""]),onClick:c=>t(l)},[e.createElementVNode("div",ro,[l.icon?(e.openBlock(),e.createBlock($,{key:0,class:"icon",name:l.icon.name,color:l.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),l.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:l.img.url,alt:l.img.alt},null,8,io)):e.createCommentVNode("",!0),e.createElementVNode("text",mo,e.toDisplayString(l.title),1)]),e.createElementVNode("div",po,[l.group?(e.openBlock(),e.createBlock(N,{key:0,urls:l.group},null,8,["urls"])):e.createCommentVNode("",!0),l.group?(e.openBlock(),e.createElementBlock("text",go,e.toDisplayString(l.group.length)+"人",1)):e.createCommentVNode("",!0),l.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${l.btn.bg}`]),onClick:c=>{var d;return s((d=l.btn)==null?void 0:d.event)}},[l.btn.icon?(e.openBlock(),e.createBlock($,{key:0,name:l.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.btn.text),1)],10,fo)):e.createCommentVNode("",!0),l.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(l.tags,(c,d)=>(e.openBlock(),e.createBlock(E,{size:c.size,key:d,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),l.text?(e.openBlock(),e.createElementBlock("text",ho,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)])],10,co))),128))],2))}});P.install=n=>{n.component(P.name,P)};const _o={key:1,class:"cu-tag badge"},yo={class:"content"},uo={class:"flex align-center"},Bo={class:"text-cut text-black"},bo={class:"text-gray text-sm flex"},Eo={class:"text-cut"},Co={class:"action"},$o={class:"text-grey text-xs"},Vo={name:"ChatListItem"},Q=e.defineComponent({...Vo,props:{userinfo:{},roomId:{},roomName:{},time:{default:""},avatarName:{default:"friendfill"},avatarBg:{default:"grey"},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean},content:{},event:{type:Function,default:()=>{}}},setup(n){const t=n;return(s,o)=>{var l;const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:s.isDisconnected,cur:s.isCurrent}]),onClick:o[0]||(o[0]=r=>s.event(t))},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",s.userinfo.avatarShape,"lg",`bg-${s.avatarBg}`]),style:e.normalizeStyle({backgroundImage:s.userinfo.avatar?`url(${s.userinfo.avatar})`:""})},[(l=s.userinfo)!=null&&l.avatar?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a,{key:0,name:s.avatarName,size:36,color:"white"},null,8,["name"])),s.badge?(e.openBlock(),e.createElementBlock("div",_o,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",yo,[e.createElementVNode("div",uo,[e.createElementVNode("div",Bo,e.toDisplayString(s.userinfo.name),1),s.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.userinfo.tagColor}`,"sm"])},e.toDisplayString(s.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",bo,[e.createElementVNode("div",Eo,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",Co,[e.createElementVNode("div",$o,e.toDisplayString(s.time),1),s.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${s.unreadColor}`,"sm"])},e.toDisplayString(s.unread),3)):s.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(s.iconClass)},null,2)):e.createCommentVNode("",!0)])],2)}}}),No={class:"cu-list menu-avatar"},Io={name:"ChatList"},R=e.defineComponent({...Io,props:{items:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(o,a)=>(e.openBlock(),e.createBlock(Q,{"avatar-name":o.avatarName,"avatar-bg":o.avatarBg,time:o.time,key:a,userinfo:o.userinfo,unread:o.unread,unreadColor:o.unreadColor,badge:o.badge,icon:o.icon,iconClass:o.iconClass,isDisconnected:o.isDisconnected,isCurrent:o.isCurrent,event:o.event},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:o},()=>[e.createTextVNode(e.toDisplayString(o.content),1)])]),_:2},1032,["avatar-name","avatar-bg","time","userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent","event"]))),128))]))}});R.install=n=>{n.component(R.name,R),n.component(Q.name,Q)};const So={class:"cu-chat"},wo={key:0,class:"cu-info round"},To={key:1,class:"cu-info"},zo=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),xo={class:"main"},Do=["src"],jo={key:2,class:"content shadow"},Fo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),Lo={class:"action text-bold text-grey"},Mo={key:3,class:"content shadow"},qo=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),Ao={class:"content shadow"},Po=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),Ro={class:"date"},Uo={name:"ChatRoom"},U=e.defineComponent({...Uo,props:{messages:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",So,[(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",wo,e.toDisplayString(o.content),1)):(e.openBlock(),e.createElementBlock("div",To,[zo,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(b,{key:0,mode:"radius",url:o.avatar},null,8,["url"])),e.createElementVNode("div",xo,[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,Do)):o.type==="audio"?(e.openBlock(),e.createElementBlock("div",jo,[Fo,e.createElementVNode("div",Lo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",Mo,[qo,e.createTextVNode(" "+e.toDisplayString(o.content),1)])):o.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",Ao,e.toDisplayString(o.content),1),Po],64)):e.renderSlot(t.$slots,"custom-message",{key:5,message:o})]),o.self?(e.openBlock(),e.createBlock(b,{key:1,mode:"radius",url:o.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ro,e.toDisplayString(o.date),1)],64))],2))),128))]))}});U.install=n=>{n.component(U.name,U)};const Xo={class:"cu-time"},Yo={key:0,class:"cu-capsule radius"},Oo={name:"TimeLine"},X=e.defineComponent({...Oo,props:{items:{default:()=>[]}},setup(n){function t(o){return o||"cyan"}function s(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,a)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"cu-timeline"},[e.createElementVNode("div",Xo,e.toDisplayString(l.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,c=>{var d,f,p;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",s(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(d=c==null?void 0:c.capsule)!=null&&d.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Yo,[e.createVNode(E,{bg:t((f=c.capsule)==null?void 0:f.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(E,{bg:t((p=c.capsule)==null?void 0:p.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(o.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});X.install=n=>{n.component(X.name,X)};const Ho={class:"bg-white padding"},Go=["data-index"],Ko={name:"TSteps"},Y=e.defineComponent({...Ko,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(n,{emit:t}){return(s,o)=>(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":s.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.steps,(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",l>s.modelValue?"":`text-${s.color}`]),key:l},[e.createElementVNode("text",{class:e.normalizeClass(a.cuIcon?"cuIcon-"+a.cuIcon:"num"),"data-index":l+1},e.toDisplayString(a.cuIcon?"":l+1),11,Go),e.createTextVNode(" "+e.toDisplayString(a.name),1)],2))),128))],2)]))}});Y.install=n=>{n.component(Y.name,Y)};const Jo={class:"cu-dialog"},Qo={class:"cu-bar bg-white justify-end padding-right-sm"},Wo={class:"content"},Zo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],vo={class:"padding-xl"},en={name:"DrawerModal"},O=e.defineComponent({...en,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const s=t,o=()=>{s("update:modelValue",!1)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",a.modelValue?"show":""])},[e.createElementVNode("div",Jo,[e.createElementVNode("div",Qo,[e.createElementVNode("div",Wo,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"action",onClick:o},Zo)]),e.createElementVNode("div",vo,[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});O.install=n=>{n.component(O.name,O)};const tn={class:"loading-animation"},on={name:"Loading1"},nn=e.defineComponent({...on,props:{width:{default:300},height:{default:300},particleRadius:{default:7},particleDecay:{default:.01}},setup(n){class t{constructor(l,r,c){B(this,"radius");B(this,"x");B(this,"y");B(this,"angle");B(this,"speed");B(this,"accel");B(this,"decay");B(this,"life");this.radius=r,this.x=l.x,this.y=l.y,this.angle=l.angle,this.speed=l.speed,this.accel=l.accel,this.decay=c,this.life=1}step(l,r){this.speed+=this.accel,this.x+=Math.cos(this.angle)*this.speed,this.y+=Math.sin(this.angle)*this.speed,this.angle+=Math.PI/64,this.accel*=1.01,this.life-=this.decay,this.life<=0&&r.splice(l,1)}draw(l,r,c,d){l.fillStyle=l.strokeStyle=`hsla(${r+this.life*120}, 100%, 60%, ${this.life})`,l.beginPath(),c[d-1]&&(l.moveTo(this.x,this.y),l.lineTo(c[d-1].x,c[d-1].y)),l.stroke(),l.beginPath(),l.arc(this.x,this.y,Math.max(.001,this.life*this.radius),0,Math.PI*2),l.fill();const f=Math.random()*1.25;l.fillRect(~~(this.x+(Math.random()-.5)*35*this.life),~~(this.y+(Math.random()-.5)*35*this.life),f,f)}}const s=n,o=e.ref(null);return e.onMounted(()=>{if(!o.value)return;const a=o.value.getContext("2d"),{width:l,height:r,particleRadius:c,particleDecay:d}=s,f=window.devicePixelRatio||1;o.value.width=l*f,o.value.height=r*f,o.value.style.width=l+"px",o.value.style.height=r+"px",a.scale(f,f);const p=l*.5,h=[];let y=0,u=0,m=0;a.globalCompositeOperation="lighter";function k(){h.push(new t({x:l/2+Math.cos(m/20)*p/2,y:r/2+Math.sin(m/20)*p/2,angle:u+y,speed:0,accel:.01},c,d)),h.forEach((g,_)=>{g.step(_,h)}),u+=Math.PI/2,y+=Math.PI/2}function I(){a.clearRect(0,0,l,r),h.forEach((g,_)=>{g.draw(a,m,h,_)})}function K(){requestAnimationFrame(K),k(),I(),m++}K()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("canvas",{ref_key:"canvas",ref:o},null,512)]))}}),H=C(nn,[["__scopeId","data-v-022c82bd"]]);H.install=n=>{n.component(H.name,H)};const ln=["data-index"],an={name:"TVirtualScrollSlide"},sn=e.defineComponent({...an,props:{virtualTotal:{},render:{type:Function},list:{}},emits:["slideLeft","slideRight"],setup(n,{emit:t}){const s=n,o=t,a=e.ref(null),l=e.ref(null),r=e.ref(0),c=e.reactive({localIndex:0,wrapperHeight:0,touchStartY:0,touchEndY:0,touchStartX:0,touchEndX:0}),d=e.ref([]),f="slide-item";e.watch(()=>s.list,(g,_)=>{g.length!==_.length&&p()}),e.onMounted(()=>{a.value&&(c.wrapperHeight=a.value.clientHeight,p())});const p=()=>{const g=Math.max(0,c.localIndex),_=Math.min(c.localIndex+s.virtualTotal,s.list.length);d.value=s.list.slice(g,_),r.value=-c.localIndex*c.wrapperHeight},h=g=>{g.touches.length>0&&(c.touchStartY=g.touches[0].clientY,c.touchStartX=g.touches[0].clientX)},y=g=>{g.touches.length>0&&(c.touchEndY=g.touches[0].clientY,c.touchEndX=g.touches[0].clientX)},u=()=>{const g=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;Math.abs(g)>Math.abs(_)&&Math.abs(g)>30?g<0?m():k():Math.abs(_)>30&&(_<0?o("slideLeft",{item:d.value[c.localIndex],index:c.localIndex}):o("slideRight",{item:d.value[c.localIndex],index:c.localIndex})),c.touchStartY=0,c.touchEndY=0,c.touchStartX=0,c.touchEndX=0},m=()=>{c.localIndex<s.list.length-1&&(c.localIndex++,p())},k=()=>{c.localIndex>0&&(c.localIndex--,p())},I=g=>(c.localIndex+g)*c.wrapperHeight,K=e.computed(()=>d.value.map(g=>`video-${g.id}`).join(","));return(g,_)=>(e.openBlock(),e.createElementBlock("div",{class:"slide-wrapper",ref_key:"wrapper",ref:a,onTouchstart:h,onTouchmove:y,onTouchend:u},[e.createElementVNode("div",{class:"slide-list",ref_key:"slideList",ref:l,style:e.normalizeStyle({transform:`translateY(${r.value}px)`})},[(e.openBlock(),e.createBlock(e.KeepAlive,{include:K.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(te,W)=>(e.openBlock(),e.createElementBlock("div",{key:te.id,"data-index":W,class:e.normalizeClass(f),style:e.normalizeStyle({top:`${I(W)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.render(te,W))))],12,ln))),128))],1032,["include"]))],4)],544))}}),G=C(sn,[["__scopeId","data-v-8600af8d"]]);G.install=n=>{n.component(G.name,G)};const cn={install:n=>{n.use($),n.use(z),n.use(b),n.use(N),n.use(S),n.use(w),n.use(T),n.use(D),n.use(j),n.use(F),n.use(L),n.use(M),n.use(q),n.use(A),n.use(P),n.use(x),n.use(E),n.use(R),n.use(U),n.use(X),n.use(Y),n.use(O),n.use(H),n.use(G)}};i.ChatList=R,i.ChatRoom=U,i.DrawerModal=O,i.GridGroup=A,i.Loading1=H,i.Menu=P,i.TAvatar=b,i.TAvatarGroup=N,i.TButton=x,i.TIcon=$,i.TInputBar=L,i.TNavBar=D,i.TNavCard=S,i.TNewCard=w,i.TSearchBar=F,i.TShareCard=T,i.TSteps=Y,i.TTab=q,i.TTabs=M,i.TTag=E,i.TTitle=z,i.TTopBar=j,i.TimeLine=X,i.default=cn,i.textColor=qt,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
package/types/pkg/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import TNavCard from "./NavCard";
|
|
8
8
|
import TNewCard from "./NewCard";
|
|
9
9
|
import TShareCard from "./ShareCard";
|
|
10
|
-
import { TAvatar, TButton, TIcon, TTag, TTitle } from "./Base";
|
|
10
|
+
import { TAvatar, TAvatarGroup, TButton, TIcon, TTag, TTitle } from "./Base";
|
|
11
11
|
import TNavBar from "./NavBar";
|
|
12
12
|
import TTopBar from "./TopBar";
|
|
13
13
|
import TSearchBar from "./SearchBar";
|
|
@@ -22,7 +22,7 @@ import TSteps from "./Steps";
|
|
|
22
22
|
import DrawerModal from "./modal";
|
|
23
23
|
import Loading1 from "./Loading";
|
|
24
24
|
import { textColor } from "./tools";
|
|
25
|
-
export { TNavCard, TNewCard, TIcon, TTitle, TShareCard, TAvatar, TNavBar, TTopBar, TSearchBar, TInputBar, TTabs, TTab, GridGroup, Menu, TButton, TTag, ChatList, ChatRoom, TimeLine, TSteps, DrawerModal, Loading1, textColor, };
|
|
25
|
+
export { TNavCard, TNewCard, TIcon, TTitle, TShareCard, TAvatar, TAvatarGroup, TNavBar, TTopBar, TSearchBar, TInputBar, TTabs, TTab, GridGroup, Menu, TButton, TTag, ChatList, ChatRoom, TimeLine, TSteps, DrawerModal, Loading1, textColor, };
|
|
26
26
|
declare const _default: {
|
|
27
27
|
install: (app: any) => void;
|
|
28
28
|
};
|