import{d as g,k as c,a9 as t,o as n,c as f,a,L as o,M as V,G as l,H as C,N as k,E as p,J as s,z as x,F as y}from"./vue.3f733908.js";import{J as h}from"./index.0d411246.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,N)=>{const u=t("Top"),d=t("Bottom"),i=t("el-icon"),v=t("el-popover");return n(),f(y,null,[a("p",null,o(e.value===null||e.value===0?"--":e.value),1),V(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 J=B(w,[["__scopeId","data-v-2033a1d6"]]);export{J as D};
