vue-color-ui 0.0.21 → 0.0.23

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.
@@ -1,5 +1,5 @@
1
- (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.TempColorUI={},r.Vue))})(this,function(r,e){"use strict";const P={class:"nav-list"},X=["url"],K={class:"nav-title"},H={class:"nav-name"},J={name:"TNavCard"},B=e.defineComponent({...J,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",P,[(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",K,e.toDisplayString(l.title),1),e.createElementVNode("div",H,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,X))),128))]))}});B.install=o=>{o.component(B.name,B)};const M=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),Q={class:"cu-item shadow"},W={class:"title"},Y={class:"text-cut"},Z={class:"content"},v=["src","alt"],ee={class:"desc"},te={class:"text-content"},oe={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},le={class:"text-gray"},ne=M(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ae=M(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),se=M(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ce={class:"margin-left-sm text-gray flex justify-between"},re={class:"text-grey margin-right-xs"},ie={name:"TNewCard"},de=e.defineComponent({...ie,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",Q,[e.createElementVNode("div",W,[e.createElementVNode("div",Y,e.toDisplayString(t.title),1)]),e.createElementVNode("div",Z,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,v),e.createElementVNode("div",ee,[e.createElementVNode("div",te,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",oe,[e.createElementVNode("div",le,[ne,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ae,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),se,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ce,[e.createElementVNode("div",re,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},E=A(de,[["__scopeId","data-v-bbdb83ff"]]);E.install=o=>{o.component(E.name,E)};const me={class:"cu-item shadow"},pe={class:"cu-list menu-avatar"},ge={class:"cu-item"},fe={class:"content flex-sub"},ke={class:"text-gray text-sm flex justify-between"},_e={class:"text-content"},he={class:"text-gray text-sm text-right padding"},ye=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),be=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Be=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Ee={class:"cu-item"},$e={class:"content"},Ce={class:"text-grey"},Ve={class:"text-gray text-content text-df"},Ne={class:"flex"},ue={class:"flex-sub"},Se={class:"margin-top-sm flex justify-between"},Ie={class:"text-gray text-df"},ze={key:0,class:"cuIcon-appreciatefill text-red"},we=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),De={class:"text-gray margin-left-xs"},Te={name:"TShareCard"},$=e.defineComponent({...Te,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",me,[e.createElementVNode("div",pe,[e.createElementVNode("div",ge,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",fe,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ke,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",_e,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",he,[ye,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),be,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",Ee,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",$e,[e.createElementVNode("div",Ce,e.toDisplayString(l.author),1),e.createElementVNode("div",Ve,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",Ne,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",ue,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",Se,[e.createElementVNode("div",Ie,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",ze)):e.createCommentVNode("",!0),we,e.createElementVNode("span",De,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});$.install=o=>{o.component($.name,$)};const xe={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function je(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=xe[t];return l?`${o}: ${l};`:""}function Fe(o){return je("font-size",o)}const Le={name:"TIcon"},_=e.defineComponent({...Le,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>Fe(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))}}),qe={class:"action border-title"},Ue={class:"action border-title"},Me={class:"tib text-xl text-bold text-blue"},Ae=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Oe={class:"action sub-title"},Re={class:"tib text-xl text-bold text-green"},Ge=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Pe={class:"action sub-title"},Xe={class:"action title-style-3"},Ke={key:5,class:"cu-bar bg-white"},He={class:"action"},Je={key:6,class:"cu-bar bg-white solid-bottom"},Qe={class:"action"},We={class:"action"},Ye={name:"TTitle"},C=e.defineComponent({...Ye,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",qe,[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",Ue,[e.createElementVNode("div",Me,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",Oe,[e.createElementVNode("div",Re,e.toDisplayString(t.title),1),Ge])],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",Pe,[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",Xe,[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",Ke,[e.createElementVNode("div",He,[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",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",We,[e.renderSlot(t.$slots,"action")])]))}}),Ze={name:"TAvatar"},g=e.defineComponent({...Ze,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))}}),ve={class:"cu-avatar-group"},et={name:"TAvatarGroup"},U=e.defineComponent({...et,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(g,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),tt=["disabled"],ot={key:1},lt={name:"TButton"},V=e.defineComponent({...lt,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",ot,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,tt))}}),nt={key:0},at={name:"TTag"},f=e.defineComponent({...at,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",nt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});_.install=o=>{o.component(_.name,_)},C.install=o=>{o.component(C.name,C)},g.install=o=>{o.component(g.name,g)},U.install=o=>{o.component(U.name,U)},V.install=o=>{o.component(V.name,V)},f.install=o=>{o.component(f.name,f)};const st=["onClick"],ct={key:0,class:"cuIcon-cu-image"},rt=["src"],it={key:0,class:"cu-tag badge"},dt={key:0,class:"cu-tag badge"},mt={name:"TNavBar"},N=e.defineComponent({...mt,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:c=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,rt),s.badge?(e.openBlock(),e.createElementBlock("div",it,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",dt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,st))),128))],2))}});N.install=o=>{o.component(N.name,N)};const pt={key:0,class:"action"},gt={key:1},ft={class:"content text-bold"},kt={key:2,class:"action"},_t={name:"TTopBar"},u=e.defineComponent({..._t,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",pt,[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",gt,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",ft,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});u.install=o=>{o.component(u.name,u)};const ht=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),yt=["placeholder"],bt={class:"action"},Bt={key:0,class:"cu-btn bg-green shadow-blur round"},Et={key:0},$t={key:3},Ct={name:"TSearchBar"},S=e.defineComponent({...Ct,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])},[ht,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:n.placeholder,"confirm-type":"search"},null,40,yt)],2),e.createElementVNode("div",bt,[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",Et,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",$t,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});S.install=o=>{o.component(S.name,S)};const Vt={class:"cu-bar input"},Nt={key:0,class:"action"},ut={key:1,class:"action"},St={class:"action"},It={key:2,class:"emoji-panel"},zt=["onClick"],wt={name:"TInputBar"},Dt=e.defineComponent({...wt,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},emits:["send"],setup(o,{emit:t}){const a=e.ref(0),l=e.ref(""),n=e.ref(!1),s=t,i=m=>{a.value=m.detail.height},c=()=>{a.value=0},k=()=>{s("send",l.value),l.value=""},y=()=>{n.value=!n.value},d=m=>{l.value+=m},p=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"];return(m,h)=>(e.openBlock(),e.createElementBlock("div",Vt,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{onFocus:i,onBlur:c,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10","onUpdate:modelValue":h[0]||(h[0]=b=>l.value=b)},null,544),[[e.vModelText,l.value]]),e.createElementVNode("div",St,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:y},null,2)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:k},e.toDisplayString(m.buttonText),1),n.value?(e.openBlock(),e.createElementBlock("div",It,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,b=>e.createElementVNode("span",{key:b,onClick:Mo=>d(b)},e.toDisplayString(b),9,zt)),64))])):e.createCommentVNode("",!0)]))}}),I=A(Dt,[["__scopeId","data-v-64a06dd5"]]);I.install=o=>{o.component(I.name,I)};const Tt=["onClick"],xt={class:"tab-content"},jt={name:"TTabs"},z=e.defineComponent({...jt,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,p)=>{s.value=d,l("update:modelValue",d),l("select",p)},c=d=>(n.value.push(d),n.value.length-1);e.provide("registerTab",c),e.provide("activeTab",s);const k=e.computed(()=>a.center!==!1?"justify-content:center;":`justify-content:${a.mode}`),y=e.computed(()=>d=>{let p=[];return s.value===d&&(p.push(`text-${a.color}`),a.bold!==!1&&p.push("text-bold"),a.line!==!1&&p.push("cur")),p});return e.watch(()=>a.modelValue,d=>{s.value=d}),(d,p)=>(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,(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",y.value(h)]),key:h,onClick:b=>i(h,m)},[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${m.icon} text-${s.value===h?d.color:m.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)],10,Tt))),128))],6),e.createElementVNode("div",xt,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),Ft={name:"TTab"},w=e.defineComponent({...Ft,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}))}),(c,k)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});z.install=o=>{o.component(z.name,z)},w.install=o=>{o.component(w.name,w)};/*!
1
+ (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.TempColorUI={},r.Vue))})(this,function(r,e){"use strict";const K={class:"nav-list"},H=["url"],J={class:"nav-title"},Q={class:"nav-name"},W={name:"TNavCard"},B=e.defineComponent({...W,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",K,[(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",J,e.toDisplayString(l.title),1),e.createElementVNode("div",Q,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,H))),128))]))}});B.install=o=>{o.component(B.name,B)};const M=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),Y={class:"cu-item shadow"},Z={class:"title"},v={class:"text-cut"},ee={class:"content"},te=["src","alt"],oe={class:"desc"},le={class:"text-content"},ne={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},ae={class:"text-gray"},se=M(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),ce=M(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),re=M(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),ie={class:"margin-left-sm text-gray flex justify-between"},de={class:"text-grey margin-right-xs"},me={name:"TNewCard"},pe=e.defineComponent({...me,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",Y,[e.createElementVNode("div",Z,[e.createElementVNode("div",v,e.toDisplayString(t.title),1)]),e.createElementVNode("div",ee,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,te),e.createElementVNode("div",oe,[e.createElementVNode("div",le,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",ne,[e.createElementVNode("div",ae,[se,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),ce,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),re,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",ie,[e.createElementVNode("div",de,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),R=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},b=R(pe,[["__scopeId","data-v-bbdb83ff"]]);b.install=o=>{o.component(b.name,b)};const ge={class:"cu-item shadow"},fe={class:"cu-list menu-avatar"},ke={class:"cu-item"},_e={class:"content flex-sub"},he={class:"text-gray text-sm flex justify-between"},ye={class:"text-content"},Be={class:"text-gray text-sm text-right padding"},be=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),Ee=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),$e=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Ce={class:"cu-item"},Ve={class:"content"},Ne={class:"text-grey"},ue={class:"text-gray text-content text-df"},Se={class:"flex"},Ie={class:"flex-sub"},ze={class:"margin-top-sm flex justify-between"},we={class:"text-gray text-df"},Te={key:0,class:"cuIcon-appreciatefill text-red"},De=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),xe={class:"text-gray margin-left-xs"},je={name:"TShareCard"},E=e.defineComponent({...je,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",ge,[e.createElementVNode("div",fe,[e.createElementVNode("div",ke,[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",he,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",ye,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",Be,[be,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),Ee,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),$e,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",Ce,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",Ve,[e.createElementVNode("div",Ne,e.toDisplayString(l.author),1),e.createElementVNode("div",ue,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",Se,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",Ie,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",ze,[e.createElementVNode("div",we,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",Te)):e.createCommentVNode("",!0),De,e.createElementVNode("span",xe,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});E.install=o=>{o.component(E.name,E)};const Fe={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function Le(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=Fe[t];return l?`${o}: ${l};`:""}function qe(o){return Le("font-size",o)}const Ue={name:"TIcon"},_=e.defineComponent({...Ue,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>qe(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))}}),Me={class:"action border-title"},Ae={class:"action border-title"},Oe={class:"tib text-xl text-bold text-blue"},Re=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Pe={class:"action sub-title"},Ge={class:"tib text-xl text-bold text-green"},Xe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),Ke={class:"action sub-title"},He={class:"action title-style-3"},Je={key:5,class:"cu-bar bg-white"},Qe={class:"action"},We={key:6,class:"cu-bar bg-white solid-bottom"},Ye={class:"action"},Ze={class:"action"},ve={name:"TTitle"},$=e.defineComponent({...ve,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",Me,[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",Ae,[e.createElementVNode("div",Oe,e.toDisplayString(t.title),1),Re])],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",Pe,[e.createElementVNode("div",Ge,e.toDisplayString(t.title),1),Xe])],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",Ke,[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",He,[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",Je,[e.createElementVNode("div",Qe,[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",We,[e.createElementVNode("div",Ye,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Ze,[e.renderSlot(t.$slots,"action")])]))}}),et={name:"TAvatar"},g=e.defineComponent({...et,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))}}),tt={class:"cu-avatar-group"},ot={name:"TAvatarGroup"},U=e.defineComponent({...ot,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.urls,(l,n)=>(e.openBlock(),e.createBlock(g,{key:n,url:l,size:t.size},null,8,["url","size"]))),128))]))}}),lt=["disabled"],nt={key:1},at={name:"TButton"},C=e.defineComponent({...at,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",nt,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,lt))}}),st={key:0},ct={name:"TTag"},f=e.defineComponent({...ct,props:{text:{},bg:{default:"blue"},size:{default:"default"},shape:{default:"default"},light:{type:Boolean,default:!1},line:{type:Boolean,default:!1}},setup(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",st,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});_.install=o=>{o.component(_.name,_)},$.install=o=>{o.component($.name,$)},g.install=o=>{o.component(g.name,g)},U.install=o=>{o.component(U.name,U)},C.install=o=>{o.component(C.name,C)},f.install=o=>{o.component(f.name,f)};const rt=["onClick"],it={key:0,class:"cuIcon-cu-image"},dt=["src"],mt={key:0,class:"cu-tag badge"},pt={key:0,class:"cu-tag badge"},gt={name:"TNavBar"},V=e.defineComponent({...gt,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:c=>a(s,i)},[s.img?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,dt),s.badge?(e.openBlock(),e.createElementBlock("div",mt,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",pt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,rt))),128))],2))}});V.install=o=>{o.component(V.name,V)};const ft={key:0,class:"action"},kt={key:1},_t={class:"content text-bold"},ht={key:2,class:"action"},yt={name:"TTopBar"},N=e.defineComponent({...yt,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",ft,[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",kt,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",ht,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${t.rightIcon} text-${t.rightIconColor}`)},null,2)])):e.createCommentVNode("",!0)],2))}});N.install=o=>{o.component(N.name,N)};const Bt=e.createElementVNode("text",{class:"cuIcon-search"},null,-1),bt=["placeholder"],Et={class:"action"},$t={key:0,class:"cu-btn bg-green shadow-blur round"},Ct={key:0},Vt={key:3},Nt={name:"TSearchBar"},u=e.defineComponent({...Nt,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])},[Bt,e.createElementVNode("input",{onFocus:a,onBlur:l,"adjust-position":!1,type:"text",placeholder:n.placeholder,"confirm-type":"search"},null,40,bt)],2),e.createElementVNode("div",Et,[n.buttonText?(e.openBlock(),e.createElementBlock("button",$t,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Ct,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",Vt,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});u.install=o=>{o.component(u.name,u)};const ut={class:"cu-bar input"},St={key:0,class:"action"},It={key:1,class:"action"},zt={class:"action"},wt=["onClick"],Tt={name:"TInputBar"},Dt=e.defineComponent({...Tt,props:{leftIcon:{},middleIcon:{},rightIcon:{},buttonText:{default:"发送"}},emits:["send"],setup(o,{emit:t}){const a=e.ref(0),l=e.ref(""),n=e.ref(!1),s=e.ref(null),i=t,c=m=>{a.value=m.detail.height},k=()=>{a.value=0,n.value=!1},y=()=>{i("send",l.value),l.value=""},d=async()=>{n.value=!n.value},p=m=>{l.value+=m},h=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"];return(m,O)=>(e.openBlock(),e.createElementBlock("div",ut,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.middleIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{onFocus:c,onBlur:k,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10","onUpdate:modelValue":O[0]||(O[0]=q=>l.value=q)},null,544),[[e.vModelText,l.value]]),e.createElementVNode("div",zt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:d},null,2)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:y},e.toDisplayString(m.buttonText),1),n.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"emoji-panel",ref_key:"emojiPanel",ref:s},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,q=>e.createElementVNode("span",{key:q,onClick:Mo=>p(q)},e.toDisplayString(q),9,wt)),64))],512)):e.createCommentVNode("",!0)]))}}),S=R(Dt,[["__scopeId","data-v-6780e869"]]);S.install=o=>{o.component(S.name,S)};const xt=["onClick"],jt={class:"tab-content"},Ft={name:"TTabs"},I=e.defineComponent({...Ft,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,p)=>{s.value=d,l("update:modelValue",d),l("select",p)},c=d=>(n.value.push(d),n.value.length-1);e.provide("registerTab",c),e.provide("activeTab",s);const k=e.computed(()=>a.center!==!1?"justify-content:center;":`justify-content:${a.mode}`),y=e.computed(()=>d=>{let p=[];return s.value===d&&(p.push(`text-${a.color}`),a.bold!==!1&&p.push("text-bold"),a.line!==!1&&p.push("cur")),p});return e.watch(()=>a.modelValue,d=>{s.value=d}),(d,p)=>(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,(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",y.value(m)]),key:m,onClick:O=>i(m,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${s.value===m?d.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,xt))),128))],6),e.createElementVNode("div",jt,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),Lt={name:"TTab"},z=e.defineComponent({...Lt,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}))}),(c,k)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.renderSlot(c.$slots,"default"),e.renderSlot(c.$slots,"custom",{tab:i.value})],512)),[[e.vShow,s.value]])}});I.install=o=>{o.component(I.name,I)},z.install=o=>{o.component(z.name,z)};/*!
2
2
  * vue-router v4.3.3
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */var O;(function(o){o.pop="pop",o.push="push"})(O||(O={}));var R;(function(o){o.back="back",o.forward="forward",o.unknown=""})(R||(R={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var G;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(G||(G={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Lt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function qt(){return e.inject(Lt)}const Ut=["onClick"],Mt={key:0,class:"cu-tag badge"},At={key:0},Ot={name:"GridGroup"},D=e.defineComponent({...Ot,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(o){const t=o,a=qt(),l=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:k=>l(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",Mt,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",At,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,Ut))),128))],2))}});D.install=o=>{o.component(D.name,D)};const Rt={class:"content"},Gt=["src","alt"],Pt={class:"text-grey"},Xt={class:"action"},Kt={key:1,class:"text-grey text-sm"},Ht=["onClick"],Jt={key:4,class:"text-grey text-sm"},Qt={name:"Menu"},T=e.defineComponent({...Qt,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(o){const t=a=>{a&&a()};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[a.menuBorder?"sm-border":"",a.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menuItems,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["cu-item",a.menuArrow?"arrow":""])},[e.createElementVNode("div",Rt,[n.icon?(e.openBlock(),e.createBlock(_,{key:0,class:"icon",name:n.icon.name,color:n.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),n.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:n.img.url,alt:n.img.alt},null,8,Gt)):e.createCommentVNode("",!0),e.createElementVNode("text",Pt,e.toDisplayString(n.title),1)]),e.createElementVNode("div",Xt,[n.group?(e.openBlock(),e.createBlock(U,{key:0,urls:n.group},null,8,["urls"])):e.createCommentVNode("",!0),n.group?(e.openBlock(),e.createElementBlock("text",Kt,e.toDisplayString(n.group.length)+"人",1)):e.createCommentVNode("",!0),n.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${n.btn.bg}`]),onClick:i=>{var c;return t((c=n.btn)==null?void 0:c.event)}},[n.btn.icon?(e.openBlock(),e.createBlock(_,{key:0,name:n.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btn.text),1)],10,Ht)):e.createCommentVNode("",!0),n.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.tags,(i,c)=>(e.openBlock(),e.createBlock(f,{size:i.size,key:c,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),n.text?(e.openBlock(),e.createElementBlock("text",Jt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)])],2))),128))],2))}});T.install=o=>{o.component(T.name,T)};const Wt={key:0,class:"cu-tag badge"},Yt={class:"content"},Zt={class:"flex align-center"},vt={class:"text-cut"},eo={class:"text-gray text-sm flex"},to={class:"text-cut"},oo={class:"action"},lo={class:"text-grey text-xs"},no=A(e.defineComponent({__name:"ChatListItem",props:{userinfo:{},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:t.isDisconnected,cur:t.isCurrent}])},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",t.userinfo.avatarShape,"lg"]),style:e.normalizeStyle({backgroundImage:`url(${t.userinfo.avatar})`})},[t.badge?(e.openBlock(),e.createElementBlock("div",Wt,e.toDisplayString(t.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Yt,[e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,e.toDisplayString(t.userinfo.name),1),t.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.userinfo.tagColor}`,"sm"])},e.toDisplayString(t.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),e.createElementVNode("div",oo,[e.createElementVNode("div",lo,e.toDisplayString(t.userinfo.time),1),t.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${t.unreadColor}`,"sm"])},e.toDisplayString(t.unread),3)):t.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.iconClass)},null,2)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-e90f08c9"]]),ao={class:"cu-list menu-avatar"},so={name:"ChatList"},x=e.defineComponent({...so,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createBlock(no,{key:n,userinfo:l.userinfo,unread:l.unread,unreadColor:l.unreadColor,badge:l.badge,icon:l.icon,iconClass:l.iconClass,isDisconnected:l.isDisconnected,isCurrent:l.isCurrent},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:l},()=>[e.createTextVNode(e.toDisplayString(l.content),1)])]),_:2},1032,["userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent"]))),128))]))}});x.install=o=>{o.component(x.name,x)};const co={class:"cu-chat"},ro={key:0,class:"cu-info round"},io={key:1,class:"cu-info"},mo=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),po={class:"main"},go=["src"],fo={key:2,class:"content shadow"},ko=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),_o={class:"action text-bold text-grey"},ho={key:3,class:"content shadow"},yo=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),bo={class:"content shadow"},Bo=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),Eo={class:"date"},$o={name:"ChatRoom"},j=e.defineComponent({...$o,props:{messages:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["cu-item",{self:l.self}])},[l.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.self?(e.openBlock(),e.createElementBlock("div",ro,e.toDisplayString(l.content),1)):(e.openBlock(),e.createElementBlock("div",io,[mo,e.createTextVNode(" "+e.toDisplayString(l.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:0,mode:"radius",url:l.avatar},null,8,["url"])),e.createElementVNode("div",po,[l.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":l.self}])},[e.createElementVNode("text",null,e.toDisplayString(l.content),1)],2)):l.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:l.content,class:"radius",style:{"max-width":"100%"}},null,8,go)):l.type==="audio"?(e.openBlock(),e.createElementBlock("div",fo,[ko,e.createElementVNode("div",_o,e.toDisplayString(l.content),1)])):l.type==="location"?(e.openBlock(),e.createElementBlock("div",ho,[yo,e.createTextVNode(" "+e.toDisplayString(l.content),1)])):l.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",bo,e.toDisplayString(l.content),1),Bo],64)):e.createCommentVNode("",!0)]),l.self?(e.openBlock(),e.createBlock(g,{key:1,mode:"radius",url:l.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",Eo,e.toDisplayString(l.date),1)],64))],2))),128))]))}});j.install=o=>{o.component(j.name,j)};const Co={class:"cu-time"},Vo={key:0,class:"cu-capsule radius"},No={name:"TimeLine"},F=e.defineComponent({...No,props:{items:{default:()=>[]}},setup(o){function t(l){return l||"cyan"}function a(l){switch(l.status){case"past":return`text-green cuIcon-${l.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${l.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${l.icon||"radioboxfill"}`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",Co,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,c=>{var k,y,d;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",a(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(k=c==null?void 0:c.capsule)!=null&&k.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",Vo,[e.createVNode(f,{bg:t((y=c.capsule)==null?void 0:y.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(f,{bg:t((d=c.capsule)==null?void 0:d.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(l.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});F.install=o=>{o.component(F.name,F)};const uo={class:"bg-white padding"},So=["data-index"],Io={name:"TSteps"},L=e.defineComponent({...Io,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(o,{emit:t}){return(a,l)=>(e.openBlock(),e.createElementBlock("div",uo,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,So),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});L.install=o=>{o.component(L.name,L)};const zo={class:"cu-dialog"},wo={class:"cu-bar bg-white justify-end padding-right-sm"},Do={class:"content"},To=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],xo={class:"padding-xl"},jo={name:"DrawerModal"},q=e.defineComponent({...jo,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(o,{emit:t}){const a=t,l=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",zo,[e.createElementVNode("div",wo,[e.createElementVNode("div",Do,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:l},To)]),e.createElementVNode("div",xo,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});q.install=o=>{o.component(q.name,q)};const Fo={install:o=>{o.use(_),o.use(C),o.use(g),o.use(B),o.use(E),o.use($),o.use(N),o.use(u),o.use(S),o.use(I),o.use(z),o.use(w),o.use(D),o.use(T),o.use(V),o.use(f),o.use(x),o.use(j),o.use(F),o.use(L),o.use(q)}};r.ChatList=x,r.ChatRoom=j,r.DrawerModal=q,r.GridGroup=D,r.Menu=T,r.TAvatar=g,r.TButton=V,r.TIcon=_,r.TInputBar=I,r.TNavBar=N,r.TNavCard=B,r.TNewCard=E,r.TSearchBar=S,r.TShareCard=$,r.TSteps=L,r.TTab=w,r.TTabs=z,r.TTag=f,r.TTitle=C,r.TTopBar=u,r.TimeLine=F,r.default=Fo,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */var P;(function(o){o.pop="pop",o.push="push"})(P||(P={}));var G;(function(o){o.back="back",o.forward="forward",o.unknown=""})(G||(G={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var X;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(X||(X={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const qt=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ut(){return e.inject(qt)}const Mt=["onClick"],At={key:0,class:"cu-tag badge"},Ot={key:0},Rt={name:"GridGroup"},w=e.defineComponent({...Rt,props:{cuIconList:{default:()=>[{cuIcon:"cardboardfill",color:"red",badge:120,name:"VR",link:"http://www.baidu.com/"},{cuIcon:"recordfill",color:"orange",badge:1,name:"录像"},{cuIcon:"picfill",color:"yellow",badge:0,name:"图像"},{cuIcon:"noticefill",color:"olive",badge:22,name:"通知"},{cuIcon:"upstagefill",color:"cyan",badge:0,name:"排行榜"},{cuIcon:"clothesfill",color:"blue",badge:0,name:"皮肤"},{cuIcon:"discoverfill",color:"purple",badge:0,name:"发现"},{cuIcon:"questionfill",color:"mauve",badge:0,name:"帮助"},{cuIcon:"commandfill",color:"purple",badge:0,name:"问答"},{cuIcon:"brandfill",color:"mauve",badge:0,name:"版权"}]},gridCol:{default:4},gridBorder:{type:Boolean,default:!1},routeFn:{type:Function,default:void 0}},setup(o){const t=o,a=Ut(),l=n=>{if(n.path){t.routeFn?t.routeFn().push({path:n.path}):a.push({path:n.path});return}if(n.link){window.location.href=n.link;return}};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list grid",["col-"+n.gridCol,n.gridBorder?"":"no-border"]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.cuIconList,(i,c)=>(e.openBlock(),e.createElementBlock("div",{class:"cu-item",key:c,style:e.normalizeStyle(`width: calc(100% / ${n.gridCol})`),onClick:k=>l(i)},[e.createElementVNode("div",{class:e.normalizeClass(["cuIcon-"+i.cuIcon,"text-"+i.color])},[i.badge!=0?(e.openBlock(),e.createElementBlock("div",At,[i.badge!=1?(e.openBlock(),e.createElementBlock("i",Ot,e.toDisplayString((i.badge||0)>99?"99+":i.badge),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),e.createElementVNode("text",null,e.toDisplayString(i.name),1)],12,Mt))),128))],2))}});w.install=o=>{o.component(w.name,w)};const Pt={class:"content"},Gt=["src","alt"],Xt={class:"text-grey"},Kt={class:"action"},Ht={key:1,class:"text-grey text-sm"},Jt=["onClick"],Qt={key:4,class:"text-grey text-sm"},Wt={name:"Menu"},T=e.defineComponent({...Wt,props:{menuItems:{default:()=>[{title:"测试菜单",icon:{name:"warn",color:"blue"},text:"小目标还没有实现!"},{title:"图片菜单",img:{url:"https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg",alt:"图片菜单"}},{title:"头像组",icon:{name:"emoji",color:"pink"},group:["https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg","https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg"]},{title:"按钮",icon:{name:"btn",color:"green"},btn:{text:"上传",bg:"green",icon:"upload",event:()=>{console.log("点击了按钮")}}},{title:"标签",icon:{name:"tagfill",color:"red"},tags:[{text:"音乐",bg:"orange",light:!0,size:"sm"},{text:"电影",bg:"green",light:!0,size:"sm"},{text:"旅行",light:!1}]}]},menuBorder:{type:Boolean,default:!1},menuArrow:{type:Boolean,default:!1},menuCard:{type:Boolean,default:!1}},setup(o){const t=a=>{a&&a()};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-list menu",[a.menuBorder?"sm-border":"",a.menuCard?"card-menu":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menuItems,(n,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["cu-item",a.menuArrow?"arrow":""])},[e.createElementVNode("div",Pt,[n.icon?(e.openBlock(),e.createBlock(_,{key:0,class:"icon",name:n.icon.name,color:n.icon.color},null,8,["name","color"])):e.createCommentVNode("",!0),n.img?(e.openBlock(),e.createElementBlock("img",{key:1,class:"icon",src:n.img.url,alt:n.img.alt},null,8,Gt)):e.createCommentVNode("",!0),e.createElementVNode("text",Xt,e.toDisplayString(n.title),1)]),e.createElementVNode("div",Kt,[n.group?(e.openBlock(),e.createBlock(U,{key:0,urls:n.group},null,8,["urls"])):e.createCommentVNode("",!0),n.group?(e.openBlock(),e.createElementBlock("text",Ht,e.toDisplayString(n.group.length)+"人",1)):e.createCommentVNode("",!0),n.btn?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(["cu-btn round shadow",`bg-${n.btn.bg}`]),onClick:i=>{var c;return t((c=n.btn)==null?void 0:c.event)}},[n.btn.icon?(e.openBlock(),e.createBlock(_,{key:0,name:n.btn.icon,color:"white"},null,8,["name"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btn.text),1)],10,Jt)):e.createCommentVNode("",!0),n.tags?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.tags,(i,c)=>(e.openBlock(),e.createBlock(f,{size:i.size,key:c,bg:i.bg,light:i.light,shape:"round"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.text),1)]),_:2},1032,["size","bg","light"]))),128)):e.createCommentVNode("",!0),n.text?(e.openBlock(),e.createElementBlock("text",Qt,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)])],2))),128))],2))}});T.install=o=>{o.component(T.name,T)};const Yt={key:1,class:"cu-tag badge"},Zt={class:"content"},vt={class:"flex align-center"},eo={class:"text-cut text-black"},to={class:"text-gray text-sm flex"},oo={class:"text-cut"},lo={class:"action"},no={class:"text-grey text-xs"},ao={name:"ChatListItem"},A=e.defineComponent({...ao,props:{userinfo:{},roomId:{},roomName:{},time:{default:""},avatarName:{default:"friendfill"},avatarBg:{default:"grey"},unread:{},unreadColor:{},badge:{},icon:{},iconClass:{},isDisconnected:{type:Boolean},isCurrent:{type:Boolean},content:{},event:{type:Function,default:()=>{}}},setup(o){const t=o;return(a,l)=>{var s;const n=e.resolveComponent("TIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",{grayscale:a.isDisconnected,cur:a.isCurrent}]),onClick:l[0]||(l[0]=i=>a.event(t))},[e.createElementVNode("div",{class:e.normalizeClass(["cu-avatar",a.userinfo.avatarShape,"lg",`bg-${a.avatarBg}`]),style:e.normalizeStyle({backgroundImage:`url(${a.userinfo.avatar})`})},[(s=a.userinfo)!=null&&s.avatar?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(n,{key:0,name:a.avatarName,size:36,color:"white"},null,8,["name"])),a.badge?(e.openBlock(),e.createElementBlock("div",Yt,e.toDisplayString(a.badge),1)):e.createCommentVNode("",!0)],6),e.createElementVNode("div",Zt,[e.createElementVNode("div",vt,[e.createElementVNode("div",eo,e.toDisplayString(a.userinfo.name),1),a.userinfo.tag?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${a.userinfo.tagColor}`,"sm"])},e.toDisplayString(a.userinfo.tag),3)):e.createCommentVNode("",!0)]),e.createElementVNode("div",to,[e.createElementVNode("div",oo,[e.renderSlot(a.$slots,"default")])])]),e.createElementVNode("div",lo,[e.createElementVNode("div",no,e.toDisplayString(a.time),1),a.unread?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cu-tag","round",`bg-${a.unreadColor}`,"sm"])},e.toDisplayString(a.unread),3)):a.icon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.iconClass)},null,2)):e.createCommentVNode("",!0)])],2)}}}),so={class:"cu-list menu-avatar"},co={name:"ChatList"},D=e.defineComponent({...co,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,n)=>(e.openBlock(),e.createBlock(A,{"avatar-name":l.avatarName,"avatar-bg":l.avatarBg,time:l.time,key:n,userinfo:l.userinfo,unread:l.unread,unreadColor:l.unreadColor,badge:l.badge,icon:l.icon,iconClass:l.iconClass,isDisconnected:l.isDisconnected,isCurrent:l.isCurrent,event:l.event},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{item:l},()=>[e.createTextVNode(e.toDisplayString(l.content),1)])]),_:2},1032,["avatar-name","avatar-bg","time","userinfo","unread","unreadColor","badge","icon","iconClass","isDisconnected","isCurrent","event"]))),128))]))}});D.install=o=>{o.component(D.name,D),o.component(A.name,A)};const ro={class:"cu-chat"},io={key:0,class:"cu-info round"},mo={key:1,class:"cu-info"},po=e.createElementVNode("text",{class:"cuIcon-roundclosefill text-red"},null,-1),go={class:"main"},fo=["src"],ko={key:2,class:"content shadow"},_o=e.createElementVNode("text",{class:"cuIcon-sound text-xxl padding-right-xl"},null,-1),ho={class:"action text-bold text-grey"},yo={key:3,class:"content shadow"},Bo=e.createElementVNode("text",{class:"cuIcon-locationfill text-orange text-xxl"},null,-1),bo={class:"content shadow"},Eo=e.createElementVNode("div",{class:"action text-grey"},[e.createElementVNode("text",{class:"cuIcon-warnfill text-red text-xxl"}),e.createElementVNode("text",{class:"text-sm margin-left-sm"},"翻译错误")],-1),$o={class:"date"},Co={name:"ChatRoom"},x=e.defineComponent({...Co,props:{messages:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.messages,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["cu-item",{self:l.self}])},[l.type==="info"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.self?(e.openBlock(),e.createElementBlock("div",io,e.toDisplayString(l.content),1)):(e.openBlock(),e.createElementBlock("div",mo,[po,e.createTextVNode(" "+e.toDisplayString(l.content),1)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.self?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:0,mode:"radius",url:l.avatar},null,8,["url"])),e.createElementVNode("div",go,[l.type==="text"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["content shadow",{"bg-green":l.self}])},[e.createElementVNode("text",null,e.toDisplayString(l.content),1)],2)):l.type==="image"?(e.openBlock(),e.createElementBlock("img",{key:1,src:l.content,class:"radius",style:{"max-width":"100%"}},null,8,fo)):l.type==="audio"?(e.openBlock(),e.createElementBlock("div",ko,[_o,e.createElementVNode("div",ho,e.toDisplayString(l.content),1)])):l.type==="location"?(e.openBlock(),e.createElementBlock("div",yo,[Bo,e.createTextVNode(" "+e.toDisplayString(l.content),1)])):l.type==="warning"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createElementVNode("div",bo,e.toDisplayString(l.content),1),Eo],64)):e.createCommentVNode("",!0)]),l.self?(e.openBlock(),e.createBlock(g,{key:1,mode:"radius",url:l.avatar},null,8,["url"])):e.createCommentVNode("",!0),e.createElementVNode("div",$o,e.toDisplayString(l.date),1)],64))],2))),128))]))}});x.install=o=>{o.component(x.name,x)};const Vo={class:"cu-time"},No={key:0,class:"cu-capsule radius"},uo={name:"TimeLine"},j=e.defineComponent({...uo,props:{items:{default:()=>[]}},setup(o){function t(l){return l||"cyan"}function a(l){switch(l.status){case"past":return`text-green cuIcon-${l.icon||"roundcheckfill"}`;case"ongoing":return"text-red cuIcon-all";case"upcoming":return`text-gray cuIcon-${l.icon||"radioboxfill"}`;default:return`text-gray cuIcon-${l.icon||"radioboxfill"}`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"cu-timeline"},[e.createElementVNode("div",Vo,e.toDisplayString(s.date),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.items,c=>{var k,y,d;return e.openBlock(),e.createElementBlock("div",{key:c.key,class:e.normalizeClass(["cu-item",a(c)])},[e.createElementVNode("div",{class:e.normalizeClass(["content",`bg-${c.bg||"gray"}`,"shadow-blur"])},[(k=c==null?void 0:c.capsule)!=null&&k.list&&c.capsule.list.length?(e.openBlock(),e.createElementBlock("div",No,[e.createVNode(f,{bg:t((y=c.capsule)==null?void 0:y.color)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[0]),1)]),_:2},1032,["bg"]),e.createVNode(f,{bg:t((d=c.capsule)==null?void 0:d.color),light:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.capsule.list[1]),1)]),_:2},1032,["bg"])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(c.capsule?"margin-top-sm":"")},[e.renderSlot(l.$slots,`item-${c.key}`,{},()=>[e.createTextVNode(e.toDisplayString(c.content),1)])],2)],2)],2)}),128))]))),128))]))}});j.install=o=>{o.component(j.name,j)};const So={class:"bg-white padding"},Io=["data-index"],zo={name:"TSteps"},F=e.defineComponent({...zo,props:{steps:{},modelValue:{},scrollX:{type:Boolean,default:!1},color:{default:"blue"}},emits:["update:modelValue"],setup(o,{emit:t}){return(a,l)=>(e.openBlock(),e.createElementBlock("div",So,[e.createElementVNode("div",{class:e.normalizeClass(["cu-steps",{"scroll-x":a.scrollX}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.steps,(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",s>a.modelValue?"":`text-${a.color}`]),key:s},[e.createElementVNode("text",{class:e.normalizeClass(n.cuIcon?"cuIcon-"+n.cuIcon:"num"),"data-index":s+1},e.toDisplayString(n.cuIcon?"":s+1),11,Io),e.createTextVNode(" "+e.toDisplayString(n.name),1)],2))),128))],2)]))}});F.install=o=>{o.component(F.name,F)};const wo={class:"cu-dialog"},To={class:"cu-bar bg-white justify-end padding-right-sm"},Do={class:"content"},xo=[e.createElementVNode("text",{class:"cuIcon-close text-red"},null,-1)],jo={class:"padding-xl"},Fo={name:"DrawerModal"},L=e.defineComponent({...Fo,props:{title:{},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(o,{emit:t}){const a=t,l=()=>{a("update:modelValue",!1)};return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-modal",n.modelValue?"show":""])},[e.createElementVNode("div",wo,[e.createElementVNode("div",To,[e.createElementVNode("div",Do,e.toDisplayString(n.title),1),e.createElementVNode("div",{class:"action",onClick:l},xo)]),e.createElementVNode("div",jo,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("Modal 内容~")])])])],2))}});L.install=o=>{o.component(L.name,L)};const Lo={install:o=>{o.use(_),o.use($),o.use(g),o.use(B),o.use(b),o.use(E),o.use(V),o.use(N),o.use(u),o.use(S),o.use(I),o.use(z),o.use(w),o.use(T),o.use(C),o.use(f),o.use(D),o.use(x),o.use(j),o.use(F),o.use(L)}};r.ChatList=D,r.ChatRoom=x,r.DrawerModal=L,r.GridGroup=w,r.Menu=T,r.TAvatar=g,r.TButton=C,r.TIcon=_,r.TInputBar=S,r.TNavBar=V,r.TNavCard=B,r.TNewCard=b,r.TSearchBar=u,r.TShareCard=E,r.TSteps=F,r.TTab=z,r.TTabs=I,r.TTag=f,r.TTitle=$,r.TTopBar=N,r.TimeLine=j,r.default=Lo,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vue-color-ui",
3
3
  "description": "ColorUI 临时代替的版本",
4
4
  "private": false,
5
- "version": "0.0.21",
5
+ "version": "0.0.23",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {
package/type/chat.d.ts CHANGED
@@ -5,8 +5,12 @@ interface ChatListItemOption {
5
5
  name: string;
6
6
  tag?: string;
7
7
  tagColor?: string;
8
- time: string;
9
8
  };
9
+ time?: string;
10
+ roomId?: string;
11
+ roomName?: string;
12
+ avatarName?: IconName;
13
+ avatarBg?: BgColorName;
10
14
  unread?: string | number;
11
15
  unreadColor?: string;
12
16
  badge?: string;
@@ -15,6 +19,7 @@ interface ChatListItemOption {
15
19
  isDisconnected?: boolean;
16
20
  isCurrent?: boolean;
17
21
  content?: string;
22
+ event?: Function
18
23
  }
19
24
 
20
25
  interface ChatListProps {
@@ -1,12 +1,16 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
2
  userinfo: {
3
3
  avatar: string;
4
- avatarShape?: string | undefined;
4
+ avatarShape?: string;
5
5
  name: string;
6
- tag?: string | undefined;
7
- tagColor?: string | undefined;
8
- time: string;
6
+ tag?: string;
7
+ tagColor?: string;
9
8
  };
9
+ roomId?: string | undefined;
10
+ roomName?: string | undefined;
11
+ time?: string | undefined;
12
+ avatarName?: IconName | undefined;
13
+ avatarBg?: BgColorName | undefined;
10
14
  unread?: string | number | undefined;
11
15
  unreadColor?: string | undefined;
12
16
  badge?: string | undefined;
@@ -14,15 +18,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
18
  iconClass?: string | undefined;
15
19
  isDisconnected?: boolean | undefined;
16
20
  isCurrent?: boolean | undefined;
17
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
21
+ content?: string | undefined;
22
+ event?: Function | undefined;
23
+ }>, {
24
+ avatarBg: string;
25
+ avatarName: string;
26
+ time: string;
27
+ event: () => void;
28
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
18
29
  userinfo: {
19
30
  avatar: string;
20
- avatarShape?: string | undefined;
31
+ avatarShape?: string;
21
32
  name: string;
22
- tag?: string | undefined;
23
- tagColor?: string | undefined;
24
- time: string;
33
+ tag?: string;
34
+ tagColor?: string;
25
35
  };
36
+ roomId?: string | undefined;
37
+ roomName?: string | undefined;
38
+ time?: string | undefined;
39
+ avatarName?: IconName | undefined;
40
+ avatarBg?: BgColorName | undefined;
26
41
  unread?: string | number | undefined;
27
42
  unreadColor?: string | undefined;
28
43
  badge?: string | undefined;
@@ -30,10 +45,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
45
  iconClass?: string | undefined;
31
46
  isDisconnected?: boolean | undefined;
32
47
  isCurrent?: boolean | undefined;
33
- }>>>, {}, {}>, {
48
+ content?: string | undefined;
49
+ event?: Function | undefined;
50
+ }>, {
51
+ avatarBg: string;
52
+ avatarName: string;
53
+ time: string;
54
+ event: () => void;
55
+ }>>>, {
56
+ avatarBg: BgColorName;
57
+ time: string;
58
+ event: Function;
59
+ avatarName: IconName;
60
+ }, {}>, {
34
61
  default?(_: {}): any;
35
62
  }>;
36
63
  export default _default;
64
+ type __VLS_WithDefaults<P, D> = {
65
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
+ default: D[K];
67
+ }> : P[K];
68
+ };
69
+ type __VLS_Prettify<T> = {
70
+ [K in keyof T]: T[K];
71
+ } & {};
37
72
  type __VLS_WithTemplateSlots<T, S> = T & {
38
73
  new (): {
39
74
  $slots: S;