import{f as _}from"./index-e26c4070-1785478469326v=1.0.0.js";import{x as p,y as o,z as a,P as v,a4 as f,C as n,A as t,O as c,u as k,D as m,M as y}from"./vendor-46662d77-1785478469326v=1.0.0.js";import{_ as C}from"./index-5a47c360-1785478469326v=1.0.0.js";import"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";const h={class:"overview-container"},x=["onClick"],D={class:"title"},w={key:0,class:"value"},F={key:1,class:"value"},g={key:3,class:"compare desc"},B=p({__name:"Dataview",props:{dataList:{default:()=>[]}},emits:["click"],setup(b,{emit:i}){const d=i,u=s=>{s.clickable&&d("click",s)},l=s=>s>0?{icon:"\u2191",color:"#07C160"}:s<0?{icon:"\u2193",color:"#FF4D4F"}:{icon:"\u2192",color:"#07C160"};return(s,r)=>(o(),a("div",h,[(o(!0),a(v,null,f(s.dataList,e=>(o(),a("div",{key:e.title,class:n(["card",{clickable:e.clickable}]),onClick:z=>u(e)},[t("div",D,c(e.title),1),e.value===null?(o(),a("div",w,"-")):(o(),a("div",F,c(k(_)(e.value))+c(e.suffix),1)),e.compareKey&&e.compare!==null?(o(),a("div",{key:2,class:n(["compare",{up:e.compare>0,down:e.compare<0}])},[r[0]||(r[0]=t("div",{class:"desc"},"\u8F83\u4E0A\u5B66\u5E74",-1)),t("div",{class:"icon",style:m({color:l(e.compare).color})},c(l(e.compare).icon),5),y(" "+c(`${e.compare||0}${e.suffix}`),1)],2)):(o(),a("div",g,c(e.desc||"-"),1))],10,x))),128))]))}});const A=C(B,[["__scopeId","data-v-80e55247"]]);export{A as default};
