12 |
- import{i as e}from"../echarts/echarts.C_nC9ACL.js";import{d as s,r as t,i,y as o,o as r,c as n,a,$ as h}from"../@vue/@vue.lccsL1Mu.js";const p=s({__name:"Echarts",props:{width:{default:"100%"},height:{default:"360px"},options:null},setup(s){const p=s,u=t();return i((()=>{const{setOptions:s,resize:t}=function(s){const t=e(s);return{setOptions:e=>{t.setOption(e,!0)},resize:()=>{t.resize()}}}(u.value);o((()=>{s(p.options)})),window.addEventListener("resize",(()=>{t()}))})),(e,t)=>(r(),n("div",null,[a("div",{ref_key:"commonEchartRef",ref:u,style:h({height:s.height,width:s.width})},null,4)]))}});export{p as _};
|