vue-color-ui 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/temp-color-ui.js +470 -467
- package/lib/temp-color-ui.umd.cjs +2 -2
- package/package.json +1 -1
- package/type/Menu.d.ts +1 -0
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
|
-
var ye = (
|
|
3
|
-
var j = (
|
|
4
|
-
import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as
|
|
2
|
+
var ye = (s, e, i) => e in s ? $e(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
|
|
3
|
+
var j = (s, e, i) => (ye(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as _, renderList as $, normalizeClass as u, normalizeStyle as I, createElementVNode as n, toDisplayString as r, createTextVNode as y, createCommentVNode as p, pushScopeId as ke, popScopeId as Ie, computed as x, renderSlot as w, createBlock as S, ref as V, withModifiers as ie, unref as we, onMounted as ae, resolveComponent as be, createVNode as q, onUnmounted as Ce, withKeys as xe, withDirectives as re, vShow as ue, provide as ge, watch as Te, inject as de, withCtx as ne } from "vue";
|
|
5
5
|
const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve = { class: "nav-name" }, ze = {
|
|
6
6
|
name: "TNavCard"
|
|
7
7
|
}, P = /* @__PURE__ */ g({
|
|
@@ -9,29 +9,29 @@ const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve
|
|
|
9
9
|
props: {
|
|
10
10
|
items: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (e,
|
|
14
|
-
(o(!0), a(
|
|
12
|
+
setup(s) {
|
|
13
|
+
return (e, i) => (o(), a("div", Be, [
|
|
14
|
+
(o(!0), a(_, null, $(e.items, (t, c) => (o(), a("div", {
|
|
15
15
|
"hover-class": "none",
|
|
16
|
-
url: "/pages/basics/" +
|
|
17
|
-
class: u(["nav-li", "bg-" +
|
|
16
|
+
url: "/pages/basics/" + t.name,
|
|
17
|
+
class: u(["nav-li", "bg-" + t.color]),
|
|
18
18
|
navigateTo: "",
|
|
19
|
-
style: I([{ animation: "show " + ((
|
|
20
|
-
key:
|
|
19
|
+
style: I([{ animation: "show " + ((c + 1) * 0.2 + 1) + "s 1" }]),
|
|
20
|
+
key: c
|
|
21
21
|
}, [
|
|
22
|
-
n("div", Se, r(
|
|
23
|
-
n("div", Ve, r(
|
|
22
|
+
n("div", Se, r(t.title), 1),
|
|
23
|
+
n("div", Ve, r(t.name), 1),
|
|
24
24
|
n("text", {
|
|
25
|
-
class: u("cuIcon-" +
|
|
25
|
+
class: u("cuIcon-" + t.cuIcon)
|
|
26
26
|
}, null, 2)
|
|
27
27
|
], 14, je))), 128))
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
P.install = (
|
|
32
|
-
|
|
31
|
+
P.install = (s) => {
|
|
32
|
+
s.component(P.name, P);
|
|
33
33
|
};
|
|
34
|
-
const pe = (
|
|
34
|
+
const pe = (s) => (ke("data-v-bbdb83ff"), s = s(), Ie(), s), Ee = { class: "cu-item shadow" }, qe = { class: "title" }, Me = { class: "text-cut" }, Ae = { class: "content" }, Ne = ["src", "alt"], Pe = { class: "desc" }, De = { class: "text-content" }, Fe = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "content flex-sub justify-between text-sm solid-top margin-top-sm",
|
|
37
37
|
style: { padding: "5px 15px" }
|
|
@@ -55,12 +55,12 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
|
|
|
55
55
|
timeAgo: "十天前"
|
|
56
56
|
}) }
|
|
57
57
|
},
|
|
58
|
-
setup(
|
|
59
|
-
return (e,
|
|
58
|
+
setup(s) {
|
|
59
|
+
return (e, i) => (o(), a("div", {
|
|
60
60
|
class: u(["cu-card article", e.isCard ? "" : "no-card"])
|
|
61
61
|
}, [
|
|
62
|
-
n("div",
|
|
63
|
-
n("div",
|
|
62
|
+
n("div", Ee, [
|
|
63
|
+
n("div", qe, [
|
|
64
64
|
n("div", Me, r(e.title), 1)
|
|
65
65
|
]),
|
|
66
66
|
n("div", Ae, [
|
|
@@ -71,10 +71,10 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
|
|
|
71
71
|
n("div", Pe, [
|
|
72
72
|
n("div", De, r(e.description), 1),
|
|
73
73
|
n("div", null, [
|
|
74
|
-
(o(!0), a(
|
|
75
|
-
key:
|
|
74
|
+
(o(!0), a(_, null, $(e.tags, (t) => (o(), a("div", {
|
|
75
|
+
key: t,
|
|
76
76
|
class: "cu-tag bg-red light sm round"
|
|
77
|
-
}, r(
|
|
77
|
+
}, r(t), 1))), 128))
|
|
78
78
|
])
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
@@ -95,14 +95,14 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
|
|
|
95
95
|
])
|
|
96
96
|
], 2));
|
|
97
97
|
}
|
|
98
|
-
}), A = (
|
|
99
|
-
const
|
|
100
|
-
for (const [
|
|
101
|
-
|
|
102
|
-
return
|
|
98
|
+
}), A = (s, e) => {
|
|
99
|
+
const i = s.__vccOpts || s;
|
|
100
|
+
for (const [t, c] of e)
|
|
101
|
+
i[t] = c;
|
|
102
|
+
return i;
|
|
103
103
|
}, D = /* @__PURE__ */ A(Xe, [["__scopeId", "data-v-bbdb83ff"]]);
|
|
104
|
-
D.install = (
|
|
105
|
-
|
|
104
|
+
D.install = (s) => {
|
|
105
|
+
s.component(D.name, D);
|
|
106
106
|
};
|
|
107
107
|
const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, We = { class: "cu-item" }, Ye = { class: "content flex-sub" }, Ze = { class: "text-gray text-sm flex justify-between" }, et = { class: "text-content" }, tt = { class: "text-gray text-sm text-right padding" }, st = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), ot = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), nt = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), at = { class: "cu-item" }, lt = { class: "content" }, ct = { class: "text-grey" }, it = { class: "text-gray text-content text-df" }, rt = { class: "flex" }, ut = { class: "flex-sub" }, dt = { class: "margin-top-sm flex justify-between" }, ft = { class: "text-gray text-df" }, pt = {
|
|
108
108
|
key: 0,
|
|
@@ -157,8 +157,8 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
157
157
|
}
|
|
158
158
|
] }
|
|
159
159
|
},
|
|
160
|
-
setup(
|
|
161
|
-
return (e,
|
|
160
|
+
setup(s) {
|
|
161
|
+
return (e, i) => (o(), a("div", null, [
|
|
162
162
|
n("div", {
|
|
163
163
|
class: u(["cu-card dynamic", e.isCard ? "is-card" : "no-card"])
|
|
164
164
|
}, [
|
|
@@ -179,10 +179,10 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
179
179
|
n("div", {
|
|
180
180
|
class: u(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
|
|
181
181
|
}, [
|
|
182
|
-
(o(!0), a(
|
|
182
|
+
(o(!0), a(_, null, $(e.isCard ? 9 : 1, (t) => (o(), a("div", {
|
|
183
183
|
class: u(["bg-img", e.isCard ? "" : "only-img"]),
|
|
184
184
|
style: I({ backgroundImage: `url(${e.imageUrl})` }),
|
|
185
|
-
key:
|
|
185
|
+
key: t
|
|
186
186
|
}, null, 6))), 128))
|
|
187
187
|
], 2),
|
|
188
188
|
n("div", tt, [
|
|
@@ -193,35 +193,35 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
193
193
|
nt,
|
|
194
194
|
y(" " + r(e.comments), 1)
|
|
195
195
|
]),
|
|
196
|
-
(o(!0), a(
|
|
197
|
-
var
|
|
196
|
+
(o(!0), a(_, null, $(e.commentsList, (t) => {
|
|
197
|
+
var c;
|
|
198
198
|
return o(), a("div", {
|
|
199
199
|
class: "cu-list menu-avatar comment solids-top",
|
|
200
|
-
key:
|
|
200
|
+
key: t.id
|
|
201
201
|
}, [
|
|
202
202
|
n("div", at, [
|
|
203
203
|
n("div", {
|
|
204
204
|
class: "cu-avatar round",
|
|
205
|
-
style: I({ backgroundImage: `url(${
|
|
205
|
+
style: I({ backgroundImage: `url(${t.avatarUrl})` })
|
|
206
206
|
}, null, 4),
|
|
207
207
|
n("div", lt, [
|
|
208
|
-
n("div", ct, r(
|
|
209
|
-
n("div", it, r(
|
|
210
|
-
(o(!0), a(
|
|
211
|
-
key:
|
|
208
|
+
n("div", ct, r(t.author), 1),
|
|
209
|
+
n("div", it, r(t.text), 1),
|
|
210
|
+
(o(!0), a(_, null, $(t.replies, (l) => (o(), a("div", {
|
|
211
|
+
key: l.id,
|
|
212
212
|
class: "bg-grey padding-sm radius margin-top-sm text-sm"
|
|
213
213
|
}, [
|
|
214
214
|
n("div", rt, [
|
|
215
|
-
n("div", null, r(
|
|
216
|
-
n("div", ut, r(
|
|
215
|
+
n("div", null, r(l.author) + ":", 1),
|
|
216
|
+
n("div", ut, r(l.text), 1)
|
|
217
217
|
])
|
|
218
218
|
]))), 128)),
|
|
219
219
|
n("div", dt, [
|
|
220
|
-
n("div", ft, r(
|
|
220
|
+
n("div", ft, r(t.date), 1),
|
|
221
221
|
n("div", null, [
|
|
222
|
-
|
|
222
|
+
t.likes ? (o(), a("span", pt)) : p("", !0),
|
|
223
223
|
ht,
|
|
224
|
-
n("span", gt, r((
|
|
224
|
+
n("span", gt, r((c = t.replies) == null ? void 0 : c.length), 1)
|
|
225
225
|
])
|
|
226
226
|
])
|
|
227
227
|
])
|
|
@@ -233,8 +233,8 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
233
233
|
]));
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
F.install = (
|
|
237
|
-
|
|
236
|
+
F.install = (s) => {
|
|
237
|
+
s.component(F.name, F);
|
|
238
238
|
};
|
|
239
239
|
const _t = {
|
|
240
240
|
ssss: "2px",
|
|
@@ -248,14 +248,14 @@ const _t = {
|
|
|
248
248
|
xxl: "30px",
|
|
249
249
|
xxxl: "48px"
|
|
250
250
|
};
|
|
251
|
-
function vt(
|
|
251
|
+
function vt(s, e, i = "px") {
|
|
252
252
|
if (typeof e == "number")
|
|
253
|
-
return `${
|
|
254
|
-
const
|
|
255
|
-
return
|
|
253
|
+
return `${s}: ${e}${i};`;
|
|
254
|
+
const t = _t[e];
|
|
255
|
+
return t ? `${s}: ${t};` : "";
|
|
256
256
|
}
|
|
257
|
-
function bt(
|
|
258
|
-
return vt("font-size",
|
|
257
|
+
function bt(s) {
|
|
258
|
+
return vt("font-size", s);
|
|
259
259
|
}
|
|
260
260
|
const $t = {
|
|
261
261
|
name: "TIcon"
|
|
@@ -266,11 +266,11 @@ const $t = {
|
|
|
266
266
|
color: { default: "grey" },
|
|
267
267
|
size: { default: 15 }
|
|
268
268
|
},
|
|
269
|
-
setup(
|
|
270
|
-
const e =
|
|
271
|
-
return (
|
|
272
|
-
class: u(`cuIcon-${
|
|
273
|
-
style: I(
|
|
269
|
+
setup(s) {
|
|
270
|
+
const e = s, i = x(() => bt(e.size));
|
|
271
|
+
return (t, c) => (o(), a("i", {
|
|
272
|
+
class: u(`cuIcon-${t.name} text-${t.color}`),
|
|
273
|
+
style: I(i.value)
|
|
274
274
|
}, null, 6));
|
|
275
275
|
}
|
|
276
276
|
}), yt = { class: "action border-title" }, kt = { class: "action border-title" }, It = { class: "tib text-xl text-bold text-blue" }, wt = /* @__PURE__ */ n("div", {
|
|
@@ -285,7 +285,7 @@ const $t = {
|
|
|
285
285
|
}, Vt = { class: "action" }, zt = {
|
|
286
286
|
key: 6,
|
|
287
287
|
class: "cu-bar bg-white solid-bottom"
|
|
288
|
-
},
|
|
288
|
+
}, Et = { class: "action" }, qt = { class: "action" }, Mt = { name: "TTitle" }, L = /* @__PURE__ */ g({
|
|
289
289
|
...Mt,
|
|
290
290
|
props: {
|
|
291
291
|
title: { default: "主题名称" },
|
|
@@ -296,8 +296,8 @@ const $t = {
|
|
|
296
296
|
mode: {},
|
|
297
297
|
center: { type: Boolean, default: !1 }
|
|
298
298
|
},
|
|
299
|
-
setup(
|
|
300
|
-
return (e,
|
|
299
|
+
setup(s) {
|
|
300
|
+
return (e, i) => e.mode === "default1" ? (o(), a("div", {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: u(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
303
303
|
}, [
|
|
@@ -360,13 +360,13 @@ const $t = {
|
|
|
360
360
|
}, r(e.title), 3)
|
|
361
361
|
])
|
|
362
362
|
])) : (o(), a("div", zt, [
|
|
363
|
-
n("div",
|
|
363
|
+
n("div", Et, [
|
|
364
364
|
n("i", {
|
|
365
365
|
class: u(`cuIcon-${e.icon} text-${e.color}`)
|
|
366
366
|
}, null, 2),
|
|
367
367
|
w(e.$slots, "default")
|
|
368
368
|
]),
|
|
369
|
-
n("div",
|
|
369
|
+
n("div", qt, [
|
|
370
370
|
w(e.$slots, "action")
|
|
371
371
|
])
|
|
372
372
|
]));
|
|
@@ -380,8 +380,8 @@ const $t = {
|
|
|
380
380
|
size: { default: "lg" },
|
|
381
381
|
mode: { default: "round" }
|
|
382
382
|
},
|
|
383
|
-
setup(
|
|
384
|
-
return (e,
|
|
383
|
+
setup(s) {
|
|
384
|
+
return (e, i) => e.url ? (o(), a("div", {
|
|
385
385
|
key: 0,
|
|
386
386
|
class: u(["cu-avatar", e.size, e.mode]),
|
|
387
387
|
style: I({ backgroundImage: `url(${e.url})` })
|
|
@@ -401,11 +401,11 @@ const $t = {
|
|
|
401
401
|
size: { default: "sm" },
|
|
402
402
|
mode: { default: "round" }
|
|
403
403
|
},
|
|
404
|
-
setup(
|
|
405
|
-
return (e,
|
|
406
|
-
(o(!0), a(
|
|
407
|
-
key:
|
|
408
|
-
url:
|
|
404
|
+
setup(s) {
|
|
405
|
+
return (e, i) => (o(), a("div", Nt, [
|
|
406
|
+
(o(!0), a(_, null, $(e.urls, (t, c) => (o(), S(z, {
|
|
407
|
+
key: c,
|
|
408
|
+
url: t,
|
|
409
409
|
size: e.size
|
|
410
410
|
}, null, 8, ["url", "size"]))), 128))
|
|
411
411
|
]));
|
|
@@ -423,35 +423,35 @@ const $t = {
|
|
|
423
423
|
disabled: { type: Boolean, default: !1 },
|
|
424
424
|
shadow: { type: Boolean, default: !1 }
|
|
425
425
|
},
|
|
426
|
-
setup(
|
|
427
|
-
const e =
|
|
426
|
+
setup(s) {
|
|
427
|
+
const e = s, i = x(() => [
|
|
428
428
|
"cu-btn",
|
|
429
429
|
e.rounded ? "round" : "radius",
|
|
430
430
|
e.shadow ? "shadow" : "",
|
|
431
431
|
`bg-${e.bg}`,
|
|
432
432
|
e.size !== "default" ? e.size : ""
|
|
433
|
-
].join(" ")),
|
|
433
|
+
].join(" ")), t = x(() => ({
|
|
434
434
|
cursor: e.disabled ? "not-allowed" : "pointer"
|
|
435
|
-
})),
|
|
435
|
+
})), c = x(() => ({
|
|
436
436
|
marginRight: e.text ? "8px" : "0"
|
|
437
437
|
}));
|
|
438
|
-
return (
|
|
439
|
-
class: u(
|
|
440
|
-
style: I(
|
|
441
|
-
disabled:
|
|
438
|
+
return (l, d) => (o(), a("button", {
|
|
439
|
+
class: u(i.value),
|
|
440
|
+
style: I(t.value),
|
|
441
|
+
disabled: l.disabled
|
|
442
442
|
}, [
|
|
443
|
-
w(
|
|
444
|
-
|
|
443
|
+
w(l.$slots, "default"),
|
|
444
|
+
l.icon ? (o(), a("i", {
|
|
445
445
|
key: 0,
|
|
446
|
-
class: u(`cuIcon-${
|
|
447
|
-
style: I(
|
|
446
|
+
class: u(`cuIcon-${l.icon}`),
|
|
447
|
+
style: I(c.value)
|
|
448
448
|
}, null, 6)) : p("", !0),
|
|
449
|
-
|
|
449
|
+
l.text ? (o(), a("span", Ft, r(l.text), 1)) : p("", !0)
|
|
450
450
|
], 14, Dt));
|
|
451
451
|
}
|
|
452
452
|
}), Rt = { key: 0 }, Ut = {
|
|
453
453
|
name: "TTag"
|
|
454
|
-
},
|
|
454
|
+
}, E = /* @__PURE__ */ g({
|
|
455
455
|
...Ut,
|
|
456
456
|
props: {
|
|
457
457
|
text: {},
|
|
@@ -461,40 +461,40 @@ const $t = {
|
|
|
461
461
|
light: { type: Boolean, default: !1 },
|
|
462
462
|
line: { type: Boolean, default: !1 }
|
|
463
463
|
},
|
|
464
|
-
setup(
|
|
465
|
-
const e =
|
|
464
|
+
setup(s) {
|
|
465
|
+
const e = s, i = x(() => [
|
|
466
466
|
"cu-tag",
|
|
467
467
|
e.shape !== "default" ? e.shape : "",
|
|
468
468
|
e.light !== !1 ? "light" : "",
|
|
469
469
|
`${e.line !== !1 ? "line" : "bg"}-${e.bg}`,
|
|
470
470
|
e.size !== "default" ? e.size : ""
|
|
471
|
-
].join(" ")),
|
|
472
|
-
return (
|
|
473
|
-
class: u(
|
|
474
|
-
style: I(
|
|
471
|
+
].join(" ")), t = x(() => ({}));
|
|
472
|
+
return (c, l) => (o(), a("div", {
|
|
473
|
+
class: u(i.value),
|
|
474
|
+
style: I(t.value)
|
|
475
475
|
}, [
|
|
476
|
-
w(
|
|
477
|
-
|
|
476
|
+
w(c.$slots, "default"),
|
|
477
|
+
c.text ? (o(), a("span", Rt, r(c.text), 1)) : p("", !0)
|
|
478
478
|
], 6));
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
M.install = (
|
|
482
|
-
|
|
481
|
+
M.install = (s) => {
|
|
482
|
+
s.component(M.name, M);
|
|
483
483
|
};
|
|
484
|
-
L.install = (
|
|
485
|
-
|
|
484
|
+
L.install = (s) => {
|
|
485
|
+
s.component(L.name, L);
|
|
486
486
|
};
|
|
487
|
-
z.install = (
|
|
488
|
-
|
|
487
|
+
z.install = (s) => {
|
|
488
|
+
s.component(z.name, z);
|
|
489
489
|
};
|
|
490
|
-
R.install = (
|
|
491
|
-
|
|
490
|
+
R.install = (s) => {
|
|
491
|
+
s.component(R.name, R);
|
|
492
492
|
};
|
|
493
|
-
U.install = (
|
|
494
|
-
|
|
493
|
+
U.install = (s) => {
|
|
494
|
+
s.component(U.name, U);
|
|
495
495
|
};
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
E.install = (s) => {
|
|
497
|
+
s.component(E.name, E);
|
|
498
498
|
};
|
|
499
499
|
const Ot = ["onClick"], Gt = {
|
|
500
500
|
key: 0,
|
|
@@ -541,38 +541,38 @@ const Ot = ["onClick"], Gt = {
|
|
|
541
541
|
onItemClick: { type: Function, default: () => {
|
|
542
542
|
} }
|
|
543
543
|
},
|
|
544
|
-
setup(
|
|
545
|
-
const e =
|
|
546
|
-
e.onItemClick && e.onItemClick(
|
|
544
|
+
setup(s) {
|
|
545
|
+
const e = s, i = (t, c) => {
|
|
546
|
+
e.onItemClick && e.onItemClick(t, c);
|
|
547
547
|
};
|
|
548
|
-
return (
|
|
549
|
-
class: u(["cu-bar tabbar", `bg-${
|
|
548
|
+
return (t, c) => (o(), a("div", {
|
|
549
|
+
class: u(["cu-bar tabbar", `bg-${t.bg} ${t.isFoot ? "foot" : ""}`])
|
|
550
550
|
}, [
|
|
551
|
-
(o(!0), a(
|
|
551
|
+
(o(!0), a(_, null, $(t.items, (l, d) => (o(), a("div", {
|
|
552
552
|
key: d,
|
|
553
|
-
class: u(["action", `text-${d ===
|
|
554
|
-
onClick: (f) =>
|
|
553
|
+
class: u(["action", `text-${d === t.activeIndex ? t.activeColor : t.color}`]),
|
|
554
|
+
onClick: (f) => i(l, d)
|
|
555
555
|
}, [
|
|
556
|
-
|
|
556
|
+
l.img ? (o(), a("div", Gt, [
|
|
557
557
|
n("img", {
|
|
558
|
-
src:
|
|
558
|
+
src: l.img,
|
|
559
559
|
style: { width: "21px", height: "21px" },
|
|
560
560
|
class: "radius"
|
|
561
561
|
}, null, 8, Kt),
|
|
562
|
-
|
|
562
|
+
l.badge ? (o(), a("div", Ht, r(l.badge), 1)) : p("", !0)
|
|
563
563
|
])) : (o(), a("div", {
|
|
564
564
|
key: 1,
|
|
565
|
-
class: u(`cuIcon-${
|
|
565
|
+
class: u(`cuIcon-${l.icon}`)
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
l.badge ? (o(), a("div", Xt, r(l.badge), 1)) : p("", !0)
|
|
568
568
|
], 2)),
|
|
569
|
-
n("div", null, r(
|
|
569
|
+
n("div", null, r(l.label), 1)
|
|
570
570
|
], 10, Ot))), 128))
|
|
571
571
|
], 2));
|
|
572
572
|
}
|
|
573
573
|
});
|
|
574
|
-
O.install = (
|
|
575
|
-
|
|
574
|
+
O.install = (s) => {
|
|
575
|
+
s.component(O.name, O);
|
|
576
576
|
};
|
|
577
577
|
const Qt = {
|
|
578
578
|
key: 0,
|
|
@@ -592,8 +592,8 @@ const Qt = {
|
|
|
592
592
|
bg: { default: "white" },
|
|
593
593
|
avatarUrl: {}
|
|
594
594
|
},
|
|
595
|
-
setup(
|
|
596
|
-
return (e,
|
|
595
|
+
setup(s) {
|
|
596
|
+
return (e, i) => (o(), a("div", {
|
|
597
597
|
class: u(["cu-bar", `bg-${e.bg}`])
|
|
598
598
|
}, [
|
|
599
599
|
e.leftIcon || e.leftText ? (o(), a("div", Qt, [
|
|
@@ -617,8 +617,8 @@ const Qt = {
|
|
|
617
617
|
], 2));
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
G.install = (
|
|
621
|
-
|
|
620
|
+
G.install = (s) => {
|
|
621
|
+
s.component(G.name, G);
|
|
622
622
|
};
|
|
623
623
|
const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss = ["placeholder"], os = { class: "action" }, ns = {
|
|
624
624
|
key: 0,
|
|
@@ -638,52 +638,52 @@ const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss =
|
|
|
638
638
|
actionIcon: {},
|
|
639
639
|
actionText: {}
|
|
640
640
|
},
|
|
641
|
-
setup(
|
|
642
|
-
const e = V(0),
|
|
643
|
-
e.value =
|
|
644
|
-
},
|
|
641
|
+
setup(s) {
|
|
642
|
+
const e = V(0), i = (c) => {
|
|
643
|
+
e.value = c.detail.height;
|
|
644
|
+
}, t = () => {
|
|
645
645
|
e.value = 0;
|
|
646
646
|
};
|
|
647
|
-
return (
|
|
648
|
-
class: u(["cu-bar", `bg-${
|
|
647
|
+
return (c, l) => (o(), a("div", {
|
|
648
|
+
class: u(["cu-bar", `bg-${c.bgColor}`, "search"])
|
|
649
649
|
}, [
|
|
650
|
-
|
|
650
|
+
c.avatarUrl ? (o(), a("div", {
|
|
651
651
|
key: 0,
|
|
652
652
|
class: "cu-avatar round",
|
|
653
|
-
style: I({ backgroundImage: `url(${
|
|
653
|
+
style: I({ backgroundImage: `url(${c.avatarUrl})` })
|
|
654
654
|
}, null, 4)) : p("", !0),
|
|
655
655
|
n("div", {
|
|
656
|
-
class: u(["search-form",
|
|
656
|
+
class: u(["search-form", c.borderRadiusClass])
|
|
657
657
|
}, [
|
|
658
658
|
ts,
|
|
659
659
|
n("input", {
|
|
660
|
-
onFocus:
|
|
661
|
-
onBlur:
|
|
660
|
+
onFocus: i,
|
|
661
|
+
onBlur: t,
|
|
662
662
|
"adjust-position": !1,
|
|
663
663
|
type: "text",
|
|
664
|
-
placeholder:
|
|
664
|
+
placeholder: c.placeholder,
|
|
665
665
|
"confirm-type": "search"
|
|
666
666
|
}, null, 40, ss)
|
|
667
667
|
], 2),
|
|
668
668
|
n("div", os, [
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
669
|
+
c.buttonText ? (o(), a("button", ns, r(c.buttonText), 1)) : (o(), a(_, { key: 1 }, [
|
|
670
|
+
c.location ? (o(), a("text", as, r(c.location), 1)) : p("", !0),
|
|
671
|
+
c.locationIcon ? (o(), a("text", {
|
|
672
672
|
key: 1,
|
|
673
|
-
class: u(`cuIcon-${
|
|
673
|
+
class: u(`cuIcon-${c.locationIcon}`)
|
|
674
674
|
}, null, 2)) : p("", !0),
|
|
675
|
-
|
|
675
|
+
c.actionIcon ? (o(), a("text", {
|
|
676
676
|
key: 2,
|
|
677
|
-
class: u(`cuIcon-${
|
|
677
|
+
class: u(`cuIcon-${c.actionIcon}`)
|
|
678
678
|
}, null, 2)) : p("", !0),
|
|
679
|
-
|
|
679
|
+
c.actionText ? (o(), a("text", ls, r(c.actionText), 1)) : p("", !0)
|
|
680
680
|
], 64))
|
|
681
681
|
])
|
|
682
682
|
], 2));
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
|
-
K.install = (
|
|
686
|
-
|
|
685
|
+
K.install = (s) => {
|
|
686
|
+
s.component(K.name, K);
|
|
687
687
|
};
|
|
688
688
|
const is = {
|
|
689
689
|
key: 0,
|
|
@@ -695,22 +695,22 @@ const is = {
|
|
|
695
695
|
stringArray: { default: () => [] }
|
|
696
696
|
},
|
|
697
697
|
emits: ["send"],
|
|
698
|
-
setup(
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
},
|
|
702
|
-
if (!
|
|
698
|
+
setup(s, { emit: e }) {
|
|
699
|
+
const i = e, t = s, c = (d = "", f) => {
|
|
700
|
+
i("send", d, f);
|
|
701
|
+
}, l = x(() => t.stringArray.map((d) => {
|
|
702
|
+
if (!t.text)
|
|
703
703
|
return d.text;
|
|
704
704
|
let f = "";
|
|
705
|
-
for (let
|
|
706
|
-
|
|
705
|
+
for (let m of d.text)
|
|
706
|
+
t.text.includes(m) ? f += `<span style="color:#ff0000">${m}</span>` : f += m;
|
|
707
707
|
return f;
|
|
708
708
|
}));
|
|
709
709
|
return (d, f) => d.stringArray.length ? (o(), a("ul", is, [
|
|
710
|
-
(o(!0), a(
|
|
711
|
-
key:
|
|
712
|
-
innerHTML:
|
|
713
|
-
onClick: (
|
|
710
|
+
(o(!0), a(_, null, $(l.value, (m, b) => (o(), a("li", {
|
|
711
|
+
key: b,
|
|
712
|
+
innerHTML: m,
|
|
713
|
+
onClick: (v) => c(d.stringArray[b].text, d.stringArray[b])
|
|
714
714
|
}, null, 8, rs))), 128))
|
|
715
715
|
])) : p("", !0);
|
|
716
716
|
}
|
|
@@ -781,19 +781,19 @@ const is = {
|
|
|
781
781
|
], ps = ["onClick"], hs = /* @__PURE__ */ g({
|
|
782
782
|
__name: "EmojiPanel",
|
|
783
783
|
emits: ["addEmoji"],
|
|
784
|
-
setup(
|
|
785
|
-
const
|
|
786
|
-
|
|
784
|
+
setup(s, { emit: e }) {
|
|
785
|
+
const i = e, t = (c) => {
|
|
786
|
+
i("addEmoji", c);
|
|
787
787
|
};
|
|
788
|
-
return (
|
|
788
|
+
return (c, l) => (o(), a("div", {
|
|
789
789
|
class: "emoji-panel",
|
|
790
790
|
ref: "emojiPanel",
|
|
791
|
-
onClick:
|
|
791
|
+
onClick: l[0] || (l[0] = ie(() => {
|
|
792
792
|
}, ["stop"]))
|
|
793
793
|
}, [
|
|
794
|
-
(o(!0), a(
|
|
794
|
+
(o(!0), a(_, null, $(we(fs), (d) => (o(), a("span", {
|
|
795
795
|
key: d,
|
|
796
|
-
onClick: (f) =>
|
|
796
|
+
onClick: (f) => t(d)
|
|
797
797
|
}, r(d), 9, ps))), 128))
|
|
798
798
|
], 512));
|
|
799
799
|
}
|
|
@@ -802,28 +802,28 @@ const is = {
|
|
|
802
802
|
props: {
|
|
803
803
|
items: {}
|
|
804
804
|
},
|
|
805
|
-
setup(
|
|
805
|
+
setup(s) {
|
|
806
806
|
const e = V(null);
|
|
807
807
|
return ae(() => {
|
|
808
|
-
}), (
|
|
809
|
-
const
|
|
808
|
+
}), (i, t) => {
|
|
809
|
+
const c = be("TIcon");
|
|
810
810
|
return o(), a("div", ms, [
|
|
811
811
|
n("div", {
|
|
812
812
|
class: "function-panel",
|
|
813
813
|
ref_key: "functionPanel",
|
|
814
814
|
ref: e
|
|
815
815
|
}, [
|
|
816
|
-
(o(!0), a(
|
|
816
|
+
(o(!0), a(_, null, $(i.items, (l, d) => (o(), a("div", {
|
|
817
817
|
key: d,
|
|
818
818
|
class: "function-item",
|
|
819
|
-
onClick:
|
|
819
|
+
onClick: l.event
|
|
820
820
|
}, [
|
|
821
|
-
|
|
822
|
-
name:
|
|
823
|
-
color:
|
|
821
|
+
q(c, {
|
|
822
|
+
name: l.icon,
|
|
823
|
+
color: l.color,
|
|
824
824
|
size: 26
|
|
825
825
|
}, null, 8, ["name", "color"]),
|
|
826
|
-
n("span", null, r(
|
|
826
|
+
n("span", null, r(l.text), 1)
|
|
827
827
|
], 8, _s))), 128))
|
|
828
828
|
], 512)
|
|
829
829
|
]);
|
|
@@ -847,30 +847,30 @@ const is = {
|
|
|
847
847
|
functionItems: { default: () => [] }
|
|
848
848
|
},
|
|
849
849
|
emits: ["update:modelValue", "send"],
|
|
850
|
-
setup(
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
},
|
|
854
|
-
|
|
855
|
-
},
|
|
856
|
-
h ?
|
|
857
|
-
},
|
|
858
|
-
|
|
850
|
+
setup(s, { emit: e }) {
|
|
851
|
+
const i = V(0), t = V(!1), c = V(!1), l = e, d = s, f = (h) => {
|
|
852
|
+
i.value = h.detail.height;
|
|
853
|
+
}, m = () => {
|
|
854
|
+
i.value = 0;
|
|
855
|
+
}, b = (h = "", C) => {
|
|
856
|
+
h ? l("send", h, C) : l("send", d.modelValue), l("update:modelValue", ""), t.value = !1;
|
|
857
|
+
}, v = () => {
|
|
858
|
+
c.value = !1, t.value = !t.value;
|
|
859
859
|
}, k = () => {
|
|
860
|
-
|
|
860
|
+
t.value = !1, c.value = !c.value;
|
|
861
861
|
}, T = (h) => {
|
|
862
|
-
|
|
862
|
+
l("update:modelValue", d.modelValue + h);
|
|
863
863
|
}, B = (h) => {
|
|
864
864
|
const C = h.target;
|
|
865
|
-
|
|
865
|
+
l("update:modelValue", C.value);
|
|
866
866
|
};
|
|
867
867
|
return ae(() => {
|
|
868
868
|
}), Ce(() => {
|
|
869
|
-
}), (h, C) => (o(), a(
|
|
870
|
-
|
|
869
|
+
}), (h, C) => (o(), a(_, null, [
|
|
870
|
+
q(ds, {
|
|
871
871
|
text: h.modelValue,
|
|
872
872
|
"string-array": h.stringArray,
|
|
873
|
-
onSend:
|
|
873
|
+
onSend: b
|
|
874
874
|
}, null, 8, ["text", "string-array"]),
|
|
875
875
|
n("div", $s, [
|
|
876
876
|
h.leftIcon ? (o(), a("div", ys, [
|
|
@@ -885,9 +885,9 @@ const is = {
|
|
|
885
885
|
])) : p("", !0),
|
|
886
886
|
n("input", {
|
|
887
887
|
onFocus: f,
|
|
888
|
-
onBlur:
|
|
889
|
-
onKeydown: C[0] || (C[0] = xe((N) =>
|
|
890
|
-
onConfirm: C[1] || (C[1] = (N) =>
|
|
888
|
+
onBlur: m,
|
|
889
|
+
onKeydown: C[0] || (C[0] = xe((N) => b(), ["enter"])),
|
|
890
|
+
onConfirm: C[1] || (C[1] = (N) => b()),
|
|
891
891
|
"adjust-position": !1,
|
|
892
892
|
class: "solid-bottom",
|
|
893
893
|
maxlength: "300",
|
|
@@ -898,7 +898,7 @@ const is = {
|
|
|
898
898
|
n("div", ws, [
|
|
899
899
|
n("text", {
|
|
900
900
|
class: u(`cuIcon-${h.rightIcon} text-grey`),
|
|
901
|
-
onClick: ie(
|
|
901
|
+
onClick: ie(v, ["stop"])
|
|
902
902
|
}, null, 2),
|
|
903
903
|
h.functionItems && h.functionItems.length > 0 ? (o(), a("text", {
|
|
904
904
|
key: 0,
|
|
@@ -908,20 +908,20 @@ const is = {
|
|
|
908
908
|
]),
|
|
909
909
|
n("button", {
|
|
910
910
|
class: "cu-btn bg-green shadow-blur round",
|
|
911
|
-
onClick: C[2] || (C[2] = (N) =>
|
|
911
|
+
onClick: C[2] || (C[2] = (N) => b())
|
|
912
912
|
}, r(h.buttonText), 1)
|
|
913
913
|
]),
|
|
914
|
-
re(
|
|
915
|
-
[ue,
|
|
914
|
+
re(q(gs, { onAddEmoji: T }, null, 512), [
|
|
915
|
+
[ue, t.value]
|
|
916
916
|
]),
|
|
917
|
-
re(
|
|
918
|
-
[ue,
|
|
917
|
+
re(q(bs, { items: h.functionItems }, null, 8, ["items"]), [
|
|
918
|
+
[ue, c.value]
|
|
919
919
|
])
|
|
920
920
|
], 64));
|
|
921
921
|
}
|
|
922
922
|
}), H = /* @__PURE__ */ A(xs, [["__scopeId", "data-v-7b4ca731"]]);
|
|
923
|
-
H.install = (
|
|
924
|
-
|
|
923
|
+
H.install = (s) => {
|
|
924
|
+
s.component(H.name, H);
|
|
925
925
|
};
|
|
926
926
|
const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
927
927
|
name: "TTabs"
|
|
@@ -939,45 +939,45 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
939
939
|
line: { type: Boolean, default: !0 }
|
|
940
940
|
},
|
|
941
941
|
emits: ["update:modelValue", "select"],
|
|
942
|
-
setup(
|
|
943
|
-
const
|
|
944
|
-
|
|
942
|
+
setup(s, { emit: e }) {
|
|
943
|
+
const i = s, t = e, c = V([]), l = V(i.modelValue), d = (v, k) => {
|
|
944
|
+
l.value = v, t("update:modelValue", v), t("select", k);
|
|
945
945
|
};
|
|
946
|
-
ge("registerTab", (
|
|
947
|
-
const
|
|
946
|
+
ge("registerTab", (v) => (c.value.push(v), c.value.length - 1)), ge("activeTab", l);
|
|
947
|
+
const m = x(() => i.center !== !1 ? "justify-content:center;" : `justify-content:${i.mode}`), b = x(() => (v) => {
|
|
948
948
|
let k = [];
|
|
949
|
-
return
|
|
949
|
+
return l.value === v && (k.push(`text-${i.color}`), i.bold !== !1 && k.push("text-bold"), i.line !== !1 && k.push("cur")), k;
|
|
950
950
|
});
|
|
951
951
|
return Te(
|
|
952
|
-
() =>
|
|
953
|
-
(
|
|
954
|
-
|
|
952
|
+
() => i.modelValue,
|
|
953
|
+
(v) => {
|
|
954
|
+
l.value = v;
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
immediate: !0
|
|
958
958
|
}
|
|
959
|
-
), (
|
|
960
|
-
class: u(
|
|
959
|
+
), (v, k) => (o(), a("div", {
|
|
960
|
+
class: u(v.isCard !== !1 ? "is-card" : "")
|
|
961
961
|
}, [
|
|
962
962
|
n("div", {
|
|
963
|
-
class: u(["nav flex", [, `bg-${
|
|
964
|
-
style: I(
|
|
963
|
+
class: u(["nav flex", [, `bg-${v.bg}`, `text-${v.text}`]]),
|
|
964
|
+
style: I(m.value)
|
|
965
965
|
}, [
|
|
966
|
-
(o(!0), a(
|
|
967
|
-
class: u(["cu-item",
|
|
966
|
+
(o(!0), a(_, null, $(c.value, (T, B) => (o(), a("div", {
|
|
967
|
+
class: u(["cu-item", b.value(B)]),
|
|
968
968
|
key: B,
|
|
969
969
|
onClick: (h) => d(B, T)
|
|
970
970
|
}, [
|
|
971
971
|
T.icon ? (o(), a("i", {
|
|
972
972
|
key: 0,
|
|
973
|
-
class: u(`cuIcon-${T.icon} text-${
|
|
973
|
+
class: u(`cuIcon-${T.icon} text-${l.value === B ? v.color : T.iconColor}`)
|
|
974
974
|
}, null, 2)) : p("", !0),
|
|
975
975
|
y(" " + r(T.label), 1)
|
|
976
976
|
], 10, Ts))), 128))
|
|
977
977
|
], 6),
|
|
978
978
|
n("div", Bs, [
|
|
979
|
-
w(
|
|
980
|
-
tab:
|
|
979
|
+
w(v.$slots, "default", {
|
|
980
|
+
tab: c.value[l.value]
|
|
981
981
|
})
|
|
982
982
|
])
|
|
983
983
|
], 2));
|
|
@@ -991,33 +991,33 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
991
991
|
icon: { default: "" },
|
|
992
992
|
iconColor: { default: "black" }
|
|
993
993
|
},
|
|
994
|
-
setup(
|
|
995
|
-
const e =
|
|
994
|
+
setup(s) {
|
|
995
|
+
const e = s, i = de(
|
|
996
996
|
"registerTab"
|
|
997
|
-
),
|
|
997
|
+
), t = de("activeTab"), c = V(null), l = x(() => (t == null ? void 0 : t.value) === c.value), d = x(() => ({
|
|
998
998
|
label: e.label,
|
|
999
999
|
icon: e.icon,
|
|
1000
1000
|
iconColor: e.iconColor
|
|
1001
1001
|
}));
|
|
1002
1002
|
return ae(() => {
|
|
1003
|
-
|
|
1003
|
+
i && (c.value = i({
|
|
1004
1004
|
label: e.label,
|
|
1005
1005
|
icon: e.icon,
|
|
1006
1006
|
iconColor: e.iconColor
|
|
1007
1007
|
}));
|
|
1008
|
-
}), (f,
|
|
1008
|
+
}), (f, m) => re((o(), a("div", null, [
|
|
1009
1009
|
w(f.$slots, "default"),
|
|
1010
1010
|
w(f.$slots, "custom", { tab: d.value })
|
|
1011
1011
|
], 512)), [
|
|
1012
|
-
[ue,
|
|
1012
|
+
[ue, l.value]
|
|
1013
1013
|
]);
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
1016
|
-
X.install = (
|
|
1017
|
-
|
|
1016
|
+
X.install = (s) => {
|
|
1017
|
+
s.component(X.name, X);
|
|
1018
1018
|
};
|
|
1019
|
-
J.install = (
|
|
1020
|
-
|
|
1019
|
+
J.install = (s) => {
|
|
1020
|
+
s.component(J.name, J);
|
|
1021
1021
|
};
|
|
1022
1022
|
/*!
|
|
1023
1023
|
* vue-router v4.3.3
|
|
@@ -1025,17 +1025,17 @@ J.install = (t) => {
|
|
|
1025
1025
|
* @license MIT
|
|
1026
1026
|
*/
|
|
1027
1027
|
var me;
|
|
1028
|
-
(function(
|
|
1029
|
-
|
|
1028
|
+
(function(s) {
|
|
1029
|
+
s.pop = "pop", s.push = "push";
|
|
1030
1030
|
})(me || (me = {}));
|
|
1031
1031
|
var _e;
|
|
1032
|
-
(function(
|
|
1033
|
-
|
|
1032
|
+
(function(s) {
|
|
1033
|
+
s.back = "back", s.forward = "forward", s.unknown = "";
|
|
1034
1034
|
})(_e || (_e = {}));
|
|
1035
1035
|
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
1036
1036
|
var ve;
|
|
1037
|
-
(function(
|
|
1038
|
-
|
|
1037
|
+
(function(s) {
|
|
1038
|
+
s[s.aborted = 4] = "aborted", s[s.cancelled = 8] = "cancelled", s[s.duplicated = 16] = "duplicated";
|
|
1039
1039
|
})(ve || (ve = {}));
|
|
1040
1040
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
1041
1041
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
@@ -1045,7 +1045,7 @@ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
|
1045
1045
|
function zs() {
|
|
1046
1046
|
return de(Vs);
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1048
|
+
const Es = ["onClick"], qs = {
|
|
1049
1049
|
key: 0,
|
|
1050
1050
|
class: "cu-tag badge"
|
|
1051
1051
|
}, Ms = { key: 0 }, As = {
|
|
@@ -1120,55 +1120,55 @@ const qs = ["onClick"], Es = {
|
|
|
1120
1120
|
gridBorder: { type: Boolean, default: !1 },
|
|
1121
1121
|
routeFn: { type: Function, default: void 0 }
|
|
1122
1122
|
},
|
|
1123
|
-
setup(
|
|
1124
|
-
const e =
|
|
1125
|
-
if (
|
|
1123
|
+
setup(s) {
|
|
1124
|
+
const e = s, i = zs(), t = (c) => {
|
|
1125
|
+
if (c.path) {
|
|
1126
1126
|
e.routeFn ? e.routeFn().push({
|
|
1127
|
-
path:
|
|
1128
|
-
}) :
|
|
1129
|
-
path:
|
|
1127
|
+
path: c.path
|
|
1128
|
+
}) : i.push({
|
|
1129
|
+
path: c.path
|
|
1130
1130
|
});
|
|
1131
1131
|
return;
|
|
1132
1132
|
}
|
|
1133
|
-
if (
|
|
1134
|
-
window.location.href =
|
|
1133
|
+
if (c.link) {
|
|
1134
|
+
window.location.href = c.link;
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
1137
|
};
|
|
1138
|
-
return (
|
|
1139
|
-
class: u(["cu-list grid", ["col-" +
|
|
1138
|
+
return (c, l) => (o(), a("div", {
|
|
1139
|
+
class: u(["cu-list grid", ["col-" + c.gridCol, c.gridBorder ? "" : "no-border"]])
|
|
1140
1140
|
}, [
|
|
1141
|
-
(o(!0), a(
|
|
1141
|
+
(o(!0), a(_, null, $(c.cuIconList, (d, f) => (o(), a("div", {
|
|
1142
1142
|
class: "cu-item",
|
|
1143
1143
|
key: f,
|
|
1144
|
-
style: I(`width: calc(100% / ${
|
|
1145
|
-
onClick: (
|
|
1144
|
+
style: I(`width: calc(100% / ${c.gridCol})`),
|
|
1145
|
+
onClick: (m) => t(d)
|
|
1146
1146
|
}, [
|
|
1147
1147
|
n("div", {
|
|
1148
1148
|
class: u(["cuIcon-" + d.cuIcon, "text-" + d.color])
|
|
1149
1149
|
}, [
|
|
1150
|
-
d.badge != 0 ? (o(), a("div",
|
|
1150
|
+
d.badge != 0 ? (o(), a("div", qs, [
|
|
1151
1151
|
d.badge != 1 ? (o(), a("i", Ms, r((d.badge || 0) > 99 ? "99+" : d.badge), 1)) : p("", !0)
|
|
1152
1152
|
])) : p("", !0)
|
|
1153
1153
|
], 2),
|
|
1154
1154
|
n("text", null, r(d.name), 1)
|
|
1155
|
-
], 12,
|
|
1155
|
+
], 12, Es))), 128))
|
|
1156
1156
|
], 2));
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
|
-
Q.install = (
|
|
1160
|
-
|
|
1159
|
+
Q.install = (s) => {
|
|
1160
|
+
s.component(Q.name, Q);
|
|
1161
1161
|
};
|
|
1162
|
-
const Ns = { class: "content" },
|
|
1162
|
+
const Ns = ["onClick"], Ps = { class: "content" }, Ds = ["src", "alt"], Fs = { class: "text-grey" }, Ls = { class: "action" }, Rs = {
|
|
1163
1163
|
key: 1,
|
|
1164
1164
|
class: "text-grey text-sm"
|
|
1165
|
-
},
|
|
1165
|
+
}, Us = ["onClick"], Os = {
|
|
1166
1166
|
key: 4,
|
|
1167
1167
|
class: "text-grey text-sm"
|
|
1168
|
-
},
|
|
1168
|
+
}, Gs = {
|
|
1169
1169
|
name: "Menu"
|
|
1170
1170
|
}, W = /* @__PURE__ */ g({
|
|
1171
|
-
...
|
|
1171
|
+
...Gs,
|
|
1172
1172
|
props: {
|
|
1173
1173
|
menuItems: { default: () => [
|
|
1174
1174
|
{
|
|
@@ -1244,18 +1244,21 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
|
|
|
1244
1244
|
menuArrow: { type: Boolean, default: !1 },
|
|
1245
1245
|
menuCard: { type: Boolean, default: !1 }
|
|
1246
1246
|
},
|
|
1247
|
-
setup(
|
|
1248
|
-
const e = (
|
|
1249
|
-
|
|
1247
|
+
setup(s) {
|
|
1248
|
+
const e = (t) => {
|
|
1249
|
+
t.event && t.event(t);
|
|
1250
|
+
}, i = (t) => {
|
|
1251
|
+
t && t();
|
|
1250
1252
|
};
|
|
1251
|
-
return (
|
|
1252
|
-
class: u(["cu-list menu", [
|
|
1253
|
+
return (t, c) => (o(), a("div", {
|
|
1254
|
+
class: u(["cu-list menu", [t.menuBorder ? "sm-border" : "", t.menuCard ? "card-menu" : ""]])
|
|
1253
1255
|
}, [
|
|
1254
|
-
(o(!0), a(
|
|
1255
|
-
key:
|
|
1256
|
-
class: u(["cu-item",
|
|
1256
|
+
(o(!0), a(_, null, $(t.menuItems, (l, d) => (o(), a("div", {
|
|
1257
|
+
key: d,
|
|
1258
|
+
class: u(["cu-item", t.menuArrow ? "arrow" : ""]),
|
|
1259
|
+
onClick: (f) => e(l)
|
|
1257
1260
|
}, [
|
|
1258
|
-
n("div",
|
|
1261
|
+
n("div", Ps, [
|
|
1259
1262
|
l.icon ? (o(), S(M, {
|
|
1260
1263
|
key: 0,
|
|
1261
1264
|
class: "icon",
|
|
@@ -1267,21 +1270,21 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
|
|
|
1267
1270
|
class: "icon",
|
|
1268
1271
|
src: l.img.url,
|
|
1269
1272
|
alt: l.img.alt
|
|
1270
|
-
}, null, 8,
|
|
1271
|
-
n("text",
|
|
1273
|
+
}, null, 8, Ds)) : p("", !0),
|
|
1274
|
+
n("text", Fs, r(l.title), 1)
|
|
1272
1275
|
]),
|
|
1273
|
-
n("div",
|
|
1276
|
+
n("div", Ls, [
|
|
1274
1277
|
l.group ? (o(), S(R, {
|
|
1275
1278
|
key: 0,
|
|
1276
1279
|
urls: l.group
|
|
1277
1280
|
}, null, 8, ["urls"])) : p("", !0),
|
|
1278
|
-
l.group ? (o(), a("text",
|
|
1281
|
+
l.group ? (o(), a("text", Rs, r(l.group.length) + "人", 1)) : p("", !0),
|
|
1279
1282
|
l.btn ? (o(), a("button", {
|
|
1280
1283
|
key: 2,
|
|
1281
1284
|
class: u(["cu-btn round shadow", `bg-${l.btn.bg}`]),
|
|
1282
|
-
onClick: (
|
|
1283
|
-
var
|
|
1284
|
-
return
|
|
1285
|
+
onClick: (f) => {
|
|
1286
|
+
var m;
|
|
1287
|
+
return i((m = l.btn) == null ? void 0 : m.event);
|
|
1285
1288
|
}
|
|
1286
1289
|
}, [
|
|
1287
1290
|
l.btn.icon ? (o(), S(M, {
|
|
@@ -1290,35 +1293,35 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
|
|
|
1290
1293
|
color: "white"
|
|
1291
1294
|
}, null, 8, ["name"])) : p("", !0),
|
|
1292
1295
|
y(" " + r(l.btn.text), 1)
|
|
1293
|
-
], 10,
|
|
1294
|
-
l.tags ? (o(!0), a(
|
|
1295
|
-
size:
|
|
1296
|
-
key:
|
|
1297
|
-
bg:
|
|
1298
|
-
light:
|
|
1296
|
+
], 10, Us)) : p("", !0),
|
|
1297
|
+
l.tags ? (o(!0), a(_, { key: 3 }, $(l.tags, (f, m) => (o(), S(E, {
|
|
1298
|
+
size: f.size,
|
|
1299
|
+
key: m,
|
|
1300
|
+
bg: f.bg,
|
|
1301
|
+
light: f.light,
|
|
1299
1302
|
shape: "round"
|
|
1300
1303
|
}, {
|
|
1301
1304
|
default: ne(() => [
|
|
1302
|
-
y(r(
|
|
1305
|
+
y(r(f.text), 1)
|
|
1303
1306
|
]),
|
|
1304
1307
|
_: 2
|
|
1305
1308
|
}, 1032, ["size", "bg", "light"]))), 128)) : p("", !0),
|
|
1306
|
-
l.text ? (o(), a("text",
|
|
1309
|
+
l.text ? (o(), a("text", Os, r(l.text), 1)) : p("", !0)
|
|
1307
1310
|
])
|
|
1308
|
-
],
|
|
1311
|
+
], 10, Ns))), 128))
|
|
1309
1312
|
], 2));
|
|
1310
1313
|
}
|
|
1311
1314
|
});
|
|
1312
|
-
W.install = (
|
|
1313
|
-
|
|
1315
|
+
W.install = (s) => {
|
|
1316
|
+
s.component(W.name, W);
|
|
1314
1317
|
};
|
|
1315
|
-
const
|
|
1318
|
+
const Ks = {
|
|
1316
1319
|
key: 1,
|
|
1317
1320
|
class: "cu-tag badge"
|
|
1318
|
-
},
|
|
1321
|
+
}, Hs = { class: "content" }, Xs = { class: "flex align-center" }, Js = { class: "text-cut text-black" }, Qs = { class: "text-gray text-sm flex" }, Ws = { class: "text-cut" }, Ys = { class: "action" }, Zs = { class: "text-grey text-xs" }, eo = {
|
|
1319
1322
|
name: "ChatListItem"
|
|
1320
1323
|
}, fe = /* @__PURE__ */ g({
|
|
1321
|
-
...
|
|
1324
|
+
...eo,
|
|
1322
1325
|
props: {
|
|
1323
1326
|
userinfo: {},
|
|
1324
1327
|
roomId: {},
|
|
@@ -1337,81 +1340,81 @@ const Gs = {
|
|
|
1337
1340
|
event: { type: Function, default: () => {
|
|
1338
1341
|
} }
|
|
1339
1342
|
},
|
|
1340
|
-
setup(
|
|
1341
|
-
const e =
|
|
1342
|
-
return (
|
|
1343
|
-
var
|
|
1344
|
-
const
|
|
1343
|
+
setup(s) {
|
|
1344
|
+
const e = s;
|
|
1345
|
+
return (i, t) => {
|
|
1346
|
+
var l;
|
|
1347
|
+
const c = be("TIcon");
|
|
1345
1348
|
return o(), a("div", {
|
|
1346
|
-
class: u(["cu-item", { grayscale:
|
|
1347
|
-
onClick:
|
|
1349
|
+
class: u(["cu-item", { grayscale: i.isDisconnected, cur: i.isCurrent }]),
|
|
1350
|
+
onClick: t[0] || (t[0] = (d) => i.event(e))
|
|
1348
1351
|
}, [
|
|
1349
1352
|
n("div", {
|
|
1350
|
-
class: u(["cu-avatar",
|
|
1351
|
-
style: I({ backgroundImage: `url(${
|
|
1353
|
+
class: u(["cu-avatar", i.userinfo.avatarShape, "lg", `bg-${i.avatarBg}`]),
|
|
1354
|
+
style: I({ backgroundImage: `url(${i.userinfo.avatar})` })
|
|
1352
1355
|
}, [
|
|
1353
|
-
(
|
|
1356
|
+
(l = i.userinfo) != null && l.avatar ? p("", !0) : (o(), S(c, {
|
|
1354
1357
|
key: 0,
|
|
1355
|
-
name:
|
|
1358
|
+
name: i.avatarName,
|
|
1356
1359
|
size: 36,
|
|
1357
1360
|
color: "white"
|
|
1358
1361
|
}, null, 8, ["name"])),
|
|
1359
|
-
|
|
1362
|
+
i.badge ? (o(), a("div", Ks, r(i.badge), 1)) : p("", !0)
|
|
1360
1363
|
], 6),
|
|
1361
|
-
n("div",
|
|
1362
|
-
n("div",
|
|
1363
|
-
n("div",
|
|
1364
|
-
|
|
1364
|
+
n("div", Hs, [
|
|
1365
|
+
n("div", Xs, [
|
|
1366
|
+
n("div", Js, r(i.userinfo.name), 1),
|
|
1367
|
+
i.userinfo.tag ? (o(), a("div", {
|
|
1365
1368
|
key: 0,
|
|
1366
|
-
class: u(["cu-tag", "round", `bg-${
|
|
1367
|
-
}, r(
|
|
1369
|
+
class: u(["cu-tag", "round", `bg-${i.userinfo.tagColor}`, "sm"])
|
|
1370
|
+
}, r(i.userinfo.tag), 3)) : p("", !0)
|
|
1368
1371
|
]),
|
|
1369
|
-
n("div",
|
|
1370
|
-
n("div",
|
|
1371
|
-
w(
|
|
1372
|
+
n("div", Qs, [
|
|
1373
|
+
n("div", Ws, [
|
|
1374
|
+
w(i.$slots, "default")
|
|
1372
1375
|
])
|
|
1373
1376
|
])
|
|
1374
1377
|
]),
|
|
1375
|
-
n("div",
|
|
1376
|
-
n("div",
|
|
1377
|
-
|
|
1378
|
+
n("div", Ys, [
|
|
1379
|
+
n("div", Zs, r(i.time), 1),
|
|
1380
|
+
i.unread ? (o(), a("div", {
|
|
1378
1381
|
key: 0,
|
|
1379
|
-
class: u(["cu-tag", "round", `bg-${
|
|
1380
|
-
}, r(
|
|
1382
|
+
class: u(["cu-tag", "round", `bg-${i.unreadColor}`, "sm"])
|
|
1383
|
+
}, r(i.unread), 3)) : i.icon ? (o(), a("div", {
|
|
1381
1384
|
key: 1,
|
|
1382
|
-
class: u(
|
|
1385
|
+
class: u(i.iconClass)
|
|
1383
1386
|
}, null, 2)) : p("", !0)
|
|
1384
1387
|
])
|
|
1385
1388
|
], 2);
|
|
1386
1389
|
};
|
|
1387
1390
|
}
|
|
1388
|
-
}),
|
|
1391
|
+
}), to = { class: "cu-list menu-avatar" }, so = {
|
|
1389
1392
|
name: "ChatList"
|
|
1390
1393
|
}, Y = /* @__PURE__ */ g({
|
|
1391
|
-
...
|
|
1394
|
+
...so,
|
|
1392
1395
|
props: {
|
|
1393
1396
|
items: {}
|
|
1394
1397
|
},
|
|
1395
|
-
setup(
|
|
1396
|
-
return (e,
|
|
1397
|
-
(o(!0), a(
|
|
1398
|
-
"avatar-name":
|
|
1399
|
-
"avatar-bg":
|
|
1400
|
-
time:
|
|
1401
|
-
key:
|
|
1402
|
-
userinfo:
|
|
1403
|
-
unread:
|
|
1404
|
-
unreadColor:
|
|
1405
|
-
badge:
|
|
1406
|
-
icon:
|
|
1407
|
-
iconClass:
|
|
1408
|
-
isDisconnected:
|
|
1409
|
-
isCurrent:
|
|
1410
|
-
event:
|
|
1398
|
+
setup(s) {
|
|
1399
|
+
return (e, i) => (o(), a("div", to, [
|
|
1400
|
+
(o(!0), a(_, null, $(e.items, (t, c) => (o(), S(fe, {
|
|
1401
|
+
"avatar-name": t.avatarName,
|
|
1402
|
+
"avatar-bg": t.avatarBg,
|
|
1403
|
+
time: t.time,
|
|
1404
|
+
key: c,
|
|
1405
|
+
userinfo: t.userinfo,
|
|
1406
|
+
unread: t.unread,
|
|
1407
|
+
unreadColor: t.unreadColor,
|
|
1408
|
+
badge: t.badge,
|
|
1409
|
+
icon: t.icon,
|
|
1410
|
+
iconClass: t.iconClass,
|
|
1411
|
+
isDisconnected: t.isDisconnected,
|
|
1412
|
+
isCurrent: t.isCurrent,
|
|
1413
|
+
event: t.event
|
|
1411
1414
|
}, {
|
|
1412
1415
|
default: ne(() => [
|
|
1413
|
-
w(e.$slots, "default", { item:
|
|
1414
|
-
y(r(
|
|
1416
|
+
w(e.$slots, "default", { item: t }, () => [
|
|
1417
|
+
y(r(t.content), 1)
|
|
1415
1418
|
])
|
|
1416
1419
|
]),
|
|
1417
1420
|
_: 2
|
|
@@ -1419,137 +1422,137 @@ const Gs = {
|
|
|
1419
1422
|
]));
|
|
1420
1423
|
}
|
|
1421
1424
|
});
|
|
1422
|
-
Y.install = (
|
|
1423
|
-
|
|
1425
|
+
Y.install = (s) => {
|
|
1426
|
+
s.component(Y.name, Y), s.component(fe.name, fe);
|
|
1424
1427
|
};
|
|
1425
|
-
const
|
|
1428
|
+
const oo = { class: "cu-chat" }, no = {
|
|
1426
1429
|
key: 0,
|
|
1427
1430
|
class: "cu-info round"
|
|
1428
|
-
},
|
|
1431
|
+
}, ao = {
|
|
1429
1432
|
key: 1,
|
|
1430
1433
|
class: "cu-info"
|
|
1431
|
-
},
|
|
1434
|
+
}, lo = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), co = { class: "main" }, io = ["src"], ro = {
|
|
1432
1435
|
key: 2,
|
|
1433
1436
|
class: "content shadow"
|
|
1434
|
-
},
|
|
1437
|
+
}, uo = /* @__PURE__ */ n("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), fo = { class: "action text-bold text-grey" }, po = {
|
|
1435
1438
|
key: 3,
|
|
1436
1439
|
class: "content shadow"
|
|
1437
|
-
},
|
|
1440
|
+
}, ho = /* @__PURE__ */ n("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), go = { class: "content shadow" }, mo = /* @__PURE__ */ n("div", { class: "action text-grey" }, [
|
|
1438
1441
|
/* @__PURE__ */ n("text", { class: "cuIcon-warnfill text-red text-xxl" }),
|
|
1439
1442
|
/* @__PURE__ */ n("text", { class: "text-sm margin-left-sm" }, "翻译错误")
|
|
1440
|
-
], -1),
|
|
1441
|
-
...
|
|
1443
|
+
], -1), _o = { class: "date" }, vo = { name: "ChatRoom" }, Z = /* @__PURE__ */ g({
|
|
1444
|
+
...vo,
|
|
1442
1445
|
props: {
|
|
1443
1446
|
messages: {}
|
|
1444
1447
|
},
|
|
1445
|
-
setup(
|
|
1446
|
-
return (e,
|
|
1447
|
-
(o(!0), a(
|
|
1448
|
-
key:
|
|
1449
|
-
class: u(["cu-item", { self:
|
|
1448
|
+
setup(s) {
|
|
1449
|
+
return (e, i) => (o(), a("div", oo, [
|
|
1450
|
+
(o(!0), a(_, null, $(e.messages, (t) => (o(), a("div", {
|
|
1451
|
+
key: t.id,
|
|
1452
|
+
class: u(["cu-item", { self: t.self }])
|
|
1450
1453
|
}, [
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
y(" " + r(
|
|
1454
|
+
t.type === "info" ? (o(), a(_, { key: 0 }, [
|
|
1455
|
+
t.self ? (o(), a("div", no, r(t.content), 1)) : (o(), a("div", ao, [
|
|
1456
|
+
lo,
|
|
1457
|
+
y(" " + r(t.content), 1)
|
|
1455
1458
|
]))
|
|
1456
|
-
], 64)) : (o(), a(
|
|
1457
|
-
|
|
1459
|
+
], 64)) : (o(), a(_, { key: 1 }, [
|
|
1460
|
+
t.self ? p("", !0) : (o(), S(z, {
|
|
1458
1461
|
key: 0,
|
|
1459
1462
|
mode: "radius",
|
|
1460
|
-
url:
|
|
1463
|
+
url: t.avatar
|
|
1461
1464
|
}, null, 8, ["url"])),
|
|
1462
|
-
n("div",
|
|
1463
|
-
|
|
1465
|
+
n("div", co, [
|
|
1466
|
+
t.type === "text" ? (o(), a("div", {
|
|
1464
1467
|
key: 0,
|
|
1465
|
-
class: u(["content shadow", { "bg-green":
|
|
1468
|
+
class: u(["content shadow", { "bg-green": t.self }])
|
|
1466
1469
|
}, [
|
|
1467
|
-
n("text", null, r(
|
|
1468
|
-
], 2)) :
|
|
1470
|
+
n("text", null, r(t.content), 1)
|
|
1471
|
+
], 2)) : t.type === "image" ? (o(), a("img", {
|
|
1469
1472
|
key: 1,
|
|
1470
|
-
src:
|
|
1473
|
+
src: t.content,
|
|
1471
1474
|
class: "radius",
|
|
1472
1475
|
style: { "max-width": "100%" }
|
|
1473
|
-
}, null, 8,
|
|
1474
|
-
|
|
1475
|
-
n("div",
|
|
1476
|
-
])) :
|
|
1477
|
-
|
|
1478
|
-
y(" " + r(
|
|
1479
|
-
])) :
|
|
1480
|
-
n("div",
|
|
1481
|
-
|
|
1476
|
+
}, null, 8, io)) : t.type === "audio" ? (o(), a("div", ro, [
|
|
1477
|
+
uo,
|
|
1478
|
+
n("div", fo, r(t.content), 1)
|
|
1479
|
+
])) : t.type === "location" ? (o(), a("div", po, [
|
|
1480
|
+
ho,
|
|
1481
|
+
y(" " + r(t.content), 1)
|
|
1482
|
+
])) : t.type === "warning" ? (o(), a(_, { key: 4 }, [
|
|
1483
|
+
n("div", go, r(t.content), 1),
|
|
1484
|
+
mo
|
|
1482
1485
|
], 64)) : w(e.$slots, "custom-message", {
|
|
1483
1486
|
key: 5,
|
|
1484
|
-
message:
|
|
1487
|
+
message: t
|
|
1485
1488
|
})
|
|
1486
1489
|
]),
|
|
1487
|
-
|
|
1490
|
+
t.self ? (o(), S(z, {
|
|
1488
1491
|
key: 1,
|
|
1489
1492
|
mode: "radius",
|
|
1490
|
-
url:
|
|
1493
|
+
url: t.avatar
|
|
1491
1494
|
}, null, 8, ["url"])) : p("", !0),
|
|
1492
|
-
n("div",
|
|
1495
|
+
n("div", _o, r(t.date), 1)
|
|
1493
1496
|
], 64))
|
|
1494
1497
|
], 2))), 128))
|
|
1495
1498
|
]));
|
|
1496
1499
|
}
|
|
1497
1500
|
});
|
|
1498
|
-
Z.install = (
|
|
1499
|
-
|
|
1501
|
+
Z.install = (s) => {
|
|
1502
|
+
s.component(Z.name, Z);
|
|
1500
1503
|
};
|
|
1501
|
-
const
|
|
1504
|
+
const bo = { class: "cu-time" }, $o = {
|
|
1502
1505
|
key: 0,
|
|
1503
1506
|
class: "cu-capsule radius"
|
|
1504
|
-
},
|
|
1507
|
+
}, yo = {
|
|
1505
1508
|
name: "TimeLine"
|
|
1506
1509
|
}, ee = /* @__PURE__ */ g({
|
|
1507
|
-
|
|
1510
|
+
...yo,
|
|
1508
1511
|
props: {
|
|
1509
1512
|
items: { default: () => [] }
|
|
1510
1513
|
},
|
|
1511
|
-
setup(
|
|
1512
|
-
function e(
|
|
1513
|
-
return
|
|
1514
|
+
setup(s) {
|
|
1515
|
+
function e(t) {
|
|
1516
|
+
return t || "cyan";
|
|
1514
1517
|
}
|
|
1515
|
-
function
|
|
1516
|
-
switch (
|
|
1518
|
+
function i(t) {
|
|
1519
|
+
switch (t.status) {
|
|
1517
1520
|
case "past":
|
|
1518
|
-
return `text-green cuIcon-${
|
|
1521
|
+
return `text-green cuIcon-${t.icon || "roundcheckfill"}`;
|
|
1519
1522
|
case "ongoing":
|
|
1520
1523
|
return "text-red cuIcon-all";
|
|
1521
1524
|
case "upcoming":
|
|
1522
|
-
return `text-gray cuIcon-${
|
|
1525
|
+
return `text-gray cuIcon-${t.icon || "radioboxfill"}`;
|
|
1523
1526
|
default:
|
|
1524
|
-
return `text-gray cuIcon-${
|
|
1527
|
+
return `text-gray cuIcon-${t.icon || "radioboxfill"}`;
|
|
1525
1528
|
}
|
|
1526
1529
|
}
|
|
1527
|
-
return (
|
|
1528
|
-
(o(!0), a(
|
|
1530
|
+
return (t, c) => (o(), a("div", null, [
|
|
1531
|
+
(o(!0), a(_, null, $(t.items, (l, d) => (o(), a("div", {
|
|
1529
1532
|
key: d,
|
|
1530
1533
|
class: "cu-timeline"
|
|
1531
1534
|
}, [
|
|
1532
|
-
n("div",
|
|
1533
|
-
(o(!0), a(
|
|
1534
|
-
var b, v
|
|
1535
|
+
n("div", bo, r(l.date), 1),
|
|
1536
|
+
(o(!0), a(_, null, $(l.items, (f) => {
|
|
1537
|
+
var m, b, v;
|
|
1535
1538
|
return o(), a("div", {
|
|
1536
1539
|
key: f.key,
|
|
1537
|
-
class: u(["cu-item",
|
|
1540
|
+
class: u(["cu-item", i(f)])
|
|
1538
1541
|
}, [
|
|
1539
1542
|
n("div", {
|
|
1540
1543
|
class: u(["content", `bg-${f.bg || "gray"}`, "shadow-blur"])
|
|
1541
1544
|
}, [
|
|
1542
|
-
(
|
|
1543
|
-
E
|
|
1544
|
-
bg: e((
|
|
1545
|
+
(m = f == null ? void 0 : f.capsule) != null && m.list && f.capsule.list.length ? (o(), a("div", $o, [
|
|
1546
|
+
q(E, {
|
|
1547
|
+
bg: e((b = f.capsule) == null ? void 0 : b.color)
|
|
1545
1548
|
}, {
|
|
1546
1549
|
default: ne(() => [
|
|
1547
1550
|
y(r(f.capsule.list[0]), 1)
|
|
1548
1551
|
]),
|
|
1549
1552
|
_: 2
|
|
1550
1553
|
}, 1032, ["bg"]),
|
|
1551
|
-
E
|
|
1552
|
-
bg: e((
|
|
1554
|
+
q(E, {
|
|
1555
|
+
bg: e((v = f.capsule) == null ? void 0 : v.color),
|
|
1553
1556
|
light: !0
|
|
1554
1557
|
}, {
|
|
1555
1558
|
default: ne(() => [
|
|
@@ -1561,7 +1564,7 @@ const vo = { class: "cu-time" }, bo = {
|
|
|
1561
1564
|
n("div", {
|
|
1562
1565
|
class: u(f.capsule ? "margin-top-sm" : "")
|
|
1563
1566
|
}, [
|
|
1564
|
-
w(
|
|
1567
|
+
w(t.$slots, `item-${f.key}`, {}, () => [
|
|
1565
1568
|
y(r(f.content), 1)
|
|
1566
1569
|
])
|
|
1567
1570
|
], 2)
|
|
@@ -1572,13 +1575,13 @@ const vo = { class: "cu-time" }, bo = {
|
|
|
1572
1575
|
]));
|
|
1573
1576
|
}
|
|
1574
1577
|
});
|
|
1575
|
-
ee.install = (
|
|
1576
|
-
|
|
1578
|
+
ee.install = (s) => {
|
|
1579
|
+
s.component(ee.name, ee);
|
|
1577
1580
|
};
|
|
1578
|
-
const
|
|
1581
|
+
const ko = { class: "bg-white padding" }, Io = ["data-index"], wo = {
|
|
1579
1582
|
name: "TSteps"
|
|
1580
1583
|
}, te = /* @__PURE__ */ g({
|
|
1581
|
-
...
|
|
1584
|
+
...wo,
|
|
1582
1585
|
props: {
|
|
1583
1586
|
steps: {},
|
|
1584
1587
|
modelValue: {},
|
|
@@ -1586,56 +1589,56 @@ const yo = { class: "bg-white padding" }, ko = ["data-index"], Io = {
|
|
|
1586
1589
|
color: { default: "blue" }
|
|
1587
1590
|
},
|
|
1588
1591
|
emits: ["update:modelValue"],
|
|
1589
|
-
setup(
|
|
1590
|
-
return (
|
|
1592
|
+
setup(s, { emit: e }) {
|
|
1593
|
+
return (i, t) => (o(), a("div", ko, [
|
|
1591
1594
|
n("div", {
|
|
1592
|
-
class: u(["cu-steps", { "scroll-x":
|
|
1595
|
+
class: u(["cu-steps", { "scroll-x": i.scrollX }])
|
|
1593
1596
|
}, [
|
|
1594
|
-
(o(!0), a(
|
|
1595
|
-
class: u(["cu-item",
|
|
1596
|
-
key:
|
|
1597
|
+
(o(!0), a(_, null, $(i.steps, (c, l) => (o(), a("div", {
|
|
1598
|
+
class: u(["cu-item", l > i.modelValue ? "" : `text-${i.color}`]),
|
|
1599
|
+
key: l
|
|
1597
1600
|
}, [
|
|
1598
1601
|
n("text", {
|
|
1599
|
-
class: u(
|
|
1600
|
-
"data-index":
|
|
1601
|
-
}, r(
|
|
1602
|
-
y(" " + r(
|
|
1602
|
+
class: u(c.cuIcon ? "cuIcon-" + c.cuIcon : "num"),
|
|
1603
|
+
"data-index": l + 1
|
|
1604
|
+
}, r(c.cuIcon ? "" : l + 1), 11, Io),
|
|
1605
|
+
y(" " + r(c.name), 1)
|
|
1603
1606
|
], 2))), 128))
|
|
1604
1607
|
], 2)
|
|
1605
1608
|
]));
|
|
1606
1609
|
}
|
|
1607
1610
|
});
|
|
1608
|
-
te.install = (
|
|
1609
|
-
|
|
1611
|
+
te.install = (s) => {
|
|
1612
|
+
s.component(te.name, te);
|
|
1610
1613
|
};
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
],
|
|
1614
|
+
const Co = { class: "cu-dialog" }, xo = { class: "cu-bar bg-white justify-end padding-right-sm" }, To = { class: "content" }, Bo = /* @__PURE__ */ n("text", { class: "cuIcon-close text-red" }, null, -1), jo = [
|
|
1615
|
+
Bo
|
|
1616
|
+
], So = { class: "padding-xl" }, Vo = {
|
|
1614
1617
|
name: "DrawerModal"
|
|
1615
1618
|
}, se = /* @__PURE__ */ g({
|
|
1616
|
-
...
|
|
1619
|
+
...Vo,
|
|
1617
1620
|
props: {
|
|
1618
1621
|
title: {},
|
|
1619
1622
|
modelValue: { type: Boolean }
|
|
1620
1623
|
},
|
|
1621
1624
|
emits: ["update:modelValue"],
|
|
1622
|
-
setup(
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1625
|
+
setup(s, { emit: e }) {
|
|
1626
|
+
const i = e, t = () => {
|
|
1627
|
+
i("update:modelValue", !1);
|
|
1625
1628
|
};
|
|
1626
|
-
return (
|
|
1627
|
-
class: u(["cu-modal",
|
|
1629
|
+
return (c, l) => (o(), a("div", {
|
|
1630
|
+
class: u(["cu-modal", c.modelValue ? "show" : ""])
|
|
1628
1631
|
}, [
|
|
1629
|
-
n("div",
|
|
1630
|
-
n("div",
|
|
1631
|
-
n("div",
|
|
1632
|
+
n("div", Co, [
|
|
1633
|
+
n("div", xo, [
|
|
1634
|
+
n("div", To, r(c.title), 1),
|
|
1632
1635
|
n("div", {
|
|
1633
1636
|
class: "action",
|
|
1634
|
-
onClick:
|
|
1635
|
-
},
|
|
1637
|
+
onClick: t
|
|
1638
|
+
}, jo)
|
|
1636
1639
|
]),
|
|
1637
|
-
n("div",
|
|
1638
|
-
w(
|
|
1640
|
+
n("div", So, [
|
|
1641
|
+
w(c.$slots, "default", {}, () => [
|
|
1639
1642
|
y("Modal 内容~")
|
|
1640
1643
|
])
|
|
1641
1644
|
])
|
|
@@ -1643,22 +1646,22 @@ const wo = { class: "cu-dialog" }, Co = { class: "cu-bar bg-white justify-end pa
|
|
|
1643
1646
|
], 2));
|
|
1644
1647
|
}
|
|
1645
1648
|
});
|
|
1646
|
-
se.install = (
|
|
1647
|
-
|
|
1649
|
+
se.install = (s) => {
|
|
1650
|
+
s.component(se.name, se);
|
|
1648
1651
|
};
|
|
1649
|
-
const
|
|
1652
|
+
const zo = { class: "loading-animation" }, Eo = {
|
|
1650
1653
|
name: "Loading1"
|
|
1651
1654
|
}, qo = /* @__PURE__ */ g({
|
|
1652
|
-
...
|
|
1655
|
+
...Eo,
|
|
1653
1656
|
props: {
|
|
1654
1657
|
width: { default: 300 },
|
|
1655
1658
|
height: { default: 300 },
|
|
1656
1659
|
particleRadius: { default: 7 },
|
|
1657
1660
|
particleDecay: { default: 0.01 }
|
|
1658
1661
|
},
|
|
1659
|
-
setup(
|
|
1662
|
+
setup(s) {
|
|
1660
1663
|
class e {
|
|
1661
|
-
constructor(
|
|
1664
|
+
constructor(l, d, f) {
|
|
1662
1665
|
j(this, "radius");
|
|
1663
1666
|
j(this, "x");
|
|
1664
1667
|
j(this, "y");
|
|
@@ -1667,78 +1670,78 @@ const Vo = { class: "loading-animation" }, zo = {
|
|
|
1667
1670
|
j(this, "accel");
|
|
1668
1671
|
j(this, "decay");
|
|
1669
1672
|
j(this, "life");
|
|
1670
|
-
this.radius = d, this.x =
|
|
1673
|
+
this.radius = d, this.x = l.x, this.y = l.y, this.angle = l.angle, this.speed = l.speed, this.accel = l.accel, this.decay = f, this.life = 1;
|
|
1671
1674
|
}
|
|
1672
|
-
step(
|
|
1673
|
-
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 && d.splice(
|
|
1675
|
+
step(l, d) {
|
|
1676
|
+
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 && d.splice(l, 1);
|
|
1674
1677
|
}
|
|
1675
|
-
draw(
|
|
1676
|
-
|
|
1678
|
+
draw(l, d, f, m) {
|
|
1679
|
+
l.fillStyle = l.strokeStyle = `hsla(${d + this.life * 120}, 100%, 60%, ${this.life})`, l.beginPath(), f[m - 1] && (l.moveTo(this.x, this.y), l.lineTo(f[m - 1].x, f[m - 1].y)), l.stroke(), l.beginPath(), l.arc(
|
|
1677
1680
|
this.x,
|
|
1678
1681
|
this.y,
|
|
1679
1682
|
Math.max(1e-3, this.life * this.radius),
|
|
1680
1683
|
0,
|
|
1681
1684
|
Math.PI * 2
|
|
1682
|
-
),
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
+
), l.fill();
|
|
1686
|
+
const b = Math.random() * 1.25;
|
|
1687
|
+
l.fillRect(
|
|
1685
1688
|
~~(this.x + (Math.random() - 0.5) * 35 * this.life),
|
|
1686
1689
|
~~(this.y + (Math.random() - 0.5) * 35 * this.life),
|
|
1687
|
-
|
|
1688
|
-
|
|
1690
|
+
b,
|
|
1691
|
+
b
|
|
1689
1692
|
);
|
|
1690
1693
|
}
|
|
1691
1694
|
}
|
|
1692
|
-
const
|
|
1695
|
+
const i = s, t = V(null);
|
|
1693
1696
|
return ae(() => {
|
|
1694
|
-
if (!
|
|
1697
|
+
if (!t.value)
|
|
1695
1698
|
return;
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1698
|
-
const
|
|
1699
|
+
const c = t.value.getContext("2d"), { width: l, height: d, particleRadius: f, particleDecay: m } = i, b = window.devicePixelRatio || 1;
|
|
1700
|
+
t.value.width = l * b, t.value.height = d * b, t.value.style.width = l + "px", t.value.style.height = d + "px", c.scale(b, b);
|
|
1701
|
+
const v = l * 0.5, k = [];
|
|
1699
1702
|
let T = 0, B = 0, h = 0;
|
|
1700
|
-
|
|
1703
|
+
c.globalCompositeOperation = "lighter";
|
|
1701
1704
|
function C() {
|
|
1702
1705
|
k.push(
|
|
1703
1706
|
new e(
|
|
1704
1707
|
{
|
|
1705
|
-
x:
|
|
1706
|
-
y: d / 2 + Math.sin(h / 20) *
|
|
1708
|
+
x: l / 2 + Math.cos(h / 20) * v / 2,
|
|
1709
|
+
y: d / 2 + Math.sin(h / 20) * v / 2,
|
|
1707
1710
|
angle: B + T,
|
|
1708
1711
|
speed: 0,
|
|
1709
1712
|
accel: 0.01
|
|
1710
1713
|
},
|
|
1711
1714
|
f,
|
|
1712
|
-
|
|
1715
|
+
m
|
|
1713
1716
|
)
|
|
1714
1717
|
), k.forEach((le, ce) => {
|
|
1715
1718
|
le.step(ce, k);
|
|
1716
1719
|
}), B += Math.PI / 2, T += Math.PI / 2;
|
|
1717
1720
|
}
|
|
1718
1721
|
function N() {
|
|
1719
|
-
|
|
1720
|
-
le.draw(
|
|
1722
|
+
c.clearRect(0, 0, l, d), k.forEach((le, ce) => {
|
|
1723
|
+
le.draw(c, h, k, ce);
|
|
1721
1724
|
});
|
|
1722
1725
|
}
|
|
1723
1726
|
function he() {
|
|
1724
1727
|
requestAnimationFrame(he), C(), N(), h++;
|
|
1725
1728
|
}
|
|
1726
1729
|
he();
|
|
1727
|
-
}), (
|
|
1730
|
+
}), (c, l) => (o(), a("div", zo, [
|
|
1728
1731
|
n("canvas", {
|
|
1729
1732
|
ref_key: "canvas",
|
|
1730
|
-
ref:
|
|
1733
|
+
ref: t
|
|
1731
1734
|
}, null, 512)
|
|
1732
1735
|
]));
|
|
1733
1736
|
}
|
|
1734
1737
|
}), oe = /* @__PURE__ */ A(qo, [["__scopeId", "data-v-022c82bd"]]);
|
|
1735
|
-
oe.install = (
|
|
1736
|
-
|
|
1738
|
+
oe.install = (s) => {
|
|
1739
|
+
s.component(oe.name, oe);
|
|
1737
1740
|
};
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1740
|
-
},
|
|
1741
|
-
install:
|
|
1741
|
+
const Mo = (s) => {
|
|
1742
|
+
s.use(M), s.use(L), s.use(z), s.use(P), s.use(D), s.use(F), s.use(O), s.use(G), s.use(K), s.use(H), s.use(X), s.use(J), s.use(Q), s.use(W), s.use(U), s.use(E), s.use(Y), s.use(Z), s.use(ee), s.use(te), s.use(se), s.use(oe);
|
|
1743
|
+
}, Po = {
|
|
1744
|
+
install: Mo
|
|
1742
1745
|
};
|
|
1743
1746
|
export {
|
|
1744
1747
|
Y as ChatList,
|
|
@@ -1759,9 +1762,9 @@ export {
|
|
|
1759
1762
|
te as TSteps,
|
|
1760
1763
|
J as TTab,
|
|
1761
1764
|
X as TTabs,
|
|
1762
|
-
|
|
1765
|
+
E as TTag,
|
|
1763
1766
|
L as TTitle,
|
|
1764
1767
|
G as TTopBar,
|
|
1765
1768
|
ee as TimeLine,
|
|
1766
|
-
|
|
1769
|
+
Po as default
|
|
1767
1770
|
};
|