vue-color-ui 0.0.17 → 0.0.18
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
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const de = { class: "nav-list" }, pe = ["url"],
|
|
1
|
+
import { defineComponent as _, openBlock as o, createElementBlock as l, Fragment as g, renderList as b, normalizeClass as i, normalizeStyle as v, createElementVNode as s, toDisplayString as c, createTextVNode as h, createCommentVNode as d, pushScopeId as le, popScopeId as ae, computed as y, renderSlot as $, createBlock as k, ref as j, provide as Z, watch as ce, inject as W, onMounted as ie, withDirectives as re, vShow as ue, withCtx as Q, createVNode as ee } from "vue";
|
|
2
|
+
const de = { class: "nav-list" }, pe = ["url"], fe = { class: "nav-title" }, _e = { class: "nav-name" }, ge = {
|
|
3
3
|
name: "TNavCard"
|
|
4
|
-
}, z = /* @__PURE__ */
|
|
4
|
+
}, z = /* @__PURE__ */ _({
|
|
5
5
|
...ge,
|
|
6
6
|
props: {
|
|
7
7
|
items: {}
|
|
8
8
|
},
|
|
9
9
|
setup(t) {
|
|
10
10
|
return (e, r) => (o(), l("div", de, [
|
|
11
|
-
(o(!0), l(g, null,
|
|
11
|
+
(o(!0), l(g, null, b(e.items, (n, a) => (o(), l("div", {
|
|
12
12
|
"hover-class": "none",
|
|
13
13
|
url: "/pages/basics/" + n.name,
|
|
14
14
|
class: i(["nav-li", "bg-" + n.color]),
|
|
@@ -16,8 +16,8 @@ const de = { class: "nav-list" }, pe = ["url"], _e = { class: "nav-title" }, fe
|
|
|
16
16
|
style: v([{ animation: "show " + ((a + 1) * 0.2 + 1) + "s 1" }]),
|
|
17
17
|
key: a
|
|
18
18
|
}, [
|
|
19
|
-
s("div",
|
|
20
|
-
s("div",
|
|
19
|
+
s("div", fe, c(n.title), 1),
|
|
20
|
+
s("div", _e, c(n.name), 1),
|
|
21
21
|
s("text", {
|
|
22
22
|
class: i("cuIcon-" + n.cuIcon)
|
|
23
23
|
}, null, 2)
|
|
@@ -35,7 +35,7 @@ const Y = (t) => (le("data-v-bbdb83ff"), t = t(), ae(), t), he = { class: "cu-it
|
|
|
35
35
|
}, we = { class: "text-gray" }, Ce = /* @__PURE__ */ Y(() => /* @__PURE__ */ s("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1)), xe = /* @__PURE__ */ Y(() => /* @__PURE__ */ s("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1)), Te = /* @__PURE__ */ Y(() => /* @__PURE__ */ s("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1)), Be = { class: "margin-left-sm text-gray flex justify-between" }, je = { class: "text-grey margin-right-xs" }, Se = {
|
|
36
36
|
name: "TNewCard"
|
|
37
37
|
// 组件名称
|
|
38
|
-
}, ze = /* @__PURE__ */
|
|
38
|
+
}, ze = /* @__PURE__ */ _({
|
|
39
39
|
...Se,
|
|
40
40
|
props: {
|
|
41
41
|
isCard: { type: Boolean, default: !0 },
|
|
@@ -68,7 +68,7 @@ const Y = (t) => (le("data-v-bbdb83ff"), t = t(), ae(), t), he = { class: "cu-it
|
|
|
68
68
|
s("div", ye, [
|
|
69
69
|
s("div", ke, c(e.description), 1),
|
|
70
70
|
s("div", null, [
|
|
71
|
-
(o(!0), l(g, null,
|
|
71
|
+
(o(!0), l(g, null, b(e.tags, (n) => (o(), l("div", {
|
|
72
72
|
key: n,
|
|
73
73
|
class: "cu-tag bg-red light sm round"
|
|
74
74
|
}, c(n), 1))), 128))
|
|
@@ -106,7 +106,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
106
106
|
class: "cuIcon-appreciatefill text-red"
|
|
107
107
|
}, We = /* @__PURE__ */ s("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), Ye = { class: "text-gray margin-left-xs" }, Ze = {
|
|
108
108
|
name: "TShareCard"
|
|
109
|
-
}, V = /* @__PURE__ */
|
|
109
|
+
}, V = /* @__PURE__ */ _({
|
|
110
110
|
...Ze,
|
|
111
111
|
props: {
|
|
112
112
|
isCard: { type: Boolean, default: !0 },
|
|
@@ -176,7 +176,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
176
176
|
s("div", {
|
|
177
177
|
class: i(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
|
|
178
178
|
}, [
|
|
179
|
-
(o(!0), l(g, null,
|
|
179
|
+
(o(!0), l(g, null, b(e.isCard ? 9 : 1, (n) => (o(), l("div", {
|
|
180
180
|
class: i(["bg-img", e.isCard ? "" : "only-img"]),
|
|
181
181
|
style: v({ backgroundImage: `url(${e.imageUrl})` }),
|
|
182
182
|
key: n
|
|
@@ -190,7 +190,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
190
190
|
Fe,
|
|
191
191
|
h(" " + c(e.comments), 1)
|
|
192
192
|
]),
|
|
193
|
-
(o(!0), l(g, null,
|
|
193
|
+
(o(!0), l(g, null, b(e.commentsList, (n) => {
|
|
194
194
|
var a;
|
|
195
195
|
return o(), l("div", {
|
|
196
196
|
class: "cu-list menu-avatar comment solids-top",
|
|
@@ -204,7 +204,7 @@ const qe = { class: "cu-item shadow" }, Ve = { class: "cu-list menu-avatar" }, N
|
|
|
204
204
|
s("div", Re, [
|
|
205
205
|
s("div", Ge, c(n.author), 1),
|
|
206
206
|
s("div", Xe, c(n.text), 1),
|
|
207
|
-
(o(!0), l(g, null,
|
|
207
|
+
(o(!0), l(g, null, b(n.replies, (u) => (o(), l("div", {
|
|
208
208
|
key: u.id,
|
|
209
209
|
class: "bg-grey padding-sm radius margin-top-sm text-sm"
|
|
210
210
|
}, [
|
|
@@ -256,7 +256,7 @@ function st(t) {
|
|
|
256
256
|
}
|
|
257
257
|
const ot = {
|
|
258
258
|
name: "TIcon"
|
|
259
|
-
}, x = /* @__PURE__ */
|
|
259
|
+
}, x = /* @__PURE__ */ _({
|
|
260
260
|
...ot,
|
|
261
261
|
props: {
|
|
262
262
|
name: {},
|
|
@@ -276,13 +276,13 @@ const ot = {
|
|
|
276
276
|
}, null, -1), it = { class: "action sub-title" }, rt = { class: "tib text-xl text-bold text-green" }, ut = /* @__PURE__ */ s("div", {
|
|
277
277
|
class: "tib bg-green",
|
|
278
278
|
style: { width: "2rem" }
|
|
279
|
-
}, null, -1), dt = { class: "action sub-title" }, pt = { class: "action title-style-3" },
|
|
279
|
+
}, null, -1), dt = { class: "action sub-title" }, pt = { class: "action title-style-3" }, ft = {
|
|
280
280
|
key: 5,
|
|
281
281
|
class: "cu-bar bg-white"
|
|
282
|
-
},
|
|
282
|
+
}, _t = { class: "action" }, gt = {
|
|
283
283
|
key: 6,
|
|
284
284
|
class: "cu-bar bg-white solid-bottom"
|
|
285
|
-
}, ht = { class: "action" }, mt = { class: "action" }, bt = { name: "TTitle" }, N = /* @__PURE__ */
|
|
285
|
+
}, ht = { class: "action" }, mt = { class: "action" }, bt = { name: "TTitle" }, N = /* @__PURE__ */ _({
|
|
286
286
|
...bt,
|
|
287
287
|
props: {
|
|
288
288
|
title: { default: "主题名称" },
|
|
@@ -347,8 +347,8 @@ const ot = {
|
|
|
347
347
|
class: i(["tib text-Abc self-end margin-left-sm", `text-${e.decorateColor}`])
|
|
348
348
|
}, c(e.deputy), 3)
|
|
349
349
|
])
|
|
350
|
-
], 2)) : e.mode === "icon-title" ? (o(), l("div",
|
|
351
|
-
s("div",
|
|
350
|
+
], 2)) : e.mode === "icon-title" ? (o(), l("div", ft, [
|
|
351
|
+
s("div", _t, [
|
|
352
352
|
s("i", {
|
|
353
353
|
class: i(`cuIcon-${e.icon} text-${e.color}`)
|
|
354
354
|
}, null, 2),
|
|
@@ -370,7 +370,7 @@ const ot = {
|
|
|
370
370
|
}
|
|
371
371
|
}), vt = {
|
|
372
372
|
name: "TAvatar"
|
|
373
|
-
}, I = /* @__PURE__ */
|
|
373
|
+
}, I = /* @__PURE__ */ _({
|
|
374
374
|
...vt,
|
|
375
375
|
props: {
|
|
376
376
|
url: {},
|
|
@@ -391,7 +391,7 @@ const ot = {
|
|
|
391
391
|
}
|
|
392
392
|
}), $t = { class: "cu-avatar-group" }, yt = {
|
|
393
393
|
name: "TAvatarGroup"
|
|
394
|
-
}, D = /* @__PURE__ */
|
|
394
|
+
}, D = /* @__PURE__ */ _({
|
|
395
395
|
...yt,
|
|
396
396
|
props: {
|
|
397
397
|
urls: { default: () => [] },
|
|
@@ -400,7 +400,7 @@ const ot = {
|
|
|
400
400
|
},
|
|
401
401
|
setup(t) {
|
|
402
402
|
return (e, r) => (o(), l("div", $t, [
|
|
403
|
-
(o(!0), l(g, null,
|
|
403
|
+
(o(!0), l(g, null, b(e.urls, (n, a) => (o(), k(I, {
|
|
404
404
|
key: a,
|
|
405
405
|
url: n,
|
|
406
406
|
size: e.size
|
|
@@ -409,7 +409,7 @@ const ot = {
|
|
|
409
409
|
}
|
|
410
410
|
}), kt = ["disabled"], It = { key: 1 }, wt = {
|
|
411
411
|
name: "TButton"
|
|
412
|
-
}, E = /* @__PURE__ */
|
|
412
|
+
}, E = /* @__PURE__ */ _({
|
|
413
413
|
...wt,
|
|
414
414
|
props: {
|
|
415
415
|
text: {},
|
|
@@ -432,7 +432,7 @@ const ot = {
|
|
|
432
432
|
})), a = y(() => ({
|
|
433
433
|
marginRight: e.text ? "8px" : "0"
|
|
434
434
|
}));
|
|
435
|
-
return (u,
|
|
435
|
+
return (u, f) => (o(), l("button", {
|
|
436
436
|
class: i(r.value),
|
|
437
437
|
style: v(n.value),
|
|
438
438
|
disabled: u.disabled
|
|
@@ -448,7 +448,7 @@ const ot = {
|
|
|
448
448
|
}
|
|
449
449
|
}), Ct = { key: 0 }, xt = {
|
|
450
450
|
name: "TTag"
|
|
451
|
-
}, w = /* @__PURE__ */
|
|
451
|
+
}, w = /* @__PURE__ */ _({
|
|
452
452
|
...xt,
|
|
453
453
|
props: {
|
|
454
454
|
text: {},
|
|
@@ -504,7 +504,7 @@ const Tt = ["onClick"], Bt = {
|
|
|
504
504
|
class: "cu-tag badge"
|
|
505
505
|
}, qt = {
|
|
506
506
|
name: "TNavBar"
|
|
507
|
-
}, U = /* @__PURE__ */
|
|
507
|
+
}, U = /* @__PURE__ */ _({
|
|
508
508
|
...qt,
|
|
509
509
|
props: {
|
|
510
510
|
bg: { default: "white" },
|
|
@@ -545,10 +545,10 @@ const Tt = ["onClick"], Bt = {
|
|
|
545
545
|
return (n, a) => (o(), l("div", {
|
|
546
546
|
class: i(["cu-bar tabbar", `bg-${n.bg} ${n.isFoot ? "foot" : ""}`])
|
|
547
547
|
}, [
|
|
548
|
-
(o(!0), l(g, null,
|
|
549
|
-
key:
|
|
550
|
-
class: i(["action", `text-${
|
|
551
|
-
onClick: (p) => r(u,
|
|
548
|
+
(o(!0), l(g, null, b(n.items, (u, f) => (o(), l("div", {
|
|
549
|
+
key: f,
|
|
550
|
+
class: i(["action", `text-${f === n.activeIndex ? n.activeColor : n.color}`]),
|
|
551
|
+
onClick: (p) => r(u, f)
|
|
552
552
|
}, [
|
|
553
553
|
u.img ? (o(), l("div", Bt, [
|
|
554
554
|
s("img", {
|
|
@@ -577,7 +577,7 @@ const Vt = {
|
|
|
577
577
|
}, Nt = { key: 1 }, Dt = { class: "content text-bold" }, Et = {
|
|
578
578
|
key: 2,
|
|
579
579
|
class: "action"
|
|
580
|
-
}, Ut = { name: "TTopBar" }, A = /* @__PURE__ */
|
|
580
|
+
}, Ut = { name: "TTopBar" }, A = /* @__PURE__ */ _({
|
|
581
581
|
...Ut,
|
|
582
582
|
props: {
|
|
583
583
|
title: {},
|
|
@@ -617,14 +617,15 @@ const Vt = {
|
|
|
617
617
|
A.install = (t) => {
|
|
618
618
|
t.component(A.name, A);
|
|
619
619
|
};
|
|
620
|
-
const At = /* @__PURE__ */ s("text", { class: "cuIcon-search" }, null, -1), Lt = { class: "action" },
|
|
620
|
+
const At = /* @__PURE__ */ s("text", { class: "cuIcon-search" }, null, -1), Lt = ["placeholder"], Mt = { class: "action" }, Ft = {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "cu-btn bg-green shadow-blur round"
|
|
623
|
-
},
|
|
623
|
+
}, Ot = { key: 0 }, Rt = { key: 3 }, Gt = {
|
|
624
624
|
name: "TSearchBar"
|
|
625
|
-
}, L = /* @__PURE__ */
|
|
626
|
-
...
|
|
625
|
+
}, L = /* @__PURE__ */ _({
|
|
626
|
+
...Gt,
|
|
627
627
|
props: {
|
|
628
|
+
placeholder: { default: "" },
|
|
628
629
|
bgColor: { default: "white" },
|
|
629
630
|
borderRadiusClass: { default: "round" },
|
|
630
631
|
avatarUrl: {},
|
|
@@ -657,13 +658,13 @@ const At = /* @__PURE__ */ s("text", { class: "cuIcon-search" }, null, -1), Lt =
|
|
|
657
658
|
onBlur: n,
|
|
658
659
|
"adjust-position": !1,
|
|
659
660
|
type: "text",
|
|
660
|
-
placeholder:
|
|
661
|
+
placeholder: a.placeholder,
|
|
661
662
|
"confirm-type": "search"
|
|
662
|
-
}, null,
|
|
663
|
+
}, null, 40, Lt)
|
|
663
664
|
], 2),
|
|
664
|
-
s("div",
|
|
665
|
-
a.buttonText ? (o(), l("button",
|
|
666
|
-
a.location ? (o(), l("text",
|
|
665
|
+
s("div", Mt, [
|
|
666
|
+
a.buttonText ? (o(), l("button", Ft, c(a.buttonText), 1)) : (o(), l(g, { key: 1 }, [
|
|
667
|
+
a.location ? (o(), l("text", Ot, c(a.location), 1)) : d("", !0),
|
|
667
668
|
a.locationIcon ? (o(), l("text", {
|
|
668
669
|
key: 1,
|
|
669
670
|
class: i(`cuIcon-${a.locationIcon}`)
|
|
@@ -672,7 +673,7 @@ const At = /* @__PURE__ */ s("text", { class: "cuIcon-search" }, null, -1), Lt =
|
|
|
672
673
|
key: 2,
|
|
673
674
|
class: i(`cuIcon-${a.actionIcon}`)
|
|
674
675
|
}, null, 2)) : d("", !0),
|
|
675
|
-
a.actionText ? (o(), l("text",
|
|
676
|
+
a.actionText ? (o(), l("text", Rt, c(a.actionText), 1)) : d("", !0)
|
|
676
677
|
], 64))
|
|
677
678
|
])
|
|
678
679
|
], 2));
|
|
@@ -681,14 +682,14 @@ const At = /* @__PURE__ */ s("text", { class: "cuIcon-search" }, null, -1), Lt =
|
|
|
681
682
|
L.install = (t) => {
|
|
682
683
|
t.component(L.name, L);
|
|
683
684
|
};
|
|
684
|
-
const
|
|
685
|
+
const Xt = { class: "cu-bar input" }, Kt = {
|
|
685
686
|
key: 0,
|
|
686
687
|
class: "action"
|
|
687
|
-
},
|
|
688
|
+
}, Pt = {
|
|
688
689
|
key: 1,
|
|
689
690
|
class: "action"
|
|
690
|
-
},
|
|
691
|
-
...
|
|
691
|
+
}, Ht = { class: "action" }, Jt = { class: "cu-btn bg-green shadow-blur" }, Qt = { name: "TInputBar" }, M = /* @__PURE__ */ _({
|
|
692
|
+
...Qt,
|
|
692
693
|
props: {
|
|
693
694
|
leftIcon: {},
|
|
694
695
|
middleIcon: {},
|
|
@@ -701,13 +702,13 @@ const Gt = { class: "cu-bar input" }, Xt = {
|
|
|
701
702
|
}, n = () => {
|
|
702
703
|
e.value = 0;
|
|
703
704
|
};
|
|
704
|
-
return (a, u) => (o(), l("div",
|
|
705
|
-
a.leftIcon ? (o(), l("div",
|
|
705
|
+
return (a, u) => (o(), l("div", Xt, [
|
|
706
|
+
a.leftIcon ? (o(), l("div", Kt, [
|
|
706
707
|
s("text", {
|
|
707
708
|
class: i(`cuIcon-${a.leftIcon} text-grey`)
|
|
708
709
|
}, null, 2)
|
|
709
710
|
])) : d("", !0),
|
|
710
|
-
a.middleIcon ? (o(), l("div",
|
|
711
|
+
a.middleIcon ? (o(), l("div", Pt, [
|
|
711
712
|
s("text", {
|
|
712
713
|
class: i(`cuIcon-${a.middleIcon} text-grey`)
|
|
713
714
|
}, null, 2)
|
|
@@ -720,72 +721,77 @@ const Gt = { class: "cu-bar input" }, Xt = {
|
|
|
720
721
|
maxlength: "300",
|
|
721
722
|
"cursor-spacing": "10"
|
|
722
723
|
}, null, 32),
|
|
723
|
-
s("div",
|
|
724
|
+
s("div", Ht, [
|
|
724
725
|
s("text", {
|
|
725
726
|
class: i(`cuIcon-${a.rightIcon} text-grey`)
|
|
726
727
|
}, null, 2)
|
|
727
728
|
]),
|
|
728
|
-
s("button",
|
|
729
|
+
s("button", Jt, c(a.buttonText), 1)
|
|
729
730
|
]));
|
|
730
731
|
}
|
|
731
732
|
});
|
|
732
733
|
M.install = (t) => {
|
|
733
734
|
t.component(M.name, M);
|
|
734
735
|
};
|
|
735
|
-
const
|
|
736
|
+
const Wt = ["onClick"], Yt = { class: "tab-content" }, Zt = {
|
|
736
737
|
name: "TTabs"
|
|
737
|
-
}, F = /* @__PURE__ */
|
|
738
|
-
...
|
|
738
|
+
}, F = /* @__PURE__ */ _({
|
|
739
|
+
...Zt,
|
|
739
740
|
props: {
|
|
740
741
|
modelValue: { default: 0 },
|
|
741
742
|
center: { type: Boolean, default: !1 },
|
|
742
743
|
bg: { default: "white" },
|
|
743
744
|
text: {},
|
|
744
745
|
isCard: { type: Boolean, default: !1 },
|
|
745
|
-
mode: { default: "flex-start" }
|
|
746
|
+
mode: { default: "flex-start" },
|
|
747
|
+
bold: { type: Boolean, default: !1 },
|
|
748
|
+
color: { default: "blue" }
|
|
746
749
|
},
|
|
747
750
|
emits: ["update:modelValue", "select"],
|
|
748
751
|
setup(t, { emit: e }) {
|
|
749
|
-
const r = j([]),
|
|
750
|
-
|
|
752
|
+
const r = t, n = e, a = j([]), u = j(0), f = (m, T) => {
|
|
753
|
+
u.value = m, n("update:modelValue", m), n("select", T);
|
|
751
754
|
};
|
|
752
|
-
Z("registerTab", (
|
|
753
|
-
const
|
|
755
|
+
Z("registerTab", (m) => (a.value.push(m), a.value.length - 1)), Z("activeTab", u);
|
|
756
|
+
const C = y(() => r.center !== !1 ? "justify-content:center;" : `justify-content:${r.mode}`);
|
|
754
757
|
return ce(
|
|
755
|
-
() =>
|
|
756
|
-
(
|
|
757
|
-
|
|
758
|
+
() => r.modelValue,
|
|
759
|
+
(m) => {
|
|
760
|
+
u.value = m;
|
|
758
761
|
}
|
|
759
|
-
), (
|
|
760
|
-
class: i(
|
|
762
|
+
), (m, T) => (o(), l("div", {
|
|
763
|
+
class: i(m.isCard !== !1 ? "is-card" : "")
|
|
761
764
|
}, [
|
|
762
765
|
s("div", {
|
|
763
|
-
class: i(["nav flex", [, `bg-${
|
|
766
|
+
class: i(["nav flex", [, `bg-${m.bg}`, `text-${m.text}`]]),
|
|
764
767
|
style: v(C.value)
|
|
765
768
|
}, [
|
|
766
|
-
(o(!0), l(g, null,
|
|
767
|
-
class: i(["cu-item", [
|
|
769
|
+
(o(!0), l(g, null, b(a.value, (B, S) => (o(), l("div", {
|
|
770
|
+
class: i(["cu-item", [
|
|
771
|
+
u.value === S ? `cur text-${m.color}` : "",
|
|
772
|
+
m.bold !== !1 ? "weight-x" : ""
|
|
773
|
+
]]),
|
|
768
774
|
key: S,
|
|
769
|
-
onClick: (
|
|
775
|
+
onClick: (so) => f(S, B)
|
|
770
776
|
}, [
|
|
771
777
|
B.icon ? (o(), l("i", {
|
|
772
778
|
key: 0,
|
|
773
|
-
class: i(`cuIcon-${B.icon} text-${
|
|
779
|
+
class: i(`cuIcon-${B.icon} text-${u.value === S ? "blue" : B.iconColor}`)
|
|
774
780
|
}, null, 2)) : d("", !0),
|
|
775
781
|
h(" " + c(B.label), 1)
|
|
776
|
-
], 10,
|
|
782
|
+
], 10, Wt))), 128))
|
|
777
783
|
], 6),
|
|
778
|
-
s("div",
|
|
779
|
-
$(
|
|
780
|
-
tab:
|
|
784
|
+
s("div", Yt, [
|
|
785
|
+
$(m.$slots, "default", {
|
|
786
|
+
tab: a.value[u.value]
|
|
781
787
|
})
|
|
782
788
|
])
|
|
783
789
|
], 2));
|
|
784
790
|
}
|
|
785
|
-
}),
|
|
791
|
+
}), es = {
|
|
786
792
|
name: "TTab"
|
|
787
|
-
}, O = /* @__PURE__ */
|
|
788
|
-
...
|
|
793
|
+
}, O = /* @__PURE__ */ _({
|
|
794
|
+
...es,
|
|
789
795
|
props: {
|
|
790
796
|
label: {},
|
|
791
797
|
icon: { default: "" },
|
|
@@ -794,7 +800,7 @@ const Qt = ["onClick"], Wt = { class: "tab-content" }, Yt = {
|
|
|
794
800
|
setup(t) {
|
|
795
801
|
const e = t, r = W(
|
|
796
802
|
"registerTab"
|
|
797
|
-
), n = W("activeTab"), a = j(null), u = y(() => (n == null ? void 0 : n.value) === a.value),
|
|
803
|
+
), n = W("activeTab"), a = j(null), u = y(() => (n == null ? void 0 : n.value) === a.value), f = y(() => ({
|
|
798
804
|
label: e.label,
|
|
799
805
|
icon: e.icon,
|
|
800
806
|
iconColor: e.iconColor
|
|
@@ -807,7 +813,7 @@ const Qt = ["onClick"], Wt = { class: "tab-content" }, Yt = {
|
|
|
807
813
|
}));
|
|
808
814
|
}), (p, C) => re((o(), l("div", null, [
|
|
809
815
|
$(p.$slots, "default"),
|
|
810
|
-
$(p.$slots, "custom", { tab:
|
|
816
|
+
$(p.$slots, "custom", { tab: f.value })
|
|
811
817
|
], 512)), [
|
|
812
818
|
[ue, u.value]
|
|
813
819
|
]);
|
|
@@ -839,19 +845,19 @@ var oe;
|
|
|
839
845
|
})(oe || (oe = {}));
|
|
840
846
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
841
847
|
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
842
|
-
const
|
|
848
|
+
const ts = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
843
849
|
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
844
850
|
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
845
|
-
function
|
|
846
|
-
return W(
|
|
851
|
+
function ss() {
|
|
852
|
+
return W(ts);
|
|
847
853
|
}
|
|
848
|
-
const
|
|
854
|
+
const os = ["onClick"], ns = {
|
|
849
855
|
key: 0,
|
|
850
856
|
class: "cu-tag badge"
|
|
851
|
-
},
|
|
857
|
+
}, ls = { key: 0 }, as = {
|
|
852
858
|
name: "GridGroup"
|
|
853
|
-
}, R = /* @__PURE__ */
|
|
854
|
-
...
|
|
859
|
+
}, R = /* @__PURE__ */ _({
|
|
860
|
+
...as,
|
|
855
861
|
props: {
|
|
856
862
|
cuIconList: { default: () => [
|
|
857
863
|
{
|
|
@@ -921,7 +927,7 @@ const ss = ["onClick"], os = {
|
|
|
921
927
|
routeFn: { type: Function, default: void 0 }
|
|
922
928
|
},
|
|
923
929
|
setup(t) {
|
|
924
|
-
const e = t, r =
|
|
930
|
+
const e = t, r = ss(), n = (a) => {
|
|
925
931
|
if (a.path) {
|
|
926
932
|
e.routeFn ? e.routeFn().push({
|
|
927
933
|
path: a.path
|
|
@@ -938,36 +944,36 @@ const ss = ["onClick"], os = {
|
|
|
938
944
|
return (a, u) => (o(), l("div", {
|
|
939
945
|
class: i(["cu-list grid", ["col-" + a.gridCol, a.gridBorder ? "" : "no-border"]])
|
|
940
946
|
}, [
|
|
941
|
-
(o(!0), l(g, null,
|
|
947
|
+
(o(!0), l(g, null, b(a.cuIconList, (f, p) => (o(), l("div", {
|
|
942
948
|
class: "cu-item",
|
|
943
949
|
key: p,
|
|
944
950
|
style: v(`width: calc(100% / ${a.gridCol})`),
|
|
945
|
-
onClick: (C) => n(
|
|
951
|
+
onClick: (C) => n(f)
|
|
946
952
|
}, [
|
|
947
953
|
s("div", {
|
|
948
|
-
class: i(["cuIcon-" +
|
|
954
|
+
class: i(["cuIcon-" + f.cuIcon, "text-" + f.color])
|
|
949
955
|
}, [
|
|
950
|
-
|
|
951
|
-
|
|
956
|
+
f.badge != 0 ? (o(), l("div", ns, [
|
|
957
|
+
f.badge != 1 ? (o(), l("i", ls, c((f.badge || 0) > 99 ? "99+" : f.badge), 1)) : d("", !0)
|
|
952
958
|
])) : d("", !0)
|
|
953
959
|
], 2),
|
|
954
|
-
s("text", null, c(
|
|
955
|
-
], 12,
|
|
960
|
+
s("text", null, c(f.name), 1)
|
|
961
|
+
], 12, os))), 128))
|
|
956
962
|
], 2));
|
|
957
963
|
}
|
|
958
964
|
});
|
|
959
965
|
R.install = (t) => {
|
|
960
966
|
t.component(R.name, R);
|
|
961
967
|
};
|
|
962
|
-
const
|
|
968
|
+
const cs = { class: "content" }, is = ["src", "alt"], rs = { class: "text-grey" }, us = { class: "action" }, ds = {
|
|
963
969
|
key: 1,
|
|
964
970
|
class: "text-grey text-sm"
|
|
965
|
-
},
|
|
971
|
+
}, ps = ["onClick"], fs = {
|
|
966
972
|
key: 4,
|
|
967
973
|
class: "text-grey text-sm"
|
|
968
974
|
}, _s = {
|
|
969
975
|
name: "Menu"
|
|
970
|
-
}, G = /* @__PURE__ */
|
|
976
|
+
}, G = /* @__PURE__ */ _({
|
|
971
977
|
..._s,
|
|
972
978
|
props: {
|
|
973
979
|
menuItems: { default: () => [
|
|
@@ -1051,11 +1057,11 @@ const as = { class: "content" }, cs = ["src", "alt"], is = { class: "text-grey"
|
|
|
1051
1057
|
return (r, n) => (o(), l("div", {
|
|
1052
1058
|
class: i(["cu-list menu", [r.menuBorder ? "sm-border" : "", r.menuCard ? "card-menu" : ""]])
|
|
1053
1059
|
}, [
|
|
1054
|
-
(o(!0), l(g, null,
|
|
1060
|
+
(o(!0), l(g, null, b(r.menuItems, (a, u) => (o(), l("div", {
|
|
1055
1061
|
key: u,
|
|
1056
1062
|
class: i(["cu-item", r.menuArrow ? "arrow" : ""])
|
|
1057
1063
|
}, [
|
|
1058
|
-
s("div",
|
|
1064
|
+
s("div", cs, [
|
|
1059
1065
|
a.icon ? (o(), k(x, {
|
|
1060
1066
|
key: 0,
|
|
1061
1067
|
class: "icon",
|
|
@@ -1067,19 +1073,19 @@ const as = { class: "content" }, cs = ["src", "alt"], is = { class: "text-grey"
|
|
|
1067
1073
|
class: "icon",
|
|
1068
1074
|
src: a.img.url,
|
|
1069
1075
|
alt: a.img.alt
|
|
1070
|
-
}, null, 8,
|
|
1071
|
-
s("text",
|
|
1076
|
+
}, null, 8, is)) : d("", !0),
|
|
1077
|
+
s("text", rs, c(a.title), 1)
|
|
1072
1078
|
]),
|
|
1073
|
-
s("div",
|
|
1079
|
+
s("div", us, [
|
|
1074
1080
|
a.group ? (o(), k(D, {
|
|
1075
1081
|
key: 0,
|
|
1076
1082
|
urls: a.group
|
|
1077
1083
|
}, null, 8, ["urls"])) : d("", !0),
|
|
1078
|
-
a.group ? (o(), l("text",
|
|
1084
|
+
a.group ? (o(), l("text", ds, c(a.group.length) + "人", 1)) : d("", !0),
|
|
1079
1085
|
a.btn ? (o(), l("button", {
|
|
1080
1086
|
key: 2,
|
|
1081
1087
|
class: i(["cu-btn round shadow", `bg-${a.btn.bg}`]),
|
|
1082
|
-
onClick: (
|
|
1088
|
+
onClick: (f) => {
|
|
1083
1089
|
var p;
|
|
1084
1090
|
return e((p = a.btn) == null ? void 0 : p.event);
|
|
1085
1091
|
}
|
|
@@ -1090,20 +1096,20 @@ const as = { class: "content" }, cs = ["src", "alt"], is = { class: "text-grey"
|
|
|
1090
1096
|
color: "white"
|
|
1091
1097
|
}, null, 8, ["name"])) : d("", !0),
|
|
1092
1098
|
h(" " + c(a.btn.text), 1)
|
|
1093
|
-
], 10,
|
|
1094
|
-
a.tags ? (o(!0), l(g, { key: 3 },
|
|
1095
|
-
size:
|
|
1099
|
+
], 10, ps)) : d("", !0),
|
|
1100
|
+
a.tags ? (o(!0), l(g, { key: 3 }, b(a.tags, (f, p) => (o(), k(w, {
|
|
1101
|
+
size: f.size,
|
|
1096
1102
|
key: p,
|
|
1097
|
-
bg:
|
|
1098
|
-
light:
|
|
1103
|
+
bg: f.bg,
|
|
1104
|
+
light: f.light,
|
|
1099
1105
|
shape: "round"
|
|
1100
1106
|
}, {
|
|
1101
1107
|
default: Q(() => [
|
|
1102
|
-
h(c(
|
|
1108
|
+
h(c(f.text), 1)
|
|
1103
1109
|
]),
|
|
1104
1110
|
_: 2
|
|
1105
1111
|
}, 1032, ["size", "bg", "light"]))), 128)) : d("", !0),
|
|
1106
|
-
a.text ? (o(), l("text",
|
|
1112
|
+
a.text ? (o(), l("text", fs, c(a.text), 1)) : d("", !0)
|
|
1107
1113
|
])
|
|
1108
1114
|
], 2))), 128))
|
|
1109
1115
|
], 2));
|
|
@@ -1112,10 +1118,10 @@ const as = { class: "content" }, cs = ["src", "alt"], is = { class: "text-grey"
|
|
|
1112
1118
|
G.install = (t) => {
|
|
1113
1119
|
t.component(G.name, G);
|
|
1114
1120
|
};
|
|
1115
|
-
const
|
|
1121
|
+
const gs = {
|
|
1116
1122
|
key: 0,
|
|
1117
1123
|
class: "cu-tag badge"
|
|
1118
|
-
},
|
|
1124
|
+
}, hs = { class: "content" }, ms = { class: "flex align-center" }, bs = { class: "text-cut" }, vs = { class: "text-gray text-sm flex" }, $s = { class: "text-cut" }, ys = { class: "action" }, ks = { class: "text-grey text-xs" }, Is = /* @__PURE__ */ _({
|
|
1119
1125
|
__name: "ChatListItem",
|
|
1120
1126
|
props: {
|
|
1121
1127
|
userinfo: {},
|
|
@@ -1135,24 +1141,24 @@ const fs = {
|
|
|
1135
1141
|
class: i(["cu-avatar", e.userinfo.avatarShape, "lg"]),
|
|
1136
1142
|
style: v({ backgroundImage: `url(${e.userinfo.avatar})` })
|
|
1137
1143
|
}, [
|
|
1138
|
-
e.badge ? (o(), l("div",
|
|
1144
|
+
e.badge ? (o(), l("div", gs, c(e.badge), 1)) : d("", !0)
|
|
1139
1145
|
], 6),
|
|
1140
|
-
s("div",
|
|
1141
|
-
s("div",
|
|
1142
|
-
s("div",
|
|
1146
|
+
s("div", hs, [
|
|
1147
|
+
s("div", ms, [
|
|
1148
|
+
s("div", bs, c(e.userinfo.name), 1),
|
|
1143
1149
|
e.userinfo.tag ? (o(), l("div", {
|
|
1144
1150
|
key: 0,
|
|
1145
1151
|
class: i(["cu-tag", "round", `bg-${e.userinfo.tagColor}`, "sm"])
|
|
1146
1152
|
}, c(e.userinfo.tag), 3)) : d("", !0)
|
|
1147
1153
|
]),
|
|
1148
|
-
s("div",
|
|
1149
|
-
s("div",
|
|
1154
|
+
s("div", vs, [
|
|
1155
|
+
s("div", $s, [
|
|
1150
1156
|
$(e.$slots, "default", {}, void 0, !0)
|
|
1151
1157
|
])
|
|
1152
1158
|
])
|
|
1153
1159
|
]),
|
|
1154
|
-
s("div",
|
|
1155
|
-
s("div",
|
|
1160
|
+
s("div", ys, [
|
|
1161
|
+
s("div", ks, c(e.userinfo.time), 1),
|
|
1156
1162
|
e.unread ? (o(), l("div", {
|
|
1157
1163
|
key: 0,
|
|
1158
1164
|
class: i(["cu-tag", "round", `bg-${e.unreadColor}`, "sm"])
|
|
@@ -1163,16 +1169,16 @@ const fs = {
|
|
|
1163
1169
|
])
|
|
1164
1170
|
], 2));
|
|
1165
1171
|
}
|
|
1166
|
-
}),
|
|
1172
|
+
}), ws = /* @__PURE__ */ ne(Is, [["__scopeId", "data-v-e90f08c9"]]), Cs = { class: "cu-list menu-avatar" }, xs = {
|
|
1167
1173
|
name: "ChatList"
|
|
1168
|
-
}, X = /* @__PURE__ */
|
|
1169
|
-
...
|
|
1174
|
+
}, X = /* @__PURE__ */ _({
|
|
1175
|
+
...xs,
|
|
1170
1176
|
props: {
|
|
1171
1177
|
items: {}
|
|
1172
1178
|
},
|
|
1173
1179
|
setup(t) {
|
|
1174
|
-
return (e, r) => (o(), l("div",
|
|
1175
|
-
(o(!0), l(g, null,
|
|
1180
|
+
return (e, r) => (o(), l("div", Cs, [
|
|
1181
|
+
(o(!0), l(g, null, b(e.items, (n, a) => (o(), k(ws, {
|
|
1176
1182
|
key: a,
|
|
1177
1183
|
userinfo: n.userinfo,
|
|
1178
1184
|
unread: n.unread,
|
|
@@ -1196,35 +1202,35 @@ const fs = {
|
|
|
1196
1202
|
X.install = (t) => {
|
|
1197
1203
|
t.component(X.name, X);
|
|
1198
1204
|
};
|
|
1199
|
-
const
|
|
1205
|
+
const Ts = { class: "cu-chat" }, Bs = {
|
|
1200
1206
|
key: 0,
|
|
1201
1207
|
class: "cu-info round"
|
|
1202
|
-
},
|
|
1208
|
+
}, js = {
|
|
1203
1209
|
key: 1,
|
|
1204
1210
|
class: "cu-info"
|
|
1205
|
-
},
|
|
1211
|
+
}, Ss = /* @__PURE__ */ s("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), zs = { class: "main" }, qs = ["src"], Vs = {
|
|
1206
1212
|
key: 2,
|
|
1207
1213
|
class: "content shadow"
|
|
1208
|
-
},
|
|
1214
|
+
}, Ns = /* @__PURE__ */ s("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), Ds = { class: "action text-bold text-grey" }, Es = {
|
|
1209
1215
|
key: 3,
|
|
1210
1216
|
class: "content shadow"
|
|
1211
|
-
},
|
|
1217
|
+
}, Us = /* @__PURE__ */ s("text", { class: "cuIcon-locationfill text-orange text-xxl" }, null, -1), As = { class: "content shadow" }, Ls = /* @__PURE__ */ s("div", { class: "action text-grey" }, [
|
|
1212
1218
|
/* @__PURE__ */ s("text", { class: "cuIcon-warnfill text-red text-xxl" }),
|
|
1213
1219
|
/* @__PURE__ */ s("text", { class: "text-sm margin-left-sm" }, "翻译错误")
|
|
1214
|
-
], -1),
|
|
1215
|
-
...
|
|
1220
|
+
], -1), Ms = { class: "date" }, Fs = { name: "ChatRoom" }, K = /* @__PURE__ */ _({
|
|
1221
|
+
...Fs,
|
|
1216
1222
|
props: {
|
|
1217
1223
|
messages: {}
|
|
1218
1224
|
},
|
|
1219
1225
|
setup(t) {
|
|
1220
|
-
return (e, r) => (o(), l("div",
|
|
1221
|
-
(o(!0), l(g, null,
|
|
1226
|
+
return (e, r) => (o(), l("div", Ts, [
|
|
1227
|
+
(o(!0), l(g, null, b(e.messages, (n) => (o(), l("div", {
|
|
1222
1228
|
key: n.id,
|
|
1223
1229
|
class: i(["cu-item", { self: n.self }])
|
|
1224
1230
|
}, [
|
|
1225
1231
|
n.type === "info" ? (o(), l(g, { key: 0 }, [
|
|
1226
|
-
n.self ? (o(), l("div",
|
|
1227
|
-
|
|
1232
|
+
n.self ? (o(), l("div", Bs, c(n.content), 1)) : (o(), l("div", js, [
|
|
1233
|
+
Ss,
|
|
1228
1234
|
h(" " + c(n.content), 1)
|
|
1229
1235
|
]))
|
|
1230
1236
|
], 64)) : (o(), l(g, { key: 1 }, [
|
|
@@ -1233,7 +1239,7 @@ const xs = { class: "cu-chat" }, Ts = {
|
|
|
1233
1239
|
mode: "radius",
|
|
1234
1240
|
url: n.avatar
|
|
1235
1241
|
}, null, 8, ["url"])),
|
|
1236
|
-
s("div",
|
|
1242
|
+
s("div", zs, [
|
|
1237
1243
|
n.type === "text" ? (o(), l("div", {
|
|
1238
1244
|
key: 0,
|
|
1239
1245
|
class: i(["content shadow", { "bg-green": n.self }])
|
|
@@ -1244,15 +1250,15 @@ const xs = { class: "cu-chat" }, Ts = {
|
|
|
1244
1250
|
src: n.content,
|
|
1245
1251
|
class: "radius",
|
|
1246
1252
|
style: { "max-width": "100%" }
|
|
1247
|
-
}, null, 8,
|
|
1248
|
-
|
|
1249
|
-
s("div",
|
|
1250
|
-
])) : n.type === "location" ? (o(), l("div",
|
|
1251
|
-
|
|
1253
|
+
}, null, 8, qs)) : n.type === "audio" ? (o(), l("div", Vs, [
|
|
1254
|
+
Ns,
|
|
1255
|
+
s("div", Ds, c(n.content), 1)
|
|
1256
|
+
])) : n.type === "location" ? (o(), l("div", Es, [
|
|
1257
|
+
Us,
|
|
1252
1258
|
h(" " + c(n.content), 1)
|
|
1253
1259
|
])) : n.type === "warning" ? (o(), l(g, { key: 4 }, [
|
|
1254
|
-
s("div",
|
|
1255
|
-
|
|
1260
|
+
s("div", As, c(n.content), 1),
|
|
1261
|
+
Ls
|
|
1256
1262
|
], 64)) : d("", !0)
|
|
1257
1263
|
]),
|
|
1258
1264
|
n.self ? (o(), k(I, {
|
|
@@ -1260,7 +1266,7 @@ const xs = { class: "cu-chat" }, Ts = {
|
|
|
1260
1266
|
mode: "radius",
|
|
1261
1267
|
url: n.avatar
|
|
1262
1268
|
}, null, 8, ["url"])) : d("", !0),
|
|
1263
|
-
s("div",
|
|
1269
|
+
s("div", Ms, c(n.date), 1)
|
|
1264
1270
|
], 64))
|
|
1265
1271
|
], 2))), 128))
|
|
1266
1272
|
]));
|
|
@@ -1269,13 +1275,13 @@ const xs = { class: "cu-chat" }, Ts = {
|
|
|
1269
1275
|
K.install = (t) => {
|
|
1270
1276
|
t.component(K.name, K);
|
|
1271
1277
|
};
|
|
1272
|
-
const
|
|
1278
|
+
const Os = { class: "cu-time" }, Rs = {
|
|
1273
1279
|
key: 0,
|
|
1274
1280
|
class: "cu-capsule radius"
|
|
1275
|
-
},
|
|
1281
|
+
}, Gs = {
|
|
1276
1282
|
name: "TimeLine"
|
|
1277
|
-
}, P = /* @__PURE__ */
|
|
1278
|
-
...
|
|
1283
|
+
}, P = /* @__PURE__ */ _({
|
|
1284
|
+
...Gs,
|
|
1279
1285
|
props: {
|
|
1280
1286
|
items: { default: () => [] }
|
|
1281
1287
|
},
|
|
@@ -1296,13 +1302,13 @@ const Fs = { class: "cu-time" }, Os = {
|
|
|
1296
1302
|
}
|
|
1297
1303
|
}
|
|
1298
1304
|
return (n, a) => (o(), l("div", null, [
|
|
1299
|
-
(o(!0), l(g, null,
|
|
1300
|
-
key:
|
|
1305
|
+
(o(!0), l(g, null, b(n.items, (u, f) => (o(), l("div", {
|
|
1306
|
+
key: f,
|
|
1301
1307
|
class: "cu-timeline"
|
|
1302
1308
|
}, [
|
|
1303
|
-
s("div",
|
|
1304
|
-
(o(!0), l(g, null,
|
|
1305
|
-
var C,
|
|
1309
|
+
s("div", Os, c(u.date), 1),
|
|
1310
|
+
(o(!0), l(g, null, b(u.items, (p) => {
|
|
1311
|
+
var C, m, T;
|
|
1306
1312
|
return o(), l("div", {
|
|
1307
1313
|
key: p.key,
|
|
1308
1314
|
class: i(["cu-item", r(p)])
|
|
@@ -1310,9 +1316,9 @@ const Fs = { class: "cu-time" }, Os = {
|
|
|
1310
1316
|
s("div", {
|
|
1311
1317
|
class: i(["content", `bg-${p.bg || "gray"}`, "shadow-blur"])
|
|
1312
1318
|
}, [
|
|
1313
|
-
(C = p == null ? void 0 : p.capsule) != null && C.list && p.capsule.list.length ? (o(), l("div",
|
|
1319
|
+
(C = p == null ? void 0 : p.capsule) != null && C.list && p.capsule.list.length ? (o(), l("div", Rs, [
|
|
1314
1320
|
ee(w, {
|
|
1315
|
-
bg: e((
|
|
1321
|
+
bg: e((m = p.capsule) == null ? void 0 : m.color)
|
|
1316
1322
|
}, {
|
|
1317
1323
|
default: Q(() => [
|
|
1318
1324
|
h(c(p.capsule.list[0]), 1)
|
|
@@ -1346,10 +1352,10 @@ const Fs = { class: "cu-time" }, Os = {
|
|
|
1346
1352
|
P.install = (t) => {
|
|
1347
1353
|
t.component(P.name, P);
|
|
1348
1354
|
};
|
|
1349
|
-
const
|
|
1355
|
+
const Xs = { class: "bg-white padding" }, Ks = ["data-index"], Ps = {
|
|
1350
1356
|
name: "TSteps"
|
|
1351
|
-
}, H = /* @__PURE__ */
|
|
1352
|
-
...
|
|
1357
|
+
}, H = /* @__PURE__ */ _({
|
|
1358
|
+
...Ps,
|
|
1353
1359
|
props: {
|
|
1354
1360
|
steps: {},
|
|
1355
1361
|
modelValue: {},
|
|
@@ -1358,18 +1364,18 @@ const Gs = { class: "bg-white padding" }, Xs = ["data-index"], Ks = {
|
|
|
1358
1364
|
},
|
|
1359
1365
|
emits: ["update:modelValue"],
|
|
1360
1366
|
setup(t, { emit: e }) {
|
|
1361
|
-
return (r, n) => (o(), l("div",
|
|
1367
|
+
return (r, n) => (o(), l("div", Xs, [
|
|
1362
1368
|
s("div", {
|
|
1363
1369
|
class: i(["cu-steps", { "scroll-x": r.scrollX }])
|
|
1364
1370
|
}, [
|
|
1365
|
-
(o(!0), l(g, null,
|
|
1371
|
+
(o(!0), l(g, null, b(r.steps, (a, u) => (o(), l("div", {
|
|
1366
1372
|
class: i(["cu-item", u > r.modelValue ? "" : `text-${r.color}`]),
|
|
1367
1373
|
key: u
|
|
1368
1374
|
}, [
|
|
1369
1375
|
s("text", {
|
|
1370
1376
|
class: i(a.cuIcon ? "cuIcon-" + a.cuIcon : "num"),
|
|
1371
1377
|
"data-index": u + 1
|
|
1372
|
-
}, c(a.cuIcon ? "" : u + 1), 11,
|
|
1378
|
+
}, c(a.cuIcon ? "" : u + 1), 11, Ks),
|
|
1373
1379
|
h(" " + c(a.name), 1)
|
|
1374
1380
|
], 2))), 128))
|
|
1375
1381
|
], 2)
|
|
@@ -1379,12 +1385,12 @@ const Gs = { class: "bg-white padding" }, Xs = ["data-index"], Ks = {
|
|
|
1379
1385
|
H.install = (t) => {
|
|
1380
1386
|
t.component(H.name, H);
|
|
1381
1387
|
};
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
],
|
|
1388
|
+
const Hs = { class: "cu-dialog" }, Js = { class: "cu-bar bg-white justify-end padding-right-sm" }, Qs = { class: "content" }, Ws = /* @__PURE__ */ s("text", { class: "cuIcon-close text-red" }, null, -1), Ys = [
|
|
1389
|
+
Ws
|
|
1390
|
+
], Zs = { class: "padding-xl" }, eo = {
|
|
1385
1391
|
name: "DrawerModal"
|
|
1386
|
-
}, J = /* @__PURE__ */
|
|
1387
|
-
...
|
|
1392
|
+
}, J = /* @__PURE__ */ _({
|
|
1393
|
+
...eo,
|
|
1388
1394
|
props: {
|
|
1389
1395
|
title: {},
|
|
1390
1396
|
modelValue: { type: Boolean }
|
|
@@ -1397,15 +1403,15 @@ const Ps = { class: "cu-dialog" }, Hs = { class: "cu-bar bg-white justify-end pa
|
|
|
1397
1403
|
return (a, u) => (o(), l("div", {
|
|
1398
1404
|
class: i(["cu-modal", a.modelValue ? "show" : ""])
|
|
1399
1405
|
}, [
|
|
1400
|
-
s("div",
|
|
1401
|
-
s("div",
|
|
1402
|
-
s("div",
|
|
1406
|
+
s("div", Hs, [
|
|
1407
|
+
s("div", Js, [
|
|
1408
|
+
s("div", Qs, c(a.title), 1),
|
|
1403
1409
|
s("div", {
|
|
1404
1410
|
class: "action",
|
|
1405
1411
|
onClick: n
|
|
1406
|
-
},
|
|
1412
|
+
}, Ys)
|
|
1407
1413
|
]),
|
|
1408
|
-
s("div",
|
|
1414
|
+
s("div", Zs, [
|
|
1409
1415
|
$(a.$slots, "default", {}, () => [
|
|
1410
1416
|
h("Modal 内容~")
|
|
1411
1417
|
])
|
|
@@ -1417,10 +1423,10 @@ const Ps = { class: "cu-dialog" }, Hs = { class: "cu-bar bg-white justify-end pa
|
|
|
1417
1423
|
J.install = (t) => {
|
|
1418
1424
|
t.component(J.name, J);
|
|
1419
1425
|
};
|
|
1420
|
-
const
|
|
1426
|
+
const to = (t) => {
|
|
1421
1427
|
t.use(x), t.use(N), t.use(I), t.use(z), t.use(q), t.use(V), t.use(U), t.use(A), t.use(L), t.use(M), t.use(F), t.use(O), t.use(R), t.use(G), t.use(E), t.use(w), t.use(X), t.use(K), t.use(P), t.use(H), t.use(J);
|
|
1422
|
-
},
|
|
1423
|
-
install:
|
|
1428
|
+
}, no = {
|
|
1429
|
+
install: to
|
|
1424
1430
|
};
|
|
1425
1431
|
export {
|
|
1426
1432
|
X as ChatList,
|
|
@@ -1444,5 +1450,5 @@ export {
|
|
|
1444
1450
|
N as TTitle,
|
|
1445
1451
|
A as TTopBar,
|
|
1446
1452
|
P as TimeLine,
|
|
1447
|
-
|
|
1453
|
+
no as default
|
|
1448
1454
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.TempColorUI={},r.Vue))})(this,function(r,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+l.name,class:e.normalizeClass(["nav-li","bg-"+l.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(l.title),1),e.createElementVNode("div",X,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,G))),128))]))}});k.install=o=>{o.component(k.name,k)};const q=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),H={class:"cu-item shadow"},J={class:"title"},Q={class:"text-cut"},W={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",H,[e.createElementVNode("div",J,[e.createElementVNode("div",Q,e.toDisplayString(t.title),1)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"cu-tag bg-red light sm round"},e.toDisplayString(l),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=o=>{o.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,l=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:l},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,l=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:l.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(l.author),1),e.createElementVNode("div",$e,e.toDisplayString(l.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=o=>{o.component(h.name,h)};const De={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Te(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=De[t];return l?`${o}: ${l};`:""}function xe(o){return Te("font-size",o)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>xe(t.size));return(l,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${l.name} text-${l.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"action title-style-3"},Pe={key:5,class:"cu-bar bg-white"},Xe={class:"action"},Ke={key:6,class:"cu-bar bg-white solid-bottom"},He={class:"action"},Je={class:"action"},Qe={name:"TTitle"},y=e.defineComponent({...Qe,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(o){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",{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",Ge,[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",Pe,[e.createElementVNode("div",Xe,[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",Ke,[e.createElementVNode("div",He,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Je,[e.renderSlot(t.$slots,"action")])]))}}),We={name:"TAvatar"},m=e.defineComponent({...We,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),Ye={class:"cu-avatar-group"},Ze={name:"TAvatarGroup"},F=e.defineComponent({...Ze,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),ve=["disabled"],et={key:1},tt={name:"TButton"},b=e.defineComponent({...tt,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(o){const t=o,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",et,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,ve))}}),ot={key:0},lt={name:"TTag"},p=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(o){const t=o,a=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(" ")),l=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value)},[e.renderSlot(n.$slots,"default"),n.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});g.install=o=>{o.component(g.name,g)},y.install=o=>{o.component(y.name,y)},m.install=o=>{o.component(m.name,m)},F.install=o=>{o.component(F.name,F)},b.install=o=>{o.component(b.name,b)},p.install=o=>{o.component(p.name,p)};const nt=["onClick"],at={key:0,class:"cuIcon-cu-image"},st=["src"],ct={key:0,class:"cu-tag badge"},rt={key:0,class:"cu-tag badge"},it={name:"TNavBar"},B=e.defineComponent({...it,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(o){const t=o,a=(l,n)=>{t.onItemClick&&t.onItemClick(l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${l.bg} ${l.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===l.activeIndex?l.activeColor:l.color}`]),onClick:c=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,st),s.badge?(e.openBlock(),e.createElementBlock("div",ct,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",rt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,nt))),128))],2))}});B.install=o=>{o.component(B.name,B)};const dt={key:0,class:"action"},mt={key:1},pt={class:"content text-bold"},gt={key:2,class:"action"},ft={name:"TTopBar"},E=e.defineComponent({...ft,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",dt,[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",mt,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",pt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=o=>{o.component(E.name,E)};const kt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),_t={class:"action"},ht={key:0,class:"cu-btn bg-green shadow-blur round"},yt={key:0},bt={key:3},Bt={name:"TSearchBar"},$=e.defineComponent({...Bt,props:{bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[kt,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:"搜索图片、文章、视频","confirm-type":"search"},null,32)],2),e.createElementVNode("div",_t,[n.buttonText?(e.openBlock(),e.createElementBlock("button",ht,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",yt,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",bt,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=o=>{o.component($.name,$)};const Et={class:"cu-bar input"},$t={key:0,class:"action"},Ct={key:1,class:"action"},Vt={class:"action"},Nt={class:"cu-btn bg-green shadow-blur"},ut={name:"TInputBar"},C=e.defineComponent({...ut,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Et,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",Vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",Nt,e.toDisplayString(n.buttonText),1)]))}});C.install=o=>{o.component(C.name,C)};const St=["onClick"],It={class:"tab-content"},zt={name:"TTabs"},V=e.defineComponent({...zt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"}},emits:["update:modelValue","select"],setup(o,{emit:t}){const a=e.ref([]),l=e.ref(0),n=t,s=(d,x)=>{l.value=d,n("update:modelValue",d),n("select",x)},i=d=>(a.value.push(d),a.value.length-1);e.provide("registerTab",i),e.provide("activeTab",l);const c=o,f=e.computed(()=>c.center!==!1?"justify-content:center;":`justify-content:${c.mode}`);return e.watch(()=>c.modelValue,d=>{l.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[l.value===L?"cur text-blue":""]]),key:L,onClick:jo=>s(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${l.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,St))),128))],6),e.createElementVNode("div",It,[e.renderSlot(d.$slots,"default",{tab:a.value[l.value]})])],2))}}),wt={name:"TTab"},N=e.defineComponent({...wt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,a=e.inject("registerTab"),l=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(l==null?void 0:l.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});V.install=o=>{o.component(V.name,V)},N.install=o=>{o.component(N.name,N)};/*!
|
|
1
|
+
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const R={class:"nav-list"},G=["url"],P={class:"nav-title"},X={class:"nav-name"},K={name:"TNavCard"},k=e.defineComponent({...K,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+l.name,class:e.normalizeClass(["nav-li","bg-"+l.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",P,e.toDisplayString(l.title),1),e.createElementVNode("div",X,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,G))),128))]))}});k.install=o=>{o.component(k.name,k)};const q=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),H={class:"cu-item shadow"},J={class:"title"},Q={class:"text-cut"},W={class:"content"},Y=["src","alt"],Z={class:"desc"},v={class:"text-content"},ee={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},te={class:"text-gray"},oe=q(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),le=q(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ne=q(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ae={class:"margin-left-sm text-gray flex justify-between"},se={class:"text-grey margin-right-xs"},ce={name:"TNewCard"},re=e.defineComponent({...ce,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",H,[e.createElementVNode("div",J,[e.createElementVNode("div",Q,e.toDisplayString(t.title),1)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Y),e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"cu-tag bg-red light sm round"},e.toDisplayString(l),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ee,[e.createElementVNode("div",te,[oe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ae,[e.createElementVNode("div",se,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),U=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},_=U(re,[["__scopeId","data-v-bbdb83ff"]]);_.install=o=>{o.component(_.name,_)};const ie={class:"cu-item shadow"},de={class:"cu-list menu-avatar"},me={class:"cu-item"},pe={class:"content flex-sub"},ge={class:"text-gray text-sm flex justify-between"},fe={class:"text-content"},ke={class:"text-gray text-sm text-right padding"},_e=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),he=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),be={class:"cu-item"},Be={class:"content"},Ee={class:"text-grey"},$e={class:"text-gray text-content text-df"},Ce={class:"flex"},Ve={class:"flex-sub"},Ne={class:"margin-top-sm flex justify-between"},ue={class:"text-gray text-df"},Se={key:0,class:"cuIcon-appreciatefill text-red"},Ie=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),ze={class:"text-gray margin-left-xs"},we={name:"TShareCard"},h=e.defineComponent({...we,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",ie,[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",pe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ge,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",fe,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,l=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:l},null,6))),128))],2),e.createElementVNode("div",ke,[_e,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),he,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,l=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:l.id},[e.createElementVNode("div",be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(l.author),1),e.createElementVNode("div",$e,e.toDisplayString(l.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ce,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ve,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Ne,[e.createElementVNode("div",ue,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",Se)):e.createCommentVNode("",!0),Ie,e.createElementVNode("span",ze,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});h.install=o=>{o.component(h.name,h)};const De={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Te(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=De[t];return l?`${o}: ${l};`:""}function xe(o){return Te("font-size",o)}const je={name:"TIcon"},g=e.defineComponent({...je,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>xe(t.size));return(l,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${l.name} text-${l.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Fe={class:"action border-title"},Le={class:"action border-title"},qe={class:"tib text-xl text-bold text-blue"},Ue=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ae={class:"action sub-title"},Me={class:"tib text-xl text-bold text-green"},Oe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Re={class:"action sub-title"},Ge={class:"action title-style-3"},Pe={key:5,class:"cu-bar bg-white"},Xe={class:"action"},Ke={key:6,class:"cu-bar bg-white solid-bottom"},He={class:"action"},Je={class:"action"},Qe={name:"TTitle"},y=e.defineComponent({...Qe,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(o){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Fe,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[e.createElementVNode("div",qe,e.toDisplayString(t.title),1),Ue])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Me,e.toDisplayString(t.title),1),Oe])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Re,[e.createElementVNode("div",{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",Ge,[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",Pe,[e.createElementVNode("div",Xe,[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",Ke,[e.createElementVNode("div",He,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Je,[e.renderSlot(t.$slots,"action")])]))}}),We={name:"TAvatar"},m=e.defineComponent({...We,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),Ye={class:"cu-avatar-group"},Ze={name:"TAvatarGroup"},F=e.defineComponent({...Ze,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),ve=["disabled"],et={key:1},tt={name:"TButton"},b=e.defineComponent({...tt,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(o){const t=o,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",et,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,ve))}}),ot={key:0},lt={name:"TTag"},p=e.defineComponent({...lt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(o){const t=o,a=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(" ")),l=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value)},[e.renderSlot(n.$slots,"default"),n.text?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});g.install=o=>{o.component(g.name,g)},y.install=o=>{o.component(y.name,y)},m.install=o=>{o.component(m.name,m)},F.install=o=>{o.component(F.name,F)},b.install=o=>{o.component(b.name,b)},p.install=o=>{o.component(p.name,p)};const nt=["onClick"],at={key:0,class:"cuIcon-cu-image"},st=["src"],ct={key:0,class:"cu-tag badge"},rt={key:0,class:"cu-tag badge"},it={name:"TNavBar"},B=e.defineComponent({...it,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(o){const t=o,a=(l,n)=>{t.onItemClick&&t.onItemClick(l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${l.bg} ${l.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===l.activeIndex?l.activeColor:l.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,st),s.badge?(e.openBlock(),e.createElementBlock("div",ct,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",rt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,nt))),128))],2))}});B.install=o=>{o.component(B.name,B)};const dt={key:0,class:"action"},mt={key:1},pt={class:"content text-bold"},gt={key:2,class:"action"},ft={name:"TTopBar"},E=e.defineComponent({...ft,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",dt,[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",mt,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",pt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});E.install=o=>{o.component(E.name,E)};const kt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),_t=["placeholder"],ht={class:"action"},yt={key:0,class:"cu-btn bg-green shadow-blur round"},bt={key:0},Bt={key:3},Et={name:"TSearchBar"},$=e.defineComponent({...Et,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[kt,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:n.placeholder,"confirm-type":"search"},null,40,_t)],2),e.createElementVNode("div",ht,[n.buttonText?(e.openBlock(),e.createElementBlock("button",yt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",bt,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",Bt,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});$.install=o=>{o.component($.name,$)};const $t={class:"cu-bar input"},Ct={key:0,class:"action"},Vt={key:1,class:"action"},Nt={class:"action"},ut={class:"cu-btn bg-green shadow-blur"},St={name:"TInputBar"},C=e.defineComponent({...St,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",$t,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",ut,e.toDisplayString(n.buttonText),1)]))}});C.install=o=>{o.component(C.name,C)};const It=["onClick"],zt={class:"tab-content"},wt={name:"TTabs"},V=e.defineComponent({...wt,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"}},emits:["update:modelValue","select"],setup(o,{emit:t}){const a=o,l=t,n=e.ref([]),s=e.ref(0),i=(d,x)=>{s.value=d,l("update:modelValue",d),l("select",x)},r=d=>(n.value.push(d),n.value.length-1);e.provide("registerTab",r),e.provide("activeTab",s);const f=e.computed(()=>a.center!==!1?"justify-content:center;":`justify-content:${a.mode}`);return e.watch(()=>a.modelValue,d=>{s.value=d}),(d,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(j,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",[s.value===L?`cur text-${d.color}`:"",d.bold!==!1?"weight-x":""]]),key:L,onClick:Fo=>i(L,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${s.value===L?"blue":j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,It))),128))],6),e.createElementVNode("div",zt,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),Dt={name:"TTab"},N=e.defineComponent({...Dt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,a=e.inject("registerTab"),l=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(l==null?void 0:l.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});V.install=o=>{o.component(V.name,V)},N.install=o=>{o.component(N.name,N)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/var A;(function(o){o.pop="pop",o.push="push"})(A||(A={}));var M;(function(o){o.back="back",o.forward="forward",o.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Dt=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 Tt(){return e.inject(Dt)}const xt=["onClick"],jt={key:0,class:"cu-tag badge"},Ft={key:0},Lt={name:"GridGroup"},u=e.defineComponent({...Lt,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(o){const t=o,a=Tt(),l=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>l(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",jt,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",Ft,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,xt))),128))],2))}});u.install=o=>{o.component(u.name,u)};const qt={class:"content"},Ut=["src","alt"],At={class:"text-grey"},Mt={class:"action"},Ot={key:1,class:"text-grey text-sm"},Rt=["onClick"],Gt={key:4,class:"text-grey text-sm"},Pt={name:"Menu"},S=e.defineComponent({...Pt,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(o){const t=a=>{a&&a()};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[a.menuBorder?"sm-border":"",a.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menuItems,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["cu-item",a.menuArrow?"arrow":""])},[e.createElementVNode("div",qt,[n.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:n.icon.name,color:n.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),n.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:n.img.url,alt:n.img.alt},null,8,Ut)):e.createCommentVNode("",!0),e.createElementVNode("text",At,e.toDisplayString(n.title),1)]),e.createElementVNode("div",Mt,[n.group?(e.openBlock(),e.createBlock(F,{key:0,urls:n.group},null,8,["urls"])):e.createCommentVNode("",!0),n.group?(e.openBlock(),e.createElementBlock("text",Ot,e.toDisplayString(n.group.length)+"人",1)):e.createCommentVNode("",!0),n.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${n.btn.bg}`]),onClick:i=>{var c;return t((c=n.btn)==null?void 0:c.event)}},[n.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:n.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btn.text),1)],10,Rt)):e.createCommentVNode("",!0),n.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.tags,(i,c)=>(e.openBlock(),e.createBlock(p,{size:i.size,key:c,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),n.text?(e.openBlock(),e.createElementBlock("text",Gt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)])],2))),128))],2))}});S.install=o=>{o.component(S.name,S)};const Xt={key:0,class:"cu-tag badge"},Kt={class:"content"},Ht={class:"flex align-center"},Jt={class:"text-cut"},Qt={class:"text-gray text-sm flex"},Wt={class:"text-cut"},Yt={class:"action"},Zt={class:"text-grey text-xs"},vt=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Xt,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Kt,[e.createElementVNode("div",Ht,[e.createElementVNode("div",Jt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Qt,[e.createElementVNode("div",Wt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",Yt,[e.createElementVNode("div",Zt,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),eo={class:"cu-list menu-avatar"},to={name:"ChatList"},I=e.defineComponent({...to,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createBlock(vt,{key:n,userinfo:l.userinfo,unread:l.unread,unreadColor:l.unreadColor,badge:l.badge,icon:l.icon,iconClass:l.iconClass,isDisconnected:l.isDisconnected,isCurrent:l.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:l},()=>[e.createTextVNode(e.toDisplayString(l.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=o=>{o.component(I.name,I)};const oo={class:"cu-chat"},lo={key:0,class:"cu-info round"},no={key:1,class:"cu-info"},ao=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),so={class:"main"},co=["src"],ro={key:2,class:"content shadow"},io=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),mo={class:"action text-bold text-grey"},po={key:3,class:"content shadow"},go=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),fo={class:"content shadow"},ko=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),_o={class:"date"},ho={name:"ChatRoom"},z=e.defineComponent({...ho,props:{messages:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["cu-item",{self:l.self}])},[l.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.self?(e.openBlock(),e.createElementBlock("div",lo,e.toDisplayString(l.content),1)):(e.openBlock(),e.createElementBlock("div",no,[ao,e.createTextVNode(" "+e.toDisplayString(l.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:l.avatar},null,8,["url"])),e.createElementVNode("div",so,[l.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":l.self}])},[e.createElementVNode("text",null,e.toDisplayString(l.content),1)],2)):l.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:l.content,class:"radius",style:{"max-width":"100%"}},null,8,co)):l.type==="audio"?(e.openBlock(),e.createElementBlock("div",ro,[io,e.createElementVNode("div",mo,e.toDisplayString(l.content),1)])):l.type==="location"?(e.openBlock(),e.createElementBlock("div",po,[go,e.createTextVNode(" "+e.toDisplayString(l.content),1)])):l.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",fo,e.toDisplayString(l.content),1),ko],64)):e.createCommentVNode("",!0)]),l.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:l.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",_o,e.toDisplayString(l.date),1)],64))],2))),128))]))}});z.install=o=>{o.component(z.name,z)};const yo={class:"cu-time"},bo={key:0,class:"cu-capsule radius"},Bo={name:"TimeLine"},w=e.defineComponent({...Bo,props:{items:{default:()=>[]}},setup(o){function t(l){return l||"cyan"}function a(l){switch(l.status){case"past":return`text-green cuIcon-${l.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${l.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${l.icon||"radioboxfill"}`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",yo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,c=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",a(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(f=c==null?void 0:c.capsule)!=null&&f.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",bo,[e.createVNode(p,{bg:t((d=c.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=c.capsule)==null?void 0:x.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(l.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=o=>{o.component(w.name,w)};const Eo={class:"bg-white padding"},$o=["data-index"],Co={name:"TSteps"},D=e.defineComponent({...Co,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(o,{emit:t}){return(a,l)=>(e.openBlock(),e.createElementBlock("div",Eo,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,$o),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});D.install=o=>{o.component(D.name,D)};const Vo={class:"cu-dialog"},No={class:"cu-bar bg-white justify-end padding-right-sm"},uo={class:"content"},So=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],Io={class:"padding-xl"},zo={name:"DrawerModal"},T=e.defineComponent({...zo,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(o,{emit:t}){const a=t,l=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",Vo,[e.createElementVNode("div",No,[e.createElementVNode("div",uo,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:l},So)]),e.createElementVNode("div",Io,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});T.install=o=>{o.component(T.name,T)};const wo={install:o=>{o.use(g),o.use(y),o.use(m),o.use(k),o.use(_),o.use(h),o.use(B),o.use(E),o.use($),o.use(C),o.use(V),o.use(N),o.use(u),o.use(S),o.use(b),o.use(p),o.use(I),o.use(z),o.use(w),o.use(D),o.use(T)}};r.ChatList=I,r.ChatRoom=z,r.DrawerModal=T,r.GridGroup=u,r.Menu=S,r.TAvatar=m,r.TButton=b,r.TIcon=g,r.TInputBar=C,r.TNavBar=B,r.TNavCard=k,r.TNewCard=_,r.TSearchBar=$,r.TShareCard=h,r.TSteps=D,r.TTab=N,r.TTabs=V,r.TTag=p,r.TTitle=y,r.TTopBar=E,r.TimeLine=w,r.default=wo,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/var A;(function(o){o.pop="pop",o.push="push"})(A||(A={}));var M;(function(o){o.back="back",o.forward="forward",o.unknown=""})(M||(M={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var O;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(O||(O={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Tt=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 xt(){return e.inject(Tt)}const jt=["onClick"],Ft={key:0,class:"cu-tag badge"},Lt={key:0},qt={name:"GridGroup"},u=e.defineComponent({...qt,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(o){const t=o,a=xt(),l=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:r,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:f=>l(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",Ft,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",Lt,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,jt))),128))],2))}});u.install=o=>{o.component(u.name,u)};const Ut={class:"content"},At=["src","alt"],Mt={class:"text-grey"},Ot={class:"action"},Rt={key:1,class:"text-grey text-sm"},Gt=["onClick"],Pt={key:4,class:"text-grey text-sm"},Xt={name:"Menu"},S=e.defineComponent({...Xt,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(o){const t=a=>{a&&a()};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[a.menuBorder?"sm-border":"",a.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menuItems,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["cu-item",a.menuArrow?"arrow":""])},[e.createElementVNode("div",Ut,[n.icon?(e.openBlock(),e.createBlock(g,{key:0,class:"icon",name:n.icon.name,color:n.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),n.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:n.img.url,alt:n.img.alt},null,8,At)):e.createCommentVNode("",!0),e.createElementVNode("text",Mt,e.toDisplayString(n.title),1)]),e.createElementVNode("div",Ot,[n.group?(e.openBlock(),e.createBlock(F,{key:0,urls:n.group},null,8,["urls"])):e.createCommentVNode("",!0),n.group?(e.openBlock(),e.createElementBlock("text",Rt,e.toDisplayString(n.group.length)+"人",1)):e.createCommentVNode("",!0),n.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${n.btn.bg}`]),onClick:i=>{var r;return t((r=n.btn)==null?void 0:r.event)}},[n.btn.icon?(e.openBlock(),e.createBlock(g,{key:0,name:n.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btn.text),1)],10,Gt)):e.createCommentVNode("",!0),n.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.tags,(i,r)=>(e.openBlock(),e.createBlock(p,{size:i.size,key:r,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),n.text?(e.openBlock(),e.createElementBlock("text",Pt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)])],2))),128))],2))}});S.install=o=>{o.component(S.name,S)};const Kt={key:0,class:"cu-tag badge"},Ht={class:"content"},Jt={class:"flex align-center"},Qt={class:"text-cut"},Wt={class:"text-gray text-sm flex"},Yt={class:"text-cut"},Zt={class:"action"},vt={class:"text-grey text-xs"},eo=U(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Kt,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Ht,[e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wt,[e.createElementVNode("div",Yt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),to={class:"cu-list menu-avatar"},oo={name:"ChatList"},I=e.defineComponent({...oo,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",to,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createBlock(eo,{key:n,userinfo:l.userinfo,unread:l.unread,unreadColor:l.unreadColor,badge:l.badge,icon:l.icon,iconClass:l.iconClass,isDisconnected:l.isDisconnected,isCurrent:l.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:l},()=>[e.createTextVNode(e.toDisplayString(l.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});I.install=o=>{o.component(I.name,I)};const lo={class:"cu-chat"},no={key:0,class:"cu-info round"},ao={key:1,class:"cu-info"},so=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),co={class:"main"},ro=["src"],io={key:2,class:"content shadow"},mo=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),po={class:"action text-bold text-grey"},go={key:3,class:"content shadow"},fo=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),ko={class:"content shadow"},_o=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),ho={class:"date"},yo={name:"ChatRoom"},z=e.defineComponent({...yo,props:{messages:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["cu-item",{self:l.self}])},[l.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.self?(e.openBlock(),e.createElementBlock("div",no,e.toDisplayString(l.content),1)):(e.openBlock(),e.createElementBlock("div",ao,[so,e.createTextVNode(" "+e.toDisplayString(l.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,mode:"radius",url:l.avatar},null,8,["url"])),e.createElementVNode("div",co,[l.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":l.self}])},[e.createElementVNode("text",null,e.toDisplayString(l.content),1)],2)):l.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:l.content,class:"radius",style:{"max-width":"100%"}},null,8,ro)):l.type==="audio"?(e.openBlock(),e.createElementBlock("div",io,[mo,e.createElementVNode("div",po,e.toDisplayString(l.content),1)])):l.type==="location"?(e.openBlock(),e.createElementBlock("div",go,[fo,e.createTextVNode(" "+e.toDisplayString(l.content),1)])):l.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",ko,e.toDisplayString(l.content),1),_o],64)):e.createCommentVNode("",!0)]),l.self?(e.openBlock(),e.createBlock(m,{key:1,mode:"radius",url:l.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",ho,e.toDisplayString(l.date),1)],64))],2))),128))]))}});z.install=o=>{o.component(z.name,z)};const bo={class:"cu-time"},Bo={key:0,class:"cu-capsule radius"},Eo={name:"TimeLine"},w=e.defineComponent({...Eo,props:{items:{default:()=>[]}},setup(o){function t(l){return l||"cyan"}function a(l){switch(l.status){case"past":return`text-green cuIcon-${l.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${l.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${l.icon||"radioboxfill"}`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",bo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,r=>{var f,d,x;return e.openBlock(),e.createElementBlock("div",{key:r.key,class:e.normalizeClass(["cu-item",a(r)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${r.bg||"gray"}`,"shadow-blur"])},[(f=r==null?void 0:r.capsule)!=null&&f.list&&r.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Bo,[e.createVNode(p,{bg:t((d=r.capsule)==null?void 0:d.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(p,{bg:t((x=r.capsule)==null?void 0:x.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.capsule?"margin-top-sm":"")},[e.renderSlot(l.$slots,`item-${r.key}`,{},()=>[e.createTextVNode(e.toDisplayString(r.content),1)])],2)],2)],2)}),128))]))),128))]))}});w.install=o=>{o.component(w.name,w)};const $o={class:"bg-white padding"},Co=["data-index"],Vo={name:"TSteps"},D=e.defineComponent({...Vo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(o,{emit:t}){return(a,l)=>(e.openBlock(),e.createElementBlock("div",$o,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,Co),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});D.install=o=>{o.component(D.name,D)};const No={class:"cu-dialog"},uo={class:"cu-bar bg-white justify-end padding-right-sm"},So={class:"content"},Io=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],zo={class:"padding-xl"},wo={name:"DrawerModal"},T=e.defineComponent({...wo,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(o,{emit:t}){const a=t,l=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",No,[e.createElementVNode("div",uo,[e.createElementVNode("div",So,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:l},Io)]),e.createElementVNode("div",zo,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});T.install=o=>{o.component(T.name,T)};const Do={install:o=>{o.use(g),o.use(y),o.use(m),o.use(k),o.use(_),o.use(h),o.use(B),o.use(E),o.use($),o.use(C),o.use(V),o.use(N),o.use(u),o.use(S),o.use(b),o.use(p),o.use(I),o.use(z),o.use(w),o.use(D),o.use(T)}};c.ChatList=I,c.ChatRoom=z,c.DrawerModal=T,c.GridGroup=u,c.Menu=S,c.TAvatar=m,c.TButton=b,c.TIcon=g,c.TInputBar=C,c.TNavBar=B,c.TNavCard=k,c.TNewCard=_,c.TSearchBar=$,c.TShareCard=h,c.TSteps=D,c.TTab=N,c.TTabs=V,c.TTag=p,c.TTitle=y,c.TTopBar=E,c.TimeLine=w,c.default=Do,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
+
placeholder?: string | undefined;
|
|
2
3
|
bgColor?: ColorName | undefined;
|
|
3
4
|
borderRadiusClass?: string | undefined;
|
|
4
5
|
avatarUrl?: string | undefined;
|
|
@@ -10,7 +11,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
11
|
}>, {
|
|
11
12
|
bgColor: string;
|
|
12
13
|
borderRadiusClass: string;
|
|
14
|
+
placeholder: string;
|
|
13
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
16
|
+
placeholder?: string | undefined;
|
|
14
17
|
bgColor?: ColorName | undefined;
|
|
15
18
|
borderRadiusClass?: string | undefined;
|
|
16
19
|
avatarUrl?: string | undefined;
|
|
@@ -22,9 +25,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
25
|
}>, {
|
|
23
26
|
bgColor: string;
|
|
24
27
|
borderRadiusClass: string;
|
|
28
|
+
placeholder: string;
|
|
25
29
|
}>>>, {
|
|
26
30
|
bgColor: ColorName;
|
|
27
31
|
borderRadiusClass: string;
|
|
32
|
+
placeholder: string;
|
|
28
33
|
}, {}>;
|
|
29
34
|
export default _default;
|
|
30
35
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -5,12 +5,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
text?: string | undefined;
|
|
6
6
|
isCard?: boolean | undefined;
|
|
7
7
|
mode?: "center" | "space-between" | "flex-start" | undefined;
|
|
8
|
+
bold?: boolean | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
8
10
|
}>, {
|
|
9
11
|
center: boolean;
|
|
10
12
|
bg: string;
|
|
11
13
|
isCard: boolean;
|
|
12
14
|
mode: string;
|
|
13
15
|
modelValue: number;
|
|
16
|
+
bold: boolean;
|
|
17
|
+
color: string;
|
|
14
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
19
|
select: (...args: any[]) => void;
|
|
16
20
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -21,21 +25,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
25
|
text?: string | undefined;
|
|
22
26
|
isCard?: boolean | undefined;
|
|
23
27
|
mode?: "center" | "space-between" | "flex-start" | undefined;
|
|
28
|
+
bold?: boolean | undefined;
|
|
29
|
+
color?: string | undefined;
|
|
24
30
|
}>, {
|
|
25
31
|
center: boolean;
|
|
26
32
|
bg: string;
|
|
27
33
|
isCard: boolean;
|
|
28
34
|
mode: string;
|
|
29
35
|
modelValue: number;
|
|
36
|
+
bold: boolean;
|
|
37
|
+
color: string;
|
|
30
38
|
}>>> & {
|
|
31
39
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
32
40
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
41
|
}, {
|
|
34
42
|
bg: string;
|
|
43
|
+
color: string;
|
|
35
44
|
modelValue: number;
|
|
36
45
|
center: boolean;
|
|
37
46
|
isCard: boolean;
|
|
38
47
|
mode: "center" | "flex-start" | "space-between";
|
|
48
|
+
bold: boolean;
|
|
39
49
|
}, {}>, {
|
|
40
50
|
default?(_: {
|
|
41
51
|
tab: {
|