vue-color-ui 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/temp-color-ui.js
CHANGED
|
@@ -12,7 +12,7 @@ const Be = { class: "nav-list" }, je = ["onClick"], Se = { class: "nav-title" },
|
|
|
12
12
|
emits: ["chickItem"],
|
|
13
13
|
setup(t, { emit: e }) {
|
|
14
14
|
const i = e, s = (c, a) => {
|
|
15
|
-
i("chickItem",
|
|
15
|
+
i("chickItem", c, a);
|
|
16
16
|
};
|
|
17
17
|
return (c, a) => (o(), l("div", Be, [
|
|
18
18
|
(o(!0), l(_, null, $(c.items, (d, f) => (o(), l("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var on=Object.defineProperty;var nn=(i,e,E)=>e in i?on(i,e,{enumerable:!0,configurable:!0,writable:!0,value:E}):i[e]=E;var y=(i,e,E)=>(nn(i,typeof e!="symbol"?e+"":e,E),E);const E={class:"nav-list"},v=["onClick"],ee={class:"nav-title"},te={class:"nav-name"},oe={name:"TNavCard"},C=e.defineComponent({...oe,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",{item:a,index:l})};return(a,l)=>(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(c,r)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+c.color]),style:e.normalizeStyle([{animation:"show "+((r+1)*.2+1)+"s 1"}]),key:r,onClick:m=>o(c,r)},[e.createElementVNode("div",ee,e.toDisplayString(c.title),1),e.createElementVNode("div",te,e.toDisplayString(c.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+c.cuIcon)},null,2)],14,v))),128))]))}});C.install=n=>{n.component(C.name,C)};const K=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),ne={class:"cu-item shadow"},le={class:"title"},ae={class:"text-cut"},se={class:"content"},ce=["src","alt"],re={class:"desc"},ie={class:"text-content"},de={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},me={class:"text-gray"},pe=K(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ge=K(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),fe=K(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ke={class:"margin-left-sm text-gray flex justify-between"},he={class:"text-grey margin-right-xs"},_e={name:"TNewCard"},ye=e.defineComponent({..._e,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",ne,[e.createElementVNode("div",le,[e.createElementVNode("div",ae,e.toDisplayString(t.title),1)]),e.createElementVNode("div",se,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,ce),e.createElementVNode("div",re,[e.createElementVNode("div",ie,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",me,[pe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ge,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),fe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ke,[e.createElementVNode("div",he,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),u=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},V=u(ye,[["__scopeId","data-v-bbdb83ff"]]);V.install=n=>{n.component(V.name,V)};const Be={class:"cu-item shadow"},be={class:"cu-list menu-avatar"},Ee={class:"cu-item"},$e={class:"content flex-sub"},ue={class:"text-gray text-sm flex justify-between"},Ce={class:"text-content"},Ve={class:"text-gray text-sm text-right padding"},Ne=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Ie=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Se=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),we={class:"cu-item"},ze={class:"content"},Te={class:"text-grey"},De={class:"text-gray text-content text-df"},xe={class:"flex"},je={class:"flex-sub"},Fe={class:"margin-top-sm flex justify-between"},Le={class:"text-gray text-df"},Me={key:0,class:"cuIcon-appreciatefill text-red"},qe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ae={class:"text-gray margin-left-xs"},Pe={name:"TShareCard"},N=e.defineComponent({...Pe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Be,[e.createElementVNode("div",be,[e.createElementVNode("div",Ee,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",$e,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ue,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ce,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Ve,[Ne,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),Ie,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Se,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",we,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",ze,[e.createElementVNode("div",Te,e.toDisplayString(o.author),1),e.createElementVNode("div",De,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",xe,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",je,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Le,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Me)):e.createCommentVNode("",!0),qe,e.createElementVNode("span",Ae,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});N.install=n=>{n.component(N.name,N)};const Ue={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Re(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ue[t];return o?`${n}: ${o};`:""}function Oe(n){return Re("font-size",n)}const Ge={name:"TIcon"},$=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>Oe(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},He={class:"action border-title"},Xe={class:"tib text-xl text-bold text-blue"},Je=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Qe={class:"action sub-title"},We={class:"tib text-xl text-bold text-green"},Ye=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"action title-style-3"},et={key:5,class:"cu-bar bg-white"},tt={class:"action"},ot={key:6,class:"cu-bar bg-white solid-bottom"},nt={class:"action"},lt={class:"action"},at={name:"TTitle"},I=e.defineComponent({...at,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",He,[e.createElementVNode("div",Xe,e.toDisplayString(t.title),1),Je])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Qe,[e.createElementVNode("div",We,e.toDisplayString(t.title),1),Ye])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ve,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",nt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",lt,[e.renderSlot(t.$slots,"action")])]))}}),st={name:"TAvatar"},B=e.defineComponent({...st,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ct={class:"cu-avatar-group"},rt={name:"TAvatarGroup"},O=e.defineComponent({...rt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(B,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),it=["disabled"],dt={key:1},mt={name:"TButton"},S=e.defineComponent({...mt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,it))}}),pt={key:0},gt={name:"TTag"},b=e.defineComponent({...gt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});$.install=n=>{n.component($.name,$)},I.install=n=>{n.component(I.name,I)},B.install=n=>{n.component(B.name,B)},O.install=n=>{n.component(O.name,O)},S.install=n=>{n.component(S.name,S)},b.install=n=>{n.component(b.name,b)};const ft=["onClick"],kt={key:0,class:"cuIcon-cu-image"},ht=["src"],_t={key:0,class:"cu-tag badge"},yt={key:0,class:"cu-tag badge"},Bt={name:"TNavBar"},w=e.defineComponent({...Bt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===o.activeIndex?o.activeColor:o.color}`]),onClick:r=>s(l,c)},[l.img?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ht),l.badge?(e.openBlock(),e.createElementBlock("div",_t,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",yt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,ft))),128))],2))}});w.install=n=>{n.component(w.name,w)};const bt={key:0,class:"action"},Et={key:1},$t={class:"content text-bold"},ut={key:2,class:"action"},Ct={name:"TTopBar"},z=e.defineComponent({...Ct,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",bt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Et,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",$t,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});z.install=n=>{n.component(z.name,z)};const Vt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Nt=["placeholder"],It={class:"action"},St={key:0,class:"cu-btn bg-green shadow-blur round"},wt={key:0},zt={key:3},Tt={name:"TSearchBar"},T=e.defineComponent({...Tt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[Vt,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,Nt)],2),e.createElementVNode("div",It,[a.buttonText?(e.openBlock(),e.createElementBlock("button",St,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",wt,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",zt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});T.install=n=>{n.component(T.name,T)};const Dt={key:0,class:"string-list"},xt=["innerHTML","onClick"],jt=u(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(c="",r)=>{s("send",c,r)},l=e.computed(()=>o.stringArray.map(c=>{if(!o.text)return c.text;let r="";for(let m of c.text)o.text.includes(m)?r+=`<span style="color:#ff0000">${m}</span>`:r+=m;return r}));return(c,r)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(m,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,innerHTML:m,onClick:p=>a(c.stringArray[g].text,c.stringArray[g])},null,8,xt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Ft=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Lt=["onClick"],Mt=u(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ft),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:r=>o(c)},e.toDisplayString(c),9,Lt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),qt={class:"function-panel-container"},At=["onClick"],Pt=u(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(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,At))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ut={class:"cu-bar input"},Rt={key:0,class:"action"},Ot={key:1,class:"action"},Gt=["value"],Kt={class:"action"},Ht={name:"TInputBar"},Xt=e.defineComponent({...Ht,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,c=n,r=d=>{s.value=d.detail.height},m=()=>{s.value=0},g=(d="",k)=>{d?l("send",d,k):l("send",c.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},f=()=>{o.value=!1,a.value=!a.value},h=d=>{l("update:modelValue",c.modelValue+d)},_=d=>{const k=d.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(d,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(jt,{text:d.modelValue,"string-array":d.stringArray,onSend:g},null,8,["text","string-array"]),e.createElementVNode("div",Ut,[d.leftIcon?(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),d.middleIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:r,onBlur:m,onKeydown:k[0]||(k[0]=e.withKeys(G=>g(),["enter"])),onConfirm:k[1]||(k[1]=G=>g()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:d.modelValue,onInput:_},null,40,Gt),e.createElementVNode("div",Kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),d.functionItems&&d.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(f,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=G=>g())},e.toDisplayString(d.buttonText),1)]),e.withDirectives(e.createVNode(Mt,{onAddEmoji:h},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Pt,{items:d.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),D=u(Xt,[["__scopeId","data-v-7b4ca731"]]);D.install=n=>{n.component(D.name,D)};const Jt=["onClick"],Qt={class:"tab-content"},Wt={name:"TTabs"},x=e.defineComponent({...Wt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),c=(p,f)=>{l.value=p,o("update:modelValue",p),o("select",f)},r=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",r),e.provide("activeTab",l);const m=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),g=e.computed(()=>p=>{let f=[];return l.value===p&&(f.push(`text-${s.color}`),s.bold!==!1&&f.push("text-bold"),s.line!==!1&&f.push("cur")),f});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(m.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",g.value(_)]),key:_,onClick:d=>c(_,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${l.value===_?p.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,Jt))),128))],6),e.createElementVNode("div",Qt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),Yt={name:"TTab"},j=e.defineComponent({...Yt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),c=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,m)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:c.value})],512)),[[e.vShow,l.value]])}});x.install=n=>{n.component(x.name,x)},j.install=n=>{n.component(j.name,j)};/*!
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.TempColorUI={},i.Vue))})(this,function(i,e){"use strict";var on=Object.defineProperty;var nn=(i,e,E)=>e in i?on(i,e,{enumerable:!0,configurable:!0,writable:!0,value:E}):i[e]=E;var y=(i,e,E)=>(nn(i,typeof e!="symbol"?e+"":e,E),E);const E={class:"nav-list"},v=["onClick"],ee={class:"nav-title"},te={class:"nav-name"},oe={name:"TNavCard"},C=e.defineComponent({...oe,props:{items:{}},emits:["chickItem"],setup(n,{emit:t}){const s=t,o=(a,l)=>{s("chickItem",a,l)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(c,r)=>(e.openBlock(),e.createElementBlock("div",{"hover-class":"none",class:e.normalizeClass(["nav-li","bg-"+c.color]),style:e.normalizeStyle([{animation:"show "+((r+1)*.2+1)+"s 1"}]),key:r,onClick:m=>o(c,r)},[e.createElementVNode("div",ee,e.toDisplayString(c.title),1),e.createElementVNode("div",te,e.toDisplayString(c.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+c.cuIcon)},null,2)],14,v))),128))]))}});C.install=n=>{n.component(C.name,C)};const K=n=>(e.pushScopeId("data-v-bbdb83ff"),n=n(),e.popScopeId(),n),ne={class:"cu-item shadow"},le={class:"title"},ae={class:"text-cut"},se={class:"content"},ce=["src","alt"],re={class:"desc"},ie={class:"text-content"},de={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},me={class:"text-gray"},pe=K(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ge=K(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),fe=K(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ke={class:"margin-left-sm text-gray flex justify-between"},he={class:"text-grey margin-right-xs"},_e={name:"TNewCard"},ye=e.defineComponent({..._e,props:{isCard:{type:Boolean,default:!0},title:{default:"无意者 烈火焚身;以正义的烈火拔出黑暗。我有自己的正义,见证至高的烈火吧。"},imageSrc:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},imageAlt:{default:"正义天使图片"},description:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!真正的恩典因不完整而美丽,因情感而真诚,因脆弱而自由!"},tags:{default:()=>["正义天使","史诗"]},footerInfo:{default:()=>({likes:10,appreciations:20,comments:30,author:"正义天使 凯尔",timeAgo:"十天前"})}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-card article",t.isCard?"":"no-card"])},[e.createElementVNode("div",ne,[e.createElementVNode("div",le,[e.createElementVNode("div",ae,e.toDisplayString(t.title),1)]),e.createElementVNode("div",se,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,ce),e.createElementVNode("div",re,[e.createElementVNode("div",ie,e.toDisplayString(t.description),1),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tags,o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"cu-tag bg-red light sm round"},e.toDisplayString(o),1))),128))])])]),t.footerInfo?(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",me,[pe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ge,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),fe,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ke,[e.createElementVNode("div",he,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),u=(n,t)=>{const s=n.__vccOpts||n;for(const[o,a]of t)s[o]=a;return s},V=u(ye,[["__scopeId","data-v-bbdb83ff"]]);V.install=n=>{n.component(V.name,V)};const Be={class:"cu-item shadow"},be={class:"cu-list menu-avatar"},Ee={class:"cu-item"},$e={class:"content flex-sub"},ue={class:"text-gray text-sm flex justify-between"},Ce={class:"text-content"},Ve={class:"text-gray text-sm text-right padding"},Ne=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Ie=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Se=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),we={class:"cu-item"},ze={class:"content"},Te={class:"text-grey"},De={class:"text-gray text-content text-df"},xe={class:"flex"},je={class:"flex-sub"},Fe={class:"margin-top-sm flex justify-between"},Le={class:"text-gray text-df"},Me={key:0,class:"cuIcon-appreciatefill text-red"},qe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),Ae={class:"text-gray margin-left-xs"},Pe={name:"TShareCard"},N=e.defineComponent({...Pe,props:{isCard:{type:Boolean,default:!0},author:{default:"凯尔"},avatarUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},date:{default:"2019年12月3日"},content:{default:"折磨生出苦难,苦难又会加剧折磨,凡间这无穷的循环,将有我来终结!"},imageUrl:{default:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},likes:{default:10},appreciations:{default:20},comments:{default:30},commentsList:{default:()=>[{id:1,author:"莫甘娜",avatarUrl:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",text:"凯尔,你被自己的光芒变的盲目。",date:"2018年12月4日",replies:[{id:1,author:"凯尔",text:"妹妹,你在帮他们给黑暗找借口吗?"},{id:1,author:"卡尔",text:"哦,我的白月光啊"}]},{id:2,author:"凯尔",avatarUrl:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg",text:"妹妹,如果不是为了飞翔,我们要这翅膀有什么用?",date:"2018年12月4日",replies:[{id:1,author:"莫甘娜",text:"如果不能立足于大地,要这双脚又有何用?"}]}]}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["cu-card dynamic",t.isCard?"is-card":"no-card"])},[e.createElementVNode("div",Be,[e.createElementVNode("div",be,[e.createElementVNode("div",Ee,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",$e,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ue,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Ce,e.toDisplayString(t.content),1),e.createElementVNode("div",{class:e.normalizeClass(["grid flex-sub padding-lr",t.isCard?"col-3 grid-square":"col-1"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isCard?9:1,o=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-img",t.isCard?"":"only-img"]),style:e.normalizeStyle({backgroundImage:`url(${t.imageUrl})`}),key:o},null,6))),128))],2),e.createElementVNode("div",Ve,[Ne,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),Ie,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Se,e.createTextVNode(" "+e.toDisplayString(t.comments),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.commentsList,o=>{var a;return e.openBlock(),e.createElementBlock("div",{class:"cu-list menu-avatar comment solids-top",key:o.id},[e.createElementVNode("div",we,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${o.avatarUrl})`})},null,4),e.createElementVNode("div",ze,[e.createElementVNode("div",Te,e.toDisplayString(o.author),1),e.createElementVNode("div",De,e.toDisplayString(o.text),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.replies,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"bg-grey padding-sm radius margin-top-sm text-sm"},[e.createElementVNode("div",xe,[e.createElementVNode("div",null,e.toDisplayString(l.author)+":",1),e.createElementVNode("div",je,e.toDisplayString(l.text),1)])]))),128)),e.createElementVNode("div",Fe,[e.createElementVNode("div",Le,e.toDisplayString(o.date),1),e.createElementVNode("div",null,[o.likes?(e.openBlock(),e.createElementBlock("span",Me)):e.createCommentVNode("",!0),qe,e.createElementVNode("span",Ae,e.toDisplayString((a=o.replies)==null?void 0:a.length),1)])])])])])}),128))])],2)]))}});N.install=n=>{n.component(N.name,N)};const Ue={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Re(n,t,s="px"){if(typeof t=="number")return`${n}: ${t}${s};`;const o=Ue[t];return o?`${n}: ${o};`:""}function Oe(n){return Re("font-size",n)}const Ge={name:"TIcon"},$=e.defineComponent({...Ge,props:{name:{},color:{default:"grey"},size:{default:15}},setup(n){const t=n,s=e.computed(()=>Oe(t.size));return(o,a)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(`cuIcon-${o.name} text-${o.color}`),style:e.normalizeStyle(s.value)},null,6))}}),Ke={class:"action border-title"},He={class:"action border-title"},Xe={class:"tib text-xl text-bold text-blue"},Je=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Qe={class:"action sub-title"},We={class:"tib text-xl text-bold text-green"},Ye=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ze={class:"action sub-title"},ve={class:"action title-style-3"},et={key:5,class:"cu-bar bg-white"},tt={class:"action"},ot={key:6,class:"cu-bar bg-white solid-bottom"},nt={class:"action"},lt={class:"action"},at={name:"TTitle"},I=e.defineComponent({...at,props:{title:{default:"主题名称"},deputy:{default:"about"},icon:{default:"titles"},color:{default:"blue"},decorateColor:{default:"olive"},mode:{},center:{type:Boolean,default:!1}},setup(n){return(t,s)=>t.mode==="default1"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib",`bg-${t.decorateColor}`]),style:{width:"2rem"}},null,2)])],2)):t.mode==="default2"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",He,[e.createElementVNode("div",Xe,e.toDisplayString(t.title),1),Je])],2)):t.mode==="default3"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Qe,[e.createElementVNode("div",We,e.toDisplayString(t.title),1),Ye])],2)):t.mode==="default4"?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",Ze,[e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl text-bold",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-ABC",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="bilingual"?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["cu-bar bg-white",t.center!==!1?"justify-center":""])},[e.createElementVNode("div",ve,[e.createElementVNode("div",{class:e.normalizeClass(["tib",`text-${t.color}`])},e.toDisplayString(t.title),3),e.createElementVNode("div",{class:e.normalizeClass(["tib text-Abc self-end margin-left-sm",`text-${t.decorateColor}`])},e.toDisplayString(t.deputy),3)])],2)):t.mode==="icon-title"?(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.createElementVNode("div",{class:e.normalizeClass(["tib text-xl",`text-${t.decorateColor}`])},e.toDisplayString(t.title),3)])])):(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",nt,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",lt,[e.renderSlot(t.$slots,"action")])]))}}),st={name:"TAvatar"},B=e.defineComponent({...st,props:{url:{},size:{default:"lg"},mode:{default:"round"}},setup(n){return(t,s)=>t.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-avatar",t.size,t.mode]),style:e.normalizeStyle({backgroundImage:`url(${t.url})`})},null,6)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["padding-xs",["cu-avatar",t.size,t.mode]])},[e.renderSlot(t.$slots,"default")],2))}}),ct={class:"cu-avatar-group"},rt={name:"TAvatarGroup"},O=e.defineComponent({...rt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(o,a)=>(e.openBlock(),e.createBlock(B,{key:a,url:o,size:t.size},null,8,["url","size"]))),128))]))}}),it=["disabled"],dt={key:1},mt={name:"TButton"},S=e.defineComponent({...mt,props:{text:{},bg:{default:"blue"},size:{default:"default"},rounded:{type:Boolean,default:!1},icon:{},disabled:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-btn",t.rounded?"round":"radius",t.shadow?"shadow":"",`bg-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({cursor:t.disabled?"not-allowed":"pointer"})),a=e.computed(()=>({marginRight:t.text?"8px":"0"}));return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value),disabled:l.disabled},[e.renderSlot(l.$slots,"default"),l.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${l.icon}`),style:e.normalizeStyle(a.value)},null,6)):e.createCommentVNode("",!0),l.text?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(l.text),1)):e.createCommentVNode("",!0)],14,it))}}),pt={key:0},gt={name:"TTag"},b=e.defineComponent({...gt,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(n){const t=n,s=e.computed(()=>["cu-tag",t.shape!=="default"?t.shape:"",t.light!==!1?"light":"",`${t.line!==!1?"line":"bg"}-${t.bg}`,t.size!=="default"?t.size:""].join(" ")),o=e.computed(()=>({}));return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),style:e.normalizeStyle(o.value)},[e.renderSlot(a.$slots,"default"),a.text?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(a.text),1)):e.createCommentVNode("",!0)],6))}});$.install=n=>{n.component($.name,$)},I.install=n=>{n.component(I.name,I)},B.install=n=>{n.component(B.name,B)},O.install=n=>{n.component(O.name,O)},S.install=n=>{n.component(S.name,S)},b.install=n=>{n.component(b.name,b)};const ft=["onClick"],kt={key:0,class:"cuIcon-cu-image"},ht=["src"],_t={key:0,class:"cu-tag badge"},yt={key:0,class:"cu-tag badge"},Bt={name:"TNavBar"},w=e.defineComponent({...Bt,props:{bg:{default:"white"},color:{default:"gray"},activeColor:{default:"red"},items:{default:()=>[{icon:"homefill",label:"首页"},{icon:"similar",label:"分类"},{img:"https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png",label:"积分"},{icon:"cart",label:"购物车",badge:99},{icon:"my",label:"我的"}]},isFoot:{type:Boolean,default:!1},activeIndex:{default:0},onItemClick:{type:Function,default:()=>{}}},setup(n){const t=n,s=(o,a)=>{t.onItemClick&&t.onItemClick(o,a)};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar tabbar",`bg-${o.bg} ${o.isFoot?"foot":""}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["action",`text-${c===o.activeIndex?o.activeColor:o.color}`]),onClick:r=>s(l,c)},[l.img?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("img",{src:l.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,ht),l.badge?(e.openBlock(),e.createElementBlock("div",_t,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",yt,e.toDisplayString(l.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(l.label),1)],10,ft))),128))],2))}});w.install=n=>{n.component(w.name,w)};const bt={key:0,class:"action"},Et={key:1},$t={class:"content text-bold"},ut={key:2,class:"action"},Ct={name:"TTopBar"},z=e.defineComponent({...Ct,props:{title:{},leftIcon:{},leftIconColor:{default:"gray"},leftText:{},rightIcon:{},rightIconColor:{default:"gray"},bg:{default:"white"},avatarUrl:{}},setup(n){return(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${t.bg}`])},[t.leftIcon||t.leftText?(e.openBlock(),e.createElementBlock("div",bt,[t.leftIcon?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass(`cuIcon-${t.leftIcon} text-${t.leftIconColor}`)},null,2)):e.createCommentVNode("",!0),t.leftText?(e.openBlock(),e.createElementBlock("span",Et,e.toDisplayString(t.leftText),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",$t,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});z.install=n=>{n.component(z.name,z)};const Vt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),Nt=["placeholder"],It={class:"action"},St={key:0,class:"cu-btn bg-green shadow-blur round"},wt={key:0},zt={key:3},Tt={name:"TSearchBar"},T=e.defineComponent({...Tt,props:{placeholder:{default:""},bgColor:{default:"white"},borderRadiusClass:{default:"round"},avatarUrl:{},buttonText:{},location:{},locationIcon:{},actionIcon:{},actionText:{}},setup(n){const t=e.ref(0),s=a=>{t.value=a.detail.height},o=()=>{t.value=0};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-bar",`bg-${a.bgColor}`,"search"])},[a.avatarUrl?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${a.avatarUrl})`})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["search-form",a.borderRadiusClass])},[Vt,e.createElementVNode("input",{onFocus:s,onBlur:o,"adjust-position":!1,type:"text",placeholder:a.placeholder,"confirm-type":"search"},null,40,Nt)],2),e.createElementVNode("div",It,[a.buttonText?(e.openBlock(),e.createElementBlock("button",St,e.toDisplayString(a.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.location?(e.openBlock(),e.createElementBlock("text",wt,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",zt,e.toDisplayString(a.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});T.install=n=>{n.component(T.name,T)};const Dt={key:0,class:"string-list"},xt=["innerHTML","onClick"],jt=u(e.defineComponent({__name:"CandidateBox",props:{text:{},stringArray:{default:()=>[]}},emits:["send"],setup(n,{emit:t}){const s=t,o=n,a=(c="",r)=>{s("send",c,r)},l=e.computed(()=>o.stringArray.map(c=>{if(!o.text)return c.text;let r="";for(let m of c.text)o.text.includes(m)?r+=`<span style="color:#ff0000">${m}</span>`:r+=m;return r}));return(c,r)=>c.stringArray.length?(e.openBlock(),e.createElementBlock("ul",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(m,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,innerHTML:m,onClick:p=>a(c.stringArray[g].text,c.stringArray[g])},null,8,xt))),128))])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-c7a21a1c"]]),Ft=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"],Lt=["onClick"],Mt=u(e.defineComponent({__name:"EmojiPanel",emits:["addEmoji"],setup(n,{emit:t}){const s=t,o=a=>{s("addEmoji",a)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:"emoji-panel",ref:"emojiPanel",onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ft),c=>(e.openBlock(),e.createElementBlock("span",{key:c,onClick:r=>o(c)},e.toDisplayString(c),9,Lt))),128))],512))}}),[["__scopeId","data-v-e9a4aa4d"]]),qt={class:"function-panel-container"},At=["onClick"],Pt=u(e.defineComponent({__name:"FunctionPanel",props:{items:{}},setup(n){const t=e.ref(null);return e.onMounted(()=>{}),(s,o)=>{const a=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",{class:"function-panel",ref_key:"functionPanel",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,(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,At))),128))],512)])}}}),[["__scopeId","data-v-1fefca20"]]),Ut={class:"cu-bar input"},Rt={key:0,class:"action"},Ot={key:1,class:"action"},Gt=["value"],Kt={class:"action"},Ht={name:"TInputBar"},Xt=e.defineComponent({...Ht,props:{modelValue:{},leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"},stringArray:{default:()=>[]},functionItems:{default:()=>[]}},emits:["update:modelValue","send"],setup(n,{emit:t}){const s=e.ref(0),o=e.ref(!1),a=e.ref(!1),l=t,c=n,r=d=>{s.value=d.detail.height},m=()=>{s.value=0},g=(d="",k)=>{d?l("send",d,k):l("send",c.modelValue),l("update:modelValue",""),o.value=!1},p=()=>{a.value=!1,o.value=!o.value},f=()=>{o.value=!1,a.value=!a.value},h=d=>{l("update:modelValue",c.modelValue+d)},_=d=>{const k=d.target;l("update:modelValue",k.value)};return e.onMounted(()=>{}),e.onUnmounted(()=>{}),(d,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(jt,{text:d.modelValue,"string-array":d.stringArray,onSend:g},null,8,["text","string-array"]),e.createElementVNode("div",Ut,[d.leftIcon?(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),d.middleIcon?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("input",{onFocus:r,onBlur:m,onKeydown:k[0]||(k[0]=e.withKeys(G=>g(),["enter"])),onConfirm:k[1]||(k[1]=G=>g()),"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10",value:d.modelValue,onInput:_},null,40,Gt),e.createElementVNode("div",Kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${d.rightIcon} text-grey`),onClick:e.withModifiers(p,["stop"])},null,2),d.functionItems&&d.functionItems.length>0?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass("cuIcon-roundaddfill text-grey"),onClick:e.withModifiers(f,["stop"])})):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k[2]||(k[2]=G=>g())},e.toDisplayString(d.buttonText),1)]),e.withDirectives(e.createVNode(Mt,{onAddEmoji:h},null,512),[[e.vShow,o.value]]),e.withDirectives(e.createVNode(Pt,{items:d.functionItems},null,8,["items"]),[[e.vShow,a.value]])],64))}}),D=u(Xt,[["__scopeId","data-v-7b4ca731"]]);D.install=n=>{n.component(D.name,D)};const Jt=["onClick"],Qt={class:"tab-content"},Wt={name:"TTabs"},x=e.defineComponent({...Wt,props:{modelValue:{default:0},center:{type:Boolean,default:!1},bg:{default:"white"},text:{},isCard:{type:Boolean,default:!1},mode:{default:"flex-start"},bold:{type:Boolean,default:!1},color:{default:"blue"},line:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(n,{emit:t}){const s=n,o=t,a=e.ref([]),l=e.ref(s.modelValue),c=(p,f)=>{l.value=p,o("update:modelValue",p),o("select",f)},r=p=>(a.value.push(p),a.value.length-1);e.provide("registerTab",r),e.provide("activeTab",l);const m=e.computed(()=>s.center!==!1?"justify-content:center;":`justify-content:${s.mode}`),g=e.computed(()=>p=>{let f=[];return l.value===p&&(f.push(`text-${s.color}`),s.bold!==!1&&f.push("text-bold"),s.line!==!1&&f.push("cur")),f});return e.watch(()=>s.modelValue,p=>{l.value=p},{immediate:!0}),(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.isCard!==!1?"is-card":"")},[e.createElementVNode("div",{class:e.normalizeClass(["nav flex",[,`bg-${p.bg}`,`text-${p.text}`]]),style:e.normalizeStyle(m.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(h,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",g.value(_)]),key:_,onClick:d=>c(_,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${l.value===_?p.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,Jt))),128))],6),e.createElementVNode("div",Qt,[e.renderSlot(p.$slots,"default",{tab:a.value[l.value]})])],2))}}),Yt={name:"TTab"},j=e.defineComponent({...Yt,props:{label:{},icon:{default:""},iconColor:{default:"black"}},setup(n){const t=n,s=e.inject("registerTab"),o=e.inject("activeTab"),a=e.ref(null),l=e.computed(()=>(o==null?void 0:o.value)===a.value),c=e.computed(()=>({label:t.label,icon:t.icon,iconColor:t.iconColor}));return e.onMounted(()=>{s&&(a.value=s({label:t.label,icon:t.icon,iconColor:t.iconColor}))}),(r,m)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(r.$slots,"default"),e.renderSlot(r.$slots,"custom",{tab:c.value})],512)),[[e.vShow,l.value]])}});x.install=n=>{n.component(x.name,x)},j.install=n=>{n.component(j.name,j)};/*!
|
|
2
2
|
* vue-router v4.3.3
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|