"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("./echarts.js"),o={__name:"index",props:{option:{type:Object,default:()=>({})}},setup(n){const a=n,r=t.ref(),e=t.reactive({defaultOption:{xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[120,200,150,80,70,110,130],type:"bar"}]},finallyOption:t.computed(()=>({...e.defaultOption,...a.option})),myChart:null,renderChart:()=>{e.myChart&&e.myChart.setOption(e.finallyOption)}});return t.watch(()=>e.finallyOption,()=>{e.renderChart()},{deep:!0}),t.onMounted(()=>{e.myChart=i.init(r.value),e.renderChart()}),(u,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"divRef",ref:r,style:{height:"100%"}},null,512))}};exports.default=o;
