1 |
- import{d as y,p as s,b as w,d$ as C,o as h,c as q,g as a,t as l,i as r,w as j,j as p,W as R,a as t,ay as i,ak as P,v as k,q as A,_ as E,__tla as G}from"./index-82e357b2.js";import{_ as H,__tla as M}from"./CountTo-b220822f.js";let x,O=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{let c,f,o,m,d;c={class:"flex flex-col gap-2 bg-[var(--el-bg-color-overlay)] p-6"},f={class:"flex items-center justify-between text-gray-500"},o={class:"flex flex-row items-baseline justify-between"},m={class:"flex flex-row items-center justify-between text-sm"},d=a("span",{class:"text-gray-500"},"\u6628\u65E5\u6570\u636E",-1),x=E(y({name:"ComparisonCard",__name:"ComparisonCard",props:{title:s.string.def("").isRequired,tag:s.string.def(""),prefix:s.string.def(""),value:s.number.def(0).isRequired,reference:s.number.def(0).isRequired,decimals:s.number.def(0)},setup(e){const u=e,n=w(()=>C(u.value,u.reference));return(W,$)=>{const _=P,v=H,b=k,g=A;return h(),q("div",c,[a("div",f,[a("span",null,l(e.title),1),r(_,null,{default:j(()=>[p(l(e.tag),1)]),_:1})]),a("div",o,[r(v,{prefix:e.prefix,"end-val":e.value,decimals:e.decimals,class:"text-3xl"},null,8,["prefix","end-val","decimals"]),a("span",{class:R(t(i)(t(n))>0?"text-red-500":"text-green-500")},[p(l(Math.abs(t(i)(t(n))))+"% ",1),r(b,{icon:t(i)(t(n))>0?"ep:caret-top":"ep:caret-bottom",class:"!text-sm"},null,8,["icon"])],2)]),r(g,{class:"mb-1! mt-2!"}),a("div",m,[d,a("span",null,l(e.prefix||"")+l(e.reference),1)])])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/home/components/ComparisonCard.vue"]])});export{O as __tla,x as default};
|