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