vue-color-ui 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/temp-color-ui.js +34 -34
- package/lib/temp-color-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/temp-color-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, openBlock as o, createElementBlock as n, Fragment as g, renderList as b, normalizeClass as i, normalizeStyle as v, createElementVNode as s, toDisplayString as c, createTextVNode as
|
|
1
|
+
import { defineComponent as _, openBlock as o, createElementBlock as n, Fragment as g, renderList as b, normalizeClass as i, normalizeStyle as v, createElementVNode as s, toDisplayString as c, createTextVNode as h, createCommentVNode as d, pushScopeId as ae, popScopeId as ce, computed as y, renderSlot as $, createBlock as k, ref as j, provide as ee, watch as ie, inject as Y, onMounted as re, withDirectives as ue, vShow as de, withCtx as W, createVNode as te } from "vue";
|
|
2
2
|
const pe = { class: "nav-list" }, fe = ["url"], _e = { class: "nav-title" }, ge = { class: "nav-name" }, he = {
|
|
3
3
|
name: "TNavCard"
|
|
4
4
|
}, q = /* @__PURE__ */ _({
|
|
@@ -78,15 +78,15 @@ const Z = (t) => (ae("data-v-bbdb83ff"), t = t(), ce(), t), me = { class: "cu-it
|
|
|
78
78
|
e.footerInfo ? (o(), n("div", we, [
|
|
79
79
|
s("div", Ce, [
|
|
80
80
|
xe,
|
|
81
|
-
|
|
81
|
+
h(" " + c(e.footerInfo.likes) + " ", 1),
|
|
82
82
|
Te,
|
|
83
|
-
|
|
83
|
+
h(" " + c(e.footerInfo.appreciations) + " ", 1),
|
|
84
84
|
Be,
|
|
85
|
-
|
|
85
|
+
h(" " + c(e.footerInfo.comments), 1)
|
|
86
86
|
]),
|
|
87
87
|
s("div", je, [
|
|
88
88
|
s("div", Se, c(e.footerInfo.author), 1),
|
|
89
|
-
|
|
89
|
+
h(" " + c(e.footerInfo.timeAgo), 1)
|
|
90
90
|
])
|
|
91
91
|
])) : d("", !0)
|
|
92
92
|
])
|
|
@@ -184,11 +184,11 @@ const Ve = { class: "cu-item shadow" }, Ne = { class: "cu-list menu-avatar" }, D
|
|
|
184
184
|
], 2),
|
|
185
185
|
s("div", Le, [
|
|
186
186
|
Me,
|
|
187
|
-
|
|
187
|
+
h(" " + c(e.likes) + " ", 1),
|
|
188
188
|
Fe,
|
|
189
|
-
|
|
189
|
+
h(" " + c(e.appreciations) + " ", 1),
|
|
190
190
|
Oe,
|
|
191
|
-
|
|
191
|
+
h(" " + c(e.comments), 1)
|
|
192
192
|
]),
|
|
193
193
|
(o(!0), n(g, null, b(e.commentsList, (l) => {
|
|
194
194
|
var a;
|
|
@@ -746,28 +746,28 @@ const Yt = ["onClick"], Zt = { class: "tab-content" }, es = {
|
|
|
746
746
|
mode: { default: "flex-start" },
|
|
747
747
|
bold: { type: Boolean, default: !1 },
|
|
748
748
|
color: { default: "blue" },
|
|
749
|
-
line: { type: Boolean, default: !
|
|
749
|
+
line: { type: Boolean, default: !0 }
|
|
750
750
|
},
|
|
751
751
|
emits: ["update:modelValue", "select"],
|
|
752
752
|
setup(t, { emit: e }) {
|
|
753
|
-
const r = t, l = e, a = j([]), u = j(0), f = (
|
|
754
|
-
u.value =
|
|
753
|
+
const r = t, l = e, a = j([]), u = j(0), f = (m, I) => {
|
|
754
|
+
u.value = m, l("update:modelValue", m), l("select", I);
|
|
755
755
|
};
|
|
756
|
-
ee("registerTab", (
|
|
757
|
-
const x = y(() => r.center !== !1 ? "justify-content:center;" : `justify-content:${r.mode}`), S = y(() => (
|
|
756
|
+
ee("registerTab", (m) => (a.value.push(m), a.value.length - 1)), ee("activeTab", u);
|
|
757
|
+
const x = y(() => r.center !== !1 ? "justify-content:center;" : `justify-content:${r.mode}`), S = y(() => (m) => {
|
|
758
758
|
let I = [];
|
|
759
|
-
return u.value ===
|
|
759
|
+
return u.value === m && (I.push(`text-${r.color}`), r.bold !== !1 && I.push("text-bold"), r.line !== !1 && I.push("cur")), I;
|
|
760
760
|
});
|
|
761
761
|
return ie(
|
|
762
762
|
() => r.modelValue,
|
|
763
|
-
(
|
|
764
|
-
u.value =
|
|
763
|
+
(m) => {
|
|
764
|
+
u.value = m;
|
|
765
765
|
}
|
|
766
|
-
), (
|
|
767
|
-
class: i(
|
|
766
|
+
), (m, I) => (o(), n("div", {
|
|
767
|
+
class: i(m.isCard !== !1 ? "is-card" : "")
|
|
768
768
|
}, [
|
|
769
769
|
s("div", {
|
|
770
|
-
class: i(["nav flex", [, `bg-${
|
|
770
|
+
class: i(["nav flex", [, `bg-${m.bg}`, `text-${m.text}`]]),
|
|
771
771
|
style: v(x.value)
|
|
772
772
|
}, [
|
|
773
773
|
(o(!0), n(g, null, b(a.value, (B, z) => (o(), n("div", {
|
|
@@ -777,13 +777,13 @@ const Yt = ["onClick"], Zt = { class: "tab-content" }, es = {
|
|
|
777
777
|
}, [
|
|
778
778
|
B.icon ? (o(), n("i", {
|
|
779
779
|
key: 0,
|
|
780
|
-
class: i(`cuIcon-${B.icon} text-${u.value === z ?
|
|
780
|
+
class: i(`cuIcon-${B.icon} text-${u.value === z ? m.color : B.iconColor}`)
|
|
781
781
|
}, null, 2)) : d("", !0),
|
|
782
|
-
|
|
782
|
+
h(" " + c(B.label), 1)
|
|
783
783
|
], 10, Yt))), 128))
|
|
784
784
|
], 6),
|
|
785
785
|
s("div", Zt, [
|
|
786
|
-
$(
|
|
786
|
+
$(m.$slots, "default", {
|
|
787
787
|
tab: a.value[u.value]
|
|
788
788
|
})
|
|
789
789
|
])
|
|
@@ -1096,7 +1096,7 @@ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey"
|
|
|
1096
1096
|
name: a.btn.icon,
|
|
1097
1097
|
color: "white"
|
|
1098
1098
|
}, null, 8, ["name"])) : d("", !0),
|
|
1099
|
-
|
|
1099
|
+
h(" " + c(a.btn.text), 1)
|
|
1100
1100
|
], 10, fs)) : d("", !0),
|
|
1101
1101
|
a.tags ? (o(!0), n(g, { key: 3 }, b(a.tags, (f, p) => (o(), k(C, {
|
|
1102
1102
|
size: f.size,
|
|
@@ -1106,7 +1106,7 @@ const is = { class: "content" }, rs = ["src", "alt"], us = { class: "text-grey"
|
|
|
1106
1106
|
shape: "round"
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: W(() => [
|
|
1109
|
-
|
|
1109
|
+
h(c(f.text), 1)
|
|
1110
1110
|
]),
|
|
1111
1111
|
_: 2
|
|
1112
1112
|
}, 1032, ["size", "bg", "light"]))), 128)) : d("", !0),
|
|
@@ -1192,7 +1192,7 @@ const hs = {
|
|
|
1192
1192
|
}, {
|
|
1193
1193
|
default: W(() => [
|
|
1194
1194
|
$(e.$slots, "default", { item: l }, () => [
|
|
1195
|
-
|
|
1195
|
+
h(c(l.content), 1)
|
|
1196
1196
|
])
|
|
1197
1197
|
]),
|
|
1198
1198
|
_: 2
|
|
@@ -1232,7 +1232,7 @@ const Bs = { class: "cu-chat" }, js = {
|
|
|
1232
1232
|
l.type === "info" ? (o(), n(g, { key: 0 }, [
|
|
1233
1233
|
l.self ? (o(), n("div", js, c(l.content), 1)) : (o(), n("div", Ss, [
|
|
1234
1234
|
zs,
|
|
1235
|
-
|
|
1235
|
+
h(" " + c(l.content), 1)
|
|
1236
1236
|
]))
|
|
1237
1237
|
], 64)) : (o(), n(g, { key: 1 }, [
|
|
1238
1238
|
l.self ? d("", !0) : (o(), k(w, {
|
|
@@ -1256,7 +1256,7 @@ const Bs = { class: "cu-chat" }, js = {
|
|
|
1256
1256
|
s("div", Es, c(l.content), 1)
|
|
1257
1257
|
])) : l.type === "location" ? (o(), n("div", Us, [
|
|
1258
1258
|
As,
|
|
1259
|
-
|
|
1259
|
+
h(" " + c(l.content), 1)
|
|
1260
1260
|
])) : l.type === "warning" ? (o(), n(g, { key: 4 }, [
|
|
1261
1261
|
s("div", Ls, c(l.content), 1),
|
|
1262
1262
|
Ms
|
|
@@ -1309,7 +1309,7 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1309
1309
|
}, [
|
|
1310
1310
|
s("div", Rs, c(u.date), 1),
|
|
1311
1311
|
(o(!0), n(g, null, b(u.items, (p) => {
|
|
1312
|
-
var x, S,
|
|
1312
|
+
var x, S, m;
|
|
1313
1313
|
return o(), n("div", {
|
|
1314
1314
|
key: p.key,
|
|
1315
1315
|
class: i(["cu-item", r(p)])
|
|
@@ -1322,16 +1322,16 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1322
1322
|
bg: e((S = p.capsule) == null ? void 0 : S.color)
|
|
1323
1323
|
}, {
|
|
1324
1324
|
default: W(() => [
|
|
1325
|
-
|
|
1325
|
+
h(c(p.capsule.list[0]), 1)
|
|
1326
1326
|
]),
|
|
1327
1327
|
_: 2
|
|
1328
1328
|
}, 1032, ["bg"]),
|
|
1329
1329
|
te(C, {
|
|
1330
|
-
bg: e((
|
|
1330
|
+
bg: e((m = p.capsule) == null ? void 0 : m.color),
|
|
1331
1331
|
light: !0
|
|
1332
1332
|
}, {
|
|
1333
1333
|
default: W(() => [
|
|
1334
|
-
|
|
1334
|
+
h(c(p.capsule.list[1]), 1)
|
|
1335
1335
|
]),
|
|
1336
1336
|
_: 2
|
|
1337
1337
|
}, 1032, ["bg"])
|
|
@@ -1340,7 +1340,7 @@ const Rs = { class: "cu-time" }, Gs = {
|
|
|
1340
1340
|
class: i(p.capsule ? "margin-top-sm" : "")
|
|
1341
1341
|
}, [
|
|
1342
1342
|
$(l.$slots, `item-${p.key}`, {}, () => [
|
|
1343
|
-
|
|
1343
|
+
h(c(p.content), 1)
|
|
1344
1344
|
])
|
|
1345
1345
|
], 2)
|
|
1346
1346
|
], 2)
|
|
@@ -1377,7 +1377,7 @@ const Ks = { class: "bg-white padding" }, Ps = ["data-index"], Hs = {
|
|
|
1377
1377
|
class: i(a.cuIcon ? "cuIcon-" + a.cuIcon : "num"),
|
|
1378
1378
|
"data-index": u + 1
|
|
1379
1379
|
}, c(a.cuIcon ? "" : u + 1), 11, Ps),
|
|
1380
|
-
|
|
1380
|
+
h(" " + c(a.name), 1)
|
|
1381
1381
|
], 2))), 128))
|
|
1382
1382
|
], 2)
|
|
1383
1383
|
]));
|
|
@@ -1414,7 +1414,7 @@ const Js = { class: "cu-dialog" }, Qs = { class: "cu-bar bg-white justify-end pa
|
|
|
1414
1414
|
]),
|
|
1415
1415
|
s("div", eo, [
|
|
1416
1416
|
$(a.$slots, "default", {}, () => [
|
|
1417
|
-
|
|
1417
|
+
h("Modal 内容~")
|
|
1418
1418
|
])
|
|
1419
1419
|
])
|
|
1420
1420
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const G={class:"nav-list"},P=["url"],X={class:"nav-title"},K={class:"nav-name"},H={name:"TNavCard"},_=e.defineComponent({...H,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+l.name,class:e.normalizeClass(["nav-li","bg-"+l.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",X,e.toDisplayString(l.title),1),e.createElementVNode("div",K,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,P))),128))]))}});_.install=o=>{o.component(_.name,_)};const U=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),J={class:"cu-item shadow"},Q={class:"title"},W={class:"text-cut"},Y={class:"content"},Z=["src","alt"],v={class:"desc"},ee={class:"text-content"},te={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},oe={class:"text-gray"},le=U(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ne=U(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ae=U(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),se={class:"margin-left-sm text-gray flex justify-between"},ce={class:"text-grey margin-right-xs"},re={name:"TNewCard"},ie=e.defineComponent({...re,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",J,[e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(t.title),1)]),e.createElementVNode("div",Y,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Z),e.createElementVNode("div",v,[e.createElementVNode("div",ee,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"cu-tag bg-red light sm round"},e.toDisplayString(l),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",oe,[le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ae,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",se,[e.createElementVNode("div",ce,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),A=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},h=A(ie,[["__scopeId","data-v-bbdb83ff"]]);h.install=o=>{o.component(h.name,h)};const de={class:"cu-item shadow"},me={class:"cu-list menu-avatar"},pe={class:"cu-item"},ge={class:"content flex-sub"},fe={class:"text-gray text-sm flex justify-between"},ke={class:"text-content"},_e={class:"text-gray text-sm text-right padding"},he=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),be=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Be={class:"cu-item"},Ee={class:"content"},$e={class:"text-grey"},Ce={class:"text-gray text-content text-df"},Ve={class:"flex"},Ne={class:"flex-sub"},ue={class:"margin-top-sm flex justify-between"},Se={class:"text-gray text-df"},Ie={key:0,class:"cuIcon-appreciatefill text-red"},ze=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),we={class:"text-gray margin-left-xs"},De={name:"TShareCard"},y=e.defineComponent({...De,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",ge,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",fe,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",ke,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,l=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:l},null,6))),128))],2),e.createElementVNode("div",_e,[he,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),be,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,l=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:l.id},[e.createElementVNode("div",Be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,e.toDisplayString(l.author),1),e.createElementVNode("div",Ce,e.toDisplayString(l.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ne,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",ue,[e.createElementVNode("div",Se,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",Ie)):e.createCommentVNode("",!0),ze,e.createElementVNode("span",we,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});y.install=o=>{o.component(y.name,y)};const Te={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function xe(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=Te[t];return l?`${o}: ${l};`:""}function je(o){return xe("font-size",o)}const Fe={name:"TIcon"},g=e.defineComponent({...Fe,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>je(t.size));return(l,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${l.name} text-${l.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Le={class:"action border-title"},qe={class:"action border-title"},Ue={class:"tib text-xl text-bold text-blue"},Ae=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Me={class:"action sub-title"},Oe={class:"tib text-xl text-bold text-green"},Re=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ge={class:"action sub-title"},Pe={class:"action title-style-3"},Xe={key:5,class:"cu-bar bg-white"},Ke={class:"action"},He={key:6,class:"cu-bar bg-white solid-bottom"},Je={class:"action"},Qe={class:"action"},We={name:"TTitle"},b=e.defineComponent({...We,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(o){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[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",qe,[e.createElementVNode("div",Ue,e.toDisplayString(t.title),1),Ae])],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",Me,[e.createElementVNode("div",Oe,e.toDisplayString(t.title),1),Re])],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",Ge,[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",Pe,[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",Xe,[e.createElementVNode("div",Ke,[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",He,[e.createElementVNode("div",Je,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Qe,[e.renderSlot(t.$slots,"action")])]))}}),Ye={name:"TAvatar"},m=e.defineComponent({...Ye,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),Ze={class:"cu-avatar-group"},ve={name:"TAvatarGroup"},F=e.defineComponent({...ve,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),et=["disabled"],tt={key:1},ot={name:"TButton"},B=e.defineComponent({...ot,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(o){const t=o,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",tt,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,et))}}),lt={key:0},nt={name:"TTag"},p=e.defineComponent({...nt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(o){const t=o,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value)},[e.renderSlot(n.$slots,"default"),n.text?(e.openBlock(),e.createElementBlock("span",lt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});g.install=o=>{o.component(g.name,g)},b.install=o=>{o.component(b.name,b)},m.install=o=>{o.component(m.name,m)},F.install=o=>{o.component(F.name,F)},B.install=o=>{o.component(B.name,B)},p.install=o=>{o.component(p.name,p)};const at=["onClick"],st={key:0,class:"cuIcon-cu-image"},ct=["src"],rt={key:0,class:"cu-tag badge"},it={key:0,class:"cu-tag badge"},dt={name:"TNavBar"},E=e.defineComponent({...dt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(o){const t=o,a=(l,n)=>{t.onItemClick&&t.onItemClick(l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${l.bg} ${l.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===l.activeIndex?l.activeColor:l.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ct),s.badge?(e.openBlock(),e.createElementBlock("div",rt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",it,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,at))),128))],2))}});E.install=o=>{o.component(E.name,E)};const mt={key:0,class:"action"},pt={key:1},gt={class:"content text-bold"},ft={key:2,class:"action"},kt={name:"TTopBar"},$=e.defineComponent({...kt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",mt,[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",pt,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",gt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});$.install=o=>{o.component($.name,$)};const _t=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),ht=["placeholder"],yt={class:"action"},bt={key:0,class:"cu-btn bg-green shadow-blur round"},Bt={key:0},Et={key:3},$t={name:"TSearchBar"},C=e.defineComponent({...$t,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[_t,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:n.placeholder,"confirm-type":"search"},null,40,ht)],2),e.createElementVNode("div",yt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Bt,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});C.install=o=>{o.component(C.name,C)};const Ct={class:"cu-bar input"},Vt={key:0,class:"action"},Nt={key:1,class:"action"},ut={class:"action"},St={class:"cu-btn bg-green shadow-blur"},It={name:"TInputBar"},V=e.defineComponent({...It,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Ct,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",St,e.toDisplayString(n.buttonText),1)]))}});V.install=o=>{o.component(V.name,V)};const zt=["onClick"],wt={class:"tab-content"},Dt={name:"TTabs"},N=e.defineComponent({...Dt,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:!1}},emits:["update:modelValue","select"],setup(o,{emit:t}){const a=o,l=t,n=e.ref([]),s=e.ref(0),i=(d,f)=>{s.value=d,l("update:modelValue",d),l("select",f)},r=d=>(n.value.push(d),n.value.length-1);e.provide("registerTab",r),e.provide("activeTab",s);const k=e.computed(()=>a.center!==!1?"justify-content:center;":`justify-content:${a.mode}`),L=e.computed(()=>d=>{let f=[];return s.value===d&&(f.push(`cur text-${a.color}`),a.bold!==!1&&f.push("text-bold"),a.line&&s.value===d&&f.push("cur")),f});return e.watch(()=>a.modelValue,d=>{s.value=d}),(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(k.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(j,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",L.value(q)]),key:q,onClick:Lo=>i(q,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${s.value===q?d.color:j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,zt))),128))],6),e.createElementVNode("div",wt,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),Tt={name:"TTab"},u=e.defineComponent({...Tt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,a=e.inject("registerTab"),l=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(l==null?void 0:l.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,k)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});N.install=o=>{o.component(N.name,N)},u.install=o=>{o.component(u.name,u)};/*!
|
|
1
|
+
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.TempColorUI={},c.Vue))})(this,function(c,e){"use strict";const G={class:"nav-list"},P=["url"],X={class:"nav-title"},K={class:"nav-name"},H={name:"TNavCard"},_=e.defineComponent({...H,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",url:"/pages/basics/"+l.name,class:e.normalizeClass(["nav-li","bg-"+l.color]),navigateTo:"",style:e.normalizeStyle([{animation:"show "+((n+1)*.2+1)+"s 1"}]),key:n},[e.createElementVNode("div",X,e.toDisplayString(l.title),1),e.createElementVNode("div",K,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,P))),128))]))}});_.install=o=>{o.component(_.name,_)};const U=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),J={class:"cu-item shadow"},Q={class:"title"},W={class:"text-cut"},Y={class:"content"},Z=["src","alt"],v={class:"desc"},ee={class:"text-content"},te={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},oe={class:"text-gray"},le=U(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ne=U(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ae=U(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),se={class:"margin-left-sm text-gray flex justify-between"},ce={class:"text-grey margin-right-xs"},re={name:"TNewCard"},ie=e.defineComponent({...re,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",J,[e.createElementVNode("div",Q,[e.createElementVNode("div",W,e.toDisplayString(t.title),1)]),e.createElementVNode("div",Y,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,Z),e.createElementVNode("div",v,[e.createElementVNode("div",ee,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,l=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"cu-tag bg-red light sm round"},e.toDisplayString(l),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",oe,[le,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ae,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",se,[e.createElementVNode("div",ce,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),A=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},h=A(ie,[["__scopeId","data-v-bbdb83ff"]]);h.install=o=>{o.component(h.name,h)};const de={class:"cu-item shadow"},me={class:"cu-list menu-avatar"},pe={class:"cu-item"},ge={class:"content flex-sub"},fe={class:"text-gray text-sm flex justify-between"},ke={class:"text-content"},_e={class:"text-gray text-sm text-right padding"},he=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),ye=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),be=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Be={class:"cu-item"},Ee={class:"content"},$e={class:"text-grey"},Ce={class:"text-gray text-content text-df"},Ve={class:"flex"},Ne={class:"flex-sub"},ue={class:"margin-top-sm flex justify-between"},Se={class:"text-gray text-df"},Ie={key:0,class:"cuIcon-appreciatefill text-red"},ze=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),we={class:"text-gray margin-left-xs"},De={name:"TShareCard"},y=e.defineComponent({...De,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",de,[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",ge,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",fe,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",ke,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,l=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:l},null,6))),128))],2),e.createElementVNode("div",_e,[he,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),ye,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),be,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,l=>{var n;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:l.id},[e.createElementVNode("div",Be,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",Ee,[e.createElementVNode("div",$e,e.toDisplayString(l.author),1),e.createElementVNode("div",Ce,e.toDisplayString(l.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.replies,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",Ve,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ne,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",ue,[e.createElementVNode("div",Se,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",Ie)):e.createCommentVNode("",!0),ze,e.createElementVNode("span",we,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});y.install=o=>{o.component(y.name,y)};const Te={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function xe(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=Te[t];return l?`${o}: ${l};`:""}function je(o){return xe("font-size",o)}const Fe={name:"TIcon"},g=e.defineComponent({...Fe,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>je(t.size));return(l,n)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${l.name} text-${l.color}`),style:e.normalizeStyle(a.value)},null,6))}}),Le={class:"action border-title"},qe={class:"action border-title"},Ue={class:"tib text-xl text-bold text-blue"},Ae=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Me={class:"action sub-title"},Oe={class:"tib text-xl text-bold text-green"},Re=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ge={class:"action sub-title"},Pe={class:"action title-style-3"},Xe={key:5,class:"cu-bar bg-white"},Ke={class:"action"},He={key:6,class:"cu-bar bg-white solid-bottom"},Je={class:"action"},Qe={class:"action"},We={name:"TTitle"},b=e.defineComponent({...We,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(o){return(t,a)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Le,[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",qe,[e.createElementVNode("div",Ue,e.toDisplayString(t.title),1),Ae])],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",Me,[e.createElementVNode("div",Oe,e.toDisplayString(t.title),1),Re])],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",Ge,[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",Pe,[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",Xe,[e.createElementVNode("div",Ke,[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",He,[e.createElementVNode("div",Je,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Qe,[e.renderSlot(t.$slots,"action")])]))}}),Ye={name:"TAvatar"},m=e.defineComponent({...Ye,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(o){return(t,a)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),Ze={class:"cu-avatar-group"},ve={name:"TAvatarGroup"},F=e.defineComponent({...ve,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(m,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),et=["disabled"],tt={key:1},ot={name:"TButton"},B=e.defineComponent({...ot,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(o){const t=o,a=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),n=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(s,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value),disabled:s.disabled},[e.renderSlot(s.$slots,"default"),s.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${s.icon}`),style:e.normalizeStyle(n.value)},null,6)):e.createCommentVNode("",!0),s.text?(e.openBlock(),e.createElementBlock("span",tt,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,et))}}),lt={key:0},nt={name:"TTag"},p=e.defineComponent({...nt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(o){const t=o,a=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),l=e.computed(()=>({}));return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(l.value)},[e.renderSlot(n.$slots,"default"),n.text?(e.openBlock(),e.createElementBlock("span",lt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});g.install=o=>{o.component(g.name,g)},b.install=o=>{o.component(b.name,b)},m.install=o=>{o.component(m.name,m)},F.install=o=>{o.component(F.name,F)},B.install=o=>{o.component(B.name,B)},p.install=o=>{o.component(p.name,p)};const at=["onClick"],st={key:0,class:"cuIcon-cu-image"},ct=["src"],rt={key:0,class:"cu-tag badge"},it={key:0,class:"cu-tag badge"},dt={name:"TNavBar"},E=e.defineComponent({...dt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(o){const t=o,a=(l,n)=>{t.onItemClick&&t.onItemClick(l,n)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${l.bg} ${l.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["action",`text-${i===l.activeIndex?l.activeColor:l.color}`]),onClick:r=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",st,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ct),s.badge?(e.openBlock(),e.createElementBlock("div",rt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`cuIcon-${s.icon}`)},[s.badge?(e.openBlock(),e.createElementBlock("div",it,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,at))),128))],2))}});E.install=o=>{o.component(E.name,E)};const mt={key:0,class:"action"},pt={key:1},gt={class:"content text-bold"},ft={key:2,class:"action"},kt={name:"TTopBar"},$=e.defineComponent({...kt,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",mt,[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",pt,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",gt,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});$.install=o=>{o.component($.name,$)};const _t=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),ht=["placeholder"],yt={class:"action"},bt={key:0,class:"cu-btn bg-green shadow-blur round"},Bt={key:0},Et={key:3},$t={name:"TSearchBar"},C=e.defineComponent({...$t,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${n.bgColor}`,"search"])},[n.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${n.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",n.borderRadiusClass])},[_t,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:n.placeholder,"confirm-type":"search"},null,40,ht)],2),e.createElementVNode("div",yt,[n.buttonText?(e.openBlock(),e.createElementBlock("button",bt,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Bt,e.toDisplayString(n.location),1)):e.createCommentVNode("",!0),n.locationIcon?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(`cuIcon-${n.locationIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionIcon?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass(`cuIcon-${n.actionIcon}`)},null,2)):e.createCommentVNode("",!0),n.actionText?(e.openBlock(),e.createElementBlock("text",Et,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});C.install=o=>{o.component(C.name,C)};const Ct={class:"cu-bar input"},Vt={key:0,class:"action"},Nt={key:1,class:"action"},ut={class:"action"},St={class:"cu-btn bg-green shadow-blur"},It={name:"TInputBar"},V=e.defineComponent({...It,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},setup(o){const t=e.ref(0),a=n=>{t.value=n.detail.height},l=()=>{t.value=0};return(n,s)=>(e.openBlock(),e.createElementBlock("div",Ct,[n.leftIcon?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),n.middleIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10"},null,32),e.createElementVNode("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${n.rightIcon} text-grey`)},null,2)]),e.createElementVNode("button",St,e.toDisplayString(n.buttonText),1)]))}});V.install=o=>{o.component(V.name,V)};const zt=["onClick"],wt={class:"tab-content"},Dt={name:"TTabs"},N=e.defineComponent({...Dt,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 a=o,l=t,n=e.ref([]),s=e.ref(0),i=(d,f)=>{s.value=d,l("update:modelValue",d),l("select",f)},r=d=>(n.value.push(d),n.value.length-1);e.provide("registerTab",r),e.provide("activeTab",s);const k=e.computed(()=>a.center!==!1?"justify-content:center;":`justify-content:${a.mode}`),L=e.computed(()=>d=>{let f=[];return s.value===d&&(f.push(`text-${a.color}`),a.bold!==!1&&f.push("text-bold"),a.line!==!1&&f.push("cur")),f});return e.watch(()=>a.modelValue,d=>{s.value=d}),(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${d.bg}`,`text-${d.text}`]]),style:e.normalizeStyle(k.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(j,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",L.value(q)]),key:q,onClick:Lo=>i(q,j)},[j.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${j.icon} text-${s.value===q?d.color:j.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(j.label),1)],10,zt))),128))],6),e.createElementVNode("div",wt,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),Tt={name:"TTab"},u=e.defineComponent({...Tt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(o){const t=o,a=e.inject("registerTab"),l=e.inject("activeTab"),n=e.ref(null),s=e.computed(()=>(l==null?void 0:l.value)===n.value),i=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{a&&(n.value=a({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,k)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});N.install=o=>{o.component(N.name,N)},u.install=o=>{o.component(u.name,u)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|