CRMEB/backend/public/admin/system_static/index-DDRYNHpl.js
2026-10-22 10:04:43 +08:00

2 lines
846 B
JavaScript

import{f as c,a as u,n as d,b as p,y as m,z as f,A as h,a1 as y,p as v}from"./element-plus-D1Ezoxxm.js";import"./echarts-CylxjQLW.js";import{i as w}from"./echarts-C6m23LPs.js";const _=["id"],b=Object.assign({name:"Index"},{__name:"index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},setup(o,{expose:l}){const s=o;let e=null;const i=v(()=>"echarts"+Math.ceil(Math.random()*100));c(()=>s.optionData,(t,r)=>{a()},{deep:!0}),u(()=>{d(()=>{a(),window.addEventListener("resize",n)})}),p(()=>{window.removeEventListener("resize",n),e&&(e.dispose(),e=null)});function n(){e.resize()}function a(){e=w(document.getElementById(i.value));let t=null;t=s.optionData,e.setOption(t,!0)}return l({wsFunc:n,handleSetVisitChart:a}),(t,r)=>(m(),f("div",null,[h("div",{id:i.value,style:y(o.styles)},null,12,_)]))}});export{b as _};