vue-color-ui 0.0.32 → 0.0.33
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/css/main.css +1 -1
- package/lib/style.css +1 -1
- package/lib/temp-color-ui.js +156 -156
- package/lib/temp-color-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/pkg/Base/Button.vue.d.ts +3 -3
package/lib/css/main.css
CHANGED
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-image:url(https://cdn.nlark.com/yuque/0/2019/png/280374/1552996358352-assets/web-upload/cc3b1807-c684-4b83-8f80-80e5b8a6b975.png);background-size:cover;background-position:center;position:relative;z-index:1}.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-
|
|
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-image:url(https://cdn.nlark.com/yuque/0/2019/png/280374/1552996358352-assets/web-upload/cc3b1807-c684-4b83-8f80-80e5b8a6b975.png);background-size:cover;background-position:center;position:relative;z-index:1}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-c7a21a1c]{width:100%;display:block;list-style:none;background-color:#fff;padding:2px 5px;margin:0;box-shadow:0 4px 8px #0000001a}.string-list li[data-v-c7a21a1c]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-c7a21a1c]:last-child{border-bottom:none}.string-list li[data-v-c7a21a1c]:hover{background-color:#f0f0f0;color:#333;cursor:pointer;border-radius:4px}.emoji-panel[data-v-e9a4aa4d]{background-color:#fff;border:1px solid #ccc;padding:10px;display:flex;flex-wrap:wrap;z-index:1000;height:280px;overflow-y:auto}.emoji-panel span[data-v-e9a4aa4d]{cursor:pointer;font-size:24px;margin:5px}.function-panel-container[data-v-1fefca20]{background-color:#fff;box-sizing:border-box;width:100vw;border-top:1px solid #66666631}.function-panel[data-v-1fefca20]{display:flex;flex-wrap:wrap;background-color:#fff;padding:10px;z-index:1000;max-width:360px;gap:18px;margin:0 auto}.function-item[data-v-1fefca20]{display:flex;flex-direction:column;align-items:center;margin:10px 0;cursor:pointer;width:70px;height:70px;background-color:#f9f9f9;border-radius:10px;justify-content:center;transition:background-color .3s}.function-item[data-v-1fefca20]:hover{background-color:#e6e6e6}.function-item span[data-v-1fefca20]{margin-top:5px;font-size:14px;color:#333;text-align:center}input[data-v-7b4ca731]:focus{outline:none}.tab-content{padding:10px 16px;background:#fff}canvas[data-v-022c82bd]{margin:0 auto}
|
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
|
-
var ye = (t, e,
|
|
3
|
-
var j = (t, e,
|
|
4
|
-
import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as m, renderList as $, normalizeClass as u, normalizeStyle as I, createElementVNode as n, toDisplayString as r, createTextVNode as y, createCommentVNode as p, pushScopeId as ke, popScopeId as Ie, computed as x, renderSlot as w, createBlock as S, ref as V, withModifiers as
|
|
2
|
+
var ye = (t, e, c) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: c }) : t[e] = c;
|
|
3
|
+
var j = (t, e, c) => (ye(t, typeof e != "symbol" ? e + "" : e, c), c);
|
|
4
|
+
import { defineComponent as g, openBlock as o, createElementBlock as a, Fragment as m, renderList as $, normalizeClass as u, normalizeStyle as I, createElementVNode as n, toDisplayString as r, createTextVNode as y, createCommentVNode as p, pushScopeId as ke, popScopeId as Ie, computed as x, renderSlot as w, createBlock as S, ref as V, withModifiers as ie, unref as we, onMounted as ae, resolveComponent as be, createVNode as E, onUnmounted as Ce, withKeys as xe, withDirectives as re, vShow as ue, provide as ge, watch as Te, inject as de, withCtx as ne } from "vue";
|
|
5
5
|
const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve = { class: "nav-name" }, ze = {
|
|
6
6
|
name: "TNavCard"
|
|
7
7
|
}, P = /* @__PURE__ */ g({
|
|
@@ -10,7 +10,7 @@ const Be = { class: "nav-list" }, je = ["url"], Se = { class: "nav-title" }, Ve
|
|
|
10
10
|
items: {}
|
|
11
11
|
},
|
|
12
12
|
setup(t) {
|
|
13
|
-
return (e,
|
|
13
|
+
return (e, c) => (o(), a("div", Be, [
|
|
14
14
|
(o(!0), a(m, null, $(e.items, (s, l) => (o(), a("div", {
|
|
15
15
|
"hover-class": "none",
|
|
16
16
|
url: "/pages/basics/" + s.name,
|
|
@@ -56,7 +56,7 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
|
|
|
56
56
|
}) }
|
|
57
57
|
},
|
|
58
58
|
setup(t) {
|
|
59
|
-
return (e,
|
|
59
|
+
return (e, c) => (o(), a("div", {
|
|
60
60
|
class: u(["cu-card article", e.isCard ? "" : "no-card"])
|
|
61
61
|
}, [
|
|
62
62
|
n("div", qe, [
|
|
@@ -96,15 +96,15 @@ const pe = (t) => (ke("data-v-bbdb83ff"), t = t(), Ie(), t), qe = { class: "cu-i
|
|
|
96
96
|
], 2));
|
|
97
97
|
}
|
|
98
98
|
}), A = (t, e) => {
|
|
99
|
-
const
|
|
99
|
+
const c = t.__vccOpts || t;
|
|
100
100
|
for (const [s, l] of e)
|
|
101
|
-
|
|
102
|
-
return
|
|
101
|
+
c[s] = l;
|
|
102
|
+
return c;
|
|
103
103
|
}, D = /* @__PURE__ */ A(Xe, [["__scopeId", "data-v-bbdb83ff"]]);
|
|
104
104
|
D.install = (t) => {
|
|
105
105
|
t.component(D.name, D);
|
|
106
106
|
};
|
|
107
|
-
const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, We = { class: "cu-item" }, Ye = { class: "content flex-sub" }, Ze = { class: "text-gray text-sm flex justify-between" }, et = { class: "text-content" }, tt = { class: "text-gray text-sm text-right padding" }, st = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), ot = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), nt = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), at = { class: "cu-item" }, lt = { class: "content" },
|
|
107
|
+
const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, We = { class: "cu-item" }, Ye = { class: "content flex-sub" }, Ze = { class: "text-gray text-sm flex justify-between" }, et = { class: "text-content" }, tt = { class: "text-gray text-sm text-right padding" }, st = /* @__PURE__ */ n("span", { class: "cuIcon-attentionfill margin-lr-xs" }, null, -1), ot = /* @__PURE__ */ n("span", { class: "cuIcon-appreciatefill margin-lr-xs" }, null, -1), nt = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill margin-lr-xs" }, null, -1), at = { class: "cu-item" }, lt = { class: "content" }, ct = { class: "text-grey" }, it = { class: "text-gray text-content text-df" }, rt = { class: "flex" }, ut = { class: "flex-sub" }, dt = { class: "margin-top-sm flex justify-between" }, ft = { class: "text-gray text-df" }, pt = {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "cuIcon-appreciatefill text-red"
|
|
110
110
|
}, ht = /* @__PURE__ */ n("span", { class: "cuIcon-messagefill text-gray margin-left-sm" }, null, -1), gt = { class: "text-gray margin-left-xs" }, mt = {
|
|
@@ -158,7 +158,7 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
158
158
|
] }
|
|
159
159
|
},
|
|
160
160
|
setup(t) {
|
|
161
|
-
return (e,
|
|
161
|
+
return (e, c) => (o(), a("div", null, [
|
|
162
162
|
n("div", {
|
|
163
163
|
class: u(["cu-card dynamic", e.isCard ? "is-card" : "no-card"])
|
|
164
164
|
}, [
|
|
@@ -205,15 +205,15 @@ const Je = { class: "cu-item shadow" }, Qe = { class: "cu-list menu-avatar" }, W
|
|
|
205
205
|
style: I({ backgroundImage: `url(${s.avatarUrl})` })
|
|
206
206
|
}, null, 4),
|
|
207
207
|
n("div", lt, [
|
|
208
|
-
n("div",
|
|
209
|
-
n("div",
|
|
210
|
-
(o(!0), a(m, null, $(s.replies, (
|
|
211
|
-
key:
|
|
208
|
+
n("div", ct, r(s.author), 1),
|
|
209
|
+
n("div", it, r(s.text), 1),
|
|
210
|
+
(o(!0), a(m, null, $(s.replies, (i) => (o(), a("div", {
|
|
211
|
+
key: i.id,
|
|
212
212
|
class: "bg-grey padding-sm radius margin-top-sm text-sm"
|
|
213
213
|
}, [
|
|
214
214
|
n("div", rt, [
|
|
215
|
-
n("div", null, r(
|
|
216
|
-
n("div", ut, r(
|
|
215
|
+
n("div", null, r(i.author) + ":", 1),
|
|
216
|
+
n("div", ut, r(i.text), 1)
|
|
217
217
|
])
|
|
218
218
|
]))), 128)),
|
|
219
219
|
n("div", dt, [
|
|
@@ -248,9 +248,9 @@ const _t = {
|
|
|
248
248
|
xxl: "30px",
|
|
249
249
|
xxxl: "48px"
|
|
250
250
|
};
|
|
251
|
-
function vt(t, e,
|
|
251
|
+
function vt(t, e, c = "px") {
|
|
252
252
|
if (typeof e == "number")
|
|
253
|
-
return `${t}: ${e}${
|
|
253
|
+
return `${t}: ${e}${c};`;
|
|
254
254
|
const s = _t[e];
|
|
255
255
|
return s ? `${t}: ${s};` : "";
|
|
256
256
|
}
|
|
@@ -267,10 +267,10 @@ const $t = {
|
|
|
267
267
|
size: { default: 15 }
|
|
268
268
|
},
|
|
269
269
|
setup(t) {
|
|
270
|
-
const e = t,
|
|
270
|
+
const e = t, c = x(() => bt(e.size));
|
|
271
271
|
return (s, l) => (o(), a("i", {
|
|
272
272
|
class: u(`cuIcon-${s.name} text-${s.color}`),
|
|
273
|
-
style: I(
|
|
273
|
+
style: I(c.value)
|
|
274
274
|
}, null, 6));
|
|
275
275
|
}
|
|
276
276
|
}), yt = { class: "action border-title" }, kt = { class: "action border-title" }, It = { class: "tib text-xl text-bold text-blue" }, wt = /* @__PURE__ */ n("div", {
|
|
@@ -297,7 +297,7 @@ const $t = {
|
|
|
297
297
|
center: { type: Boolean, default: !1 }
|
|
298
298
|
},
|
|
299
299
|
setup(t) {
|
|
300
|
-
return (e,
|
|
300
|
+
return (e, c) => e.mode === "default1" ? (o(), a("div", {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: u(["cu-bar bg-white", e.center !== !1 ? "justify-center" : ""])
|
|
303
303
|
}, [
|
|
@@ -381,7 +381,7 @@ const $t = {
|
|
|
381
381
|
mode: { default: "round" }
|
|
382
382
|
},
|
|
383
383
|
setup(t) {
|
|
384
|
-
return (e,
|
|
384
|
+
return (e, c) => e.url ? (o(), a("div", {
|
|
385
385
|
key: 0,
|
|
386
386
|
class: u(["cu-avatar", e.size, e.mode]),
|
|
387
387
|
style: I({ backgroundImage: `url(${e.url})` })
|
|
@@ -402,7 +402,7 @@ const $t = {
|
|
|
402
402
|
mode: { default: "round" }
|
|
403
403
|
},
|
|
404
404
|
setup(t) {
|
|
405
|
-
return (e,
|
|
405
|
+
return (e, c) => (o(), a("div", Nt, [
|
|
406
406
|
(o(!0), a(m, null, $(e.urls, (s, l) => (o(), S(z, {
|
|
407
407
|
key: l,
|
|
408
408
|
url: s,
|
|
@@ -424,7 +424,7 @@ const $t = {
|
|
|
424
424
|
shadow: { type: Boolean, default: !1 }
|
|
425
425
|
},
|
|
426
426
|
setup(t) {
|
|
427
|
-
const e = t,
|
|
427
|
+
const e = t, c = x(() => [
|
|
428
428
|
"cu-btn",
|
|
429
429
|
e.rounded ? "round" : "radius",
|
|
430
430
|
e.shadow ? "shadow" : "",
|
|
@@ -435,18 +435,18 @@ const $t = {
|
|
|
435
435
|
})), l = x(() => ({
|
|
436
436
|
marginRight: e.text ? "8px" : "0"
|
|
437
437
|
}));
|
|
438
|
-
return (
|
|
439
|
-
class: u(
|
|
438
|
+
return (i, d) => (o(), a("button", {
|
|
439
|
+
class: u(c.value),
|
|
440
440
|
style: I(s.value),
|
|
441
|
-
disabled:
|
|
441
|
+
disabled: i.disabled
|
|
442
442
|
}, [
|
|
443
|
-
w(
|
|
444
|
-
|
|
443
|
+
w(i.$slots, "default"),
|
|
444
|
+
i.icon ? (o(), a("i", {
|
|
445
445
|
key: 0,
|
|
446
|
-
class: u(`cuIcon-${
|
|
446
|
+
class: u(`cuIcon-${i.icon}`),
|
|
447
447
|
style: I(l.value)
|
|
448
448
|
}, null, 6)) : p("", !0),
|
|
449
|
-
|
|
449
|
+
i.text ? (o(), a("span", Ft, r(i.text), 1)) : p("", !0)
|
|
450
450
|
], 14, Dt));
|
|
451
451
|
}
|
|
452
452
|
}), Rt = { key: 0 }, Ut = {
|
|
@@ -462,15 +462,15 @@ const $t = {
|
|
|
462
462
|
line: { type: Boolean, default: !1 }
|
|
463
463
|
},
|
|
464
464
|
setup(t) {
|
|
465
|
-
const e = t,
|
|
465
|
+
const e = t, c = x(() => [
|
|
466
466
|
"cu-tag",
|
|
467
467
|
e.shape !== "default" ? e.shape : "",
|
|
468
468
|
e.light !== !1 ? "light" : "",
|
|
469
469
|
`${e.line !== !1 ? "line" : "bg"}-${e.bg}`,
|
|
470
470
|
e.size !== "default" ? e.size : ""
|
|
471
471
|
].join(" ")), s = x(() => ({}));
|
|
472
|
-
return (l,
|
|
473
|
-
class: u(
|
|
472
|
+
return (l, i) => (o(), a("div", {
|
|
473
|
+
class: u(c.value),
|
|
474
474
|
style: I(s.value)
|
|
475
475
|
}, [
|
|
476
476
|
w(l.$slots, "default"),
|
|
@@ -542,31 +542,31 @@ const Ot = ["onClick"], Gt = {
|
|
|
542
542
|
} }
|
|
543
543
|
},
|
|
544
544
|
setup(t) {
|
|
545
|
-
const e = t,
|
|
545
|
+
const e = t, c = (s, l) => {
|
|
546
546
|
e.onItemClick && e.onItemClick(s, l);
|
|
547
547
|
};
|
|
548
548
|
return (s, l) => (o(), a("div", {
|
|
549
549
|
class: u(["cu-bar tabbar", `bg-${s.bg} ${s.isFoot ? "foot" : ""}`])
|
|
550
550
|
}, [
|
|
551
|
-
(o(!0), a(m, null, $(s.items, (
|
|
551
|
+
(o(!0), a(m, null, $(s.items, (i, d) => (o(), a("div", {
|
|
552
552
|
key: d,
|
|
553
553
|
class: u(["action", `text-${d === s.activeIndex ? s.activeColor : s.color}`]),
|
|
554
|
-
onClick: (f) => i
|
|
554
|
+
onClick: (f) => c(i, d)
|
|
555
555
|
}, [
|
|
556
|
-
|
|
556
|
+
i.img ? (o(), a("div", Gt, [
|
|
557
557
|
n("img", {
|
|
558
|
-
src:
|
|
558
|
+
src: i.img,
|
|
559
559
|
style: { width: "21px", height: "21px" },
|
|
560
560
|
class: "radius"
|
|
561
561
|
}, null, 8, Kt),
|
|
562
|
-
|
|
562
|
+
i.badge ? (o(), a("div", Ht, r(i.badge), 1)) : p("", !0)
|
|
563
563
|
])) : (o(), a("div", {
|
|
564
564
|
key: 1,
|
|
565
|
-
class: u(`cuIcon-${
|
|
565
|
+
class: u(`cuIcon-${i.icon}`)
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
i.badge ? (o(), a("div", Xt, r(i.badge), 1)) : p("", !0)
|
|
568
568
|
], 2)),
|
|
569
|
-
n("div", null, r(
|
|
569
|
+
n("div", null, r(i.label), 1)
|
|
570
570
|
], 10, Ot))), 128))
|
|
571
571
|
], 2));
|
|
572
572
|
}
|
|
@@ -593,7 +593,7 @@ const Qt = {
|
|
|
593
593
|
avatarUrl: {}
|
|
594
594
|
},
|
|
595
595
|
setup(t) {
|
|
596
|
-
return (e,
|
|
596
|
+
return (e, c) => (o(), a("div", {
|
|
597
597
|
class: u(["cu-bar", `bg-${e.bg}`])
|
|
598
598
|
}, [
|
|
599
599
|
e.leftIcon || e.leftText ? (o(), a("div", Qt, [
|
|
@@ -623,10 +623,10 @@ G.install = (t) => {
|
|
|
623
623
|
const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss = ["placeholder"], os = { class: "action" }, ns = {
|
|
624
624
|
key: 0,
|
|
625
625
|
class: "cu-btn bg-green shadow-blur round"
|
|
626
|
-
}, as = { key: 0 }, ls = { key: 3 },
|
|
626
|
+
}, as = { key: 0 }, ls = { key: 3 }, cs = {
|
|
627
627
|
name: "TSearchBar"
|
|
628
628
|
}, K = /* @__PURE__ */ g({
|
|
629
|
-
...
|
|
629
|
+
...cs,
|
|
630
630
|
props: {
|
|
631
631
|
placeholder: { default: "" },
|
|
632
632
|
bgColor: { default: "white" },
|
|
@@ -639,12 +639,12 @@ const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss =
|
|
|
639
639
|
actionText: {}
|
|
640
640
|
},
|
|
641
641
|
setup(t) {
|
|
642
|
-
const e = V(0),
|
|
642
|
+
const e = V(0), c = (l) => {
|
|
643
643
|
e.value = l.detail.height;
|
|
644
644
|
}, s = () => {
|
|
645
645
|
e.value = 0;
|
|
646
646
|
};
|
|
647
|
-
return (l,
|
|
647
|
+
return (l, i) => (o(), a("div", {
|
|
648
648
|
class: u(["cu-bar", `bg-${l.bgColor}`, "search"])
|
|
649
649
|
}, [
|
|
650
650
|
l.avatarUrl ? (o(), a("div", {
|
|
@@ -657,7 +657,7 @@ const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss =
|
|
|
657
657
|
}, [
|
|
658
658
|
ts,
|
|
659
659
|
n("input", {
|
|
660
|
-
onFocus:
|
|
660
|
+
onFocus: c,
|
|
661
661
|
onBlur: s,
|
|
662
662
|
"adjust-position": !1,
|
|
663
663
|
type: "text",
|
|
@@ -685,7 +685,7 @@ const ts = /* @__PURE__ */ n("text", { class: "cuIcon-search" }, null, -1), ss =
|
|
|
685
685
|
K.install = (t) => {
|
|
686
686
|
t.component(K.name, K);
|
|
687
687
|
};
|
|
688
|
-
const
|
|
688
|
+
const is = {
|
|
689
689
|
key: 0,
|
|
690
690
|
class: "string-list"
|
|
691
691
|
}, rs = ["innerHTML", "onClick"], us = /* @__PURE__ */ g({
|
|
@@ -696,9 +696,9 @@ const cs = {
|
|
|
696
696
|
},
|
|
697
697
|
emits: ["send"],
|
|
698
698
|
setup(t, { emit: e }) {
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
},
|
|
699
|
+
const c = e, s = t, l = (d = "", f) => {
|
|
700
|
+
c("send", d, f);
|
|
701
|
+
}, i = x(() => s.stringArray.map((d) => {
|
|
702
702
|
if (!s.text)
|
|
703
703
|
return d.text;
|
|
704
704
|
let f = "";
|
|
@@ -706,8 +706,8 @@ const cs = {
|
|
|
706
706
|
s.text.includes(b) ? f += `<span style="color:#ff0000">${b}</span>` : f += b;
|
|
707
707
|
return f;
|
|
708
708
|
}));
|
|
709
|
-
return (d, f) => d.stringArray.length ? (o(), a("ul",
|
|
710
|
-
(o(!0), a(m, null, $(
|
|
709
|
+
return (d, f) => d.stringArray.length ? (o(), a("ul", is, [
|
|
710
|
+
(o(!0), a(m, null, $(i.value, (b, v) => (o(), a("li", {
|
|
711
711
|
key: v,
|
|
712
712
|
innerHTML: b,
|
|
713
713
|
onClick: (_) => l(d.stringArray[v].text, d.stringArray[v])
|
|
@@ -782,13 +782,13 @@ const cs = {
|
|
|
782
782
|
__name: "EmojiPanel",
|
|
783
783
|
emits: ["addEmoji"],
|
|
784
784
|
setup(t, { emit: e }) {
|
|
785
|
-
const
|
|
786
|
-
|
|
785
|
+
const c = e, s = (l) => {
|
|
786
|
+
c("addEmoji", l);
|
|
787
787
|
};
|
|
788
|
-
return (l,
|
|
788
|
+
return (l, i) => (o(), a("div", {
|
|
789
789
|
class: "emoji-panel",
|
|
790
790
|
ref: "emojiPanel",
|
|
791
|
-
onClick:
|
|
791
|
+
onClick: i[0] || (i[0] = ie(() => {
|
|
792
792
|
}, ["stop"]))
|
|
793
793
|
}, [
|
|
794
794
|
(o(!0), a(m, null, $(we(fs), (d) => (o(), a("span", {
|
|
@@ -805,7 +805,7 @@ const cs = {
|
|
|
805
805
|
setup(t) {
|
|
806
806
|
const e = V(null);
|
|
807
807
|
return ae(() => {
|
|
808
|
-
}), (
|
|
808
|
+
}), (c, s) => {
|
|
809
809
|
const l = be("TIcon");
|
|
810
810
|
return o(), a("div", ms, [
|
|
811
811
|
n("div", {
|
|
@@ -813,23 +813,23 @@ const cs = {
|
|
|
813
813
|
ref_key: "functionPanel",
|
|
814
814
|
ref: e
|
|
815
815
|
}, [
|
|
816
|
-
(o(!0), a(m, null, $(
|
|
816
|
+
(o(!0), a(m, null, $(c.items, (i, d) => (o(), a("div", {
|
|
817
817
|
key: d,
|
|
818
818
|
class: "function-item",
|
|
819
|
-
onClick:
|
|
819
|
+
onClick: i.event
|
|
820
820
|
}, [
|
|
821
821
|
E(l, {
|
|
822
|
-
name:
|
|
823
|
-
color:
|
|
822
|
+
name: i.icon,
|
|
823
|
+
color: i.color,
|
|
824
824
|
size: 26
|
|
825
825
|
}, null, 8, ["name", "color"]),
|
|
826
|
-
n("span", null, r(
|
|
826
|
+
n("span", null, r(i.text), 1)
|
|
827
827
|
], 8, _s))), 128))
|
|
828
828
|
], 512)
|
|
829
829
|
]);
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
|
-
}), bs = /* @__PURE__ */ A(vs, [["__scopeId", "data-v-
|
|
832
|
+
}), bs = /* @__PURE__ */ A(vs, [["__scopeId", "data-v-1fefca20"]]), $s = { class: "cu-bar input" }, ys = {
|
|
833
833
|
key: 0,
|
|
834
834
|
class: "action"
|
|
835
835
|
}, ks = {
|
|
@@ -848,21 +848,21 @@ const cs = {
|
|
|
848
848
|
},
|
|
849
849
|
emits: ["update:modelValue", "send"],
|
|
850
850
|
setup(t, { emit: e }) {
|
|
851
|
-
const
|
|
852
|
-
|
|
851
|
+
const c = V(0), s = V(!1), l = V(!1), i = e, d = t, f = (h) => {
|
|
852
|
+
c.value = h.detail.height;
|
|
853
853
|
}, b = () => {
|
|
854
|
-
|
|
854
|
+
c.value = 0;
|
|
855
855
|
}, v = (h = "", C) => {
|
|
856
|
-
h ?
|
|
856
|
+
h ? i("send", h, C) : i("send", d.modelValue), i("update:modelValue", ""), s.value = !1;
|
|
857
857
|
}, _ = () => {
|
|
858
|
-
s.value = !s.value;
|
|
858
|
+
l.value = !1, s.value = !s.value;
|
|
859
859
|
}, k = () => {
|
|
860
|
-
l.value = !l.value;
|
|
860
|
+
s.value = !1, l.value = !l.value;
|
|
861
861
|
}, T = (h) => {
|
|
862
|
-
|
|
862
|
+
i("update:modelValue", d.modelValue + h);
|
|
863
863
|
}, B = (h) => {
|
|
864
864
|
const C = h.target;
|
|
865
|
-
|
|
865
|
+
i("update:modelValue", C.value);
|
|
866
866
|
};
|
|
867
867
|
return ae(() => {
|
|
868
868
|
}), Ce(() => {
|
|
@@ -898,12 +898,12 @@ const cs = {
|
|
|
898
898
|
n("div", ws, [
|
|
899
899
|
n("text", {
|
|
900
900
|
class: u(`cuIcon-${h.rightIcon} text-grey`),
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: ie(_, ["stop"])
|
|
902
902
|
}, null, 2),
|
|
903
903
|
h.functionItems && h.functionItems.length > 0 ? (o(), a("text", {
|
|
904
904
|
key: 0,
|
|
905
905
|
class: u("cuIcon-roundaddfill text-grey"),
|
|
906
|
-
onClick:
|
|
906
|
+
onClick: ie(k, ["stop"])
|
|
907
907
|
})) : p("", !0)
|
|
908
908
|
]),
|
|
909
909
|
n("button", {
|
|
@@ -919,7 +919,7 @@ const cs = {
|
|
|
919
919
|
])
|
|
920
920
|
], 64));
|
|
921
921
|
}
|
|
922
|
-
}), H = /* @__PURE__ */ A(xs, [["__scopeId", "data-v-
|
|
922
|
+
}), H = /* @__PURE__ */ A(xs, [["__scopeId", "data-v-7b4ca731"]]);
|
|
923
923
|
H.install = (t) => {
|
|
924
924
|
t.component(H.name, H);
|
|
925
925
|
};
|
|
@@ -940,18 +940,18 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
940
940
|
},
|
|
941
941
|
emits: ["update:modelValue", "select"],
|
|
942
942
|
setup(t, { emit: e }) {
|
|
943
|
-
const
|
|
944
|
-
|
|
943
|
+
const c = t, s = e, l = V([]), i = V(c.modelValue), d = (_, k) => {
|
|
944
|
+
i.value = _, s("update:modelValue", _), s("select", k);
|
|
945
945
|
};
|
|
946
|
-
ge("registerTab", (_) => (l.value.push(_), l.value.length - 1)), ge("activeTab",
|
|
947
|
-
const b = x(() =>
|
|
946
|
+
ge("registerTab", (_) => (l.value.push(_), l.value.length - 1)), ge("activeTab", i);
|
|
947
|
+
const b = x(() => c.center !== !1 ? "justify-content:center;" : `justify-content:${c.mode}`), v = x(() => (_) => {
|
|
948
948
|
let k = [];
|
|
949
|
-
return
|
|
949
|
+
return i.value === _ && (k.push(`text-${c.color}`), c.bold !== !1 && k.push("text-bold"), c.line !== !1 && k.push("cur")), k;
|
|
950
950
|
});
|
|
951
951
|
return Te(
|
|
952
|
-
() =>
|
|
952
|
+
() => c.modelValue,
|
|
953
953
|
(_) => {
|
|
954
|
-
|
|
954
|
+
i.value = _;
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
immediate: !0
|
|
@@ -970,14 +970,14 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
970
970
|
}, [
|
|
971
971
|
T.icon ? (o(), a("i", {
|
|
972
972
|
key: 0,
|
|
973
|
-
class: u(`cuIcon-${T.icon} text-${
|
|
973
|
+
class: u(`cuIcon-${T.icon} text-${i.value === B ? _.color : T.iconColor}`)
|
|
974
974
|
}, null, 2)) : p("", !0),
|
|
975
975
|
y(" " + r(T.label), 1)
|
|
976
976
|
], 10, Ts))), 128))
|
|
977
977
|
], 6),
|
|
978
978
|
n("div", Bs, [
|
|
979
979
|
w(_.$slots, "default", {
|
|
980
|
-
tab: l.value[
|
|
980
|
+
tab: l.value[i.value]
|
|
981
981
|
})
|
|
982
982
|
])
|
|
983
983
|
], 2));
|
|
@@ -992,15 +992,15 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
992
992
|
iconColor: { default: "black" }
|
|
993
993
|
},
|
|
994
994
|
setup(t) {
|
|
995
|
-
const e = t,
|
|
995
|
+
const e = t, c = de(
|
|
996
996
|
"registerTab"
|
|
997
|
-
), s = de("activeTab"), l = V(null),
|
|
997
|
+
), s = de("activeTab"), l = V(null), i = x(() => (s == null ? void 0 : s.value) === l.value), d = x(() => ({
|
|
998
998
|
label: e.label,
|
|
999
999
|
icon: e.icon,
|
|
1000
1000
|
iconColor: e.iconColor
|
|
1001
1001
|
}));
|
|
1002
1002
|
return ae(() => {
|
|
1003
|
-
|
|
1003
|
+
c && (l.value = c({
|
|
1004
1004
|
label: e.label,
|
|
1005
1005
|
icon: e.icon,
|
|
1006
1006
|
iconColor: e.iconColor
|
|
@@ -1009,7 +1009,7 @@ const Ts = ["onClick"], Bs = { class: "tab-content" }, js = {
|
|
|
1009
1009
|
w(f.$slots, "default"),
|
|
1010
1010
|
w(f.$slots, "custom", { tab: d.value })
|
|
1011
1011
|
], 512)), [
|
|
1012
|
-
[ue,
|
|
1012
|
+
[ue, i.value]
|
|
1013
1013
|
]);
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
@@ -1121,11 +1121,11 @@ const qs = ["onClick"], Es = {
|
|
|
1121
1121
|
routeFn: { type: Function, default: void 0 }
|
|
1122
1122
|
},
|
|
1123
1123
|
setup(t) {
|
|
1124
|
-
const e = t,
|
|
1124
|
+
const e = t, c = zs(), s = (l) => {
|
|
1125
1125
|
if (l.path) {
|
|
1126
1126
|
e.routeFn ? e.routeFn().push({
|
|
1127
1127
|
path: l.path
|
|
1128
|
-
}) :
|
|
1128
|
+
}) : c.push({
|
|
1129
1129
|
path: l.path
|
|
1130
1130
|
});
|
|
1131
1131
|
return;
|
|
@@ -1135,7 +1135,7 @@ const qs = ["onClick"], Es = {
|
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
1137
|
};
|
|
1138
|
-
return (l,
|
|
1138
|
+
return (l, i) => (o(), a("div", {
|
|
1139
1139
|
class: u(["cu-list grid", ["col-" + l.gridCol, l.gridBorder ? "" : "no-border"]])
|
|
1140
1140
|
}, [
|
|
1141
1141
|
(o(!0), a(m, null, $(l.cuIconList, (d, f) => (o(), a("div", {
|
|
@@ -1245,15 +1245,15 @@ const Ns = { class: "content" }, Ps = ["src", "alt"], Ds = { class: "text-grey"
|
|
|
1245
1245
|
menuCard: { type: Boolean, default: !1 }
|
|
1246
1246
|
},
|
|
1247
1247
|
setup(t) {
|
|
1248
|
-
const e = (
|
|
1249
|
-
|
|
1248
|
+
const e = (c) => {
|
|
1249
|
+
c && c();
|
|
1250
1250
|
};
|
|
1251
|
-
return (
|
|
1252
|
-
class: u(["cu-list menu", [
|
|
1251
|
+
return (c, s) => (o(), a("div", {
|
|
1252
|
+
class: u(["cu-list menu", [c.menuBorder ? "sm-border" : "", c.menuCard ? "card-menu" : ""]])
|
|
1253
1253
|
}, [
|
|
1254
|
-
(o(!0), a(m, null, $(
|
|
1255
|
-
key:
|
|
1256
|
-
class: u(["cu-item",
|
|
1254
|
+
(o(!0), a(m, null, $(c.menuItems, (l, i) => (o(), a("div", {
|
|
1255
|
+
key: i,
|
|
1256
|
+
class: u(["cu-item", c.menuArrow ? "arrow" : ""])
|
|
1257
1257
|
}, [
|
|
1258
1258
|
n("div", Ns, [
|
|
1259
1259
|
l.icon ? (o(), S(M, {
|
|
@@ -1339,47 +1339,47 @@ const Gs = {
|
|
|
1339
1339
|
},
|
|
1340
1340
|
setup(t) {
|
|
1341
1341
|
const e = t;
|
|
1342
|
-
return (
|
|
1343
|
-
var
|
|
1342
|
+
return (c, s) => {
|
|
1343
|
+
var i;
|
|
1344
1344
|
const l = be("TIcon");
|
|
1345
1345
|
return o(), a("div", {
|
|
1346
|
-
class: u(["cu-item", { grayscale:
|
|
1347
|
-
onClick: s[0] || (s[0] = (d) =>
|
|
1346
|
+
class: u(["cu-item", { grayscale: c.isDisconnected, cur: c.isCurrent }]),
|
|
1347
|
+
onClick: s[0] || (s[0] = (d) => c.event(e))
|
|
1348
1348
|
}, [
|
|
1349
1349
|
n("div", {
|
|
1350
|
-
class: u(["cu-avatar",
|
|
1351
|
-
style: I({ backgroundImage: `url(${
|
|
1350
|
+
class: u(["cu-avatar", c.userinfo.avatarShape, "lg", `bg-${c.avatarBg}`]),
|
|
1351
|
+
style: I({ backgroundImage: `url(${c.userinfo.avatar})` })
|
|
1352
1352
|
}, [
|
|
1353
|
-
(
|
|
1353
|
+
(i = c.userinfo) != null && i.avatar ? p("", !0) : (o(), S(l, {
|
|
1354
1354
|
key: 0,
|
|
1355
|
-
name:
|
|
1355
|
+
name: c.avatarName,
|
|
1356
1356
|
size: 36,
|
|
1357
1357
|
color: "white"
|
|
1358
1358
|
}, null, 8, ["name"])),
|
|
1359
|
-
|
|
1359
|
+
c.badge ? (o(), a("div", Gs, r(c.badge), 1)) : p("", !0)
|
|
1360
1360
|
], 6),
|
|
1361
1361
|
n("div", Ks, [
|
|
1362
1362
|
n("div", Hs, [
|
|
1363
|
-
n("div", Xs, r(
|
|
1364
|
-
|
|
1363
|
+
n("div", Xs, r(c.userinfo.name), 1),
|
|
1364
|
+
c.userinfo.tag ? (o(), a("div", {
|
|
1365
1365
|
key: 0,
|
|
1366
|
-
class: u(["cu-tag", "round", `bg-${
|
|
1367
|
-
}, r(
|
|
1366
|
+
class: u(["cu-tag", "round", `bg-${c.userinfo.tagColor}`, "sm"])
|
|
1367
|
+
}, r(c.userinfo.tag), 3)) : p("", !0)
|
|
1368
1368
|
]),
|
|
1369
1369
|
n("div", Js, [
|
|
1370
1370
|
n("div", Qs, [
|
|
1371
|
-
w(
|
|
1371
|
+
w(c.$slots, "default")
|
|
1372
1372
|
])
|
|
1373
1373
|
])
|
|
1374
1374
|
]),
|
|
1375
1375
|
n("div", Ws, [
|
|
1376
|
-
n("div", Ys, r(
|
|
1377
|
-
|
|
1376
|
+
n("div", Ys, r(c.time), 1),
|
|
1377
|
+
c.unread ? (o(), a("div", {
|
|
1378
1378
|
key: 0,
|
|
1379
|
-
class: u(["cu-tag", "round", `bg-${
|
|
1380
|
-
}, r(
|
|
1379
|
+
class: u(["cu-tag", "round", `bg-${c.unreadColor}`, "sm"])
|
|
1380
|
+
}, r(c.unread), 3)) : c.icon ? (o(), a("div", {
|
|
1381
1381
|
key: 1,
|
|
1382
|
-
class: u(
|
|
1382
|
+
class: u(c.iconClass)
|
|
1383
1383
|
}, null, 2)) : p("", !0)
|
|
1384
1384
|
])
|
|
1385
1385
|
], 2);
|
|
@@ -1393,7 +1393,7 @@ const Gs = {
|
|
|
1393
1393
|
items: {}
|
|
1394
1394
|
},
|
|
1395
1395
|
setup(t) {
|
|
1396
|
-
return (e,
|
|
1396
|
+
return (e, c) => (o(), a("div", eo, [
|
|
1397
1397
|
(o(!0), a(m, null, $(e.items, (s, l) => (o(), S(fe, {
|
|
1398
1398
|
"avatar-name": s.avatarName,
|
|
1399
1399
|
"avatar-bg": s.avatarBg,
|
|
@@ -1428,7 +1428,7 @@ const so = { class: "cu-chat" }, oo = {
|
|
|
1428
1428
|
}, no = {
|
|
1429
1429
|
key: 1,
|
|
1430
1430
|
class: "cu-info"
|
|
1431
|
-
}, ao = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), lo = { class: "main" },
|
|
1431
|
+
}, ao = /* @__PURE__ */ n("text", { class: "cuIcon-roundclosefill text-red" }, null, -1), lo = { class: "main" }, co = ["src"], io = {
|
|
1432
1432
|
key: 2,
|
|
1433
1433
|
class: "content shadow"
|
|
1434
1434
|
}, ro = /* @__PURE__ */ n("text", { class: "cuIcon-sound text-xxl padding-right-xl" }, null, -1), uo = { class: "action text-bold text-grey" }, fo = {
|
|
@@ -1443,7 +1443,7 @@ const so = { class: "cu-chat" }, oo = {
|
|
|
1443
1443
|
messages: {}
|
|
1444
1444
|
},
|
|
1445
1445
|
setup(t) {
|
|
1446
|
-
return (e,
|
|
1446
|
+
return (e, c) => (o(), a("div", so, [
|
|
1447
1447
|
(o(!0), a(m, null, $(e.messages, (s) => (o(), a("div", {
|
|
1448
1448
|
key: s.id,
|
|
1449
1449
|
class: u(["cu-item", { self: s.self }])
|
|
@@ -1470,7 +1470,7 @@ const so = { class: "cu-chat" }, oo = {
|
|
|
1470
1470
|
src: s.content,
|
|
1471
1471
|
class: "radius",
|
|
1472
1472
|
style: { "max-width": "100%" }
|
|
1473
|
-
}, null, 8,
|
|
1473
|
+
}, null, 8, co)) : s.type === "audio" ? (o(), a("div", io, [
|
|
1474
1474
|
ro,
|
|
1475
1475
|
n("div", uo, r(s.content), 1)
|
|
1476
1476
|
])) : s.type === "location" ? (o(), a("div", fo, [
|
|
@@ -1512,7 +1512,7 @@ const vo = { class: "cu-time" }, bo = {
|
|
|
1512
1512
|
function e(s) {
|
|
1513
1513
|
return s || "cyan";
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function c(s) {
|
|
1516
1516
|
switch (s.status) {
|
|
1517
1517
|
case "past":
|
|
1518
1518
|
return `text-green cuIcon-${s.icon || "roundcheckfill"}`;
|
|
@@ -1525,16 +1525,16 @@ const vo = { class: "cu-time" }, bo = {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
return (s, l) => (o(), a("div", null, [
|
|
1528
|
-
(o(!0), a(m, null, $(s.items, (
|
|
1528
|
+
(o(!0), a(m, null, $(s.items, (i, d) => (o(), a("div", {
|
|
1529
1529
|
key: d,
|
|
1530
1530
|
class: "cu-timeline"
|
|
1531
1531
|
}, [
|
|
1532
|
-
n("div", vo, r(
|
|
1533
|
-
(o(!0), a(m, null, $(
|
|
1532
|
+
n("div", vo, r(i.date), 1),
|
|
1533
|
+
(o(!0), a(m, null, $(i.items, (f) => {
|
|
1534
1534
|
var b, v, _;
|
|
1535
1535
|
return o(), a("div", {
|
|
1536
1536
|
key: f.key,
|
|
1537
|
-
class: u(["cu-item",
|
|
1537
|
+
class: u(["cu-item", c(f)])
|
|
1538
1538
|
}, [
|
|
1539
1539
|
n("div", {
|
|
1540
1540
|
class: u(["content", `bg-${f.bg || "gray"}`, "shadow-blur"])
|
|
@@ -1587,18 +1587,18 @@ const yo = { class: "bg-white padding" }, ko = ["data-index"], Io = {
|
|
|
1587
1587
|
},
|
|
1588
1588
|
emits: ["update:modelValue"],
|
|
1589
1589
|
setup(t, { emit: e }) {
|
|
1590
|
-
return (
|
|
1590
|
+
return (c, s) => (o(), a("div", yo, [
|
|
1591
1591
|
n("div", {
|
|
1592
|
-
class: u(["cu-steps", { "scroll-x":
|
|
1592
|
+
class: u(["cu-steps", { "scroll-x": c.scrollX }])
|
|
1593
1593
|
}, [
|
|
1594
|
-
(o(!0), a(m, null, $(
|
|
1595
|
-
class: u(["cu-item",
|
|
1596
|
-
key:
|
|
1594
|
+
(o(!0), a(m, null, $(c.steps, (l, i) => (o(), a("div", {
|
|
1595
|
+
class: u(["cu-item", i > c.modelValue ? "" : `text-${c.color}`]),
|
|
1596
|
+
key: i
|
|
1597
1597
|
}, [
|
|
1598
1598
|
n("text", {
|
|
1599
1599
|
class: u(l.cuIcon ? "cuIcon-" + l.cuIcon : "num"),
|
|
1600
|
-
"data-index":
|
|
1601
|
-
}, r(l.cuIcon ? "" :
|
|
1600
|
+
"data-index": i + 1
|
|
1601
|
+
}, r(l.cuIcon ? "" : i + 1), 11, ko),
|
|
1602
1602
|
y(" " + r(l.name), 1)
|
|
1603
1603
|
], 2))), 128))
|
|
1604
1604
|
], 2)
|
|
@@ -1620,10 +1620,10 @@ const wo = { class: "cu-dialog" }, Co = { class: "cu-bar bg-white justify-end pa
|
|
|
1620
1620
|
},
|
|
1621
1621
|
emits: ["update:modelValue"],
|
|
1622
1622
|
setup(t, { emit: e }) {
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1623
|
+
const c = e, s = () => {
|
|
1624
|
+
c("update:modelValue", !1);
|
|
1625
1625
|
};
|
|
1626
|
-
return (l,
|
|
1626
|
+
return (l, i) => (o(), a("div", {
|
|
1627
1627
|
class: u(["cu-modal", l.modelValue ? "show" : ""])
|
|
1628
1628
|
}, [
|
|
1629
1629
|
n("div", wo, [
|
|
@@ -1658,7 +1658,7 @@ const Vo = { class: "loading-animation" }, zo = {
|
|
|
1658
1658
|
},
|
|
1659
1659
|
setup(t) {
|
|
1660
1660
|
class e {
|
|
1661
|
-
constructor(
|
|
1661
|
+
constructor(i, d, f) {
|
|
1662
1662
|
j(this, "radius");
|
|
1663
1663
|
j(this, "x");
|
|
1664
1664
|
j(this, "y");
|
|
@@ -1667,21 +1667,21 @@ const Vo = { class: "loading-animation" }, zo = {
|
|
|
1667
1667
|
j(this, "accel");
|
|
1668
1668
|
j(this, "decay");
|
|
1669
1669
|
j(this, "life");
|
|
1670
|
-
this.radius = d, this.x =
|
|
1670
|
+
this.radius = d, this.x = i.x, this.y = i.y, this.angle = i.angle, this.speed = i.speed, this.accel = i.accel, this.decay = f, this.life = 1;
|
|
1671
1671
|
}
|
|
1672
|
-
step(
|
|
1673
|
-
this.speed += this.accel, this.x += Math.cos(this.angle) * this.speed, this.y += Math.sin(this.angle) * this.speed, this.angle += Math.PI / 64, this.accel *= 1.01, this.life -= this.decay, this.life <= 0 && d.splice(
|
|
1672
|
+
step(i, d) {
|
|
1673
|
+
this.speed += this.accel, this.x += Math.cos(this.angle) * this.speed, this.y += Math.sin(this.angle) * this.speed, this.angle += Math.PI / 64, this.accel *= 1.01, this.life -= this.decay, this.life <= 0 && d.splice(i, 1);
|
|
1674
1674
|
}
|
|
1675
|
-
draw(
|
|
1676
|
-
|
|
1675
|
+
draw(i, d, f, b) {
|
|
1676
|
+
i.fillStyle = i.strokeStyle = `hsla(${d + this.life * 120}, 100%, 60%, ${this.life})`, i.beginPath(), f[b - 1] && (i.moveTo(this.x, this.y), i.lineTo(f[b - 1].x, f[b - 1].y)), i.stroke(), i.beginPath(), i.arc(
|
|
1677
1677
|
this.x,
|
|
1678
1678
|
this.y,
|
|
1679
1679
|
Math.max(1e-3, this.life * this.radius),
|
|
1680
1680
|
0,
|
|
1681
1681
|
Math.PI * 2
|
|
1682
|
-
),
|
|
1682
|
+
), i.fill();
|
|
1683
1683
|
const v = Math.random() * 1.25;
|
|
1684
|
-
|
|
1684
|
+
i.fillRect(
|
|
1685
1685
|
~~(this.x + (Math.random() - 0.5) * 35 * this.life),
|
|
1686
1686
|
~~(this.y + (Math.random() - 0.5) * 35 * this.life),
|
|
1687
1687
|
v,
|
|
@@ -1689,20 +1689,20 @@ const Vo = { class: "loading-animation" }, zo = {
|
|
|
1689
1689
|
);
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1692
|
+
const c = t, s = V(null);
|
|
1693
1693
|
return ae(() => {
|
|
1694
1694
|
if (!s.value)
|
|
1695
1695
|
return;
|
|
1696
|
-
const l = s.value.getContext("2d"), { width:
|
|
1697
|
-
s.value.width =
|
|
1698
|
-
const _ =
|
|
1696
|
+
const l = s.value.getContext("2d"), { width: i, height: d, particleRadius: f, particleDecay: b } = c, v = window.devicePixelRatio || 1;
|
|
1697
|
+
s.value.width = i * v, s.value.height = d * v, s.value.style.width = i + "px", s.value.style.height = d + "px", l.scale(v, v);
|
|
1698
|
+
const _ = i * 0.5, k = [];
|
|
1699
1699
|
let T = 0, B = 0, h = 0;
|
|
1700
1700
|
l.globalCompositeOperation = "lighter";
|
|
1701
1701
|
function C() {
|
|
1702
1702
|
k.push(
|
|
1703
1703
|
new e(
|
|
1704
1704
|
{
|
|
1705
|
-
x:
|
|
1705
|
+
x: i / 2 + Math.cos(h / 20) * _ / 2,
|
|
1706
1706
|
y: d / 2 + Math.sin(h / 20) * _ / 2,
|
|
1707
1707
|
angle: B + T,
|
|
1708
1708
|
speed: 0,
|
|
@@ -1711,20 +1711,20 @@ const Vo = { class: "loading-animation" }, zo = {
|
|
|
1711
1711
|
f,
|
|
1712
1712
|
b
|
|
1713
1713
|
)
|
|
1714
|
-
), k.forEach((le,
|
|
1715
|
-
le.step(
|
|
1714
|
+
), k.forEach((le, ce) => {
|
|
1715
|
+
le.step(ce, k);
|
|
1716
1716
|
}), B += Math.PI / 2, T += Math.PI / 2;
|
|
1717
1717
|
}
|
|
1718
1718
|
function N() {
|
|
1719
|
-
l.clearRect(0, 0,
|
|
1720
|
-
le.draw(l, h, k,
|
|
1719
|
+
l.clearRect(0, 0, i, d), k.forEach((le, ce) => {
|
|
1720
|
+
le.draw(l, h, k, ce);
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
1723
|
function he() {
|
|
1724
1724
|
requestAnimationFrame(he), C(), N(), h++;
|
|
1725
1725
|
}
|
|
1726
1726
|
he();
|
|
1727
|
-
}), (l,
|
|
1727
|
+
}), (l, i) => (o(), a("div", Vo, [
|
|
1728
1728
|
n("canvas", {
|
|
1729
1729
|
ref_key: "canvas",
|
|
1730
1730
|
ref: s
|
|
@@ -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 tn=Object.defineProperty;var on=(i,e,E)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:E}):i[e]=E;var y=(i,e,E)=>(on(i,typeof e!="symbol"?e+"":e,E),E);const E={class:"nav-list"},v=["url"],ee={class:"nav-title"},te={class:"nav-name"},oe={name:"TNavCard"},C=e.defineComponent({...oe,props:{items:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(n,l)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+n.name,class:e.normalizeClass(["nav-li","bg-"+n.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((l+1)*.2+1)+"s 1"}]),key:l},[e.createElementVNode("div",ee,e.toDisplayString(n.title),1),e.createElementVNode("div",te,e.toDisplayString(n.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+n.cuIcon)},null,2)],14,v))),128))]))}});C.install=o=>{o.component(C.name,C)};const K=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),ne={class:"cu-item shadow"},le={class:"title"},ae={class:"text-cut"},se={class:"content"},ce=["src","alt"],re={class:"desc"},ie={class:"text-content"},de={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},me={class:"text-gray"},pe=K(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ge=K(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),fe=K(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ke={class:"margin-left-sm text-gray flex justify-between"},he={class:"text-grey margin-right-xs"},_e={name:"TNewCard"},ye=e.defineComponent({..._e,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,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",ne,[e.createElementVNode("div",le,[e.createElementVNode("div",ae,e.toDisplayString(t.title),1)]),e.createElementVNode("div",se,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,ce),e.createElementVNode("div",re,[e.createElementVNode("div",ie,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"cu-tag bg-red light sm round"},e.toDisplayString(n),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",me,[pe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ge,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),fe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ke,[e.createElementVNode("div",he,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),u=(o,t)=>{const s=o.__vccOpts||o;for(const[n,l]of t)s[n]=l;return s},V=u(ye,[["__scopeId","data-v-bbdb83ff"]]);V.install=o=>{o.component(V.name,V)};const Be={class:"cu-item shadow"},be={class:"cu-list menu-avatar"},Ee={class:"cu-item"},$e={class:"content flex-sub"},ue={class:"text-gray text-sm flex justify-between"},Ce={class:"text-content"},Ve={class:"text-gray text-sm text-right padding"},Ne=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Ie=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Se=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),we={class:"cu-item"},ze={class:"content"},Te={class:"text-grey"},De={class:"text-gray text-content text-df"},xe={class:"flex"},je={class:"flex-sub"},Fe={class:"margin-top-sm flex justify-between"},Le={class:"text-gray text-df"},Me={key:0,class:"cuIcon-appreciatefill text-red"},qe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ae={class:"text-gray margin-left-xs"},Pe={name:"TShareCard"},N=e.defineComponent({...Pe,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,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",Be,[e.createElementVNode("div",be,[e.createElementVNode("div",Ee,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",$e,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ue,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ce,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,n=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:n},null,6))),128))],2),e.createElementVNode("div",Ve,[Ne,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),Ie,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Se,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,n=>{var l;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:n.id},[e.createElementVNode("div",we,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4),e.createElementVNode("div",ze,[e.createElementVNode("div",Te,e.toDisplayString(n.author),1),e.createElementVNode("div",De,e.toDisplayString(n.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.replies,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",xe,[e.createElementVNode("div",null,e.toDisplayString(a.author)+":",1),e.createElementVNode("div",je,e.toDisplayString(a.text),1)])]))),128)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Le,e.toDisplayString(n.date),1),e.createElementVNode("div",null,[n.likes?(e.openBlock(),e.createElementBlock("span",Me)):e.createCommentVNode("",!0),qe,e.createElementVNode("span",Ae,e.toDisplayString((l=n.replies)==null?void 0:l.length),1)])])])])])}),128))])],2)]))}});N.install=o=>{o.component(N.name,N)};const Ue={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Re(o,t,s="px"){if(typeof t=="number")return`${o}: ${t}${s};`;const n=Ue[t];return n?`${o}: ${n};`:""}function Oe(o){return Re("font-size",o)}const Ge={name:"TIcon"},$=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,s=e.computed(()=>Oe(t.size));return(n,l)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${n.name} text-${n.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},He={class:"action border-title"},Xe={class:"tib text-xl text-bold text-blue"},Je=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Qe={class:"action sub-title"},We={class:"tib text-xl text-bold text-green"},Ye=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"action title-style-3"},et={key:5,class:"cu-bar bg-white"},tt={class:"action"},ot={key:6,class:"cu-bar bg-white solid-bottom"},nt={class:"action"},lt={class:"action"},at={name:"TTitle"},I=e.defineComponent({...at,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,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",He,[e.createElementVNode("div",Xe,e.toDisplayString(t.title),1),Je])],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",Qe,[e.createElementVNode("div",We,e.toDisplayString(t.title),1),Ye])],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",Ze,[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",ve,[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",et,[e.createElementVNode("div",tt,[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",ot,[e.createElementVNode("div",nt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",lt,[e.renderSlot(t.$slots,"action")])]))}}),st={name:"TAvatar"},B=e.defineComponent({...st,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){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))}}),ct={class:"cu-avatar-group"},rt={name:"TAvatarGroup"},O=e.defineComponent({...rt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(n,l)=>(e.openBlock(),e.createBlock(B,{key:l,url:n,size:t.size},null,8,["url","size"]))),128))]))}}),it=["disabled"],dt={key:1},mt={name:"TButton"},S=e.defineComponent({...mt,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,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),n=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),l=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(a,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(n.value),disabled:a.disabled},[e.renderSlot(a.$slots,"default"),a.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${a.icon}`),style:e.normalizeStyle(l.value)},null,6)):e.createCommentVNode("",!0),a.text?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],14,it))}}),pt={key:0},gt={name:"TTag"},b=e.defineComponent({...gt,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,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(" ")),n=e.computed(()=>({}));return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(n.value)},[e.renderSlot(l.$slots,"default"),l.text?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],6))}});$.install=o=>{o.component($.name,$)},I.install=o=>{o.component(I.name,I)},B.install=o=>{o.component(B.name,B)},O.install=o=>{o.component(O.name,O)},S.install=o=>{o.component(S.name,S)},b.install=o=>{o.component(b.name,b)};const ft=["onClick"],kt={key:0,class:"cuIcon-cu-image"},ht=["src"],_t={key:0,class:"cu-tag badge"},yt={key:0,class:"cu-tag badge"},Bt={name:"TNavBar"},w=e.defineComponent({...Bt,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,s=(n,l)=>{t.onItemClick&&t.onItemClick(n,l)};return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${n.bg} ${n.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(a,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===n.activeIndex?n.activeColor:n.color}`]),onClick:r=>s(a,c)},[a.img?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("img",{src:a.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ht),a.badge?(e.openBlock(),e.createElementBlock("div",_t,e.toDisplayString(a.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${a.icon}`)},[a.badge?(e.openBlock(),e.createElementBlock("div",yt,e.toDisplayString(a.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(a.label),1)],10,ft))),128))],2))}});w.install=o=>{o.component(w.name,w)};const bt={key:0,class:"action"},Et={key:1},$t={class:"content text-bold"},ut={key:2,class:"action"},Ct={name:"TTopBar"},z=e.defineComponent({...Ct,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){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",bt,[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",Et,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",$t,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});z.install=o=>{o.component(z.name,z)};const Vt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Nt=["placeholder"],It={class:"action"},St={key:0,class:"cu-btn bg-green shadow-blur round"},wt={key:0},zt={key:3},Tt={name:"TSearchBar"},T=e.defineComponent({...Tt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),s=l=>{t.value=l.detail.height},n=()=>{t.value=0};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bgColor}`,"search"])},[l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",l.borderRadiusClass])},[Vt,e.createElementVNode("input",{onFocus:s,onBlur:n,"adjust-position":!1,type:"text",placeholder:l.placeholder,"confirm-type":"search"},null,40,Nt)],2),e.createElementVNode("div",It,[l.buttonText?(e.openBlock(),e.createElementBlock("button",St,e.toDisplayString(l.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.location?(e.openBlock(),e.createElementBlock("text",wt,e.toDisplayString(l.location),1)):e.createCommentVNode("",!0),l.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${l.locationIcon}`)},null,2)):e.createCommentVNode("",!0),l.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${l.actionIcon}`)},null,2)):e.createCommentVNode("",!0),l.actionText?(e.openBlock(),e.createElementBlock("text",zt,e.toDisplayString(l.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});T.install=o=>{o.component(T.name,T)};const Dt={key:0,class:"string-list"},xt=["innerHTML","onClick"],jt=u(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(o,{emit:t}){const s=t,n=o,l=(c="",r)=>{s("send",c,r)},a=e.computed(()=>n.stringArray.map(c=>{if(!n.text)return c.text;let r="";for(let g of c.text)n.text.includes(g)?r+=`<span style="color:#ff0000">${g}</span>`:r+=g;return r}));return(c,r)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(g,p)=>(e.openBlock(),e.createElementBlock("li",{key:p,innerHTML:g,onClick:m=>l(c.stringArray[p].text,c.stringArray[p])},null,8,xt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Ft=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Lt=["onClick"],Mt=u(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(o,{emit:t}){const s=t,n=l=>{s("addEmoji",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ft),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:r=>n(c)},e.toDisplayString(c),9,Lt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),qt={class:"function-panel-container"},At=["onClick"],Pt=u(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(o){const t=e.ref(null);return e.onMounted(()=>{}),(s,n)=>{const l=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(a,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"function-item",onClick:a.event},[e.createVNode(l,{name:a.icon,color:a.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(a.text),1)],8,At))),128))],512)])}}}),[["__scopeId","data-v-7046f462"]]),Ut={class:"cu-bar input"},Rt={key:0,class:"action"},Ot={key:1,class:"action"},Gt=["value"],Kt={class:"action"},Ht={name:"TInputBar"},Xt=e.defineComponent({...Ht,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(o,{emit:t}){const s=e.ref(0),n=e.ref(!1),l=e.ref(!1),a=t,c=o,r=d=>{s.value=d.detail.height},g=()=>{s.value=0},p=(d="",k)=>{d?a("send",d,k):a("send",c.modelValue),a("update:modelValue",""),n.value=!1},m=()=>{n.value=!n.value},f=()=>{l.value=!l.value},h=d=>{a("update:modelValue",c.modelValue+d)},_=d=>{const k=d.target;a("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(d,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(jt,{text:d.modelValue,"string-array":d.stringArray,onSend:p},null,8,["text","string-array"]),e.createElementVNode("div",Ut,[d.leftIcon?(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),d.middleIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:r,onBlur:g,onKeydown:k[0]||(k[0]=e.withKeys(G=>p(),["enter"])),onConfirm:k[1]||(k[1]=G=>p()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:d.modelValue,onInput:_},null,40,Gt),e.createElementVNode("div",Kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.rightIcon} text-grey`),onClick:e.withModifiers(m,["stop"])},null,2),d.functionItems&&d.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(f,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=G=>p())},e.toDisplayString(d.buttonText),1)]),e.withDirectives(e.createVNode(Mt,{onAddEmoji:h},null,512),[[e.vShow,n.value]]),e.withDirectives(e.createVNode(Pt,{items:d.functionItems},null,8,["items"]),[[e.vShow,l.value]])],64))}}),D=u(Xt,[["__scopeId","data-v-bfafe415"]]);D.install=o=>{o.component(D.name,D)};const Jt=["onClick"],Qt={class:"tab-content"},Wt={name:"TTabs"},x=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"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(o,{emit:t}){const s=o,n=t,l=e.ref([]),a=e.ref(s.modelValue),c=(m,f)=>{a.value=m,n("update:modelValue",m),n("select",f)},r=m=>(l.value.push(m),l.value.length-1);e.provide("registerTab",r),e.provide("activeTab",a);const g=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),p=e.computed(()=>m=>{let f=[];return a.value===m&&(f.push(`text-${s.color}`),s.bold!==!1&&f.push("text-bold"),s.line!==!1&&f.push("cur")),f});return e.watch(()=>s.modelValue,m=>{a.value=m},{immediate:!0}),(m,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(m.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${m.bg}`,`text-${m.text}`]]),style:e.normalizeStyle(g.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(h,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",p.value(_)]),key:_,onClick:d=>c(_,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${a.value===_?m.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,Jt))),128))],6),e.createElementVNode("div",Qt,[e.renderSlot(m.$slots,"default",{tab:l.value[a.value]})])],2))}}),Yt={name:"TTab"},j=e.defineComponent({...Yt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,s=e.inject("registerTab"),n=e.inject("activeTab"),l=e.ref(null),a=e.computed(()=>(n==null?void 0:n.value)===l.value),c=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(l.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,g)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:c.value})],512)),[[e.vShow,a.value]])}});x.install=o=>{o.component(x.name,x)},j.install=o=>{o.component(j.name,j)};/*!
|
|
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 tn=Object.defineProperty;var on=(i,e,E)=>e in i?tn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:E}):i[e]=E;var y=(i,e,E)=>(on(i,typeof e!="symbol"?e+"":e,E),E);const E={class:"nav-list"},v=["url"],ee={class:"nav-title"},te={class:"nav-name"},oe={name:"TNavCard"},C=e.defineComponent({...oe,props:{items:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(n,l)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+n.name,class:e.normalizeClass(["nav-li","bg-"+n.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((l+1)*.2+1)+"s 1"}]),key:l},[e.createElementVNode("div",ee,e.toDisplayString(n.title),1),e.createElementVNode("div",te,e.toDisplayString(n.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+n.cuIcon)},null,2)],14,v))),128))]))}});C.install=o=>{o.component(C.name,C)};const K=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),ne={class:"cu-item shadow"},le={class:"title"},ae={class:"text-cut"},se={class:"content"},ce=["src","alt"],re={class:"desc"},ie={class:"text-content"},de={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},me={class:"text-gray"},pe=K(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ge=K(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),fe=K(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ke={class:"margin-left-sm text-gray flex justify-between"},he={class:"text-grey margin-right-xs"},_e={name:"TNewCard"},ye=e.defineComponent({..._e,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,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",ne,[e.createElementVNode("div",le,[e.createElementVNode("div",ae,e.toDisplayString(t.title),1)]),e.createElementVNode("div",se,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,ce),e.createElementVNode("div",re,[e.createElementVNode("div",ie,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"cu-tag bg-red light sm round"},e.toDisplayString(n),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",me,[pe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ge,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),fe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ke,[e.createElementVNode("div",he,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),u=(o,t)=>{const s=o.__vccOpts||o;for(const[n,l]of t)s[n]=l;return s},V=u(ye,[["__scopeId","data-v-bbdb83ff"]]);V.install=o=>{o.component(V.name,V)};const Be={class:"cu-item shadow"},be={class:"cu-list menu-avatar"},Ee={class:"cu-item"},$e={class:"content flex-sub"},ue={class:"text-gray text-sm flex justify-between"},Ce={class:"text-content"},Ve={class:"text-gray text-sm text-right padding"},Ne=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Ie=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Se=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),we={class:"cu-item"},ze={class:"content"},Te={class:"text-grey"},De={class:"text-gray text-content text-df"},xe={class:"flex"},je={class:"flex-sub"},Fe={class:"margin-top-sm flex justify-between"},Le={class:"text-gray text-df"},Me={key:0,class:"cuIcon-appreciatefill text-red"},qe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ae={class:"text-gray margin-left-xs"},Pe={name:"TShareCard"},N=e.defineComponent({...Pe,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,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",Be,[e.createElementVNode("div",be,[e.createElementVNode("div",Ee,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",$e,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ue,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ce,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,n=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:n},null,6))),128))],2),e.createElementVNode("div",Ve,[Ne,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),Ie,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Se,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,n=>{var l;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:n.id},[e.createElementVNode("div",we,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4),e.createElementVNode("div",ze,[e.createElementVNode("div",Te,e.toDisplayString(n.author),1),e.createElementVNode("div",De,e.toDisplayString(n.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.replies,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",xe,[e.createElementVNode("div",null,e.toDisplayString(a.author)+":",1),e.createElementVNode("div",je,e.toDisplayString(a.text),1)])]))),128)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Le,e.toDisplayString(n.date),1),e.createElementVNode("div",null,[n.likes?(e.openBlock(),e.createElementBlock("span",Me)):e.createCommentVNode("",!0),qe,e.createElementVNode("span",Ae,e.toDisplayString((l=n.replies)==null?void 0:l.length),1)])])])])])}),128))])],2)]))}});N.install=o=>{o.component(N.name,N)};const Ue={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Re(o,t,s="px"){if(typeof t=="number")return`${o}: ${t}${s};`;const n=Ue[t];return n?`${o}: ${n};`:""}function Oe(o){return Re("font-size",o)}const Ge={name:"TIcon"},$=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,s=e.computed(()=>Oe(t.size));return(n,l)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${n.name} text-${n.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},He={class:"action border-title"},Xe={class:"tib text-xl text-bold text-blue"},Je=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Qe={class:"action sub-title"},We={class:"tib text-xl text-bold text-green"},Ye=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"action title-style-3"},et={key:5,class:"cu-bar bg-white"},tt={class:"action"},ot={key:6,class:"cu-bar bg-white solid-bottom"},nt={class:"action"},lt={class:"action"},at={name:"TTitle"},I=e.defineComponent({...at,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,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",He,[e.createElementVNode("div",Xe,e.toDisplayString(t.title),1),Je])],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",Qe,[e.createElementVNode("div",We,e.toDisplayString(t.title),1),Ye])],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",Ze,[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",ve,[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",et,[e.createElementVNode("div",tt,[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",ot,[e.createElementVNode("div",nt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",lt,[e.renderSlot(t.$slots,"action")])]))}}),st={name:"TAvatar"},B=e.defineComponent({...st,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){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))}}),ct={class:"cu-avatar-group"},rt={name:"TAvatarGroup"},O=e.defineComponent({...rt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(n,l)=>(e.openBlock(),e.createBlock(B,{key:l,url:n,size:t.size},null,8,["url","size"]))),128))]))}}),it=["disabled"],dt={key:1},mt={name:"TButton"},S=e.defineComponent({...mt,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,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),n=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),l=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(a,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(n.value),disabled:a.disabled},[e.renderSlot(a.$slots,"default"),a.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${a.icon}`),style:e.normalizeStyle(l.value)},null,6)):e.createCommentVNode("",!0),a.text?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],14,it))}}),pt={key:0},gt={name:"TTag"},b=e.defineComponent({...gt,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,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(" ")),n=e.computed(()=>({}));return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(n.value)},[e.renderSlot(l.$slots,"default"),l.text?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],6))}});$.install=o=>{o.component($.name,$)},I.install=o=>{o.component(I.name,I)},B.install=o=>{o.component(B.name,B)},O.install=o=>{o.component(O.name,O)},S.install=o=>{o.component(S.name,S)},b.install=o=>{o.component(b.name,b)};const ft=["onClick"],kt={key:0,class:"cuIcon-cu-image"},ht=["src"],_t={key:0,class:"cu-tag badge"},yt={key:0,class:"cu-tag badge"},Bt={name:"TNavBar"},w=e.defineComponent({...Bt,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,s=(n,l)=>{t.onItemClick&&t.onItemClick(n,l)};return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${n.bg} ${n.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(a,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===n.activeIndex?n.activeColor:n.color}`]),onClick:r=>s(a,c)},[a.img?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("img",{src:a.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ht),a.badge?(e.openBlock(),e.createElementBlock("div",_t,e.toDisplayString(a.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${a.icon}`)},[a.badge?(e.openBlock(),e.createElementBlock("div",yt,e.toDisplayString(a.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(a.label),1)],10,ft))),128))],2))}});w.install=o=>{o.component(w.name,w)};const bt={key:0,class:"action"},Et={key:1},$t={class:"content text-bold"},ut={key:2,class:"action"},Ct={name:"TTopBar"},z=e.defineComponent({...Ct,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){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",bt,[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",Et,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",$t,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});z.install=o=>{o.component(z.name,z)};const Vt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Nt=["placeholder"],It={class:"action"},St={key:0,class:"cu-btn bg-green shadow-blur round"},wt={key:0},zt={key:3},Tt={name:"TSearchBar"},T=e.defineComponent({...Tt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),s=l=>{t.value=l.detail.height},n=()=>{t.value=0};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bgColor}`,"search"])},[l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",l.borderRadiusClass])},[Vt,e.createElementVNode("input",{onFocus:s,onBlur:n,"adjust-position":!1,type:"text",placeholder:l.placeholder,"confirm-type":"search"},null,40,Nt)],2),e.createElementVNode("div",It,[l.buttonText?(e.openBlock(),e.createElementBlock("button",St,e.toDisplayString(l.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.location?(e.openBlock(),e.createElementBlock("text",wt,e.toDisplayString(l.location),1)):e.createCommentVNode("",!0),l.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${l.locationIcon}`)},null,2)):e.createCommentVNode("",!0),l.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${l.actionIcon}`)},null,2)):e.createCommentVNode("",!0),l.actionText?(e.openBlock(),e.createElementBlock("text",zt,e.toDisplayString(l.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});T.install=o=>{o.component(T.name,T)};const Dt={key:0,class:"string-list"},xt=["innerHTML","onClick"],jt=u(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(o,{emit:t}){const s=t,n=o,l=(c="",r)=>{s("send",c,r)},a=e.computed(()=>n.stringArray.map(c=>{if(!n.text)return c.text;let r="";for(let g of c.text)n.text.includes(g)?r+=`<span style="color:#ff0000">${g}</span>`:r+=g;return r}));return(c,r)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(g,p)=>(e.openBlock(),e.createElementBlock("li",{key:p,innerHTML:g,onClick:m=>l(c.stringArray[p].text,c.stringArray[p])},null,8,xt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Ft=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Lt=["onClick"],Mt=u(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(o,{emit:t}){const s=t,n=l=>{s("addEmoji",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ft),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:r=>n(c)},e.toDisplayString(c),9,Lt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),qt={class:"function-panel-container"},At=["onClick"],Pt=u(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(o){const t=e.ref(null);return e.onMounted(()=>{}),(s,n)=>{const l=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(a,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"function-item",onClick:a.event},[e.createVNode(l,{name:a.icon,color:a.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(a.text),1)],8,At))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ut={class:"cu-bar input"},Rt={key:0,class:"action"},Ot={key:1,class:"action"},Gt=["value"],Kt={class:"action"},Ht={name:"TInputBar"},Xt=e.defineComponent({...Ht,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(o,{emit:t}){const s=e.ref(0),n=e.ref(!1),l=e.ref(!1),a=t,c=o,r=d=>{s.value=d.detail.height},g=()=>{s.value=0},p=(d="",k)=>{d?a("send",d,k):a("send",c.modelValue),a("update:modelValue",""),n.value=!1},m=()=>{l.value=!1,n.value=!n.value},f=()=>{n.value=!1,l.value=!l.value},h=d=>{a("update:modelValue",c.modelValue+d)},_=d=>{const k=d.target;a("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(d,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(jt,{text:d.modelValue,"string-array":d.stringArray,onSend:p},null,8,["text","string-array"]),e.createElementVNode("div",Ut,[d.leftIcon?(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),d.middleIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:r,onBlur:g,onKeydown:k[0]||(k[0]=e.withKeys(G=>p(),["enter"])),onConfirm:k[1]||(k[1]=G=>p()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:d.modelValue,onInput:_},null,40,Gt),e.createElementVNode("div",Kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.rightIcon} text-grey`),onClick:e.withModifiers(m,["stop"])},null,2),d.functionItems&&d.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(f,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=G=>p())},e.toDisplayString(d.buttonText),1)]),e.withDirectives(e.createVNode(Mt,{onAddEmoji:h},null,512),[[e.vShow,n.value]]),e.withDirectives(e.createVNode(Pt,{items:d.functionItems},null,8,["items"]),[[e.vShow,l.value]])],64))}}),D=u(Xt,[["__scopeId","data-v-7b4ca731"]]);D.install=o=>{o.component(D.name,D)};const Jt=["onClick"],Qt={class:"tab-content"},Wt={name:"TTabs"},x=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"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(o,{emit:t}){const s=o,n=t,l=e.ref([]),a=e.ref(s.modelValue),c=(m,f)=>{a.value=m,n("update:modelValue",m),n("select",f)},r=m=>(l.value.push(m),l.value.length-1);e.provide("registerTab",r),e.provide("activeTab",a);const g=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),p=e.computed(()=>m=>{let f=[];return a.value===m&&(f.push(`text-${s.color}`),s.bold!==!1&&f.push("text-bold"),s.line!==!1&&f.push("cur")),f});return e.watch(()=>s.modelValue,m=>{a.value=m},{immediate:!0}),(m,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(m.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${m.bg}`,`text-${m.text}`]]),style:e.normalizeStyle(g.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(h,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",p.value(_)]),key:_,onClick:d=>c(_,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${a.value===_?m.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,Jt))),128))],6),e.createElementVNode("div",Qt,[e.renderSlot(m.$slots,"default",{tab:l.value[a.value]})])],2))}}),Yt={name:"TTab"},j=e.defineComponent({...Yt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,s=e.inject("registerTab"),n=e.inject("activeTab"),l=e.ref(null),a=e.computed(()=>(n==null?void 0:n.value)===l.value),c=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(l.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,g)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:c.value})],512)),[[e.vShow,a.value]])}});x.install=o=>{o.component(x.name,x)},j.install=o=>{o.component(j.name,j)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
text?: string | undefined;
|
|
3
3
|
bg?: BgColorName | undefined;
|
|
4
|
-
size?:
|
|
4
|
+
size?: "default" | "sm" | "lg" | "xl" | undefined;
|
|
5
5
|
rounded?: boolean | undefined;
|
|
6
6
|
icon?: string | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
16
16
|
text?: string | undefined;
|
|
17
17
|
bg?: BgColorName | undefined;
|
|
18
|
-
size?:
|
|
18
|
+
size?: "default" | "sm" | "lg" | "xl" | undefined;
|
|
19
19
|
rounded?: boolean | undefined;
|
|
20
20
|
icon?: string | undefined;
|
|
21
21
|
disabled?: boolean | undefined;
|
|
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
30
30
|
bg: BgColorName;
|
|
31
31
|
shadow: boolean;
|
|
32
32
|
rounded: boolean;
|
|
33
|
-
size:
|
|
33
|
+
size: "sm" | "lg" | "xl" | "default";
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
}, {}>, {
|
|
36
36
|
default?(_: {}): any;
|