import{d as g,k as c,ai as t,o as n,c as V,a,T as o,U as f,O as l,P as C,V as k,M as p,R as s,I as x,F as y}from"./vue.adf17aba.js";import{J as h}from"./index.ad3efb29.js";import{_ as B}from"./_plugin-vue_export-helper.c27b6911.js";const w=g({__name:"index",props:{field:{},value:{},prevVal:{},gapVal:{},dateRange:{},showCompare:{type:Boolean}},setup(_){const e=_,r=c(()=>h(e.dateRange)),m=c(()=>e.gapVal?e.gapVal>0?"green":"red":"");return(D,F)=>{const u=t("Top"),d=t("Bottom"),i=t("el-icon"),v=t("el-popover");return n(),V(y,null,[a("p",null,o(e.value===null||e.value===0?"--":e.value),1),f(v,{effect:"dark",width:260},{reference:l(()=>[C(a("p",{class:x(m.value)},[e.gapVal?(n(),p(i,{key:0,style:{display:"inline-block","padding-top":"2px"}},{default:l(()=>[e.gapVal>0?(n(),p(u,{key:0})):s("",!0),e.gapVal<0?(n(),p(d,{key:1})):s("",!0)]),_:1})):s("",!0),a("span",null,o(e.gapVal?e.gapVal.toFixed(2)+"%":"--"),1)],2),[[k,e.showCompare]])]),default:l(()=>[a("p",null,"对比周期："+o(r.value[0])+" ~ "+o(r.value[1]),1),a("p",null,"对比值："+o(e.prevVal),1)]),_:1})],64)}}});const I=B(w,[["__scopeId","data-v-2033a1d6"]]);export{I as D};
