vue-color-ui 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.css +1 -1
- package/lib/temp-color-ui.js +85 -82
- package/lib/temp-color-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/pkg/InputBar/index.vue.d.ts +12 -0
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav-list{display:flex;flex-wrap:wrap;padding:0 20px;justify-content:space-between}.nav-li{padding:15px;border-radius:6px;width:45%;margin:0 2.5% 20px;background-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-7267bfe2]{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-7267bfe2]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-7267bfe2]:last-child{border-bottom:none}.string-list li[data-v-7267bfe2]: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}.t-input-bar-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-size:cover;background-position:center;position:relative;z-index:1;cursor:pointer}.nav-li:after{content:"";position:absolute;z-index:-1;background-color:inherit;width:100%;height:100%;left:0;bottom:-10%;border-radius:5px;opacity:.2;transform:scale(.9)}.nav-li.cur{color:#fff;background:#5eb95e;box-shadow:2px 2px 3px #5eb95e66}.nav-title{font-size:16px;font-weight:300}.nav-title:first-letter{font-size:20px;margin-right:2px}.nav-name{font-size:14px;text-transform:Capitalize;margin-top:10px;position:relative}.nav-name:before{content:"";position:absolute;display:block;width:20px;height:3px;background:#fff;bottom:0;right:0;opacity:.5}.nav-name:after{content:"";position:absolute;display:block;width:50px;height:1px;background:#fff;bottom:0;right:20px;opacity:.3}.nav-name:first-letter{font-weight:700;font-size:18px;margin-right:1px}.nav-li text{position:absolute;right:15px;top:15px;font-size:26px;width:30px;height:30px;text-align:center;line-height:30px}.text-light{font-weight:300}@keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}@-webkit-keyframes show{0%{transform:translateY(-50px)}60%{transform:translateY(20px)}to{transform:translateY(0)}}.cu-card-cover[data-v-bbdb83ff]{width:100%}.cu-card .content img[data-v-bbdb83ff]{width:33%;object-fit:cover}.cu-card-cover{width:100%}.cu-card .content img{width:33%;object-fit:cover}.string-list[data-v-7267bfe2]{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-7267bfe2]{line-height:1.5rem;padding:8px 12px;border-bottom:1px solid #eee;transition:background-color .3s,color .3s}.string-list li[data-v-7267bfe2]:last-child{border-bottom:none}.string-list li[data-v-7267bfe2]: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}.t-input-bar-container[data-v-5c0d8d64]{display:block;width:100%}input[data-v-5c0d8d64]:focus{outline:none}.cu-bar.input[data-v-5c0d8d64]{display:flex;align-items:center;background-color:#fff}.cu-bar.input .action[data-v-5c0d8d64]{display:flex;align-items:center;justify-content:center}.cu-bar.input input[data-v-5c0d8d64]{flex:1;border:none;background:transparent}.tab-content{padding:10px 16px;background:#fff}.reply-preview[data-v-2e628864]{background-color:#f5f5f5;border-left:3px solid #0081ff;padding:4px 8px;margin:4px 0;border-radius:2px;font-size:11px;color:#666;cursor:pointer;transition:background-color .2s;max-width:100%;overflow:hidden}.reply-preview[data-v-2e628864]:hover{background-color:#eee}.reply-content[data-v-2e628864]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-label[data-v-2e628864]{color:#0081ff;font-weight:700;margin-right:5px}.loading-animation[data-v-9e8bd00f]{display:inline-flex;justify-content:center;align-items:center}canvas[data-v-9e8bd00f]{display:block;margin:0 auto;max-width:100%;max-height:100%}.slide-wrapper[data-v-8600af8d]{overflow:hidden;position:relative;width:100vw;height:100vh}.slide-list[data-v-8600af8d]{position:absolute;width:100%;transition:transform .3s ease}.slide-item[data-v-8600af8d]{position:absolute;width:100%}
|
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, createElementBlock as i, openBlock as l, Fragment as C, renderList as T, normalizeStyle as B, normalizeClass as p, createElementVNode as r, toDisplayString as u, createCommentVNode as
|
|
1
|
+
import { defineComponent as I, createElementBlock as i, openBlock as l, Fragment as C, renderList as T, normalizeStyle as B, normalizeClass as p, createElementVNode as r, toDisplayString as u, createCommentVNode as m, createTextVNode as w, pushScopeId as Pe, popScopeId as je, computed as z, renderSlot as j, createBlock as V, ref as x, withModifiers as de, unref as xe, onMounted as D, resolveComponent as Me, createVNode as L, useAttrs as Ve, onUnmounted as Be, withDirectives as ve, withKeys as Ae, vShow as _e, provide as Ie, watch as q, inject as ue, withCtx as pe, reactive as Ee, KeepAlive as Re, resolveDynamicComponent as qe } from "vue";
|
|
2
2
|
const Le = { class: "nav-list" }, Ne = ["onClick"], We = { class: "nav-title" }, Fe = { class: "nav-name" }, De = {
|
|
3
3
|
name: "TNavCard"
|
|
4
4
|
}, U = /* @__PURE__ */ I({
|
|
@@ -91,7 +91,7 @@ const $e = (e) => (Pe("data-v-bbdb83ff"), e = e(), je(), e), Ue = { class: "cu-i
|
|
|
91
91
|
r("div", ot, u(t.footerInfo.author), 1),
|
|
92
92
|
w(" " + u(t.footerInfo.timeAgo), 1)
|
|
93
93
|
])
|
|
94
|
-
])) :
|
|
94
|
+
])) : m("", !0)
|
|
95
95
|
])
|
|
96
96
|
], 2));
|
|
97
97
|
}
|
|
@@ -219,7 +219,7 @@ const at = { class: "cu-item shadow" }, rt = { class: "cu-list menu-avatar" }, i
|
|
|
219
219
|
r("div", kt, [
|
|
220
220
|
r("div", It, u(s.date), 1),
|
|
221
221
|
r("div", null, [
|
|
222
|
-
s.likes ? (l(), i("span", Ct)) :
|
|
222
|
+
s.likes ? (l(), i("span", Ct)) : m("", !0),
|
|
223
223
|
wt,
|
|
224
224
|
r("span", Tt, u((n = s.replies) == null ? void 0 : n.length), 1)
|
|
225
225
|
])
|
|
@@ -445,8 +445,8 @@ const Pt = {
|
|
|
445
445
|
key: 0,
|
|
446
446
|
class: p(`cuIcon-${o.icon}`),
|
|
447
447
|
style: B(n.value)
|
|
448
|
-
}, null, 6)) :
|
|
449
|
-
o.text ? (l(), i("span", Jt, u(o.text), 1)) :
|
|
448
|
+
}, null, 6)) : m("", !0),
|
|
449
|
+
o.text ? (l(), i("span", Jt, u(o.text), 1)) : m("", !0)
|
|
450
450
|
], 14, Kt));
|
|
451
451
|
}
|
|
452
452
|
}), Zt = { key: 0 }, es = {
|
|
@@ -474,7 +474,7 @@ const Pt = {
|
|
|
474
474
|
style: B(s.value)
|
|
475
475
|
}, [
|
|
476
476
|
j(n.$slots, "default"),
|
|
477
|
-
n.text ? (l(), i("span", Zt, u(n.text), 1)) :
|
|
477
|
+
n.text ? (l(), i("span", Zt, u(n.text), 1)) : m("", !0)
|
|
478
478
|
], 6));
|
|
479
479
|
}
|
|
480
480
|
});
|
|
@@ -559,12 +559,12 @@ const ts = ["onClick"], ss = {
|
|
|
559
559
|
style: { width: "21px", height: "21px" },
|
|
560
560
|
class: "radius"
|
|
561
561
|
}, null, 8, os),
|
|
562
|
-
o.badge ? (l(), i("div", ns, u(o.badge), 1)) :
|
|
562
|
+
o.badge ? (l(), i("div", ns, u(o.badge), 1)) : m("", !0)
|
|
563
563
|
])) : (l(), i("div", {
|
|
564
564
|
key: 1,
|
|
565
565
|
class: p(`cuIcon-${o.icon}`)
|
|
566
566
|
}, [
|
|
567
|
-
o.badge ? (l(), i("div", ls, u(o.badge), 1)) :
|
|
567
|
+
o.badge ? (l(), i("div", ls, u(o.badge), 1)) : m("", !0)
|
|
568
568
|
], 2)),
|
|
569
569
|
r("div", null, u(o.label), 1)
|
|
570
570
|
], 10, ts))), 128))
|
|
@@ -606,14 +606,14 @@ const rs = { key: 1 }, is = { class: "content text-bold" }, cs = { key: 1 }, ds
|
|
|
606
606
|
o.leftIcon ? (l(), i("text", {
|
|
607
607
|
key: 0,
|
|
608
608
|
class: p(`cuIcon-${o.leftIcon} text-${o.leftIconColor}`)
|
|
609
|
-
}, null, 2)) :
|
|
610
|
-
o.leftText ? (l(), i("span", rs, u(o.leftText), 1)) :
|
|
611
|
-
])) :
|
|
609
|
+
}, null, 2)) : m("", !0),
|
|
610
|
+
o.leftText ? (l(), i("span", rs, u(o.leftText), 1)) : m("", !0)
|
|
611
|
+
])) : m("", !0),
|
|
612
612
|
o.avatarUrl ? (l(), i("div", {
|
|
613
613
|
key: 1,
|
|
614
614
|
class: "cu-avatar round",
|
|
615
615
|
style: B({ backgroundImage: `url(${o.avatarUrl})` })
|
|
616
|
-
}, null, 4)) :
|
|
616
|
+
}, null, 4)) : m("", !0),
|
|
617
617
|
r("div", is, u(o.title), 1),
|
|
618
618
|
o.rightIcon || o.rightText ? (l(), i("div", {
|
|
619
619
|
key: 2,
|
|
@@ -623,9 +623,9 @@ const rs = { key: 1 }, is = { class: "content text-bold" }, cs = { key: 1 }, ds
|
|
|
623
623
|
o.rightIcon ? (l(), i("text", {
|
|
624
624
|
key: 0,
|
|
625
625
|
class: p(`cuIcon-${o.rightIcon} text-${o.rightIconColor}`)
|
|
626
|
-
}, null, 2)) :
|
|
627
|
-
o.rightText ? (l(), i("span", cs, u(o.rightText), 1)) :
|
|
628
|
-
])) :
|
|
626
|
+
}, null, 2)) : m("", !0),
|
|
627
|
+
o.rightText ? (l(), i("span", cs, u(o.rightText), 1)) : m("", !0)
|
|
628
|
+
])) : m("", !0)
|
|
629
629
|
], 2));
|
|
630
630
|
}
|
|
631
631
|
});
|
|
@@ -663,7 +663,7 @@ const us = /* @__PURE__ */ r("text", { class: "cuIcon-search" }, null, -1), ps =
|
|
|
663
663
|
key: 0,
|
|
664
664
|
class: "cu-avatar round",
|
|
665
665
|
style: B({ backgroundImage: `url(${n.avatarUrl})` })
|
|
666
|
-
}, null, 4)) :
|
|
666
|
+
}, null, 4)) : m("", !0),
|
|
667
667
|
r("div", {
|
|
668
668
|
class: p(["search-form", n.borderRadiusClass])
|
|
669
669
|
}, [
|
|
@@ -679,16 +679,16 @@ const us = /* @__PURE__ */ r("text", { class: "cuIcon-search" }, null, -1), ps =
|
|
|
679
679
|
], 2),
|
|
680
680
|
r("div", gs, [
|
|
681
681
|
n.buttonText ? (l(), i("button", hs, u(n.buttonText), 1)) : (l(), i(C, { key: 1 }, [
|
|
682
|
-
n.location ? (l(), i("text", fs, u(n.location), 1)) :
|
|
682
|
+
n.location ? (l(), i("text", fs, u(n.location), 1)) : m("", !0),
|
|
683
683
|
n.locationIcon ? (l(), i("text", {
|
|
684
684
|
key: 1,
|
|
685
685
|
class: p(`cuIcon-${n.locationIcon}`)
|
|
686
|
-
}, null, 2)) :
|
|
686
|
+
}, null, 2)) : m("", !0),
|
|
687
687
|
n.actionIcon ? (l(), i("text", {
|
|
688
688
|
key: 2,
|
|
689
689
|
class: p(`cuIcon-${n.actionIcon}`)
|
|
690
|
-
}, null, 2)) :
|
|
691
|
-
n.actionText ? (l(), i("text", ms, u(n.actionText), 1)) :
|
|
690
|
+
}, null, 2)) : m("", !0),
|
|
691
|
+
n.actionText ? (l(), i("text", ms, u(n.actionText), 1)) : m("", !0)
|
|
692
692
|
], 64))
|
|
693
693
|
])
|
|
694
694
|
], 2));
|
|
@@ -727,7 +727,7 @@ const vs = {
|
|
|
727
727
|
innerHTML: h,
|
|
728
728
|
onClick: (g) => n(d.stringArray[b].text, d.stringArray[b])
|
|
729
729
|
}, null, 8, _s))), 128))
|
|
730
|
-
])) :
|
|
730
|
+
])) : m("", !0);
|
|
731
731
|
}
|
|
732
732
|
}), $s = /* @__PURE__ */ A(ys, [["__scopeId", "data-v-7267bfe2"]]), ks = [
|
|
733
733
|
"😀",
|
|
@@ -889,7 +889,7 @@ const vs = {
|
|
|
889
889
|
}, Ps = {
|
|
890
890
|
key: 1,
|
|
891
891
|
class: "action"
|
|
892
|
-
}, js = ["value", "placeholder"], xs = { class: "action" }, Vs = /* @__PURE__ */ I({
|
|
892
|
+
}, js = ["adjust-position", "maxlength", "cursor-spacing", "value", "placeholder"], xs = { class: "action" }, Vs = /* @__PURE__ */ I({
|
|
893
893
|
inheritAttrs: !1,
|
|
894
894
|
name: "TInputBar",
|
|
895
895
|
__name: "index",
|
|
@@ -902,96 +902,99 @@ const vs = {
|
|
|
902
902
|
stringArray: { default: () => [] },
|
|
903
903
|
functionItems: { default: () => [] },
|
|
904
904
|
buttonBg: { default: "green" },
|
|
905
|
-
placeholder: { default: "" }
|
|
905
|
+
placeholder: { default: "" },
|
|
906
|
+
maxlength: { default: 300 },
|
|
907
|
+
adjustPosition: { type: Boolean, default: !1 },
|
|
908
|
+
cursorSpacing: { default: 10 }
|
|
906
909
|
},
|
|
907
910
|
emits: ["update:modelValue", "send"],
|
|
908
911
|
setup(e, { emit: t }) {
|
|
909
912
|
const c = Ve(), s = x(0), n = x(!1), o = x(!1), d = t, a = e, h = z(() => {
|
|
910
|
-
const
|
|
911
|
-
return c.class && (typeof c.class == "string" ?
|
|
912
|
-
}), b = z(() => [].join(" ")), g = (
|
|
913
|
-
s.value =
|
|
913
|
+
const f = [];
|
|
914
|
+
return c.class && (typeof c.class == "string" ? f.push(c.class) : Array.isArray(c.class) && f.push(...c.class.filter((v) => typeof v == "string"))), f.join(" ");
|
|
915
|
+
}), b = z(() => [].join(" ")), g = (f) => {
|
|
916
|
+
s.value = f.detail.height;
|
|
914
917
|
}, _ = () => {
|
|
915
918
|
s.value = 0;
|
|
916
|
-
}, k = (
|
|
917
|
-
const P =
|
|
919
|
+
}, k = (f = "", v) => {
|
|
920
|
+
const P = f || a.modelValue || "";
|
|
918
921
|
d("send", P, v), d("update:modelValue", ""), n.value = !1;
|
|
919
922
|
}, y = () => {
|
|
920
923
|
o.value = !1, n.value = !n.value;
|
|
921
924
|
}, S = () => {
|
|
922
925
|
n.value = !1, o.value = !o.value;
|
|
923
|
-
}, $ = (
|
|
926
|
+
}, $ = (f) => {
|
|
924
927
|
const v = a.modelValue || "";
|
|
925
|
-
d("update:modelValue", v +
|
|
926
|
-
}, M = (
|
|
927
|
-
const v =
|
|
928
|
+
d("update:modelValue", v + f);
|
|
929
|
+
}, M = (f) => {
|
|
930
|
+
const v = f.target;
|
|
928
931
|
d("update:modelValue", v.value);
|
|
929
932
|
};
|
|
930
933
|
return D(() => {
|
|
931
934
|
}), Be(() => {
|
|
932
|
-
}), (
|
|
935
|
+
}), (f, v) => (l(), i("div", {
|
|
933
936
|
class: p(["t-input-bar-container", h.value])
|
|
934
937
|
}, [
|
|
935
938
|
L($s, {
|
|
936
|
-
text:
|
|
937
|
-
"string-array":
|
|
939
|
+
text: f.modelValue,
|
|
940
|
+
"string-array": f.stringArray,
|
|
938
941
|
onSend: k
|
|
939
942
|
}, null, 8, ["text", "string-array"]),
|
|
940
943
|
r("div", {
|
|
941
944
|
class: p(["cu-bar input", b.value])
|
|
942
945
|
}, [
|
|
943
|
-
|
|
946
|
+
f.leftIcon ? (l(), i("div", zs, [
|
|
944
947
|
r("text", {
|
|
945
|
-
class: p(`cuIcon-${
|
|
948
|
+
class: p(`cuIcon-${f.leftIcon} text-grey`)
|
|
946
949
|
}, null, 2)
|
|
947
|
-
])) :
|
|
948
|
-
|
|
950
|
+
])) : m("", !0),
|
|
951
|
+
f.middleIcon ? (l(), i("div", Ps, [
|
|
949
952
|
r("text", {
|
|
950
|
-
class: p(`cuIcon-${
|
|
953
|
+
class: p(`cuIcon-${f.middleIcon} text-grey`)
|
|
951
954
|
}, null, 2)
|
|
952
|
-
])) :
|
|
955
|
+
])) : m("", !0),
|
|
953
956
|
r("input", {
|
|
954
957
|
onFocus: g,
|
|
955
958
|
onBlur: _,
|
|
956
959
|
onKeydown: v[0] || (v[0] = Ae((P) => k(), ["enter"])),
|
|
957
960
|
onConfirm: v[1] || (v[1] = (P) => k()),
|
|
958
|
-
"adjust-position":
|
|
961
|
+
"adjust-position": f.adjustPosition,
|
|
959
962
|
class: "solid-bottom",
|
|
960
|
-
maxlength:
|
|
961
|
-
"cursor-spacing":
|
|
962
|
-
value:
|
|
963
|
+
maxlength: f.maxlength,
|
|
964
|
+
"cursor-spacing": f.cursorSpacing,
|
|
965
|
+
value: f.modelValue,
|
|
963
966
|
onInput: M,
|
|
964
|
-
placeholder:
|
|
967
|
+
placeholder: f.placeholder
|
|
965
968
|
}, null, 40, js),
|
|
966
969
|
r("div", xs, [
|
|
967
970
|
r("text", {
|
|
968
|
-
class: p(`cuIcon-${
|
|
971
|
+
class: p(`cuIcon-${f.rightIcon} text-grey`),
|
|
969
972
|
onClick: de(y, ["stop"])
|
|
970
973
|
}, null, 2),
|
|
971
|
-
|
|
974
|
+
f.functionItems && f.functionItems.length > 0 ? (l(), i("text", {
|
|
972
975
|
key: 0,
|
|
973
976
|
class: p("cuIcon-roundaddfill text-grey"),
|
|
974
977
|
onClick: de(S, ["stop"])
|
|
975
|
-
})) :
|
|
978
|
+
})) : m("", !0)
|
|
976
979
|
]),
|
|
977
980
|
r("button", {
|
|
978
|
-
class: p(["cu-btn shadow-blur round", `bg-${
|
|
981
|
+
class: p(["cu-btn shadow-blur round", `bg-${f.buttonBg}`]),
|
|
979
982
|
onClick: v[2] || (v[2] = (P) => k())
|
|
980
983
|
}, [
|
|
981
|
-
j(
|
|
982
|
-
w(u(
|
|
984
|
+
j(f.$slots, "default", {}, () => [
|
|
985
|
+
w(u(f.buttonText), 1)
|
|
983
986
|
], !0)
|
|
984
987
|
], 2)
|
|
985
988
|
], 2),
|
|
986
989
|
ve(L(ws, { onAddEmoji: $ }, null, 512), [
|
|
987
990
|
[_e, n.value]
|
|
988
991
|
]),
|
|
989
|
-
ve(L(Bs, { items:
|
|
992
|
+
ve(L(Bs, { items: f.functionItems }, null, 8, ["items"]), [
|
|
990
993
|
[_e, o.value]
|
|
991
994
|
])
|
|
992
995
|
], 2));
|
|
993
996
|
}
|
|
994
|
-
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-
|
|
997
|
+
}), Q = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-5c0d8d64"]]);
|
|
995
998
|
Q.install = (e) => {
|
|
996
999
|
e.component(Q.name, Q);
|
|
997
1000
|
};
|
|
@@ -1043,7 +1046,7 @@ const As = ["onClick"], Es = { class: "tab-content" }, Rs = {
|
|
|
1043
1046
|
k.icon ? (l(), i("i", {
|
|
1044
1047
|
key: 0,
|
|
1045
1048
|
class: p(`cuIcon-${k.icon} text-${o.value === y ? g.color : k.iconColor}`)
|
|
1046
|
-
}, null, 2)) :
|
|
1049
|
+
}, null, 2)) : m("", !0),
|
|
1047
1050
|
w(" " + u(k.label), 1)
|
|
1048
1051
|
], 10, As))), 128))
|
|
1049
1052
|
], 6),
|
|
@@ -1220,8 +1223,8 @@ const Ws = ["onClick"], Fs = {
|
|
|
1220
1223
|
class: p(["cuIcon-" + d.cuIcon, "text-" + d.color])
|
|
1221
1224
|
}, [
|
|
1222
1225
|
d.badge != 0 ? (l(), i("div", Fs, [
|
|
1223
|
-
d.badge != 1 ? (l(), i("i", Ds, u((d.badge || 0) > 99 ? "99+" : d.badge), 1)) :
|
|
1224
|
-
])) :
|
|
1226
|
+
d.badge != 1 ? (l(), i("i", Ds, u((d.badge || 0) > 99 ? "99+" : d.badge), 1)) : m("", !0)
|
|
1227
|
+
])) : m("", !0)
|
|
1225
1228
|
], 2),
|
|
1226
1229
|
r("text", null, u(d.name), 1)
|
|
1227
1230
|
], 12, Ws))), 128))
|
|
@@ -1336,21 +1339,21 @@ const Xs = ["onClick"], Ys = { class: "content" }, Gs = ["src", "alt"], Hs = { c
|
|
|
1336
1339
|
class: "icon",
|
|
1337
1340
|
name: o.icon.name,
|
|
1338
1341
|
color: o.icon.color
|
|
1339
|
-
}, null, 8, ["name", "color"])) :
|
|
1342
|
+
}, null, 8, ["name", "color"])) : m("", !0),
|
|
1340
1343
|
o.img ? (l(), i("img", {
|
|
1341
1344
|
key: 1,
|
|
1342
1345
|
class: "icon",
|
|
1343
1346
|
src: o.img.url,
|
|
1344
1347
|
alt: o.img.alt
|
|
1345
|
-
}, null, 8, Gs)) :
|
|
1348
|
+
}, null, 8, Gs)) : m("", !0),
|
|
1346
1349
|
r("text", Hs, u(o.title), 1)
|
|
1347
1350
|
]),
|
|
1348
1351
|
r("div", Os, [
|
|
1349
1352
|
o.group ? (l(), V(F, {
|
|
1350
1353
|
key: 0,
|
|
1351
1354
|
urls: o.group
|
|
1352
|
-
}, null, 8, ["urls"])) :
|
|
1353
|
-
o.group ? (l(), i("text", Ks, u(o.group.length) + "人", 1)) :
|
|
1355
|
+
}, null, 8, ["urls"])) : m("", !0),
|
|
1356
|
+
o.group ? (l(), i("text", Ks, u(o.group.length) + "人", 1)) : m("", !0),
|
|
1354
1357
|
o.btn ? (l(), i("button", {
|
|
1355
1358
|
key: 2,
|
|
1356
1359
|
class: p(["cu-btn round shadow", `bg-${o.btn.bg}`]),
|
|
@@ -1363,9 +1366,9 @@ const Xs = ["onClick"], Ys = { class: "content" }, Gs = ["src", "alt"], Hs = { c
|
|
|
1363
1366
|
key: 0,
|
|
1364
1367
|
name: o.btn.icon,
|
|
1365
1368
|
color: "white"
|
|
1366
|
-
}, null, 8, ["name"])) :
|
|
1369
|
+
}, null, 8, ["name"])) : m("", !0),
|
|
1367
1370
|
w(" " + u(o.btn.text), 1)
|
|
1368
|
-
], 10, Js)) :
|
|
1371
|
+
], 10, Js)) : m("", !0),
|
|
1369
1372
|
o.tags ? (l(!0), i(C, { key: 3 }, T(o.tags, (a, h) => (l(), V(R, {
|
|
1370
1373
|
size: a.size,
|
|
1371
1374
|
key: h,
|
|
@@ -1377,8 +1380,8 @@ const Xs = ["onClick"], Ys = { class: "content" }, Gs = ["src", "alt"], Hs = { c
|
|
|
1377
1380
|
w(u(a.text), 1)
|
|
1378
1381
|
]),
|
|
1379
1382
|
_: 2
|
|
1380
|
-
}, 1032, ["size", "bg", "light"]))), 128)) :
|
|
1381
|
-
o.text ? (l(), i("text", Qs, u(o.text), 1)) :
|
|
1383
|
+
}, 1032, ["size", "bg", "light"]))), 128)) : m("", !0),
|
|
1384
|
+
o.text ? (l(), i("text", Qs, u(o.text), 1)) : m("", !0)
|
|
1382
1385
|
])
|
|
1383
1386
|
], 10, Xs))), 128))
|
|
1384
1387
|
], 2));
|
|
@@ -1454,13 +1457,13 @@ const eo = {
|
|
|
1454
1457
|
backgroundImage: a.userinfo.avatar ? `url(${a.userinfo.avatar})` : ""
|
|
1455
1458
|
})
|
|
1456
1459
|
}, [
|
|
1457
|
-
(g = a.userinfo) != null && g.avatar ?
|
|
1460
|
+
(g = a.userinfo) != null && g.avatar ? m("", !0) : (l(), V(b, {
|
|
1458
1461
|
key: 0,
|
|
1459
1462
|
name: a.avatarName,
|
|
1460
1463
|
size: 36,
|
|
1461
1464
|
color: "white"
|
|
1462
1465
|
}, null, 8, ["name"])),
|
|
1463
|
-
a.badge ? (l(), i("div", eo, u(a.badge), 1)) :
|
|
1466
|
+
a.badge ? (l(), i("div", eo, u(a.badge), 1)) : m("", !0)
|
|
1464
1467
|
], 6),
|
|
1465
1468
|
r("div", to, [
|
|
1466
1469
|
r("div", so, [
|
|
@@ -1468,7 +1471,7 @@ const eo = {
|
|
|
1468
1471
|
a.userinfo.tag ? (l(), i("div", {
|
|
1469
1472
|
key: 0,
|
|
1470
1473
|
class: p(["cu-tag", "round", `bg-${a.userinfo.tagColor}`, "sm"])
|
|
1471
|
-
}, u(a.userinfo.tag), 3)) :
|
|
1474
|
+
}, u(a.userinfo.tag), 3)) : m("", !0)
|
|
1472
1475
|
]),
|
|
1473
1476
|
s.value ? (l(), i("div", {
|
|
1474
1477
|
key: 0,
|
|
@@ -1479,7 +1482,7 @@ const eo = {
|
|
|
1479
1482
|
r("span", lo, "回复 " + u(a.replyAuthor) + ":", 1),
|
|
1480
1483
|
w(" " + u(a.replyContent || n()), 1)
|
|
1481
1484
|
])
|
|
1482
|
-
])) :
|
|
1485
|
+
])) : m("", !0),
|
|
1483
1486
|
r("div", ao, [
|
|
1484
1487
|
r("div", ro, [
|
|
1485
1488
|
j(a.$slots, "default", {}, void 0, !0)
|
|
@@ -1494,7 +1497,7 @@ const eo = {
|
|
|
1494
1497
|
}, u(a.unread), 3)) : a.icon ? (l(), i("div", {
|
|
1495
1498
|
key: 1,
|
|
1496
1499
|
class: p(a.iconClass)
|
|
1497
|
-
}, null, 2)) :
|
|
1500
|
+
}, null, 2)) : m("", !0)
|
|
1498
1501
|
])
|
|
1499
1502
|
], 2);
|
|
1500
1503
|
};
|
|
@@ -1579,7 +1582,7 @@ const fo = { class: "cu-chat" }, mo = {
|
|
|
1579
1582
|
w(" " + u(s.content), 1)
|
|
1580
1583
|
]))
|
|
1581
1584
|
], 64)) : (l(), i(C, { key: 1 }, [
|
|
1582
|
-
s.self ?
|
|
1585
|
+
s.self ? m("", !0) : (l(), V(E, {
|
|
1583
1586
|
key: 0,
|
|
1584
1587
|
mode: "radius",
|
|
1585
1588
|
url: s.avatar
|
|
@@ -1613,7 +1616,7 @@ const fo = { class: "cu-chat" }, mo = {
|
|
|
1613
1616
|
key: 1,
|
|
1614
1617
|
mode: "radius",
|
|
1615
1618
|
url: s.avatar
|
|
1616
|
-
}, null, 8, ["url"])) :
|
|
1619
|
+
}, null, 8, ["url"])) : m("", !0),
|
|
1617
1620
|
r("div", Mo, u(s.date), 1)
|
|
1618
1621
|
], 64))
|
|
1619
1622
|
], 2))), 128))
|
|
@@ -1682,7 +1685,7 @@ const zo = { class: "cu-time" }, Po = {
|
|
|
1682
1685
|
]),
|
|
1683
1686
|
_: 2
|
|
1684
1687
|
}, 1032, ["bg"])
|
|
1685
|
-
])) :
|
|
1688
|
+
])) : m("", !0),
|
|
1686
1689
|
r("div", {
|
|
1687
1690
|
class: p(a.capsule ? "margin-top-sm" : "")
|
|
1688
1691
|
}, [
|
|
@@ -1837,14 +1840,14 @@ const ze = {
|
|
|
1837
1840
|
for (let _ = 0; _ < a; _++) {
|
|
1838
1841
|
const k = t.angle + _ * (Math.PI * 2) / a, y = n + Math.cos(k) * o, S = n + Math.sin(k) * o, $ = 0.3 + 0.7 * Math.abs(Math.sin(k - t.angle));
|
|
1839
1842
|
e.beginPath(), e.arc(y, S, h, 0, Math.PI * 2);
|
|
1840
|
-
const M = e.createRadialGradient(y, S, 0, y, S, h),
|
|
1841
|
-
M.addColorStop(0, fe(
|
|
1843
|
+
const M = e.createRadialGradient(y, S, 0, y, S, h), f = b[_ % b.length];
|
|
1844
|
+
M.addColorStop(0, fe(f, $)), M.addColorStop(1, fe(f, $ * 0.3)), e.fillStyle = M, e.fill(), e.beginPath(), e.arc(y, S, h + 3, 0, Math.PI * 2), e.fillStyle = fe(f, $ * 0.2), e.fill();
|
|
1842
1845
|
}
|
|
1843
1846
|
t.angle += 0.02 * d;
|
|
1844
1847
|
}
|
|
1845
1848
|
}, me = (e, t) => `rgba(${e.r},${e.g},${e.b},${t})`, Yo = {
|
|
1846
1849
|
render(e, t, c) {
|
|
1847
|
-
var
|
|
1850
|
+
var f;
|
|
1848
1851
|
const { size: s, center: n, radius: o, progress: d } = t, a = c.lineWidth || 10, h = c.speed || 1;
|
|
1849
1852
|
e.clearRect(0, 0, s, s), e.beginPath(), e.arc(n, n, o, 0, Math.PI * 2), e.strokeStyle = "rgba(255,255,255,0.1)", e.lineWidth = a, e.stroke();
|
|
1850
1853
|
const b = Math.sin((t.angle || 0) * 2) * 0.5 + 0.5, g = Math.max(10, o - 20 + b * 40), _ = Math.max(1, a + b * 5), k = [
|
|
@@ -1852,7 +1855,7 @@ const ze = {
|
|
|
1852
1855
|
{ r: 255, g: 0, b: 255 },
|
|
1853
1856
|
{ r: 255, g: 255, b: 0 },
|
|
1854
1857
|
{ r: 0, g: 255, b: 0 }
|
|
1855
|
-
], y = (((
|
|
1858
|
+
], y = (((f = c.colors) == null ? void 0 : f.pulse) || k).slice(0, 4);
|
|
1856
1859
|
for (; y.length < 4; )
|
|
1857
1860
|
y.push(k[y.length % k.length]);
|
|
1858
1861
|
const S = e.createRadialGradient(
|
|
@@ -1949,8 +1952,8 @@ function Ho(e, t) {
|
|
|
1949
1952
|
}, g = ($) => {
|
|
1950
1953
|
o.progress = be($, 0, 100);
|
|
1951
1954
|
}, _ = ($) => {
|
|
1952
|
-
var M,
|
|
1953
|
-
o.mode !== $ && ((M = d.destroy) == null || M.call(d), o.mode = $, d = Se[$], (
|
|
1955
|
+
var M, f;
|
|
1956
|
+
o.mode !== $ && ((M = d.destroy) == null || M.call(d), o.mode = $, d = Se[$], (f = d.init) == null || f.call(d, c, o, s));
|
|
1954
1957
|
}, k = ($) => {
|
|
1955
1958
|
s = {
|
|
1956
1959
|
...s,
|
|
@@ -2126,7 +2129,7 @@ const Jo = ["data-index"], Qo = { name: "TVirtualScrollSlide" }, Zo = /* @__PURE
|
|
|
2126
2129
|
a.localIndex < c.list.length - 1 && (a.localIndex++, g());
|
|
2127
2130
|
}, $ = () => {
|
|
2128
2131
|
a.localIndex > 0 && (a.localIndex--, g());
|
|
2129
|
-
}, M = (v) => (a.localIndex + v) * a.wrapperHeight,
|
|
2132
|
+
}, M = (v) => (a.localIndex + v) * a.wrapperHeight, f = z(() => h.value.map((v) => `video-${v.id}`).join(","));
|
|
2130
2133
|
return (v, P) => (l(), i("div", {
|
|
2131
2134
|
class: "slide-wrapper",
|
|
2132
2135
|
ref_key: "wrapper",
|
|
@@ -2141,7 +2144,7 @@ const Jo = ["data-index"], Qo = { name: "TVirtualScrollSlide" }, Zo = /* @__PURE
|
|
|
2141
2144
|
ref: o,
|
|
2142
2145
|
style: B({ transform: `translateY(${d.value}px)` })
|
|
2143
2146
|
}, [
|
|
2144
|
-
(l(), V(Re, { include:
|
|
2147
|
+
(l(), V(Re, { include: f.value }, [
|
|
2145
2148
|
(l(!0), i(C, null, T(h.value, (ke, ge) => (l(), i("div", {
|
|
2146
2149
|
key: ke.id,
|
|
2147
2150
|
"data-index": ge,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.TempColorUI={},k.Vue))})(this,function(k,e){"use strict";const re={class:"nav-list"},ce=["onClick"],ie={class:"nav-title"},de={class:"nav-name"},me={name:"TNavCard"},S=e.defineComponent({...me,props:{items:{}},emits:["chickItem"],setup(t,{emit:o}){const r=o,n=(a,l)=>{r("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(c,s)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+c.color]),style:e.normalizeStyle([{animation:"show "+((s+1)*.2+1)+"s 1"}]),key:s,onClick:d=>n(c,s)},[e.createElementVNode("div",ie,e.toDisplayString(c.title),1),e.createElementVNode("div",de,e.toDisplayString(c.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+c.cuIcon)},null,2)],14,ce))),128))]))}});S.install=t=>{t.component(S.name,S)};const H=t=>(e.pushScopeId("data-v-bbdb83ff"),t=t(),e.popScopeId(),t),pe={class:"cu-item shadow"},ge={class:"title"},fe={class:"text-cut"},he={class:"content"},ke=["src","alt"],ye={class:"desc"},ue={class:"text-content"},be={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},_e={class:"text-gray"},Be=H(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),Ce=H(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),$e=H(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),Ee={class:"margin-left-sm text-gray flex justify-between"},Ve={class:"text-grey margin-right-xs"},Ne={name:"TNewCard"},Se=e.defineComponent({...Ne,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(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",o.isCard?"":"no-card"])},[e.createElementVNode("div",pe,[e.createElementVNode("div",ge,[e.createElementVNode("div",fe,e.toDisplayString(o.title),1)]),e.createElementVNode("div",he,[e.createElementVNode("img",{src:o.imageSrc,alt:o.imageAlt},null,8,ke),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(o.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tags,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"cu-tag bg-red light sm round"},e.toDisplayString(n),1))),128))])])]),o.footerInfo?(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",_e,[Be,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.likes)+" ",1),Ce,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.appreciations)+" ",1),$e,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.comments),1)]),e.createElementVNode("div",Ee,[e.createElementVNode("div",Ve,e.toDisplayString(o.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(o.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),C=(t,o)=>{const r=t.__vccOpts||t;for(const[n,a]of o)r[n]=a;return r},I=C(Se,[["__scopeId","data-v-bbdb83ff"]]);I.install=t=>{t.component(I.name,I)};const Ie={class:"cu-item shadow"},we={class:"cu-list menu-avatar"},ze={class:"cu-item"},Te={class:"content flex-sub"},De={class:"text-gray text-sm flex justify-between"},Me={class:"text-content"},Pe={class:"text-gray text-sm text-right padding"},je=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Fe=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Le=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},Ae={class:"content"},Re={class:"text-grey"},qe={class:"text-gray text-content text-df"},We={class:"flex"},Ue={class:"flex-sub"},Xe={class:"margin-top-sm flex justify-between"},Ye={class:"text-gray text-df"},Ge={key:0,class:"cuIcon-appreciatefill text-red"},Oe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),He={class:"text-gray margin-left-xs"},Ke={name:"TShareCard"},w=e.defineComponent({...Ke,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(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",o.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ie,[e.createElementVNode("div",we,[e.createElementVNode("div",ze,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Te,[e.createElementVNode("div",null,e.toDisplayString(o.author),1),e.createElementVNode("div",De,e.toDisplayString(o.date),1)])])]),e.createElementVNode("div",Me,e.toDisplayString(o.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",o.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.isCard?9:1,n=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",o.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${o.imageUrl})`}),key:n},null,6))),128))],2),e.createElementVNode("div",Pe,[je,e.createTextVNode(" "+e.toDisplayString(o.likes)+" ",1),Fe,e.createTextVNode(" "+e.toDisplayString(o.appreciations)+" ",1),Le,e.createTextVNode(" "+e.toDisplayString(o.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.commentsList,n=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:n.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4),e.createElementVNode("div",Ae,[e.createElementVNode("div",Re,e.toDisplayString(n.author),1),e.createElementVNode("div",qe,e.toDisplayString(n.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",We,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Ue,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",Xe,[e.createElementVNode("div",Ye,e.toDisplayString(n.date),1),e.createElementVNode("div",null,[n.likes?(e.openBlock(),e.createElementBlock("span",Ge)):e.createCommentVNode("",!0),Oe,e.createElementVNode("span",He,e.toDisplayString((a=n.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=t=>{t.component(w.name,w)};const Je={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Qe(t,o,r="px"){if(typeof o=="number")return`${t}: ${o}${r};`;const n=Je[o];return n?`${t}: ${n};`:""}function Ze(t){return Qe("font-size",t)}const ve={name:"TIcon"},V=e.defineComponent({...ve,props:{name:{},color:{default:"grey"},size:{default:15}},setup(t){const o=t,r=e.computed(()=>Ze(o.size));return(n,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${n.name} text-${n.color}`),style:e.normalizeStyle(r.value)},null,6))}}),et={class:"action border-title"},tt={class:"action border-title"},ot={class:"tib text-xl text-bold text-blue"},nt=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),lt={class:"action sub-title"},at={class:"tib text-xl text-bold text-green"},st=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),rt={class:"action sub-title"},ct={class:"action title-style-3"},it={key:5,class:"cu-bar bg-white"},dt={class:"action"},mt={key:6,class:"cu-bar bg-white solid-bottom"},pt={class:"action"},gt={class:"action"},ft={name:"TTitle"},z=e.defineComponent({...ft,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(t){return(o,r)=>o.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",et,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${o.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):o.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",ot,e.toDisplayString(o.title),1),nt])],2)):o.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",lt,[e.createElementVNode("div",at,e.toDisplayString(o.title),1),st])],2)):o.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",rt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${o.decorateColor}`])},e.toDisplayString(o.deputy),3)])],2)):o.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",ct,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${o.decorateColor}`])},e.toDisplayString(o.deputy),3)])],2)):o.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",dt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${o.icon} text-${o.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${o.decorateColor}`])},e.toDisplayString(o.title),3)])])):(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",pt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${o.icon} text-${o.color}`)},null,2),e.renderSlot(o.$slots,"default")]),e.createElementVNode("div",gt,[e.renderSlot(o.$slots,"action")])]))}}),ht={name:"TAvatar"},$=e.defineComponent({...ht,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(t){return(o,r)=>o.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",o.size,o.mode]),style:e.normalizeStyle({backgroundImage:`url(${o.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",o.size,o.mode]])},[e.renderSlot(o.$slots,"default")],2))}}),kt={class:"cu-avatar-group"},yt={name:"TAvatarGroup"},N=e.defineComponent({...yt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.urls,(n,a)=>(e.openBlock(),e.createBlock($,{key:a,url:n,size:o.size},null,8,["url","size"]))),128))]))}}),ut=["disabled"],bt={key:1},_t={name:"TButton"},T=e.defineComponent({..._t,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(t){const o=t,r=e.computed(()=>["cu-btn",o.rounded?"round":"radius",o.shadow?"shadow":"",`bg-${o.bg}`,o.size!=="default"?o.size:""].join(" ")),n=e.computed(()=>({cursor:o.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:o.text?"8px":"0"}));return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),style:e.normalizeStyle(n.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,ut))}}),Bt={key:0},Ct={name:"TTag"},E=e.defineComponent({...Ct,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(t){const o=t,r=e.computed(()=>["cu-tag",o.shape!=="default"?o.shape:"",o.light!==!1?"light":"",`${o.line!==!1?"line":"bg"}-${o.bg}`,o.size!=="default"?o.size:""].join(" ")),n=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(n.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",Bt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=t=>{t.component(V.name,V)},z.install=t=>{t.component(z.name,z)},$.install=t=>{t.component($.name,$)},N.install=t=>{t.component(N.name,N)},T.install=t=>{t.component(T.name,T)},E.install=t=>{t.component(E.name,E)};const $t=["onClick"],Et={key:0,class:"cuIcon-cu-image"},Vt=["src"],Nt={key:0,class:"cu-tag badge"},St={key:0,class:"cu-tag badge"},It={name:"TNavBar"},D=e.defineComponent({...It,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(t){const o=t,r=(n,a)=>{o.onItemClick&&o.onItemClick(n,a)};return(n,a)=>(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,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===n.activeIndex?n.activeColor:n.color}`]),onClick:s=>r(l,c)},[l.img?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,Vt),l.badge?(e.openBlock(),e.createElementBlock("div",Nt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",St,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,$t))),128))],2))}});D.install=t=>{t.component(D.name,D)};const wt={key:1},zt={class:"content text-bold"},Tt={key:1},Dt={name:"TTopBar"},M=e.defineComponent({...Dt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},rightText:{},bg:{default:"white"},avatarUrl:{}},emits:["leftClick","rightClick"],setup(t,{emit:o}){const r=o,n=()=>{r("leftClick")},a=()=>{r("rightClick")};return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bg}`])},[l.leftIcon||l.leftText?(e.openBlock(),e.createElementBlock("div",{key:0,class:"action",style:{width:"25px"},onClick:n},[l.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.leftIcon} text-${l.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),l.leftText?(e.openBlock(),e.createElementBlock("span",wt,e.toDisplayString(l.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",zt,e.toDisplayString(l.title),1),l.rightIcon||l.rightText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"action",onClick:a},[l.rightIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.rightIcon} text-${l.rightIconColor}`)},null,2)):e.createCommentVNode("",!0),l.rightText?(e.openBlock(),e.createElementBlock("span",Tt,e.toDisplayString(l.rightText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});M.install=t=>{t.component(M.name,M)};const Mt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Pt=["placeholder"],jt={class:"action"},Ft={key:0,class:"cu-btn bg-green shadow-blur round"},Lt={key:0},xt={key:3},At={name:"TSearchBar"},P=e.defineComponent({...At,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(t){const o=e.ref(0),r=a=>{o.value=a.detail.height},n=()=>{o.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[Mt,e.createElementVNode("input",{onFocus:r,onBlur:n,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,Pt)],2),e.createElementVNode("div",jt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Ft,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",Lt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});P.install=t=>{t.component(P.name,P)};const Rt={key:0,class:"string-list"},qt=["innerHTML","onClick"],Wt=C(e.defineComponent({__name:"CandidateBox",props:{text:{default:""},stringArray:{default:()=>[]}},emits:["send"],setup(t,{emit:o}){const r=o,n=t,a=(c="",s)=>{r("send",c,s)},l=e.computed(()=>{const c=n.text||"";return n.stringArray.map(s=>{if(!c)return s.text;let d="";for(let p of s.text)c.includes(p)?d+=`<span style="color:#ff0000">${p}</span>`:d+=p;return d})});return(c,s)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,p)=>(e.openBlock(),e.createElementBlock("li",{key:p,innerHTML:d,onClick:i=>a(c.stringArray[p].text,c.stringArray[p])},null,8,qt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-7267bfe2"]]),Ut=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Xt=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Yt=["onClick"],Gt=C(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(t,{emit:o}){const r=o,n=a=>{r("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ut),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:s=>n(c)},e.toDisplayString(c),9,Yt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ot={class:"function-panel-container"},Ht=["onClick"],Kt=C(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(t){const o=e.ref(null);return e.onMounted(()=>{}),(r,n)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:o},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Ht))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Jt={key:0,class:"action"},Qt={key:1,class:"action"},Zt=["value","placeholder"],vt={class:"action"},j=C(e.defineComponent({inheritAttrs:!1,name:"TInputBar",__name:"index",props:{modelValue:{default:""},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{default:""}},emits:["update:modelValue","send"],setup(t,{emit:o}){const r=e.useAttrs(),n=e.ref(0),a=e.ref(!1),l=e.ref(!1),c=o,s=t,d=e.computed(()=>{const m=[];return r.class&&(typeof r.class=="string"?m.push(r.class):Array.isArray(r.class)&&m.push(...r.class.filter(g=>typeof g=="string"))),m.join(" ")}),p=e.computed(()=>[].join(" ")),i=m=>{n.value=m.detail.height},f=()=>{n.value=0},u=(m="",g)=>{const B=m||s.modelValue||"";c("send",B,g),c("update:modelValue",""),a.value=!1},h=()=>{l.value=!1,a.value=!a.value},b=()=>{a.value=!1,l.value=!l.value},y=m=>{const g=s.modelValue||"";c("update:modelValue",g+m)},_=m=>{const g=m.target;c("update:modelValue",g.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["t-input-bar-container",d.value])},[e.createVNode(Wt,{text:m.modelValue,"string-array":m.stringArray,onSend:u},null,8,["text","string-array"]),e.createElementVNode("div",{class:e.normalizeClass(["cu-bar input",p.value])},[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Qt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:i,onBlur:f,onKeydown:g[0]||(g[0]=e.withKeys(B=>u(),["enter"])),onConfirm:g[1]||(g[1]=B=>u()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:m.modelValue,onInput:_,placeholder:m.placeholder},null,40,Zt),e.createElementVNode("div",vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(h,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(b,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:g[2]||(g[2]=B=>u())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)],2),e.withDirectives(e.createVNode(Gt,{onAddEmoji:y},null,512),[[e.vShow,a.value]]),e.withDirectives(e.createVNode(Kt,{items:m.functionItems},null,8,["items"]),[[e.vShow,l.value]])],2))}}),[["__scopeId","data-v-0fc514df"]]);j.install=t=>{t.component(j.name,j)};const eo=["onClick"],to={class:"tab-content"},oo={name:"TTabs"},F=e.defineComponent({...oo,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(t,{emit:o}){const r=t,n=o,a=e.ref([]),l=e.ref(r.modelValue),c=(i,f)=>{l.value=i,n("update:modelValue",i),n("select",f)},s=i=>(a.value.push(i),a.value.length-1);e.provide("registerTab",s),e.provide("activeTab",l);const d=e.computed(()=>r.center!==!1?"justify-content:center;":`justify-content:${r.mode}`),p=e.computed(()=>i=>{let f=[];return l.value===i&&(f.push(`text-${r.color}`),r.bold!==!1&&f.push("text-bold"),r.line!==!1&&f.push("cur")),f});return e.watch(()=>r.modelValue,i=>{l.value=i},{immediate:!0}),(i,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${i.bg}`,`text-${i.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",p.value(h)]),key:h,onClick:b=>c(h,u)},[u.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${u.icon} text-${l.value===h?i.color:u.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.label),1)],10,eo))),128))],6),e.createElementVNode("div",to,[e.renderSlot(i.$slots,"default",{tab:a.value[l.value]})])],2))}}),no={name:"TTab"},L=e.defineComponent({...no,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(t){const o=t,r=e.inject("registerTab"),n=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(n==null?void 0:n.value)===a.value),c=e.computed(()=>({label:o.label,icon:o.icon,iconColor:o.iconColor}));return e.onMounted(()=>{r&&(a.value=r({label:o.label,icon:o.icon,iconColor:o.iconColor}))}),(s,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(s.$slots,"default"),e.renderSlot(s.$slots,"custom",{tab:c.value})],512)),[[e.vShow,l.value]])}});F.install=t=>{t.component(F.name,F)},L.install=t=>{t.component(L.name,L)};/*!
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.TempColorUI={},k.Vue))})(this,function(k,e){"use strict";const re={class:"nav-list"},ce=["onClick"],ie={class:"nav-title"},de={class:"nav-name"},me={name:"TNavCard"},S=e.defineComponent({...me,props:{items:{}},emits:["chickItem"],setup(t,{emit:o}){const r=o,n=(a,l)=>{r("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(c,s)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+c.color]),style:e.normalizeStyle([{animation:"show "+((s+1)*.2+1)+"s 1"}]),key:s,onClick:d=>n(c,s)},[e.createElementVNode("div",ie,e.toDisplayString(c.title),1),e.createElementVNode("div",de,e.toDisplayString(c.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+c.cuIcon)},null,2)],14,ce))),128))]))}});S.install=t=>{t.component(S.name,S)};const H=t=>(e.pushScopeId("data-v-bbdb83ff"),t=t(),e.popScopeId(),t),pe={class:"cu-item shadow"},ge={class:"title"},fe={class:"text-cut"},he={class:"content"},ke=["src","alt"],ye={class:"desc"},ue={class:"text-content"},be={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},_e={class:"text-gray"},Be=H(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),Ce=H(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),$e=H(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),Ee={class:"margin-left-sm text-gray flex justify-between"},Ve={class:"text-grey margin-right-xs"},Ne={name:"TNewCard"},Se=e.defineComponent({...Ne,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(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",o.isCard?"":"no-card"])},[e.createElementVNode("div",pe,[e.createElementVNode("div",ge,[e.createElementVNode("div",fe,e.toDisplayString(o.title),1)]),e.createElementVNode("div",he,[e.createElementVNode("img",{src:o.imageSrc,alt:o.imageAlt},null,8,ke),e.createElementVNode("div",ye,[e.createElementVNode("div",ue,e.toDisplayString(o.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tags,n=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"cu-tag bg-red light sm round"},e.toDisplayString(n),1))),128))])])]),o.footerInfo?(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",_e,[Be,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.likes)+" ",1),Ce,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.appreciations)+" ",1),$e,e.createTextVNode(" "+e.toDisplayString(o.footerInfo.comments),1)]),e.createElementVNode("div",Ee,[e.createElementVNode("div",Ve,e.toDisplayString(o.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(o.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),C=(t,o)=>{const r=t.__vccOpts||t;for(const[n,a]of o)r[n]=a;return r},I=C(Se,[["__scopeId","data-v-bbdb83ff"]]);I.install=t=>{t.component(I.name,I)};const Ie={class:"cu-item shadow"},we={class:"cu-list menu-avatar"},ze={class:"cu-item"},Te={class:"content flex-sub"},De={class:"text-gray text-sm flex justify-between"},Me={class:"text-content"},Pe={class:"text-gray text-sm text-right padding"},je=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Fe=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Le=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),xe={class:"cu-item"},Ae={class:"content"},Re={class:"text-grey"},qe={class:"text-gray text-content text-df"},We={class:"flex"},Ue={class:"flex-sub"},Xe={class:"margin-top-sm flex justify-between"},Ye={class:"text-gray text-df"},Ge={key:0,class:"cuIcon-appreciatefill text-red"},Oe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),He={class:"text-gray margin-left-xs"},Ke={name:"TShareCard"},w=e.defineComponent({...Ke,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(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",o.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Ie,[e.createElementVNode("div",we,[e.createElementVNode("div",ze,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",Te,[e.createElementVNode("div",null,e.toDisplayString(o.author),1),e.createElementVNode("div",De,e.toDisplayString(o.date),1)])])]),e.createElementVNode("div",Me,e.toDisplayString(o.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",o.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.isCard?9:1,n=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",o.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${o.imageUrl})`}),key:n},null,6))),128))],2),e.createElementVNode("div",Pe,[je,e.createTextVNode(" "+e.toDisplayString(o.likes)+" ",1),Fe,e.createTextVNode(" "+e.toDisplayString(o.appreciations)+" ",1),Le,e.createTextVNode(" "+e.toDisplayString(o.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.commentsList,n=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:n.id},[e.createElementVNode("div",xe,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4),e.createElementVNode("div",Ae,[e.createElementVNode("div",Re,e.toDisplayString(n.author),1),e.createElementVNode("div",qe,e.toDisplayString(n.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",We,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",Ue,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",Xe,[e.createElementVNode("div",Ye,e.toDisplayString(n.date),1),e.createElementVNode("div",null,[n.likes?(e.openBlock(),e.createElementBlock("span",Ge)):e.createCommentVNode("",!0),Oe,e.createElementVNode("span",He,e.toDisplayString((a=n.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});w.install=t=>{t.component(w.name,w)};const Je={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Qe(t,o,r="px"){if(typeof o=="number")return`${t}: ${o}${r};`;const n=Je[o];return n?`${t}: ${n};`:""}function Ze(t){return Qe("font-size",t)}const ve={name:"TIcon"},V=e.defineComponent({...ve,props:{name:{},color:{default:"grey"},size:{default:15}},setup(t){const o=t,r=e.computed(()=>Ze(o.size));return(n,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${n.name} text-${n.color}`),style:e.normalizeStyle(r.value)},null,6))}}),et={class:"action border-title"},tt={class:"action border-title"},ot={class:"tib text-xl text-bold text-blue"},nt=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),lt={class:"action sub-title"},at={class:"tib text-xl text-bold text-green"},st=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),rt={class:"action sub-title"},ct={class:"action title-style-3"},it={key:5,class:"cu-bar bg-white"},dt={class:"action"},mt={key:6,class:"cu-bar bg-white solid-bottom"},pt={class:"action"},gt={class:"action"},ft={name:"TTitle"},z=e.defineComponent({...ft,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(t){return(o,r)=>o.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",et,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${o.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):o.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",tt,[e.createElementVNode("div",ot,e.toDisplayString(o.title),1),nt])],2)):o.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",lt,[e.createElementVNode("div",at,e.toDisplayString(o.title),1),st])],2)):o.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",rt,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${o.decorateColor}`])},e.toDisplayString(o.deputy),3)])],2)):o.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",o.center!==!1?"justify-center":""])},[e.createElementVNode("div",ct,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${o.color}`])},e.toDisplayString(o.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${o.decorateColor}`])},e.toDisplayString(o.deputy),3)])],2)):o.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",dt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${o.icon} text-${o.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${o.decorateColor}`])},e.toDisplayString(o.title),3)])])):(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",pt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${o.icon} text-${o.color}`)},null,2),e.renderSlot(o.$slots,"default")]),e.createElementVNode("div",gt,[e.renderSlot(o.$slots,"action")])]))}}),ht={name:"TAvatar"},$=e.defineComponent({...ht,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(t){return(o,r)=>o.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",o.size,o.mode]),style:e.normalizeStyle({backgroundImage:`url(${o.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",o.size,o.mode]])},[e.renderSlot(o.$slots,"default")],2))}}),kt={class:"cu-avatar-group"},yt={name:"TAvatarGroup"},N=e.defineComponent({...yt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.urls,(n,a)=>(e.openBlock(),e.createBlock($,{key:a,url:n,size:o.size},null,8,["url","size"]))),128))]))}}),ut=["disabled"],bt={key:1},_t={name:"TButton"},T=e.defineComponent({..._t,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(t){const o=t,r=e.computed(()=>["cu-btn",o.rounded?"round":"radius",o.shadow?"shadow":"",`bg-${o.bg}`,o.size!=="default"?o.size:""].join(" ")),n=e.computed(()=>({cursor:o.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:o.text?"8px":"0"}));return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),style:e.normalizeStyle(n.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,ut))}}),Bt={key:0},Ct={name:"TTag"},E=e.defineComponent({...Ct,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(t){const o=t,r=e.computed(()=>["cu-tag",o.shape!=="default"?o.shape:"",o.light!==!1?"light":"",`${o.line!==!1?"line":"bg"}-${o.bg}`,o.size!=="default"?o.size:""].join(" ")),n=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(n.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",Bt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});V.install=t=>{t.component(V.name,V)},z.install=t=>{t.component(z.name,z)},$.install=t=>{t.component($.name,$)},N.install=t=>{t.component(N.name,N)},T.install=t=>{t.component(T.name,T)},E.install=t=>{t.component(E.name,E)};const $t=["onClick"],Et={key:0,class:"cuIcon-cu-image"},Vt=["src"],Nt={key:0,class:"cu-tag badge"},St={key:0,class:"cu-tag badge"},It={name:"TNavBar"},D=e.defineComponent({...It,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(t){const o=t,r=(n,a)=>{o.onItemClick&&o.onItemClick(n,a)};return(n,a)=>(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,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===n.activeIndex?n.activeColor:n.color}`]),onClick:s=>r(l,c)},[l.img?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,Vt),l.badge?(e.openBlock(),e.createElementBlock("div",Nt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${l.icon}`)},[l.badge?(e.openBlock(),e.createElementBlock("div",St,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,$t))),128))],2))}});D.install=t=>{t.component(D.name,D)};const wt={key:1},zt={class:"content text-bold"},Tt={key:1},Dt={name:"TTopBar"},M=e.defineComponent({...Dt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},rightText:{},bg:{default:"white"},avatarUrl:{}},emits:["leftClick","rightClick"],setup(t,{emit:o}){const r=o,n=()=>{r("leftClick")},a=()=>{r("rightClick")};return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${l.bg}`])},[l.leftIcon||l.leftText?(e.openBlock(),e.createElementBlock("div",{key:0,class:"action",style:{width:"25px"},onClick:n},[l.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.leftIcon} text-${l.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),l.leftText?(e.openBlock(),e.createElementBlock("span",wt,e.toDisplayString(l.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",zt,e.toDisplayString(l.title),1),l.rightIcon||l.rightText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"action",onClick:a},[l.rightIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${l.rightIcon} text-${l.rightIconColor}`)},null,2)):e.createCommentVNode("",!0),l.rightText?(e.openBlock(),e.createElementBlock("span",Tt,e.toDisplayString(l.rightText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}});M.install=t=>{t.component(M.name,M)};const Mt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Pt=["placeholder"],jt={class:"action"},Ft={key:0,class:"cu-btn bg-green shadow-blur round"},Lt={key:0},xt={key:3},At={name:"TSearchBar"},P=e.defineComponent({...At,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(t){const o=e.ref(0),r=a=>{o.value=a.detail.height},n=()=>{o.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[Mt,e.createElementVNode("input",{onFocus:r,onBlur:n,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,Pt)],2),e.createElementVNode("div",jt,[a.buttonText?(e.openBlock(),e.createElementBlock("button",Ft,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",Lt,e.toDisplayString(a.location),1)):e.createCommentVNode("",!0),a.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${a.locationIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${a.actionIcon}`)},null,2)):e.createCommentVNode("",!0),a.actionText?(e.openBlock(),e.createElementBlock("text",xt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});P.install=t=>{t.component(P.name,P)};const Rt={key:0,class:"string-list"},qt=["innerHTML","onClick"],Wt=C(e.defineComponent({__name:"CandidateBox",props:{text:{default:""},stringArray:{default:()=>[]}},emits:["send"],setup(t,{emit:o}){const r=o,n=t,a=(c="",s)=>{r("send",c,s)},l=e.computed(()=>{const c=n.text||"";return n.stringArray.map(s=>{if(!c)return s.text;let d="";for(let p of s.text)c.includes(p)?d+=`<span style="color:#ff0000">${p}</span>`:d+=p;return d})});return(c,s)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(d,p)=>(e.openBlock(),e.createElementBlock("li",{key:p,innerHTML:d,onClick:i=>a(c.stringArray[p].text,c.stringArray[p])},null,8,qt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-7267bfe2"]]),Ut=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Xt=[{title:"红色",name:"red"},{title:"橙色",name:"orange"},{title:"黄色",name:"yellow"},{title:"橄榄色",name:"olive"},{title:"绿色",name:"green"},{title:"青色",name:"cyan"},{title:"蓝色",name:"blue"},{title:"紫色",name:"purple"},{title:"淡紫色",name:"mauve"},{title:"粉色",name:"pink"},{title:"棕色",name:"brown"},{title:"灰色",name:"grey"},{title:"灰色",name:"gray"},{title:"黑色",name:"black"},{title:"白色",name:"white"},{title:"渐变红",name:"gradual-red"},{title:"渐变橙",name:"gradual-orange"},{title:"渐变绿",name:"gradual-green"},{title:"渐变紫",name:"gradual-purple"},{title:"渐变粉",name:"gradual-pink"},{title:"渐变蓝",name:"gradual-blue"},{title:"渐变青",name:"gradual-teal"},{title:"渐变日落",name:"gradual-sunset"},{title:"渐变梦幻",name:"gradual-dream"},{title:"渐变活力橙",name:"gradual-vibrant-orange"},{title:"渐变紫蓝",name:"gradual-purple-blue"},{title:"渐变柔粉蓝",name:"gradual-soft-pink-blue"},{title:"渐变彩虹",name:"gradual-rainbow"},{title:"渐变蓝紫",name:"gradual-blue-purple"},{title:"渐变热带",name:"gradual-tropical"},{title:"渐变梦幻蓝",name:"gradual-dreamy"},{title:"渐变金色",name:"gradual-golden"},{title:"渐变灰",name:"gradual-gray"},{title:"渐变棕",name:"gradual-brown"},{title:"渐变金属",name:"gradual-metal"},{title:"渐变湖蓝",name:"gradual-lake-blue"},{title:"渐变玫瑰金",name:"gradual-rose-gold"},{title:"渐变海洋",name:"gradual-ocean"}],Yt=["onClick"],Gt=C(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(t,{emit:o}){const r=o,n=a=>{r("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ut),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:s=>n(c)},e.toDisplayString(c),9,Yt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),Ot={class:"function-panel-container"},Ht=["onClick"],Kt=C(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(t){const o=e.ref(null);return e.onMounted(()=>{}),(r,n)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:o},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"function-item",onClick:l.event},[e.createVNode(a,{name:l.icon,color:l.color,size:26},null,8,["name","color"]),e.createElementVNode("span",null,e.toDisplayString(l.text),1)],8,Ht))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Jt={key:0,class:"action"},Qt={key:1,class:"action"},Zt=["adjust-position","maxlength","cursor-spacing","value","placeholder"],vt={class:"action"},j=C(e.defineComponent({inheritAttrs:!1,name:"TInputBar",__name:"index",props:{modelValue:{default:""},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]},buttonBg:{default:"green"},placeholder:{default:""},maxlength:{default:300},adjustPosition:{type:Boolean,default:!1},cursorSpacing:{default:10}},emits:["update:modelValue","send"],setup(t,{emit:o}){const r=e.useAttrs(),n=e.ref(0),a=e.ref(!1),l=e.ref(!1),c=o,s=t,d=e.computed(()=>{const m=[];return r.class&&(typeof r.class=="string"?m.push(r.class):Array.isArray(r.class)&&m.push(...r.class.filter(g=>typeof g=="string"))),m.join(" ")}),p=e.computed(()=>[].join(" ")),i=m=>{n.value=m.detail.height},f=()=>{n.value=0},u=(m="",g)=>{const B=m||s.modelValue||"";c("send",B,g),c("update:modelValue",""),a.value=!1},h=()=>{l.value=!1,a.value=!a.value},b=()=>{a.value=!1,l.value=!l.value},y=m=>{const g=s.modelValue||"";c("update:modelValue",g+m)},_=m=>{const g=m.target;c("update:modelValue",g.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(m,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["t-input-bar-container",d.value])},[e.createVNode(Wt,{text:m.modelValue,"string-array":m.stringArray,onSend:u},null,8,["text","string-array"]),e.createElementVNode("div",{class:e.normalizeClass(["cu-bar input",p.value])},[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",Qt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:i,onBlur:f,onKeydown:g[0]||(g[0]=e.withKeys(B=>u(),["enter"])),onConfirm:g[1]||(g[1]=B=>u()),"adjust-position":m.adjustPosition,class:"solid-bottom",maxlength:m.maxlength,"cursor-spacing":m.cursorSpacing,value:m.modelValue,onInput:_,placeholder:m.placeholder},null,40,Zt),e.createElementVNode("div",vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(h,["stop"])},null,2),m.functionItems&&m.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(b,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:e.normalizeClass(["cu-btn shadow-blur round",`bg-${m.buttonBg}`]),onClick:g[2]||(g[2]=B=>u())},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.buttonText),1)],!0)],2)],2),e.withDirectives(e.createVNode(Gt,{onAddEmoji:y},null,512),[[e.vShow,a.value]]),e.withDirectives(e.createVNode(Kt,{items:m.functionItems},null,8,["items"]),[[e.vShow,l.value]])],2))}}),[["__scopeId","data-v-5c0d8d64"]]);j.install=t=>{t.component(j.name,j)};const eo=["onClick"],to={class:"tab-content"},oo={name:"TTabs"},F=e.defineComponent({...oo,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(t,{emit:o}){const r=t,n=o,a=e.ref([]),l=e.ref(r.modelValue),c=(i,f)=>{l.value=i,n("update:modelValue",i),n("select",f)},s=i=>(a.value.push(i),a.value.length-1);e.provide("registerTab",s),e.provide("activeTab",l);const d=e.computed(()=>r.center!==!1?"justify-content:center;":`justify-content:${r.mode}`),p=e.computed(()=>i=>{let f=[];return l.value===i&&(f.push(`text-${r.color}`),r.bold!==!1&&f.push("text-bold"),r.line!==!1&&f.push("cur")),f});return e.watch(()=>r.modelValue,i=>{l.value=i},{immediate:!0}),(i,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${i.bg}`,`text-${i.text}`]]),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",p.value(h)]),key:h,onClick:b=>c(h,u)},[u.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${u.icon} text-${l.value===h?i.color:u.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.label),1)],10,eo))),128))],6),e.createElementVNode("div",to,[e.renderSlot(i.$slots,"default",{tab:a.value[l.value]})])],2))}}),no={name:"TTab"},L=e.defineComponent({...no,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(t){const o=t,r=e.inject("registerTab"),n=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(n==null?void 0:n.value)===a.value),c=e.computed(()=>({label:o.label,icon:o.icon,iconColor:o.iconColor}));return e.onMounted(()=>{r&&(a.value=r({label:o.label,icon:o.icon,iconColor:o.iconColor}))}),(s,d)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(s.$slots,"default"),e.renderSlot(s.$slots,"custom",{tab:c.value})],512)),[[e.vShow,l.value]])}});F.install=t=>{t.component(F.name,F)},L.install=t=>{t.component(L.name,L)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -18,6 +18,9 @@ type __VLS_Props = {
|
|
|
18
18
|
functionItems?: FunctionItem[];
|
|
19
19
|
buttonBg?: string;
|
|
20
20
|
placeholder?: string;
|
|
21
|
+
maxlength?: number;
|
|
22
|
+
adjustPosition?: boolean;
|
|
23
|
+
cursorSpacing?: number;
|
|
21
24
|
};
|
|
22
25
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
23
26
|
modelValue: string;
|
|
@@ -26,6 +29,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
|
|
|
26
29
|
stringArray: () => ArrayItem[];
|
|
27
30
|
functionItems: () => FunctionItem[];
|
|
28
31
|
placeholder: string;
|
|
32
|
+
maxlength: number;
|
|
33
|
+
adjustPosition: boolean;
|
|
34
|
+
cursorSpacing: number;
|
|
29
35
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
36
|
send: (...args: any[]) => void;
|
|
31
37
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -36,6 +42,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
|
|
|
36
42
|
stringArray: () => ArrayItem[];
|
|
37
43
|
functionItems: () => FunctionItem[];
|
|
38
44
|
placeholder: string;
|
|
45
|
+
maxlength: number;
|
|
46
|
+
adjustPosition: boolean;
|
|
47
|
+
cursorSpacing: number;
|
|
39
48
|
}>>> & {
|
|
40
49
|
onSend?: ((...args: any[]) => any) | undefined;
|
|
41
50
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -46,6 +55,9 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_With
|
|
|
46
55
|
modelValue: string;
|
|
47
56
|
functionItems: FunctionItem[];
|
|
48
57
|
buttonBg: string;
|
|
58
|
+
maxlength: number;
|
|
59
|
+
adjustPosition: boolean;
|
|
60
|
+
cursorSpacing: number;
|
|
49
61
|
}, {}>, {
|
|
50
62
|
default?: ((props: {}) => any) | undefined;
|
|
51
63
|
}>;
|