vue-color-ui 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.css +1 -1
- package/lib/temp-color-ui.js +42 -46
- package/lib/temp-color-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-
|
|
1
|
+
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-626eda11]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
|
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var we = Object.defineProperty;
|
|
2
2
|
var Ce = (t, e, c) => e in t ? we(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
|
|
3
3
|
var M = (t, e, c) => Ce(t, typeof e != "symbol" ? e + "" : e, c);
|
|
4
|
-
import { defineComponent as _, createElementBlock as l, openBlock as n, Fragment as b, renderList as
|
|
4
|
+
import { defineComponent as _, createElementBlock as l, openBlock as n, Fragment as b, renderList as y, normalizeStyle as w, normalizeClass as d, createElementVNode as o, toDisplayString as u, createCommentVNode as p, createTextVNode as k, pushScopeId as xe, popScopeId as Te, computed as j, renderSlot as x, createBlock as V, ref as B, withModifiers as de, unref as Be, onMounted as D, resolveComponent as ke, createVNode as P, onUnmounted as Se, withDirectives as he, withKeys as je, vShow as pe, provide as ve, watch as Ie, inject as fe, withCtx as re, reactive as Ee, KeepAlive as Ve, resolveDynamicComponent as Me } from "vue";
|
|
5
5
|
const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" }, Ne = { class: "nav-name" }, Pe = {
|
|
6
6
|
name: "TNavCard"
|
|
7
7
|
}, R = /* @__PURE__ */ _({
|
|
@@ -15,7 +15,7 @@ const ze = { class: "nav-list" }, qe = ["onClick"], Ae = { class: "nav-title" },
|
|
|
15
15
|
c("chickItem", i, a);
|
|
16
16
|
};
|
|
17
17
|
return (i, a) => (n(), l("div", ze, [
|
|
18
|
-
(n(!0), l(b, null,
|
|
18
|
+
(n(!0), l(b, null, y(i.items, (h, r) => (n(), l("div", {
|
|
19
19
|
"hover-class": "none",
|
|
20
20
|
class: d(["nav-li", "bg-" + h.color]),
|
|
21
21
|
style: w([{ animation: "show " + ((r + 1) * 0.2 + 1) + "s 1" }]),
|
|
@@ -74,7 +74,7 @@ const ge = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
|
|
|
74
74
|
o("div", Xe, [
|
|
75
75
|
o("div", Ye, u(e.description), 1),
|
|
76
76
|
o("div", null, [
|
|
77
|
-
(n(!0), l(b, null,
|
|
77
|
+
(n(!0), l(b, null, y(e.tags, (s) => (n(), l("div", {
|
|
78
78
|
key: s,
|
|
79
79
|
class: "cu-tag bg-red light sm round"
|
|
80
80
|
}, u(s), 1))), 128))
|
|
@@ -84,15 +84,15 @@ const ge = (t) => (xe("data-v-bbdb83ff"), t = t(), Te(), t), Le = { class: "cu-i
|
|
|
84
84
|
e.footerInfo ? (n(), l("div", Oe, [
|
|
85
85
|
o("div", He, [
|
|
86
86
|
Ge,
|
|
87
|
-
|
|
87
|
+
k(" " + u(e.footerInfo.likes) + " ", 1),
|
|
88
88
|
Ke,
|
|
89
|
-
|
|
89
|
+
k(" " + u(e.footerInfo.appreciations) + " ", 1),
|
|
90
90
|
Je,
|
|
91
|
-
|
|
91
|
+
k(" " + u(e.footerInfo.comments), 1)
|
|
92
92
|
]),
|
|
93
93
|
o("div", Qe, [
|
|
94
94
|
o("div", We, u(e.footerInfo.author), 1),
|
|
95
|
-
|
|
95
|
+
k(" " + u(e.footerInfo.timeAgo), 1)
|
|
96
96
|
])
|
|
97
97
|
])) : p("", !0)
|
|
98
98
|
])
|
|
@@ -182,7 +182,7 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, n
|
|
|
182
182
|
o("div", {
|
|
183
183
|
class: d(["grid flex-sub padding-lr", e.isCard ? "col-3 grid-square" : "col-1"])
|
|
184
184
|
}, [
|
|
185
|
-
(n(!0), l(b, null,
|
|
185
|
+
(n(!0), l(b, null, y(e.isCard ? 9 : 1, (s) => (n(), l("div", {
|
|
186
186
|
class: d(["bg-img", e.isCard ? "" : "only-img"]),
|
|
187
187
|
style: w({ backgroundImage: `url(${e.imageUrl})` }),
|
|
188
188
|
key: s
|
|
@@ -190,13 +190,13 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, n
|
|
|
190
190
|
], 2),
|
|
191
191
|
o("div", it, [
|
|
192
192
|
ct,
|
|
193
|
-
|
|
193
|
+
k(" " + u(e.likes) + " ", 1),
|
|
194
194
|
rt,
|
|
195
|
-
|
|
195
|
+
k(" " + u(e.appreciations) + " ", 1),
|
|
196
196
|
ut,
|
|
197
|
-
|
|
197
|
+
k(" " + u(e.comments), 1)
|
|
198
198
|
]),
|
|
199
|
-
(n(!0), l(b, null,
|
|
199
|
+
(n(!0), l(b, null, y(e.commentsList, (s) => {
|
|
200
200
|
var i;
|
|
201
201
|
return n(), l("div", {
|
|
202
202
|
class: "cu-list menu-avatar comment solids-top",
|
|
@@ -210,7 +210,7 @@ const tt = { class: "cu-item shadow" }, st = { class: "cu-list menu-avatar" }, n
|
|
|
210
210
|
o("div", ht, [
|
|
211
211
|
o("div", pt, u(s.author), 1),
|
|
212
212
|
o("div", ft, u(s.text), 1),
|
|
213
|
-
(n(!0), l(b, null,
|
|
213
|
+
(n(!0), l(b, null, y(s.replies, (a) => (n(), l("div", {
|
|
214
214
|
key: a.id,
|
|
215
215
|
class: "bg-grey padding-sm radius margin-top-sm text-sm"
|
|
216
216
|
}, [
|
|
@@ -406,7 +406,7 @@ const xt = {
|
|
|
406
406
|
},
|
|
407
407
|
setup(t) {
|
|
408
408
|
return (e, c) => (n(), l("div", Ut, [
|
|
409
|
-
(n(!0), l(b, null,
|
|
409
|
+
(n(!0), l(b, null, y(e.urls, (s, i) => (n(), V(z, {
|
|
410
410
|
key: i,
|
|
411
411
|
url: s,
|
|
412
412
|
size: e.size
|
|
@@ -551,7 +551,7 @@ const Jt = ["onClick"], Qt = {
|
|
|
551
551
|
return (s, i) => (n(), l("div", {
|
|
552
552
|
class: d(["cu-bar tabbar", `bg-${s.bg} ${s.isFoot ? "foot" : ""}`])
|
|
553
553
|
}, [
|
|
554
|
-
(n(!0), l(b, null,
|
|
554
|
+
(n(!0), l(b, null, y(s.items, (a, h) => (n(), l("div", {
|
|
555
555
|
key: h,
|
|
556
556
|
class: d(["action", `text-${h === s.activeIndex ? s.activeColor : s.color}`]),
|
|
557
557
|
onClick: (r) => c(a, h)
|
|
@@ -710,7 +710,7 @@ const fs = {
|
|
|
710
710
|
return r;
|
|
711
711
|
}));
|
|
712
712
|
return (h, r) => h.stringArray.length ? (n(), l("ul", fs, [
|
|
713
|
-
(n(!0), l(b, null,
|
|
713
|
+
(n(!0), l(b, null, y(a.value, (f, $) => (n(), l("li", {
|
|
714
714
|
key: $,
|
|
715
715
|
innerHTML: f,
|
|
716
716
|
onClick: (g) => i(h.stringArray[$].text, h.stringArray[$])
|
|
@@ -833,7 +833,7 @@ const fs = {
|
|
|
833
833
|
onClick: a[0] || (a[0] = de(() => {
|
|
834
834
|
}, ["stop"]))
|
|
835
835
|
}, [
|
|
836
|
-
(n(!0), l(b, null,
|
|
836
|
+
(n(!0), l(b, null, y(Be(vs), (h) => (n(), l("span", {
|
|
837
837
|
key: h,
|
|
838
838
|
onClick: (r) => s(h)
|
|
839
839
|
}, u(h), 9, bs))), 128))
|
|
@@ -855,7 +855,7 @@ const fs = {
|
|
|
855
855
|
ref_key: "functionPanel",
|
|
856
856
|
ref: e
|
|
857
857
|
}, [
|
|
858
|
-
(n(!0), l(b, null,
|
|
858
|
+
(n(!0), l(b, null, y(c.items, (a, h) => (n(), l("div", {
|
|
859
859
|
key: h,
|
|
860
860
|
class: "function-item",
|
|
861
861
|
onClick: a.event
|
|
@@ -938,12 +938,8 @@ const fs = {
|
|
|
938
938
|
"cursor-spacing": "10",
|
|
939
939
|
value: m.modelValue,
|
|
940
940
|
onInput: E,
|
|
941
|
-
placeholder: m.placeholder
|
|
942
|
-
"<!--": "",
|
|
943
|
-
添加这一行: "",
|
|
944
|
-
"--": ""
|
|
941
|
+
placeholder: m.placeholder
|
|
945
942
|
}, null, 40, Ss),
|
|
946
|
-
y(" /> "),
|
|
947
943
|
o("div", js, [
|
|
948
944
|
o("text", {
|
|
949
945
|
class: d(`cuIcon-${m.rightIcon} text-grey`),
|
|
@@ -960,7 +956,7 @@ const fs = {
|
|
|
960
956
|
onClick: C[2] || (C[2] = (N) => $())
|
|
961
957
|
}, [
|
|
962
958
|
x(m.$slots, "default", {}, () => [
|
|
963
|
-
|
|
959
|
+
k(u(m.buttonText), 1)
|
|
964
960
|
], !0)
|
|
965
961
|
], 2)
|
|
966
962
|
]),
|
|
@@ -972,7 +968,7 @@ const fs = {
|
|
|
972
968
|
])
|
|
973
969
|
], 64));
|
|
974
970
|
}
|
|
975
|
-
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-
|
|
971
|
+
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-626eda11"]]);
|
|
976
972
|
Q.install = (t) => {
|
|
977
973
|
t.component(Q.name, Q);
|
|
978
974
|
};
|
|
@@ -1016,7 +1012,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
1016
1012
|
class: d(["nav flex", [, `bg-${g.bg}`, `text-${g.text}`]]),
|
|
1017
1013
|
style: w(f.value)
|
|
1018
1014
|
}, [
|
|
1019
|
-
(n(!0), l(b, null,
|
|
1015
|
+
(n(!0), l(b, null, y(i.value, (S, E) => (n(), l("div", {
|
|
1020
1016
|
class: d(["cu-item", $.value(E)]),
|
|
1021
1017
|
key: E,
|
|
1022
1018
|
onClick: (m) => h(E, S)
|
|
@@ -1025,7 +1021,7 @@ const Ms = ["onClick"], zs = { class: "tab-content" }, qs = {
|
|
|
1025
1021
|
key: 0,
|
|
1026
1022
|
class: d(`cuIcon-${S.icon} text-${a.value === E ? g.color : S.iconColor}`)
|
|
1027
1023
|
}, null, 2)) : p("", !0),
|
|
1028
|
-
|
|
1024
|
+
k(" " + u(S.label), 1)
|
|
1029
1025
|
], 10, Ms))), 128))
|
|
1030
1026
|
], 6),
|
|
1031
1027
|
o("div", zs, [
|
|
@@ -1191,7 +1187,7 @@ const Ls = ["onClick"], Ds = {
|
|
|
1191
1187
|
return (i, a) => (n(), l("div", {
|
|
1192
1188
|
class: d(["cu-list grid", ["col-" + i.gridCol, i.gridBorder ? "" : "no-border"]])
|
|
1193
1189
|
}, [
|
|
1194
|
-
(n(!0), l(b, null,
|
|
1190
|
+
(n(!0), l(b, null, y(i.cuIconList, (h, r) => (n(), l("div", {
|
|
1195
1191
|
class: "cu-item",
|
|
1196
1192
|
key: r,
|
|
1197
1193
|
style: w(`width: calc(100% / ${i.gridCol})`),
|
|
@@ -1306,7 +1302,7 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1306
1302
|
return (s, i) => (n(), l("div", {
|
|
1307
1303
|
class: d(["cu-list menu", [s.menuBorder ? "sm-border" : "", s.menuCard ? "card-menu" : ""]])
|
|
1308
1304
|
}, [
|
|
1309
|
-
(n(!0), l(b, null,
|
|
1305
|
+
(n(!0), l(b, null, y(s.menuItems, (a, h) => (n(), l("div", {
|
|
1310
1306
|
key: h,
|
|
1311
1307
|
class: d(["cu-item", s.menuArrow ? "arrow" : ""]),
|
|
1312
1308
|
onClick: (r) => e(a)
|
|
@@ -1345,9 +1341,9 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1345
1341
|
name: a.btn.icon,
|
|
1346
1342
|
color: "white"
|
|
1347
1343
|
}, null, 8, ["name"])) : p("", !0),
|
|
1348
|
-
|
|
1344
|
+
k(" " + u(a.btn.text), 1)
|
|
1349
1345
|
], 10, Ks)) : p("", !0),
|
|
1350
|
-
a.tags ? (n(!0), l(b, { key: 3 },
|
|
1346
|
+
a.tags ? (n(!0), l(b, { key: 3 }, y(a.tags, (r, f) => (n(), V(q, {
|
|
1351
1347
|
size: r.size,
|
|
1352
1348
|
key: f,
|
|
1353
1349
|
bg: r.bg,
|
|
@@ -1355,7 +1351,7 @@ const Us = ["onClick"], Xs = { class: "content" }, Ys = ["src", "alt"], Os = { c
|
|
|
1355
1351
|
shape: "round"
|
|
1356
1352
|
}, {
|
|
1357
1353
|
default: re(() => [
|
|
1358
|
-
|
|
1354
|
+
k(u(r.text), 1)
|
|
1359
1355
|
]),
|
|
1360
1356
|
_: 2
|
|
1361
1357
|
}, 1032, ["size", "bg", "light"]))), 128)) : p("", !0),
|
|
@@ -1452,7 +1448,7 @@ const Ws = {
|
|
|
1452
1448
|
},
|
|
1453
1449
|
setup(t) {
|
|
1454
1450
|
return (e, c) => (n(), l("div", cn, [
|
|
1455
|
-
(n(!0), l(b, null,
|
|
1451
|
+
(n(!0), l(b, null, y(e.items, (s, i) => (n(), V(me, {
|
|
1456
1452
|
"avatar-name": s.avatarName,
|
|
1457
1453
|
"avatar-bg": s.avatarBg,
|
|
1458
1454
|
time: s.time,
|
|
@@ -1469,7 +1465,7 @@ const Ws = {
|
|
|
1469
1465
|
}, {
|
|
1470
1466
|
default: re(() => [
|
|
1471
1467
|
x(e.$slots, "default", { item: s }, () => [
|
|
1472
|
-
|
|
1468
|
+
k(u(s.content), 1)
|
|
1473
1469
|
])
|
|
1474
1470
|
]),
|
|
1475
1471
|
_: 2
|
|
@@ -1502,14 +1498,14 @@ const un = { class: "cu-chat" }, dn = {
|
|
|
1502
1498
|
},
|
|
1503
1499
|
setup(t) {
|
|
1504
1500
|
return (e, c) => (n(), l("div", un, [
|
|
1505
|
-
(n(!0), l(b, null,
|
|
1501
|
+
(n(!0), l(b, null, y(e.messages, (s) => (n(), l("div", {
|
|
1506
1502
|
key: s.id,
|
|
1507
1503
|
class: d(["cu-item", { self: s.self }])
|
|
1508
1504
|
}, [
|
|
1509
1505
|
s.type === "info" ? (n(), l(b, { key: 0 }, [
|
|
1510
1506
|
s.self ? (n(), l("div", dn, u(s.content), 1)) : (n(), l("div", hn, [
|
|
1511
1507
|
pn,
|
|
1512
|
-
|
|
1508
|
+
k(" " + u(s.content), 1)
|
|
1513
1509
|
]))
|
|
1514
1510
|
], 64)) : (n(), l(b, { key: 1 }, [
|
|
1515
1511
|
s.self ? p("", !0) : (n(), V(z, {
|
|
@@ -1533,7 +1529,7 @@ const un = { class: "cu-chat" }, dn = {
|
|
|
1533
1529
|
o("div", vn, u(s.content), 1)
|
|
1534
1530
|
])) : s.type === "location" ? (n(), l("div", bn, [
|
|
1535
1531
|
$n,
|
|
1536
|
-
|
|
1532
|
+
k(" " + u(s.content), 1)
|
|
1537
1533
|
])) : s.type === "warning" ? (n(), l(b, { key: 4 }, [
|
|
1538
1534
|
o("div", yn, u(s.content), 1),
|
|
1539
1535
|
kn
|
|
@@ -1583,12 +1579,12 @@ const Cn = { class: "cu-time" }, xn = {
|
|
|
1583
1579
|
}
|
|
1584
1580
|
}
|
|
1585
1581
|
return (s, i) => (n(), l("div", null, [
|
|
1586
|
-
(n(!0), l(b, null,
|
|
1582
|
+
(n(!0), l(b, null, y(s.items, (a, h) => (n(), l("div", {
|
|
1587
1583
|
key: h,
|
|
1588
1584
|
class: "cu-timeline"
|
|
1589
1585
|
}, [
|
|
1590
1586
|
o("div", Cn, u(a.date), 1),
|
|
1591
|
-
(n(!0), l(b, null,
|
|
1587
|
+
(n(!0), l(b, null, y(a.items, (r) => {
|
|
1592
1588
|
var f, $, g;
|
|
1593
1589
|
return n(), l("div", {
|
|
1594
1590
|
key: r.key,
|
|
@@ -1602,7 +1598,7 @@ const Cn = { class: "cu-time" }, xn = {
|
|
|
1602
1598
|
bg: e(($ = r.capsule) == null ? void 0 : $.color)
|
|
1603
1599
|
}, {
|
|
1604
1600
|
default: re(() => [
|
|
1605
|
-
|
|
1601
|
+
k(u(r.capsule.list[0]), 1)
|
|
1606
1602
|
]),
|
|
1607
1603
|
_: 2
|
|
1608
1604
|
}, 1032, ["bg"]),
|
|
@@ -1611,7 +1607,7 @@ const Cn = { class: "cu-time" }, xn = {
|
|
|
1611
1607
|
light: !0
|
|
1612
1608
|
}, {
|
|
1613
1609
|
default: re(() => [
|
|
1614
|
-
|
|
1610
|
+
k(u(r.capsule.list[1]), 1)
|
|
1615
1611
|
]),
|
|
1616
1612
|
_: 2
|
|
1617
1613
|
}, 1032, ["bg"])
|
|
@@ -1620,7 +1616,7 @@ const Cn = { class: "cu-time" }, xn = {
|
|
|
1620
1616
|
class: d(r.capsule ? "margin-top-sm" : "")
|
|
1621
1617
|
}, [
|
|
1622
1618
|
x(s.$slots, `item-${r.key}`, {}, () => [
|
|
1623
|
-
|
|
1619
|
+
k(u(r.content), 1)
|
|
1624
1620
|
])
|
|
1625
1621
|
], 2)
|
|
1626
1622
|
], 2)
|
|
@@ -1649,7 +1645,7 @@ const Bn = { class: "bg-white padding" }, Sn = ["data-index"], jn = {
|
|
|
1649
1645
|
o("div", {
|
|
1650
1646
|
class: d(["cu-steps", { "scroll-x": c.scrollX }])
|
|
1651
1647
|
}, [
|
|
1652
|
-
(n(!0), l(b, null,
|
|
1648
|
+
(n(!0), l(b, null, y(c.steps, (i, a) => (n(), l("div", {
|
|
1653
1649
|
class: d(["cu-item", a > c.modelValue ? "" : `text-${c.color}`]),
|
|
1654
1650
|
key: a
|
|
1655
1651
|
}, [
|
|
@@ -1657,7 +1653,7 @@ const Bn = { class: "bg-white padding" }, Sn = ["data-index"], jn = {
|
|
|
1657
1653
|
class: d(i.cuIcon ? "cuIcon-" + i.cuIcon : "num"),
|
|
1658
1654
|
"data-index": a + 1
|
|
1659
1655
|
}, u(i.cuIcon ? "" : a + 1), 11, Sn),
|
|
1660
|
-
|
|
1656
|
+
k(" " + u(i.name), 1)
|
|
1661
1657
|
], 2))), 128))
|
|
1662
1658
|
], 2)
|
|
1663
1659
|
]));
|
|
@@ -1694,7 +1690,7 @@ const En = { class: "cu-dialog" }, Vn = { class: "cu-bar bg-white justify-end pa
|
|
|
1694
1690
|
]),
|
|
1695
1691
|
o("div", An, [
|
|
1696
1692
|
x(i.$slots, "default", {}, () => [
|
|
1697
|
-
|
|
1693
|
+
k("Modal 内容~")
|
|
1698
1694
|
])
|
|
1699
1695
|
])
|
|
1700
1696
|
])
|
|
@@ -1856,7 +1852,7 @@ const Fn = ["data-index"], Rn = { name: "TVirtualScrollSlide" }, Un = /* @__PURE
|
|
|
1856
1852
|
style: w({ transform: `translateY(${h.value}px)` })
|
|
1857
1853
|
}, [
|
|
1858
1854
|
(n(), V(Ve, { include: F.value }, [
|
|
1859
|
-
(n(!0), l(b, null,
|
|
1855
|
+
(n(!0), l(b, null, y(f.value, (_e, ue) => (n(), l("div", {
|
|
1860
1856
|
key: _e.id,
|
|
1861
1857
|
"data-index": ue,
|
|
1862
1858
|
class: d($),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,V)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:V}):i[e]=V;var B=(i,e,V)=>mn(i,typeof e!="symbol"?e+"":e,V);const V={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),$=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=$(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},C=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ot,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});C.install=n=>{n.component(C.name,C)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=$(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=$(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=$(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value","placeholder"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{default:""}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u,placeholder:m.placeholder,"<!--":"",添加这一行:"","--":""},null,40,Kt),e.createTextVNode(" /> "),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:k[2]||(k[2]=N=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=$(Wt,[["__scopeId","data-v-643af320"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var dn=Object.defineProperty;var mn=(i,e,V)=>e in i?dn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:V}):i[e]=V;var B=(i,e,V)=>mn(i,typeof e!="symbol"?e+"":e,V);const V={class:"nav-list"},oe=["onClick"],ne={class:"nav-title"},le={class:"nav-name"},ae={name:"TNavCard"},I=e.defineComponent({...ae,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,c)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+r.color]),style:e.normalizeStyle([{animation:"show "+((c+1)*.2+1)+"s 1"}]),key:c,onClick:d=>o(r,c)},[e.createElementVNode("div",ne,e.toDisplayString(r.title),1),e.createElementVNode("div",le,e.toDisplayString(r.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+r.cuIcon)},null,2)],14,oe))),128))]))}});I.install=n=>{n.component(I.name,I)};const J=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),se={class:"cu-item shadow"},ce={class:"title"},re={class:"text-cut"},ie={class:"content"},de=["src","alt"],me={class:"desc"},pe={class:"text-content"},ge={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},fe={class:"text-gray"},he=J(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ke=J(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),_e=J(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ye={class:"margin-left-sm text-gray flex justify-between"},ue={class:"text-grey margin-right-xs"},Be={name:"TNewCard"},be=e.defineComponent({...Be,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createElementVNode("div",re,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ie,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,de),e.createElementVNode("div",me,[e.createElementVNode("div",pe,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",fe,[he,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ke,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),_e,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),$=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},S=$(be,[["__scopeId","data-v-bbdb83ff"]]);S.install=n=>{n.component(S.name,S)};const Ee={class:"cu-item shadow"},$e={class:"cu-list menu-avatar"},Ce={class:"cu-item"},Ve={class:"content flex-sub"},Ne={class:"text-gray text-sm flex justify-between"},Ie={class:"text-content"},Se={class:"text-gray text-sm text-right padding"},we=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ze=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Te=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},De={class:"content"},je={class:"text-grey"},Fe={class:"text-gray text-content text-df"},Me={class:"flex"},Le={class:"flex-sub"},qe={class:"margin-top-sm flex justify-between"},Ae={class:"text-gray text-df"},Pe={key:0,class:"cuIcon-appreciatefill text-red"},Re=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ue={class:"text-gray margin-left-xs"},Xe={name:"TShareCard"},w=e.defineComponent({...Xe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",Ne,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ie,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Se,[we,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ze,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Te,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",De,[e.createElementVNode("div",je,e.toDisplayString(o.author),1),e.createElementVNode("div",Fe,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Me,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Le,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",qe,[e.createElementVNode("div",Ae,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Pe)):e.createCommentVNode("",!0),Re,e.createElementVNode("span",Ue,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=n=>{n.component(w.name,w)};const Ye={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Oe(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ye[t];return o?`${n}: ${o};`:""}function He(n){return Oe("font-size",n)}const Ge={name:"TIcon"},C=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>He(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},Je={class:"action border-title"},Qe={class:"tib text-xl text-bold text-blue"},We=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"tib text-xl text-bold text-green"},et=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),tt={class:"action sub-title"},ot={class:"action title-style-3"},nt={key:5,class:"cu-bar bg-white"},lt={class:"action"},at={key:6,class:"cu-bar bg-white solid-bottom"},st={class:"action"},ct={class:"action"},rt={name:"TTitle"},z=e.defineComponent({...rt,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,e.toDisplayString(t.title),1),We])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",ve,e.toDisplayString(t.title),1),et])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ot,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",at,[e.createElementVNode("div",st,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ct,[e.renderSlot(t.$slots,"action")])]))}}),it={name:"TAvatar"},b=e.defineComponent({...it,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),dt={class:"cu-avatar-group"},mt={name:"TAvatarGroup"},H=e.defineComponent({...mt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(b,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),pt=["disabled"],gt={key:1},ft={name:"TButton"},T=e.defineComponent({...ft,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,pt))}}),ht={key:0},kt={name:"TTag"},E=e.defineComponent({...kt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});C.install=n=>{n.component(C.name,C)},z.install=n=>{n.component(z.name,z)},b.install=n=>{n.component(b.name,b)},H.install=n=>{n.component(H.name,H)},T.install=n=>{n.component(T.name,T)},E.install=n=>{n.component(E.name,E)};const _t=["onClick"],yt={key:0,class:"cuIcon-cu-image"},ut=["src"],Bt={key:0,class:"cu-tag badge"},bt={key:0,class:"cu-tag badge"},Et={name:"TNavBar"},x=e.defineComponent({...Et,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:e.normalizeClass(["action",`text-${r===o.activeIndex?o.activeColor:o.color}`]),onClick:c=>s(l,r)},[l.img?(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ut),l.badge?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",bt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,_t))),128))],2))}});x.install=n=>{n.component(x.name,x)};const $t={key:0,class:"action"},Ct={key:1},Vt={class:"content text-bold"},Nt={key:2,class:"action"},It={name:"TTopBar"},D=e.defineComponent({...It,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",$t,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});D.install=n=>{n.component(D.name,D)};const St=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),wt=["placeholder"],zt={class:"action"},Tt={key:0,class:"cu-btn bg-green shadow-blur round"},xt={key:0},Dt={key:3},jt={name:"TSearchBar"},j=e.defineComponent({...jt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[St,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,wt)],2),e.createElementVNode("div",zt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Tt,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",Dt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});j.install=n=>{n.component(j.name,j)};const Ft={key:0,class:"string-list"},Mt=["innerHTML","onClick"],Lt=$(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(r="",c)=>{s("send",r,c)},l=e.computed(()=>o.stringArray.map(r=>{if(!o.text)return r.text;let c="";for(let d of r.text)o.text.includes(d)?c+=`<span style="color:#ff0000">${d}</span>`:c+=d;return c}));return(r,c)=>r.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,innerHTML:d,onClick:p=>a(r.stringArray[f].text,r.stringArray[f])},null,8,Mt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),qt=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],At=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Pt=["onClick"],Rt=$(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(qt),r=>(e.openBlock(),e.createElementBlock("span",{key:r,onClick:c=>o(r)},e.toDisplayString(r),9,Pt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ut={class:"function-panel-container"},Xt=["onClick"],Yt=$(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(l,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Xt))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ot={class:"cu-bar input"},Ht={key:0,class:"action"},Gt={key:1,class:"action"},Kt=["value","placeholder"],Jt={class:"action"},Qt={name:"TInputBar"},Wt=e.defineComponent({...Qt,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{default:""}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,r=n,c=m=>{s.value=m.detail.height},d=()=>{s.value=0},f=(m="",k)=>{m?l("send",m,k):l("send",r.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},h=()=>{o.value=!1,a.value=!a.value},y=m=>{l("update:modelValue",r.modelValue+m)},u=m=>{const k=m.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Lt,{text:m.modelValue,"string-array":m.stringArray,onSend:f},null,8,["text","string-array"]),e.createElementVNode("div",Ot,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:c,onBlur:d,onKeydown:k[0]||(k[0]=e.withKeys(N=>f(),["enter"])),onConfirm:k[1]||(k[1]=N=>f()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:u,placeholder:m.placeholder},null,40,Kt),e.createElementVNode("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(h,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:k[2]||(k[2]=N=>f())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)]),e.withDirectives(e.createVNode(Rt,{onAddEmoji:y},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Yt,{items:m.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),F=$(Wt,[["__scopeId","data-v-626eda11"]]);F.install=n=>{n.component(F.name,F)};const Zt=["onClick"],vt={class:"tab-content"},eo={name:"TTabs"},M=e.defineComponent({...eo,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),r=(p,h)=>{l.value=p,o("update:modelValue",p),o("select",h)},c=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",c),e.provide("activeTab",l);const d=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),f=e.computed(()=>p=>{let h=[];return l.value===p&&(h.push(`text-${s.color}`),s.bold!==!1&&h.push("text-bold"),s.line!==!1&&h.push("cur")),h});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(y,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",f.value(u)]),key:u,onClick:m=>r(u,y)},[y.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${y.icon} text-${l.value===u?p.color:y.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(y.label),1)],10,Zt))),128))],6),e.createElementVNode("div",vt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),to={name:"TTab"},L=e.defineComponent({...to,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),r=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(c,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:r.value})],512)),[[e.vShow,l.value]])}});M.install=n=>{n.component(M.name,M)},L.install=n=>{n.component(L.name,L)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|