vue-color-ui 0.0.37 → 0.0.38
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/style.css +1 -1
- package/lib/temp-color-ui.js +152 -153
- package/lib/temp-color-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-7b4ca731]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-
|
|
1
|
+
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-7b4ca731]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
|
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = (t, e, i) => (
|
|
4
|
-
import { defineComponent as _, openBlock as o, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as
|
|
1
|
+
var we = Object.defineProperty;
|
|
2
|
+
var Ce = (t, e, i) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
|
|
3
|
+
var M = (t, e, i) => (Ce(t, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import { defineComponent as _, openBlock as o, createElementBlock as l, Fragment as b, renderList as y, normalizeClass as d, normalizeStyle as w, createElementVNode as n, toDisplayString as u, createTextVNode as k, createCommentVNode as f, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as S, createBlock as V, ref as T, withModifiers as de, unref as Se, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Be, withKeys as je, withDirectives as he, vShow as fe, provide as ve, watch as Ie, inject as pe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
|
|
5
5
|
const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" }, Ne = { class: "nav-name" }, Pe = {
|
|
6
6
|
name: "TNavCard"
|
|
7
|
-
},
|
|
7
|
+
}, R = /* @__PURE__ */ _({
|
|
8
8
|
...Pe,
|
|
9
9
|
props: {
|
|
10
10
|
items: {}
|
|
@@ -18,7 +18,7 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
|
|
|
18
18
|
(o(!0), l(b, null, y(c.items, (h, r) => (o(), l("div", {
|
|
19
19
|
"hover-class": "none",
|
|
20
20
|
class: d(["nav-li", "bg-" + h.color]),
|
|
21
|
-
style:
|
|
21
|
+
style: w([{ animation: "show " + ((r + 1) * 0.2 + 1) + "s 1" }]),
|
|
22
22
|
key: r,
|
|
23
23
|
onClick: (p) => s(h, r)
|
|
24
24
|
}, [
|
|
@@ -31,14 +31,14 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
|
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
|
|
35
|
-
t.component(
|
|
34
|
+
R.install = (t) => {
|
|
35
|
+
t.component(R.name, R);
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const me = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-item shadow" }, De = { class: "title" }, Fe = { class: "text-cut" }, Re = { class: "content" }, Ue = ["src", "alt"], Xe = { class: "desc" }, Ye = { class: "text-content" }, Oe = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "content flex-sub justify-between text-sm solid-top margin-top-sm",
|
|
40
40
|
style: { padding: "5px 15px" }
|
|
41
|
-
}, He = { class: "text-gray" }, Ge = /* @__PURE__ */
|
|
41
|
+
}, He = { class: "text-gray" }, Ge = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1)), Ke = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1)), Je = /* @__PURE__ */ me(() => /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1)), Qe = { class: "margin-left-sm text-gray flex justify-between" }, We = { class: "text-grey margin-right-xs" }, Ze = {
|
|
42
42
|
name: "TNewCard"
|
|
43
43
|
// 组件名称
|
|
44
44
|
}, et = /* @__PURE__ */ _({
|
|
@@ -103,16 +103,16 @@ const _e = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
|
|
|
103
103
|
for (const [s, c] of e)
|
|
104
104
|
i[s] = c;
|
|
105
105
|
return i;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
t.component(
|
|
106
|
+
}, U = /* @__PURE__ */ A(et, [["__scopeId", "data-v-bbdb83ff"]]);
|
|
107
|
+
U.install = (t) => {
|
|
108
|
+
t.component(U.name, U);
|
|
109
109
|
};
|
|
110
110
|
const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, ot = { class: "cu-item" }, nt = { class: "content flex-sub" }, lt = { class: "text-gray text-sm flex justify-between" }, at = { class: "text-content" }, ct = { class: "text-gray text-sm text-right padding" }, it = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), rt = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), ut = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), dt = { class: "cu-item" }, ht = { class: "content" }, ft = { class: "text-grey" }, pt = { class: "text-gray text-content text-df" }, gt = { class: "flex" }, mt = { class: "flex-sub" }, _t = { class: "margin-top-sm flex justify-between" }, vt = { class: "text-gray text-df" }, bt = {
|
|
111
111
|
key: 0,
|
|
112
112
|
class: "cuIcon-appreciatefill text-red"
|
|
113
113
|
}, $t = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), yt = { class: "text-gray margin-left-xs" }, kt = {
|
|
114
114
|
name: "TShareCard"
|
|
115
|
-
},
|
|
115
|
+
}, X = /* @__PURE__ */ _({
|
|
116
116
|
...kt,
|
|
117
117
|
props: {
|
|
118
118
|
isCard: { type: Boolean, default: !0 },
|
|
@@ -170,7 +170,7 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, o
|
|
|
170
170
|
n("div", ot, [
|
|
171
171
|
n("div", {
|
|
172
172
|
class: "cu-avatar round lg",
|
|
173
|
-
style:
|
|
173
|
+
style: w({ backgroundImage: `url(${e.avatarUrl})` })
|
|
174
174
|
}, null, 4),
|
|
175
175
|
n("div", nt, [
|
|
176
176
|
n("div", null, u(e.author), 1),
|
|
@@ -184,7 +184,7 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, o
|
|
|
184
184
|
}, [
|
|
185
185
|
(o(!0), l(b, null, y(e.isCard ? 9 : 1, (s) => (o(), l("div", {
|
|
186
186
|
class: d(["bg-img", e.isCard ? "" : "only-img"]),
|
|
187
|
-
style:
|
|
187
|
+
style: w({ backgroundImage: `url(${e.imageUrl})` }),
|
|
188
188
|
key: s
|
|
189
189
|
}, null, 6))), 128))
|
|
190
190
|
], 2),
|
|
@@ -205,7 +205,7 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, o
|
|
|
205
205
|
n("div", dt, [
|
|
206
206
|
n("div", {
|
|
207
207
|
class: "cu-avatar round",
|
|
208
|
-
style:
|
|
208
|
+
style: w({ backgroundImage: `url(${s.avatarUrl})` })
|
|
209
209
|
}, null, 4),
|
|
210
210
|
n("div", ht, [
|
|
211
211
|
n("div", ft, u(s.author), 1),
|
|
@@ -236,8 +236,8 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, o
|
|
|
236
236
|
]));
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
|
|
240
|
-
t.component(
|
|
239
|
+
X.install = (t) => {
|
|
240
|
+
t.component(X.name, X);
|
|
241
241
|
};
|
|
242
242
|
const It = {
|
|
243
243
|
ssss: "2px",
|
|
@@ -251,14 +251,14 @@ const It = {
|
|
|
251
251
|
xxl: "30px",
|
|
252
252
|
xxxl: "48px"
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function wt(t, e, i = "px") {
|
|
255
255
|
if (typeof e == "number")
|
|
256
256
|
return `${t}: ${e}${i};`;
|
|
257
257
|
const s = It[e];
|
|
258
258
|
return s ? `${t}: ${s};` : "";
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
return
|
|
260
|
+
function Ct(t) {
|
|
261
|
+
return wt("font-size", t);
|
|
262
262
|
}
|
|
263
263
|
const xt = {
|
|
264
264
|
name: "TIcon"
|
|
@@ -270,10 +270,10 @@ const xt = {
|
|
|
270
270
|
size: { default: 15 }
|
|
271
271
|
},
|
|
272
272
|
setup(t) {
|
|
273
|
-
const e = t, i = j(() =>
|
|
273
|
+
const e = t, i = j(() => Ct(e.size));
|
|
274
274
|
return (s, c) => (o(), l("i", {
|
|
275
275
|
class: d(`cuIcon-${s.name} text-${s.color}`),
|
|
276
|
-
style:
|
|
276
|
+
style: w(i.value)
|
|
277
277
|
}, null, 6));
|
|
278
278
|
}
|
|
279
279
|
}), Tt = { class: "action border-title" }, St = { class: "action border-title" }, Bt = { class: "tib text-xl text-bold text-blue" }, jt = /* @__PURE__ */ n("div", {
|
|
@@ -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" }, Ft = { name: "TTitle" },
|
|
291
|
+
}, Lt = { class: "action" }, Dt = { class: "action" }, Ft = { name: "TTitle" }, Y = /* @__PURE__ */ _({
|
|
292
292
|
...Ft,
|
|
293
293
|
props: {
|
|
294
294
|
title: { default: "主题名称" },
|
|
@@ -387,7 +387,7 @@ const xt = {
|
|
|
387
387
|
return (e, i) => e.url ? (o(), l("div", {
|
|
388
388
|
key: 0,
|
|
389
389
|
class: d(["cu-avatar", e.size, e.mode]),
|
|
390
|
-
style:
|
|
390
|
+
style: w({ backgroundImage: `url(${e.url})` })
|
|
391
391
|
}, null, 6)) : (o(), l("div", {
|
|
392
392
|
key: 1,
|
|
393
393
|
class: d(["padding-xs", ["cu-avatar", e.size, e.mode]])
|
|
@@ -397,7 +397,7 @@ const xt = {
|
|
|
397
397
|
}
|
|
398
398
|
}), Ut = { class: "cu-avatar-group" }, Xt = {
|
|
399
399
|
name: "TAvatarGroup"
|
|
400
|
-
},
|
|
400
|
+
}, O = /* @__PURE__ */ _({
|
|
401
401
|
...Xt,
|
|
402
402
|
props: {
|
|
403
403
|
urls: { default: () => [] },
|
|
@@ -415,7 +415,7 @@ const xt = {
|
|
|
415
415
|
}
|
|
416
416
|
}), Yt = ["disabled"], Ot = { key: 1 }, Ht = {
|
|
417
417
|
name: "TButton"
|
|
418
|
-
},
|
|
418
|
+
}, H = /* @__PURE__ */ _({
|
|
419
419
|
...Ht,
|
|
420
420
|
props: {
|
|
421
421
|
text: {},
|
|
@@ -440,14 +440,14 @@ const xt = {
|
|
|
440
440
|
}));
|
|
441
441
|
return (a, h) => (o(), l("button", {
|
|
442
442
|
class: d(i.value),
|
|
443
|
-
style:
|
|
443
|
+
style: w(s.value),
|
|
444
444
|
disabled: a.disabled
|
|
445
445
|
}, [
|
|
446
446
|
S(a.$slots, "default"),
|
|
447
447
|
a.icon ? (o(), l("i", {
|
|
448
448
|
key: 0,
|
|
449
449
|
class: d(`cuIcon-${a.icon}`),
|
|
450
|
-
style:
|
|
450
|
+
style: w(c.value)
|
|
451
451
|
}, null, 6)) : f("", !0),
|
|
452
452
|
a.text ? (o(), l("span", Ot, u(a.text), 1)) : f("", !0)
|
|
453
453
|
], 14, Yt));
|
|
@@ -474,7 +474,7 @@ const xt = {
|
|
|
474
474
|
].join(" ")), s = j(() => ({}));
|
|
475
475
|
return (c, a) => (o(), l("div", {
|
|
476
476
|
class: d(i.value),
|
|
477
|
-
style:
|
|
477
|
+
style: w(s.value)
|
|
478
478
|
}, [
|
|
479
479
|
S(c.$slots, "default"),
|
|
480
480
|
c.text ? (o(), l("span", Gt, u(c.text), 1)) : f("", !0)
|
|
@@ -484,18 +484,18 @@ const xt = {
|
|
|
484
484
|
L.install = (t) => {
|
|
485
485
|
t.component(L.name, L);
|
|
486
486
|
};
|
|
487
|
-
|
|
488
|
-
t.component(
|
|
487
|
+
Y.install = (t) => {
|
|
488
|
+
t.component(Y.name, Y);
|
|
489
489
|
};
|
|
490
490
|
z.install = (t) => {
|
|
491
491
|
t.component(z.name, z);
|
|
492
492
|
};
|
|
493
|
+
O.install = (t) => {
|
|
494
|
+
t.component(O.name, O);
|
|
495
|
+
};
|
|
493
496
|
H.install = (t) => {
|
|
494
497
|
t.component(H.name, H);
|
|
495
498
|
};
|
|
496
|
-
G.install = (t) => {
|
|
497
|
-
t.component(G.name, G);
|
|
498
|
-
};
|
|
499
499
|
q.install = (t) => {
|
|
500
500
|
t.component(q.name, q);
|
|
501
501
|
};
|
|
@@ -510,7 +510,7 @@ const Jt = ["onClick"], Qt = {
|
|
|
510
510
|
class: "cu-tag badge"
|
|
511
511
|
}, ts = {
|
|
512
512
|
name: "TNavBar"
|
|
513
|
-
},
|
|
513
|
+
}, G = /* @__PURE__ */ _({
|
|
514
514
|
...ts,
|
|
515
515
|
props: {
|
|
516
516
|
bg: { default: "white" },
|
|
@@ -574,8 +574,8 @@ const Jt = ["onClick"], Qt = {
|
|
|
574
574
|
], 2));
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
|
-
|
|
578
|
-
t.component(
|
|
577
|
+
G.install = (t) => {
|
|
578
|
+
t.component(G.name, G);
|
|
579
579
|
};
|
|
580
580
|
const ss = {
|
|
581
581
|
key: 0,
|
|
@@ -583,7 +583,7 @@ const ss = {
|
|
|
583
583
|
}, os = { key: 1 }, ns = { class: "content text-bold" }, ls = {
|
|
584
584
|
key: 2,
|
|
585
585
|
class: "action"
|
|
586
|
-
}, as = { name: "TTopBar" },
|
|
586
|
+
}, as = { name: "TTopBar" }, K = /* @__PURE__ */ _({
|
|
587
587
|
...as,
|
|
588
588
|
props: {
|
|
589
589
|
title: {},
|
|
@@ -609,7 +609,7 @@ const ss = {
|
|
|
609
609
|
e.avatarUrl ? (o(), l("div", {
|
|
610
610
|
key: 1,
|
|
611
611
|
class: "cu-avatar round",
|
|
612
|
-
style:
|
|
612
|
+
style: w({ backgroundImage: `url(${e.avatarUrl})` })
|
|
613
613
|
}, null, 4)) : f("", !0),
|
|
614
614
|
n("div", ns, u(e.title), 1),
|
|
615
615
|
e.rightIcon ? (o(), l("div", ls, [
|
|
@@ -620,15 +620,15 @@ const ss = {
|
|
|
620
620
|
], 2));
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
|
-
|
|
624
|
-
t.component(
|
|
623
|
+
K.install = (t) => {
|
|
624
|
+
t.component(K.name, K);
|
|
625
625
|
};
|
|
626
626
|
const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is = ["placeholder"], rs = { class: "action" }, us = {
|
|
627
627
|
key: 0,
|
|
628
628
|
class: "cu-btn bg-green shadow-blur round"
|
|
629
629
|
}, ds = { key: 0 }, hs = { key: 3 }, fs = {
|
|
630
630
|
name: "TSearchBar"
|
|
631
|
-
},
|
|
631
|
+
}, J = /* @__PURE__ */ _({
|
|
632
632
|
...fs,
|
|
633
633
|
props: {
|
|
634
634
|
placeholder: { default: "" },
|
|
@@ -653,7 +653,7 @@ const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is =
|
|
|
653
653
|
c.avatarUrl ? (o(), l("div", {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: "cu-avatar round",
|
|
656
|
-
style:
|
|
656
|
+
style: w({ backgroundImage: `url(${c.avatarUrl})` })
|
|
657
657
|
}, null, 4)) : f("", !0),
|
|
658
658
|
n("div", {
|
|
659
659
|
class: d(["search-form", c.borderRadiusClass])
|
|
@@ -685,8 +685,8 @@ const cs = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), is =
|
|
|
685
685
|
], 2));
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
|
-
|
|
689
|
-
t.component(
|
|
688
|
+
J.install = (t) => {
|
|
689
|
+
t.component(J.name, J);
|
|
690
690
|
};
|
|
691
691
|
const ps = {
|
|
692
692
|
key: 0,
|
|
@@ -791,7 +791,7 @@ const ps = {
|
|
|
791
791
|
return (c, a) => (o(), l("div", {
|
|
792
792
|
class: "emoji-panel",
|
|
793
793
|
ref: "emojiPanel",
|
|
794
|
-
onClick: a[0] || (a[0] =
|
|
794
|
+
onClick: a[0] || (a[0] = de(() => {
|
|
795
795
|
}, ["stop"]))
|
|
796
796
|
}, [
|
|
797
797
|
(o(!0), l(b, null, y(Se(vs), (h) => (o(), l("span", {
|
|
@@ -800,7 +800,7 @@ const ps = {
|
|
|
800
800
|
}, u(h), 9, bs))), 128))
|
|
801
801
|
], 512));
|
|
802
802
|
}
|
|
803
|
-
}), ys = /* @__PURE__ */ A($s, [["__scopeId", "data-v-e9a4aa4d"]]), ks = { class: "function-panel-container" }, Is = ["onClick"],
|
|
803
|
+
}), ys = /* @__PURE__ */ A($s, [["__scopeId", "data-v-e9a4aa4d"]]), ks = { class: "function-panel-container" }, Is = ["onClick"], ws = /* @__PURE__ */ _({
|
|
804
804
|
__name: "FunctionPanel",
|
|
805
805
|
props: {
|
|
806
806
|
items: {}
|
|
@@ -832,7 +832,7 @@ const ps = {
|
|
|
832
832
|
]);
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
|
-
}),
|
|
835
|
+
}), Cs = /* @__PURE__ */ A(ws, [["__scopeId", "data-v-1fefca20"]]), xs = { class: "cu-bar input" }, Ts = {
|
|
836
836
|
key: 0,
|
|
837
837
|
class: "action"
|
|
838
838
|
}, Ss = {
|
|
@@ -855,8 +855,8 @@ const ps = {
|
|
|
855
855
|
i.value = g.detail.height;
|
|
856
856
|
}, p = () => {
|
|
857
857
|
i.value = 0;
|
|
858
|
-
}, $ = (g = "",
|
|
859
|
-
g ? a("send", g,
|
|
858
|
+
}, $ = (g = "", C) => {
|
|
859
|
+
g ? a("send", g, C) : a("send", h.modelValue), a("update:modelValue", ""), s.value = !1;
|
|
860
860
|
}, m = () => {
|
|
861
861
|
c.value = !1, s.value = !s.value;
|
|
862
862
|
}, I = () => {
|
|
@@ -864,12 +864,12 @@ const ps = {
|
|
|
864
864
|
}, B = (g) => {
|
|
865
865
|
a("update:modelValue", h.modelValue + g);
|
|
866
866
|
}, E = (g) => {
|
|
867
|
-
const
|
|
868
|
-
a("update:modelValue",
|
|
867
|
+
const C = g.target;
|
|
868
|
+
a("update:modelValue", C.value);
|
|
869
869
|
};
|
|
870
870
|
return D(() => {
|
|
871
871
|
}), Be(() => {
|
|
872
|
-
}), (g,
|
|
872
|
+
}), (g, C) => (o(), l(b, null, [
|
|
873
873
|
P(_s, {
|
|
874
874
|
text: g.modelValue,
|
|
875
875
|
"string-array": g.stringArray,
|
|
@@ -889,8 +889,8 @@ const ps = {
|
|
|
889
889
|
n("input", {
|
|
890
890
|
onFocus: r,
|
|
891
891
|
onBlur: p,
|
|
892
|
-
onKeydown:
|
|
893
|
-
onConfirm:
|
|
892
|
+
onKeydown: C[0] || (C[0] = je((N) => $(), ["enter"])),
|
|
893
|
+
onConfirm: C[1] || (C[1] = (N) => $()),
|
|
894
894
|
"adjust-position": !1,
|
|
895
895
|
class: "solid-bottom",
|
|
896
896
|
maxlength: "300",
|
|
@@ -901,34 +901,34 @@ const ps = {
|
|
|
901
901
|
n("div", js, [
|
|
902
902
|
n("text", {
|
|
903
903
|
class: d(`cuIcon-${g.rightIcon} text-grey`),
|
|
904
|
-
onClick:
|
|
904
|
+
onClick: de(m, ["stop"])
|
|
905
905
|
}, null, 2),
|
|
906
906
|
g.functionItems && g.functionItems.length > 0 ? (o(), l("text", {
|
|
907
907
|
key: 0,
|
|
908
908
|
class: d("cuIcon-roundaddfill text-grey"),
|
|
909
|
-
onClick:
|
|
909
|
+
onClick: de(I, ["stop"])
|
|
910
910
|
})) : f("", !0)
|
|
911
911
|
]),
|
|
912
912
|
n("button", {
|
|
913
913
|
class: "cu-btn bg-green shadow-blur round",
|
|
914
|
-
onClick:
|
|
914
|
+
onClick: C[2] || (C[2] = (N) => $())
|
|
915
915
|
}, u(g.buttonText), 1)
|
|
916
916
|
]),
|
|
917
|
-
|
|
918
|
-
[
|
|
917
|
+
he(P(ys, { onAddEmoji: B }, null, 512), [
|
|
918
|
+
[fe, s.value]
|
|
919
919
|
]),
|
|
920
|
-
|
|
921
|
-
[
|
|
920
|
+
he(P(Cs, { items: g.functionItems }, null, 8, ["items"]), [
|
|
921
|
+
[fe, c.value]
|
|
922
922
|
])
|
|
923
923
|
], 64));
|
|
924
924
|
}
|
|
925
|
-
}),
|
|
926
|
-
|
|
927
|
-
t.component(
|
|
925
|
+
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-7b4ca731"]]);
|
|
926
|
+
Q.install = (t) => {
|
|
927
|
+
t.component(Q.name, Q);
|
|
928
928
|
};
|
|
929
929
|
const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
930
930
|
name: "TTabs"
|
|
931
|
-
},
|
|
931
|
+
}, W = /* @__PURE__ */ _({
|
|
932
932
|
...qs,
|
|
933
933
|
props: {
|
|
934
934
|
modelValue: { default: 0 },
|
|
@@ -964,7 +964,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
964
964
|
}, [
|
|
965
965
|
n("div", {
|
|
966
966
|
class: d(["nav flex", [, `bg-${m.bg}`, `text-${m.text}`]]),
|
|
967
|
-
style:
|
|
967
|
+
style: w(p.value)
|
|
968
968
|
}, [
|
|
969
969
|
(o(!0), l(b, null, y(c.value, (B, E) => (o(), l("div", {
|
|
970
970
|
class: d(["cu-item", $.value(E)]),
|
|
@@ -987,7 +987,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
987
987
|
}
|
|
988
988
|
}), As = {
|
|
989
989
|
name: "TTab"
|
|
990
|
-
},
|
|
990
|
+
}, Z = /* @__PURE__ */ _({
|
|
991
991
|
...As,
|
|
992
992
|
props: {
|
|
993
993
|
label: {},
|
|
@@ -995,9 +995,9 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
995
995
|
iconColor: { default: "black" }
|
|
996
996
|
},
|
|
997
997
|
setup(t) {
|
|
998
|
-
const e = t, i =
|
|
998
|
+
const e = t, i = pe(
|
|
999
999
|
"registerTab"
|
|
1000
|
-
), s =
|
|
1000
|
+
), s = pe("activeTab"), c = T(null), a = j(() => (s == null ? void 0 : s.value) === c.value), h = j(() => ({
|
|
1001
1001
|
label: e.label,
|
|
1002
1002
|
icon: e.icon,
|
|
1003
1003
|
iconColor: e.iconColor
|
|
@@ -1008,20 +1008,20 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
1008
1008
|
icon: e.icon,
|
|
1009
1009
|
iconColor: e.iconColor
|
|
1010
1010
|
}));
|
|
1011
|
-
}), (r, p) =>
|
|
1011
|
+
}), (r, p) => he((o(), l("div", null, [
|
|
1012
1012
|
S(r.$slots, "default"),
|
|
1013
1013
|
S(r.$slots, "custom", { tab: h.value })
|
|
1014
1014
|
], 512)), [
|
|
1015
|
-
[
|
|
1015
|
+
[fe, a.value]
|
|
1016
1016
|
]);
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
1019
|
+
W.install = (t) => {
|
|
1020
|
+
t.component(W.name, W);
|
|
1021
|
+
};
|
|
1019
1022
|
Z.install = (t) => {
|
|
1020
1023
|
t.component(Z.name, Z);
|
|
1021
1024
|
};
|
|
1022
|
-
ee.install = (t) => {
|
|
1023
|
-
t.component(ee.name, ee);
|
|
1024
|
-
};
|
|
1025
1025
|
/*!
|
|
1026
1026
|
* vue-router v4.3.3
|
|
1027
1027
|
* (c) 2024 Eduardo San Martin Morote
|
|
@@ -1046,14 +1046,14 @@ const Ns = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
|
1046
1046
|
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
1047
1047
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
1048
1048
|
function Ps() {
|
|
1049
|
-
return
|
|
1049
|
+
return pe(Ns);
|
|
1050
1050
|
}
|
|
1051
1051
|
const Ls = ["onClick"], Ds = {
|
|
1052
1052
|
key: 0,
|
|
1053
1053
|
class: "cu-tag badge"
|
|
1054
1054
|
}, Fs = { key: 0 }, Rs = {
|
|
1055
1055
|
name: "GridGroup"
|
|
1056
|
-
},
|
|
1056
|
+
}, ee = /* @__PURE__ */ _({
|
|
1057
1057
|
...Rs,
|
|
1058
1058
|
props: {
|
|
1059
1059
|
cuIconList: { default: () => [
|
|
@@ -1144,7 +1144,7 @@ const Ls = ["onClick"], Ds = {
|
|
|
1144
1144
|
(o(!0), l(b, null, y(c.cuIconList, (h, r) => (o(), l("div", {
|
|
1145
1145
|
class: "cu-item",
|
|
1146
1146
|
key: r,
|
|
1147
|
-
style:
|
|
1147
|
+
style: w(`width: calc(100% / ${c.gridCol})`),
|
|
1148
1148
|
onClick: (p) => s(h)
|
|
1149
1149
|
}, [
|
|
1150
1150
|
n("div", {
|
|
@@ -1159,8 +1159,8 @@ const Ls = ["onClick"], Ds = {
|
|
|
1159
1159
|
], 2));
|
|
1160
1160
|
}
|
|
1161
1161
|
});
|
|
1162
|
-
|
|
1163
|
-
t.component(
|
|
1162
|
+
ee.install = (t) => {
|
|
1163
|
+
t.component(ee.name, ee);
|
|
1164
1164
|
};
|
|
1165
1165
|
const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { class: "text-grey" }, Hs = { class: "action" }, Gs = {
|
|
1166
1166
|
key: 1,
|
|
@@ -1170,7 +1170,7 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1170
1170
|
class: "text-grey text-sm"
|
|
1171
1171
|
}, Qs = {
|
|
1172
1172
|
name: "Menu"
|
|
1173
|
-
},
|
|
1173
|
+
}, te = /* @__PURE__ */ _({
|
|
1174
1174
|
...Qs,
|
|
1175
1175
|
props: {
|
|
1176
1176
|
menuItems: { default: () => [
|
|
@@ -1277,7 +1277,7 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1277
1277
|
n("text", Os, u(a.title), 1)
|
|
1278
1278
|
]),
|
|
1279
1279
|
n("div", Hs, [
|
|
1280
|
-
a.group ? (o(), V(
|
|
1280
|
+
a.group ? (o(), V(O, {
|
|
1281
1281
|
key: 0,
|
|
1282
1282
|
urls: a.group
|
|
1283
1283
|
}, null, 8, ["urls"])) : f("", !0),
|
|
@@ -1304,7 +1304,7 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1304
1304
|
light: r.light,
|
|
1305
1305
|
shape: "round"
|
|
1306
1306
|
}, {
|
|
1307
|
-
default:
|
|
1307
|
+
default: re(() => [
|
|
1308
1308
|
k(u(r.text), 1)
|
|
1309
1309
|
]),
|
|
1310
1310
|
_: 2
|
|
@@ -1315,15 +1315,15 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1315
1315
|
], 2));
|
|
1316
1316
|
}
|
|
1317
1317
|
});
|
|
1318
|
-
|
|
1319
|
-
t.component(
|
|
1318
|
+
te.install = (t) => {
|
|
1319
|
+
t.component(te.name, te);
|
|
1320
1320
|
};
|
|
1321
1321
|
const Ws = {
|
|
1322
1322
|
key: 1,
|
|
1323
1323
|
class: "cu-tag badge"
|
|
1324
1324
|
}, Zs = { class: "content" }, eo = { class: "flex align-center" }, to = { class: "text-cut text-black" }, so = { class: "text-gray text-sm flex" }, oo = { class: "text-cut" }, no = { class: "action" }, lo = { class: "text-grey text-xs" }, ao = {
|
|
1325
1325
|
name: "ChatListItem"
|
|
1326
|
-
},
|
|
1326
|
+
}, ge = /* @__PURE__ */ _({
|
|
1327
1327
|
...ao,
|
|
1328
1328
|
props: {
|
|
1329
1329
|
userinfo: {},
|
|
@@ -1354,7 +1354,9 @@ const Ws = {
|
|
|
1354
1354
|
}, [
|
|
1355
1355
|
n("div", {
|
|
1356
1356
|
class: d(["cu-avatar", i.userinfo.avatarShape, "lg", `bg-${i.avatarBg}`]),
|
|
1357
|
-
style:
|
|
1357
|
+
style: w({
|
|
1358
|
+
backgroundImage: i.userinfo.avatar ? `url(${i.userinfo.avatar})` : ""
|
|
1359
|
+
})
|
|
1358
1360
|
}, [
|
|
1359
1361
|
(a = i.userinfo) != null && a.avatar ? f("", !0) : (o(), V(c, {
|
|
1360
1362
|
key: 0,
|
|
@@ -1393,14 +1395,14 @@ const Ws = {
|
|
|
1393
1395
|
}
|
|
1394
1396
|
}), co = { class: "cu-list menu-avatar" }, io = {
|
|
1395
1397
|
name: "ChatList"
|
|
1396
|
-
},
|
|
1398
|
+
}, se = /* @__PURE__ */ _({
|
|
1397
1399
|
...io,
|
|
1398
1400
|
props: {
|
|
1399
1401
|
items: {}
|
|
1400
1402
|
},
|
|
1401
1403
|
setup(t) {
|
|
1402
1404
|
return (e, i) => (o(), l("div", co, [
|
|
1403
|
-
(o(!0), l(b, null, y(e.items, (s, c) => (o(), V(
|
|
1405
|
+
(o(!0), l(b, null, y(e.items, (s, c) => (o(), V(ge, {
|
|
1404
1406
|
"avatar-name": s.avatarName,
|
|
1405
1407
|
"avatar-bg": s.avatarBg,
|
|
1406
1408
|
time: s.time,
|
|
@@ -1415,7 +1417,7 @@ const Ws = {
|
|
|
1415
1417
|
isCurrent: s.isCurrent,
|
|
1416
1418
|
event: s.event
|
|
1417
1419
|
}, {
|
|
1418
|
-
default:
|
|
1420
|
+
default: re(() => [
|
|
1419
1421
|
S(e.$slots, "default", { item: s }, () => [
|
|
1420
1422
|
k(u(s.content), 1)
|
|
1421
1423
|
])
|
|
@@ -1425,8 +1427,8 @@ const Ws = {
|
|
|
1425
1427
|
]));
|
|
1426
1428
|
}
|
|
1427
1429
|
});
|
|
1428
|
-
|
|
1429
|
-
t.component(
|
|
1430
|
+
se.install = (t) => {
|
|
1431
|
+
t.component(se.name, se), t.component(ge.name, ge);
|
|
1430
1432
|
};
|
|
1431
1433
|
const ro = { class: "cu-chat" }, uo = {
|
|
1432
1434
|
key: 0,
|
|
@@ -1443,8 +1445,8 @@ const ro = { class: "cu-chat" }, uo = {
|
|
|
1443
1445
|
}, $o = /* @__PURE__ */ n("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), yo = { class: "content shadow" }, ko = /* @__PURE__ */ n("div", { class: "action text-grey" }, [
|
|
1444
1446
|
/* @__PURE__ */ n("text", { class: "cuIcon-warnfill text-red text-xxl" }),
|
|
1445
1447
|
/* @__PURE__ */ n("text", { class: "text-sm margin-left-sm" }, "翻译错误")
|
|
1446
|
-
], -1), Io = { class: "date" },
|
|
1447
|
-
...
|
|
1448
|
+
], -1), Io = { class: "date" }, wo = { name: "ChatRoom" }, oe = /* @__PURE__ */ _({
|
|
1449
|
+
...wo,
|
|
1448
1450
|
props: {
|
|
1449
1451
|
messages: {}
|
|
1450
1452
|
},
|
|
@@ -1501,15 +1503,15 @@ const ro = { class: "cu-chat" }, uo = {
|
|
|
1501
1503
|
]));
|
|
1502
1504
|
}
|
|
1503
1505
|
});
|
|
1504
|
-
|
|
1505
|
-
t.component(
|
|
1506
|
+
oe.install = (t) => {
|
|
1507
|
+
t.component(oe.name, oe);
|
|
1506
1508
|
};
|
|
1507
|
-
const
|
|
1509
|
+
const Co = { class: "cu-time" }, xo = {
|
|
1508
1510
|
key: 0,
|
|
1509
1511
|
class: "cu-capsule radius"
|
|
1510
1512
|
}, To = {
|
|
1511
1513
|
name: "TimeLine"
|
|
1512
|
-
},
|
|
1514
|
+
}, ne = /* @__PURE__ */ _({
|
|
1513
1515
|
...To,
|
|
1514
1516
|
props: {
|
|
1515
1517
|
items: { default: () => [] }
|
|
@@ -1535,7 +1537,7 @@ const wo = { class: "cu-time" }, xo = {
|
|
|
1535
1537
|
key: h,
|
|
1536
1538
|
class: "cu-timeline"
|
|
1537
1539
|
}, [
|
|
1538
|
-
n("div",
|
|
1540
|
+
n("div", Co, u(a.date), 1),
|
|
1539
1541
|
(o(!0), l(b, null, y(a.items, (r) => {
|
|
1540
1542
|
var p, $, m;
|
|
1541
1543
|
return o(), l("div", {
|
|
@@ -1549,7 +1551,7 @@ const wo = { class: "cu-time" }, xo = {
|
|
|
1549
1551
|
P(q, {
|
|
1550
1552
|
bg: e(($ = r.capsule) == null ? void 0 : $.color)
|
|
1551
1553
|
}, {
|
|
1552
|
-
default:
|
|
1554
|
+
default: re(() => [
|
|
1553
1555
|
k(u(r.capsule.list[0]), 1)
|
|
1554
1556
|
]),
|
|
1555
1557
|
_: 2
|
|
@@ -1558,7 +1560,7 @@ const wo = { class: "cu-time" }, xo = {
|
|
|
1558
1560
|
bg: e((m = r.capsule) == null ? void 0 : m.color),
|
|
1559
1561
|
light: !0
|
|
1560
1562
|
}, {
|
|
1561
|
-
default:
|
|
1563
|
+
default: re(() => [
|
|
1562
1564
|
k(u(r.capsule.list[1]), 1)
|
|
1563
1565
|
]),
|
|
1564
1566
|
_: 2
|
|
@@ -1578,12 +1580,12 @@ const wo = { class: "cu-time" }, xo = {
|
|
|
1578
1580
|
]));
|
|
1579
1581
|
}
|
|
1580
1582
|
});
|
|
1581
|
-
|
|
1582
|
-
t.component(
|
|
1583
|
+
ne.install = (t) => {
|
|
1584
|
+
t.component(ne.name, ne);
|
|
1583
1585
|
};
|
|
1584
1586
|
const So = { class: "bg-white padding" }, Bo = ["data-index"], jo = {
|
|
1585
1587
|
name: "TSteps"
|
|
1586
|
-
},
|
|
1588
|
+
}, le = /* @__PURE__ */ _({
|
|
1587
1589
|
...jo,
|
|
1588
1590
|
props: {
|
|
1589
1591
|
steps: {},
|
|
@@ -1611,14 +1613,14 @@ const So = { class: "bg-white padding" }, Bo = ["data-index"], jo = {
|
|
|
1611
1613
|
]));
|
|
1612
1614
|
}
|
|
1613
1615
|
});
|
|
1614
|
-
|
|
1615
|
-
t.component(
|
|
1616
|
+
le.install = (t) => {
|
|
1617
|
+
t.component(le.name, le);
|
|
1616
1618
|
};
|
|
1617
1619
|
const Eo = { class: "cu-dialog" }, Vo = { class: "cu-bar bg-white justify-end padding-right-sm" }, Mo = { class: "content" }, zo = /* @__PURE__ */ n("text", { class: "cuIcon-close text-red" }, null, -1), qo = [
|
|
1618
1620
|
zo
|
|
1619
1621
|
], Ao = { class: "padding-xl" }, No = {
|
|
1620
1622
|
name: "DrawerModal"
|
|
1621
|
-
},
|
|
1623
|
+
}, ae = /* @__PURE__ */ _({
|
|
1622
1624
|
...No,
|
|
1623
1625
|
props: {
|
|
1624
1626
|
title: {},
|
|
@@ -1649,8 +1651,8 @@ const Eo = { class: "cu-dialog" }, Vo = { class: "cu-bar bg-white justify-end pa
|
|
|
1649
1651
|
], 2));
|
|
1650
1652
|
}
|
|
1651
1653
|
});
|
|
1652
|
-
|
|
1653
|
-
t.component(
|
|
1654
|
+
ae.install = (t) => {
|
|
1655
|
+
t.component(ae.name, ae);
|
|
1654
1656
|
};
|
|
1655
1657
|
const Po = { class: "loading-animation" }, Lo = {
|
|
1656
1658
|
name: "Loading1"
|
|
@@ -1704,7 +1706,7 @@ const Po = { class: "loading-animation" }, Lo = {
|
|
|
1704
1706
|
const m = a * 0.5, I = [];
|
|
1705
1707
|
let B = 0, E = 0, g = 0;
|
|
1706
1708
|
c.globalCompositeOperation = "lighter";
|
|
1707
|
-
function
|
|
1709
|
+
function C() {
|
|
1708
1710
|
I.push(
|
|
1709
1711
|
new e(
|
|
1710
1712
|
{
|
|
@@ -1727,7 +1729,7 @@ const Po = { class: "loading-animation" }, Lo = {
|
|
|
1727
1729
|
});
|
|
1728
1730
|
}
|
|
1729
1731
|
function F() {
|
|
1730
|
-
requestAnimationFrame(F),
|
|
1732
|
+
requestAnimationFrame(F), C(), N(), g++;
|
|
1731
1733
|
}
|
|
1732
1734
|
F();
|
|
1733
1735
|
}), (c, a) => (o(), l("div", Po, [
|
|
@@ -1737,9 +1739,9 @@ const Po = { class: "loading-animation" }, Lo = {
|
|
|
1737
1739
|
}, null, 512)
|
|
1738
1740
|
]));
|
|
1739
1741
|
}
|
|
1740
|
-
}),
|
|
1741
|
-
|
|
1742
|
-
t.component(
|
|
1742
|
+
}), ce = /* @__PURE__ */ A(Do, [["__scopeId", "data-v-022c82bd"]]);
|
|
1743
|
+
ce.install = (t) => {
|
|
1744
|
+
t.component(ce.name, ce);
|
|
1743
1745
|
};
|
|
1744
1746
|
const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE__ */ _({
|
|
1745
1747
|
...Ro,
|
|
@@ -1771,17 +1773,14 @@ const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE
|
|
|
1771
1773
|
r.localIndex + i.virtualTotal,
|
|
1772
1774
|
i.list.length
|
|
1773
1775
|
);
|
|
1774
|
-
p.value = i.list.slice(v, x), h.value = -r.localIndex * r.wrapperHeight
|
|
1775
|
-
"Updated visibleList:",
|
|
1776
|
-
p.value.map((R) => R.id)
|
|
1777
|
-
);
|
|
1776
|
+
p.value = i.list.slice(v, x), h.value = -r.localIndex * r.wrapperHeight;
|
|
1778
1777
|
}, I = (v) => {
|
|
1779
|
-
v.touches.length > 0 && (r.touchStartY = v.touches[0].clientY, r.touchStartX = v.touches[0].clientX
|
|
1778
|
+
v.touches.length > 0 && (r.touchStartY = v.touches[0].clientY, r.touchStartX = v.touches[0].clientX);
|
|
1780
1779
|
}, B = (v) => {
|
|
1781
|
-
v.touches.length > 0 && (r.touchEndY = v.touches[0].clientY, r.touchEndX = v.touches[0].clientX
|
|
1780
|
+
v.touches.length > 0 && (r.touchEndY = v.touches[0].clientY, r.touchEndX = v.touches[0].clientX);
|
|
1782
1781
|
}, E = () => {
|
|
1783
1782
|
const v = r.touchEndY - r.touchStartY, x = r.touchEndX - r.touchStartX;
|
|
1784
|
-
|
|
1783
|
+
Math.abs(v) > Math.abs(x) && Math.abs(v) > 30 ? v < 0 ? g() : C() : Math.abs(x) > 30 && (x < 0 ? s("slideLeft", {
|
|
1785
1784
|
item: p.value[r.localIndex],
|
|
1786
1785
|
index: r.localIndex
|
|
1787
1786
|
}) : s("slideRight", {
|
|
@@ -1790,7 +1789,7 @@ const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE
|
|
|
1790
1789
|
})), r.touchStartY = 0, r.touchEndY = 0, r.touchStartX = 0, r.touchEndX = 0;
|
|
1791
1790
|
}, g = () => {
|
|
1792
1791
|
r.localIndex < i.list.length - 1 && (r.localIndex++, m());
|
|
1793
|
-
},
|
|
1792
|
+
}, C = () => {
|
|
1794
1793
|
r.localIndex > 0 && (r.localIndex--, m());
|
|
1795
1794
|
}, N = (v) => (r.localIndex + v) * r.wrapperHeight, F = j(() => p.value.map((v) => `video-${v.id}`).join(","));
|
|
1796
1795
|
return (v, x) => (o(), l("div", {
|
|
@@ -1805,52 +1804,52 @@ const Fo = ["data-index"], Ro = { name: "TVirtualScrollSlide" }, Uo = /* @__PURE
|
|
|
1805
1804
|
class: "slide-list",
|
|
1806
1805
|
ref_key: "slideList",
|
|
1807
1806
|
ref: a,
|
|
1808
|
-
style:
|
|
1807
|
+
style: w({ transform: `translateY(${h.value}px)` })
|
|
1809
1808
|
}, [
|
|
1810
1809
|
(o(), V(Ve, { include: F.value }, [
|
|
1811
|
-
(o(!0), l(b, null, y(p.value, (
|
|
1812
|
-
key:
|
|
1813
|
-
"data-index":
|
|
1810
|
+
(o(!0), l(b, null, y(p.value, (_e, ue) => (o(), l("div", {
|
|
1811
|
+
key: _e.id,
|
|
1812
|
+
"data-index": ue,
|
|
1814
1813
|
class: d($),
|
|
1815
|
-
style:
|
|
1814
|
+
style: w({ top: `${N(ue)}px` })
|
|
1816
1815
|
}, [
|
|
1817
|
-
(o(), V(Me(v.render(
|
|
1816
|
+
(o(), V(Me(v.render(_e, ue))))
|
|
1818
1817
|
], 12, Fo))), 128))
|
|
1819
1818
|
], 1032, ["include"]))
|
|
1820
1819
|
], 4)
|
|
1821
1820
|
], 544));
|
|
1822
1821
|
}
|
|
1823
|
-
}),
|
|
1824
|
-
|
|
1825
|
-
t.component(
|
|
1822
|
+
}), ie = /* @__PURE__ */ A(Uo, [["__scopeId", "data-v-8600af8d"]]);
|
|
1823
|
+
ie.install = (t) => {
|
|
1824
|
+
t.component(ie.name, ie);
|
|
1826
1825
|
};
|
|
1827
1826
|
const Xo = (t) => {
|
|
1828
|
-
t.use(L), t.use(
|
|
1827
|
+
t.use(L), t.use(Y), t.use(z), t.use(R), t.use(U), t.use(X), t.use(G), t.use(K), t.use(J), t.use(Q), t.use(W), t.use(Z), t.use(ee), t.use(te), t.use(H), t.use(q), t.use(se), t.use(oe), t.use(ne), t.use(le), t.use(ae), t.use(ce), t.use(ie);
|
|
1829
1828
|
}, Ho = {
|
|
1830
1829
|
install: Xo
|
|
1831
1830
|
};
|
|
1832
1831
|
export {
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1832
|
+
se as ChatList,
|
|
1833
|
+
oe as ChatRoom,
|
|
1834
|
+
ae as DrawerModal,
|
|
1835
|
+
ee as GridGroup,
|
|
1836
|
+
ce as Loading1,
|
|
1837
|
+
te as Menu,
|
|
1839
1838
|
z as TAvatar,
|
|
1840
|
-
|
|
1839
|
+
H as TButton,
|
|
1841
1840
|
L as TIcon,
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1841
|
+
Q as TInputBar,
|
|
1842
|
+
G as TNavBar,
|
|
1843
|
+
R as TNavCard,
|
|
1844
|
+
U as TNewCard,
|
|
1845
|
+
J as TSearchBar,
|
|
1846
|
+
X as TShareCard,
|
|
1847
|
+
le as TSteps,
|
|
1848
|
+
Z as TTab,
|
|
1849
|
+
W as TTabs,
|
|
1851
1850
|
q as TTag,
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1851
|
+
Y as TTitle,
|
|
1852
|
+
K as TTopBar,
|
|
1853
|
+
ne as TimeLine,
|
|
1855
1854
|
Ho as default
|
|
1856
1855
|
};
|
|
@@ -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,$)=>e in i?rn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):i[e]=$;var b=(i,e,$)=>(dn(i,typeof e!="symbol"?e+"":e,$),$);const $={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const Q=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=Q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=Q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=Q(()=>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"},be={name:"TNewCard"},ue=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",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(ue,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Me={class:"text-gray text-content text-df"},Fe={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Me,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",Fe,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},V=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ot,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},u=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(u,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=n=>{n.component(V.name,V)},z.install=n=>{n.component(z.name,z)},u.install=n=>{n.component(u.name,u)},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"],bt={key:0,class:"cu-tag badge"},ut={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",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",ut,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Mt={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",Mt,[(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"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],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(qt),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"],Kt={class:"action"},Jt={name:"TInputBar"},Qt=e.defineComponent({...Jt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},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},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:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=N=>f())},e.toDisplayString(m.buttonText),1)]),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))}}),M=C(Qt,[["__scopeId","data-v-7b4ca731"]]);M.install=n=>{n.component(M.name,M)};const Wt=["onClick"],Zt={class:"tab-content"},vt={name:"TTabs"},F=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"},L=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]])}});F.install=n=>{n.component(F.name,F)},L.install=n=>{n.component(L.name,L)};/*!
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var rn=Object.defineProperty;var dn=(i,e,$)=>e in i?rn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:$}):i[e]=$;var b=(i,e,$)=>(dn(i,typeof e!="symbol"?e+"":e,$),$);const $={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},fe={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},ge={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"},be={name:"TNewCard"},ue=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",fe,[e.createElementVNode("div",ge,[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(ue,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},V=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ot,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},u=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(u,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],ft={key:1},gt={name:"TButton"},T=e.defineComponent({...gt,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",ft,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=n=>{n.component(V.name,V)},z.install=n=>{n.component(z.name,z)},u.install=n=>{n.component(u.name,u)},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"],bt={key:0,class:"cu-tag badge"},ut={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",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",ut,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=C(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,innerHTML:d,onClick:p=>a(r.stringArray[g].text,r.stringArray[g])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],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(qt),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"],Kt={class:"action"},Jt={name:"TInputBar"},Qt=e.defineComponent({...Jt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},g=(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:g},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=>g(),["enter"])),onConfirm:k[1]||(k[1]=N=>g()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:B},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:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=N=>g())},e.toDisplayString(m.buttonText),1)]),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-7b4ca731"]]);F.install=n=>{n.component(F.name,F)};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}`),g=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",g.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"},L=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)},L.install=n=>{n.component(L.name,L)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var v;(function(n){n.pop="pop",n.push="push"})(v||(v={}));var ee;(function(n){n.back="back",n.forward="forward",n.unknown=""})(ee||(ee={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var te;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(te||(te={})),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(V,{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(V,{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"},bo={class:"text-cut text-black"},uo={class:"text-gray text-sm flex"},Eo={class:"text-cut"},$o={class:"action"},Co={class:"text-grey text-xs"},Vo={name:"ChatListItem"},W=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:`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",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",uo,[e.createElementVNode("div",Eo,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",$o,[e.createElementVNode("div",Co,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(W,{"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(W.name,W)};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"},Mo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),Fo={class:"action text-bold text-grey"},Lo={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(u,{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,[Mo,e.createElementVNode("div",Fo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",Lo,[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(u,{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){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,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,console.log("Current Index:",c.localIndex),console.log("Updated visibleList:",d.value.map(J=>J.id))},h=g=>{g.touches.length>0&&(c.touchStartY=g.touches[0].clientY,c.touchStartX=g.touches[0].clientX,console.log("Touch Start:",c.touchStartX,c.touchStartY))},y=g=>{g.touches.length>0&&(c.touchEndY=g.touches[0].clientY,c.touchEndX=g.touches[0].clientX,console.log("Touch Move:",c.touchEndX,c.touchEndY))},B=()=>{const g=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;console.log("Touch End:",_,g),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,(J,Z)=>(e.openBlock(),e.createElementBlock("div",{key:J.id,"data-index":Z,class:e.normalizeClass(f),style:e.normalizeStyle({top:`${N(Z)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.render(J,Z))))],12,ln))),128))],1032,["include"]))],4)],544))}}),G=C(sn,[["__scopeId","data-v-ac21034e"]]);G.install=n=>{n.component(G.name,G)};const cn={install:n=>{n.use(V),n.use(z),n.use(u),n.use(I),n.use(S),n.use(w),n.use(x),n.use(D),n.use(j),n.use(M),n.use(F),n.use(L),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=u,i.TButton=T,i.TIcon=V,i.TInputBar=M,i.TNavBar=x,i.TNavCard=I,i.TNewCard=S,i.TSearchBar=j,i.TShareCard=w,i.TSteps=X,i.TTab=L,i.TTabs=F,i.TTag=E,i.TTitle=z,i.TTopBar=D,i.TimeLine=U,i.default=cn,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"},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"},fo={key:1,class:"text-grey text-sm"},go=["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(V,{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",fo,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(V,{key:0,name:l.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.btn.text),1)],10,go)):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"},bo={class:"text-cut text-black"},uo={class:"text-gray text-sm flex"},Eo={class:"text-cut"},$o={class:"action"},Co={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",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",uo,[e.createElementVNode("div",Eo,[e.renderSlot(s.$slots,"default")])])]),e.createElementVNode("div",$o,[e.createElementVNode("div",Co,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),Mo={class:"action text-bold text-grey"},Lo={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(u,{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",Mo,e.toDisplayString(o.content),1)])):o.type==="location"?(e.openBlock(),e.createElementBlock("div",Lo,[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(u,{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,g,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((g=c.capsule)==null?void 0:g.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){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 g=Math.random()*1.25;l.fillRect(~~(this.x+(Math.random()-.5)*35*this.life),~~(this.y+(Math.random()-.5)*35*this.life),g,g)}}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,g=window.devicePixelRatio||1;o.value.width=l*g,o.value.height=r*g,o.value.style.width=l+"px",o.value.style.height=r+"px",a.scale(g,g);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((f,_)=>{f.step(_,h)}),B+=Math.PI/2,y+=Math.PI/2}function N(){a.clearRect(0,0,l,r),h.forEach((f,_)=>{f.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([]),g="slide-item";e.watch(()=>s.list,(f,_)=>{f.length!==_.length&&p()}),e.onMounted(()=>{a.value&&(c.wrapperHeight=a.value.clientHeight,p())});const p=()=>{const f=Math.max(0,c.localIndex),_=Math.min(c.localIndex+s.virtualTotal,s.list.length);d.value=s.list.slice(f,_),r.value=-c.localIndex*c.wrapperHeight},h=f=>{f.touches.length>0&&(c.touchStartY=f.touches[0].clientY,c.touchStartX=f.touches[0].clientX)},y=f=>{f.touches.length>0&&(c.touchEndY=f.touches[0].clientY,c.touchEndX=f.touches[0].clientX)},B=()=>{const f=c.touchEndY-c.touchStartY,_=c.touchEndX-c.touchStartX;Math.abs(f)>Math.abs(_)&&Math.abs(f)>30?f<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=f=>(c.localIndex+f)*c.wrapperHeight,K=e.computed(()=>d.value.map(f=>`video-${f.id}`).join(","));return(f,_)=>(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(g),style:e.normalizeStyle({top:`${N(W)}px`})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.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(V),n.use(z),n.use(u),n.use(I),n.use(S),n.use(w),n.use(x),n.use(D),n.use(j),n.use(F),n.use(M),n.use(L),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=u,i.TButton=T,i.TIcon=V,i.TInputBar=F,i.TNavBar=x,i.TNavCard=I,i.TNewCard=S,i.TSearchBar=j,i.TShareCard=w,i.TSteps=X,i.TTab=L,i.TTabs=M,i.TTag=E,i.TTitle=z,i.TTopBar=D,i.TimeLine=U,i.default=cn,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|