vue-color-ui 0.0.25 → 0.0.26

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.
@@ -851,7 +851,7 @@ const is = ["onClick"], rs = { class: "tab-content" }, us = {
851
851
  },
852
852
  emits: ["update:modelValue", "select"],
853
853
  setup(t, { emit: e }) {
854
- const c = t, o = e, a = B([]), u = B(0), f = (m, I) => {
854
+ const c = t, o = e, a = B([]), u = B(c.modelValue), f = (m, I) => {
855
855
  u.value = m, o("update:modelValue", m), o("select", I);
856
856
  };
857
857
  le("registerTab", (m) => (a.value.push(m), a.value.length - 1)), le("activeTab", u);
@@ -865,8 +865,7 @@ const is = ["onClick"], rs = { class: "tab-content" }, us = {
865
865
  u.value = m;
866
866
  },
867
867
  {
868
- immediate: !0,
869
- deep: !0
868
+ immediate: !0
870
869
  }
871
870
  ), (m, I) => (n(), l("div", {
872
871
  class: r(m.isCard !== !1 ? "is-card" : "")
@@ -1,4 +1,4 @@
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 H={class:"nav-list"},J=["url"],Q={class:"nav-title"},W={class:"nav-name"},Y={name:"TNavCard"},b=e.defineComponent({...Y,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",H,[(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",Q,e.toDisplayString(l.title),1),e.createElementVNode("div",W,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,J))),128))]))}});b.install=o=>{o.component(b.name,b)};const O=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),Z={class:"cu-item shadow"},v={class:"title"},ee={class:"text-cut"},te={class:"content"},oe=["src","alt"],le={class:"desc"},ne={class:"text-content"},ae={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},se={class:"text-gray"},ce=O(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),re=O(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ie=O(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),de={class:"margin-left-sm text-gray flex justify-between"},me={class:"text-grey margin-right-xs"},pe={name:"TNewCard"},ge=e.defineComponent({...pe,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",Z,[e.createElementVNode("div",v,[e.createElementVNode("div",ee,e.toDisplayString(t.title),1)]),e.createElementVNode("div",te,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,oe),e.createElementVNode("div",le,[e.createElementVNode("div",ne,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",ae,[e.createElementVNode("div",se,[ce,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),re,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ie,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",de,[e.createElementVNode("div",me,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),P=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},E=P(ge,[["__scopeId","data-v-bbdb83ff"]]);E.install=o=>{o.component(E.name,E)};const fe={class:"cu-item shadow"},ke={class:"cu-list menu-avatar"},_e={class:"cu-item"},he={class:"content flex-sub"},ye={class:"text-gray text-sm flex justify-between"},Be={class:"text-content"},be={class:"text-gray text-sm text-right padding"},Ee=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),$e=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Ce=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Ve={class:"cu-item"},ue={class:"content"},Ne={class:"text-grey"},Se={class:"text-gray text-content text-df"},Ie={class:"flex"},ze={class:"flex-sub"},we={class:"margin-top-sm flex justify-between"},Te={class:"text-gray text-df"},De={key:0,class:"cuIcon-appreciatefill text-red"},xe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),je={class:"text-gray margin-left-xs"},Fe={name:"TShareCard"},$=e.defineComponent({...Fe,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",fe,[e.createElementVNode("div",ke,[e.createElementVNode("div",_e,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",he,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ye,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Be,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,[Ee,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),$e,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Ce,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",Ve,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",ue,[e.createElementVNode("div",Ne,e.toDisplayString(l.author),1),e.createElementVNode("div",Se,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",Ie,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",ze,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",we,[e.createElementVNode("div",Te,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",De)):e.createCommentVNode("",!0),xe,e.createElementVNode("span",je,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});$.install=o=>{o.component($.name,$)};const Le={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function qe(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=Le[t];return l?`${o}: ${l};`:""}function Me(o){return qe("font-size",o)}const Ue={name:"TIcon"},y=e.defineComponent({...Ue,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>Me(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))}}),Ae={class:"action border-title"},Oe={class:"action border-title"},Re={class:"tib text-xl text-bold text-blue"},Pe=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ge={class:"action sub-title"},Ke={class:"tib text-xl text-bold text-green"},Xe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),He={class:"action sub-title"},Je={class:"action title-style-3"},Qe={key:5,class:"cu-bar bg-white"},We={class:"action"},Ye={key:6,class:"cu-bar bg-white solid-bottom"},Ze={class:"action"},ve={class:"action"},et={name:"TTitle"},C=e.defineComponent({...et,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",Ae,[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",Oe,[e.createElementVNode("div",Re,e.toDisplayString(t.title),1),Pe])],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",Ge,[e.createElementVNode("div",Ke,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",He,[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",Je,[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",Qe,[e.createElementVNode("div",We,[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",Ye,[e.createElementVNode("div",Ze,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ve,[e.renderSlot(t.$slots,"action")])]))}}),tt={name:"TAvatar"},g=e.defineComponent({...tt,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))}}),ot={class:"cu-avatar-group"},lt={name:"TAvatarGroup"},U=e.defineComponent({...lt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ot,[(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))]))}}),nt=["disabled"],at={key:1},st={name:"TButton"},V=e.defineComponent({...st,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",at,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,nt))}}),ct={key:0},rt={name:"TTag"},f=e.defineComponent({...rt,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",ct,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});y.install=o=>{o.component(y.name,y)},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 it=["onClick"],dt={key:0,class:"cuIcon-cu-image"},mt=["src"],pt={key:0,class:"cu-tag badge"},gt={key:0,class:"cu-tag badge"},ft={name:"TNavBar"},u=e.defineComponent({...ft,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",dt,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,mt),s.badge?(e.openBlock(),e.createElementBlock("div",pt,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",gt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,it))),128))],2))}});u.install=o=>{o.component(u.name,u)};const kt={key:0,class:"action"},_t={key:1},ht={class:"content text-bold"},yt={key:2,class:"action"},Bt={name:"TTopBar"},N=e.defineComponent({...Bt,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",kt,[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",_t,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",ht,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",yt,[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),Et=["placeholder"],$t={class:"action"},Ct={key:0,class:"cu-btn bg-green shadow-blur round"},Vt={key:0},ut={key:3},Nt={name:"TSearchBar"},S=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,Et)],2),e.createElementVNode("div",$t,[n.buttonText?(e.openBlock(),e.createElementBlock("button",Ct,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Vt,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",ut,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});S.install=o=>{o.component(S.name,S)};const St={class:"cu-bar input"},It={key:0,class:"action"},zt={key:1,class:"action"},wt={class:"action"},Tt=["onClick"],Dt={name:"TInputBar"},xt=e.defineComponent({...Dt,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},_=()=>{i("send",l.value),l.value="",n.value=!1},d=()=>{n.value=!n.value},p=m=>{l.value+=m},h=m=>{s.value&&!s.value.contains(m.target)&&(n.value=!1)};e.onMounted(()=>{document.addEventListener("click",h)}),e.onUnmounted(()=>{document.removeEventListener("click",h)});const B=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"];return(m,A)=>(e.openBlock(),e.createElementBlock("div",St,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",zt,[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,onKeydown:e.withKeys(_,["enter"]),onConfirm:_,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10","onUpdate:modelValue":A[0]||(A[0]=M=>l.value=M)},null,544),[[e.vModelText,l.value]]),e.createElementVNode("div",wt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(d,["stop"])},null,2)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:_},e.toDisplayString(m.buttonText),1),n.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"emoji-panel",ref_key:"emojiPanel",ref:s,onClick:A[1]||(A[1]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(B,M=>e.createElementVNode("span",{key:M,onClick:Ao=>p(M)},e.toDisplayString(M),9,Tt)),64))],512)):e.createCommentVNode("",!0)]))}}),I=P(xt,[["__scopeId","data-v-782961f7"]]);I.install=o=>{o.component(I.name,I)};const jt=["onClick"],Ft={class:"tab-content"},Lt={name:"TTabs"},z=e.defineComponent({...Lt,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}`),_=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},{immediate:!0,deep:!0}),(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,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",_.value(B)]),key:B,onClick:m=>i(B,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${s.value===B?d.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,jt))),128))],6),e.createElementVNode("div",Ft,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),qt={name:"TTab"},w=e.defineComponent({...qt,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 H={class:"nav-list"},J=["url"],Q={class:"nav-title"},W={class:"nav-name"},Y={name:"TNavCard"},b=e.defineComponent({...Y,props:{items:{}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",H,[(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",Q,e.toDisplayString(l.title),1),e.createElementVNode("div",W,e.toDisplayString(l.name),1),e.createElementVNode("text",{class:e.normalizeClass("cuIcon-"+l.cuIcon)},null,2)],14,J))),128))]))}});b.install=o=>{o.component(b.name,b)};const O=o=>(e.pushScopeId("data-v-bbdb83ff"),o=o(),e.popScopeId(),o),Z={class:"cu-item shadow"},v={class:"title"},ee={class:"text-cut"},te={class:"content"},oe=["src","alt"],le={class:"desc"},ne={class:"text-content"},ae={key:0,class:"content flex-sub justify-between text-sm solid-top margin-top-sm",style:{padding:"5px 15px"}},se={class:"text-gray"},ce=O(()=>e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1)),re=O(()=>e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1)),ie=O(()=>e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1)),de={class:"margin-left-sm text-gray flex justify-between"},me={class:"text-grey margin-right-xs"},pe={name:"TNewCard"},ge=e.defineComponent({...pe,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",Z,[e.createElementVNode("div",v,[e.createElementVNode("div",ee,e.toDisplayString(t.title),1)]),e.createElementVNode("div",te,[e.createElementVNode("img",{src:t.imageSrc,alt:t.imageAlt},null,8,oe),e.createElementVNode("div",le,[e.createElementVNode("div",ne,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",ae,[e.createElementVNode("div",se,[ce,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.likes)+" ",1),re,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.appreciations)+" ",1),ie,e.createTextVNode(" "+e.toDisplayString(t.footerInfo.comments),1)]),e.createElementVNode("div",de,[e.createElementVNode("div",me,e.toDisplayString(t.footerInfo.author),1),e.createTextVNode(" "+e.toDisplayString(t.footerInfo.timeAgo),1)])])):e.createCommentVNode("",!0)])],2))}}),P=(o,t)=>{const a=o.__vccOpts||o;for(const[l,n]of t)a[l]=n;return a},E=P(ge,[["__scopeId","data-v-bbdb83ff"]]);E.install=o=>{o.component(E.name,E)};const fe={class:"cu-item shadow"},ke={class:"cu-list menu-avatar"},_e={class:"cu-item"},he={class:"content flex-sub"},ye={class:"text-gray text-sm flex justify-between"},Be={class:"text-content"},be={class:"text-gray text-sm text-right padding"},Ee=e.createElementVNode("span",{class:"cuIcon-attentionfill margin-lr-xs"},null,-1),$e=e.createElementVNode("span",{class:"cuIcon-appreciatefill margin-lr-xs"},null,-1),Ce=e.createElementVNode("span",{class:"cuIcon-messagefill margin-lr-xs"},null,-1),Ve={class:"cu-item"},ue={class:"content"},Ne={class:"text-grey"},Se={class:"text-gray text-content text-df"},Ie={class:"flex"},ze={class:"flex-sub"},we={class:"margin-top-sm flex justify-between"},Te={class:"text-gray text-df"},De={key:0,class:"cuIcon-appreciatefill text-red"},xe=e.createElementVNode("span",{class:"cuIcon-messagefill text-gray margin-left-sm"},null,-1),je={class:"text-gray margin-left-xs"},Fe={name:"TShareCard"},$=e.defineComponent({...Fe,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",fe,[e.createElementVNode("div",ke,[e.createElementVNode("div",_e,[e.createElementVNode("div",{class:"cu-avatar round lg",style:e.normalizeStyle({backgroundImage:`url(${t.avatarUrl})`})},null,4),e.createElementVNode("div",he,[e.createElementVNode("div",null,e.toDisplayString(t.author),1),e.createElementVNode("div",ye,e.toDisplayString(t.date),1)])])]),e.createElementVNode("div",Be,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,[Ee,e.createTextVNode(" "+e.toDisplayString(t.likes)+" ",1),$e,e.createTextVNode(" "+e.toDisplayString(t.appreciations)+" ",1),Ce,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",Ve,[e.createElementVNode("div",{class:"cu-avatar round",style:e.normalizeStyle({backgroundImage:`url(${l.avatarUrl})`})},null,4),e.createElementVNode("div",ue,[e.createElementVNode("div",Ne,e.toDisplayString(l.author),1),e.createElementVNode("div",Se,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",Ie,[e.createElementVNode("div",null,e.toDisplayString(s.author)+":",1),e.createElementVNode("div",ze,e.toDisplayString(s.text),1)])]))),128)),e.createElementVNode("div",we,[e.createElementVNode("div",Te,e.toDisplayString(l.date),1),e.createElementVNode("div",null,[l.likes?(e.openBlock(),e.createElementBlock("span",De)):e.createCommentVNode("",!0),xe,e.createElementVNode("span",je,e.toDisplayString((n=l.replies)==null?void 0:n.length),1)])])])])])}),128))])],2)]))}});$.install=o=>{o.component($.name,$)};const Le={ssss:"2px",sss:"4px",ss:"8px",s:"12px",m:"14px",l:"16px",x:"18px",xl:"24px",xxl:"30px",xxxl:"48px"};function qe(o,t,a="px"){if(typeof t=="number")return`${o}: ${t}${a};`;const l=Le[t];return l?`${o}: ${l};`:""}function Me(o){return qe("font-size",o)}const Ue={name:"TIcon"},y=e.defineComponent({...Ue,props:{name:{},color:{default:"grey"},size:{default:15}},setup(o){const t=o,a=e.computed(()=>Me(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))}}),Ae={class:"action border-title"},Oe={class:"action border-title"},Re={class:"tib text-xl text-bold text-blue"},Pe=e.createElementVNode("div",{class:"tib bg-gradual-blue",style:{width:"3rem"}},null,-1),Ge={class:"action sub-title"},Ke={class:"tib text-xl text-bold text-green"},Xe=e.createElementVNode("div",{class:"tib bg-green",style:{width:"2rem"}},null,-1),He={class:"action sub-title"},Je={class:"action title-style-3"},Qe={key:5,class:"cu-bar bg-white"},We={class:"action"},Ye={key:6,class:"cu-bar bg-white solid-bottom"},Ze={class:"action"},ve={class:"action"},et={name:"TTitle"},C=e.defineComponent({...et,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",Ae,[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",Oe,[e.createElementVNode("div",Re,e.toDisplayString(t.title),1),Pe])],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",Ge,[e.createElementVNode("div",Ke,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",He,[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",Je,[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",Qe,[e.createElementVNode("div",We,[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",Ye,[e.createElementVNode("div",Ze,[e.createElementVNode("i",{class:e.normalizeClass(`cuIcon-${t.icon} text-${t.color}`)},null,2),e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",ve,[e.renderSlot(t.$slots,"action")])]))}}),tt={name:"TAvatar"},g=e.defineComponent({...tt,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))}}),ot={class:"cu-avatar-group"},lt={name:"TAvatarGroup"},U=e.defineComponent({...lt,props:{urls:{default:()=>[]},size:{default:"sm"},mode:{default:"round"}},setup(o){return(t,a)=>(e.openBlock(),e.createElementBlock("div",ot,[(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))]))}}),nt=["disabled"],at={key:1},st={name:"TButton"},V=e.defineComponent({...st,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",at,e.toDisplayString(s.text),1)):e.createCommentVNode("",!0)],14,nt))}}),ct={key:0},rt={name:"TTag"},f=e.defineComponent({...rt,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",ct,e.toDisplayString(n.text),1)):e.createCommentVNode("",!0)],6))}});y.install=o=>{o.component(y.name,y)},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 it=["onClick"],dt={key:0,class:"cuIcon-cu-image"},mt=["src"],pt={key:0,class:"cu-tag badge"},gt={key:0,class:"cu-tag badge"},ft={name:"TNavBar"},u=e.defineComponent({...ft,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",dt,[e.createElementVNode("img",{src:s.img,style:{width:"21px",height:"21px"},class:"radius"},null,8,mt),s.badge?(e.openBlock(),e.createElementBlock("div",pt,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",gt,e.toDisplayString(s.badge),1)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",null,e.toDisplayString(s.label),1)],10,it))),128))],2))}});u.install=o=>{o.component(u.name,u)};const kt={key:0,class:"action"},_t={key:1},ht={class:"content text-bold"},yt={key:2,class:"action"},Bt={name:"TTopBar"},N=e.defineComponent({...Bt,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",kt,[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",_t,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",ht,e.toDisplayString(t.title),1),t.rightIcon?(e.openBlock(),e.createElementBlock("div",yt,[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),Et=["placeholder"],$t={class:"action"},Ct={key:0,class:"cu-btn bg-green shadow-blur round"},Vt={key:0},ut={key:3},Nt={name:"TSearchBar"},S=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,Et)],2),e.createElementVNode("div",$t,[n.buttonText?(e.openBlock(),e.createElementBlock("button",Ct,e.toDisplayString(n.buttonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.location?(e.openBlock(),e.createElementBlock("text",Vt,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",ut,e.toDisplayString(n.actionText),1)):e.createCommentVNode("",!0)],64))])],2))}});S.install=o=>{o.component(S.name,S)};const St={class:"cu-bar input"},It={key:0,class:"action"},zt={key:1,class:"action"},wt={class:"action"},Tt=["onClick"],Dt={name:"TInputBar"},xt=e.defineComponent({...Dt,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},_=()=>{i("send",l.value),l.value="",n.value=!1},d=()=>{n.value=!n.value},p=m=>{l.value+=m},h=m=>{s.value&&!s.value.contains(m.target)&&(n.value=!1)};e.onMounted(()=>{document.addEventListener("click",h)}),e.onUnmounted(()=>{document.removeEventListener("click",h)});const B=["😀","😁","😂","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","☺","😇","😐","😑","😶","😏","😣","😥","😮","😯","😪","😫","😴","😌","😛","😜","😝","😒","😓","😔","😕","😲","😷","😖","😞","😟","😤","😢","😭","😦","😧","😨","😬","😰","😱","😳","😵","😡","😠","😈","👿","👹","👺","💀","☠","👻","👽"];return(m,A)=>(e.openBlock(),e.createElementBlock("div",St,[m.leftIcon?(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.leftIcon} text-grey`)},null,2)])):e.createCommentVNode("",!0),m.middleIcon?(e.openBlock(),e.createElementBlock("div",zt,[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,onKeydown:e.withKeys(_,["enter"]),onConfirm:_,"adjust-position":!1,class:"solid-bottom",maxlength:"300","cursor-spacing":"10","onUpdate:modelValue":A[0]||(A[0]=M=>l.value=M)},null,544),[[e.vModelText,l.value]]),e.createElementVNode("div",wt,[e.createElementVNode("text",{class:e.normalizeClass(`cuIcon-${m.rightIcon} text-grey`),onClick:e.withModifiers(d,["stop"])},null,2)]),e.createElementVNode("button",{class:"cu-btn bg-green shadow-blur round",onClick:_},e.toDisplayString(m.buttonText),1),n.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"emoji-panel",ref_key:"emojiPanel",ref:s,onClick:A[1]||(A[1]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(B,M=>e.createElementVNode("span",{key:M,onClick:Ao=>p(M)},e.toDisplayString(M),9,Tt)),64))],512)):e.createCommentVNode("",!0)]))}}),I=P(xt,[["__scopeId","data-v-782961f7"]]);I.install=o=>{o.component(I.name,I)};const jt=["onClick"],Ft={class:"tab-content"},Lt={name:"TTabs"},z=e.defineComponent({...Lt,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(a.modelValue),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}`),_=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},{immediate:!0}),(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,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cu-item",_.value(B)]),key:B,onClick:m=>i(B,h)},[h.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`cuIcon-${h.icon} text-${s.value===B?d.color:h.iconColor}`)},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,jt))),128))],6),e.createElementVNode("div",Ft,[e.renderSlot(d.$slots,"default",{tab:n.value[s.value]})])],2))}}),qt={name:"TTab"},w=e.defineComponent({...qt,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)};/*!
2
2
  * vue-router v4.3.3
3
3
  * (c) 2024 Eduardo San Martin Morote
4
4
  * @license MIT
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.25",
5
+ "version": "0.0.26",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {