import{d as l,r as f,j as _,ai as r,aq as h,o as y,M as x,O as s,U as g,P as v,V as w,a as z,K as E,u as B}from"./vue.1RczIYhx.js";import{$ as C}from"./index.K_MFulpu.js";import"./elementPlus.CSBdF9Zt.js";import{createCrudOptions as R}from"./crud.B7NB269_.js";import{e as b}from"./echarts.DoXO02ct.js";import"./commonCrud.YubcmlX7.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const k={id:"myEcharts",style:{width:"100%",height:"300px"}},j=l({__name:"index",setup(O){const t=f(!0),{crudBinding:i,crudRef:a,crudExpose:n}=C({createCrudOptions:R,isEcharts:t,initChart:o}),c=b;function o(){let e=c.init(document.getElementById("myEcharts"),"purple-passion");e.setOption({title:{text:"2021年各月份销售量（单位：件）",left:"center"},xAxis:{type:"category",data:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},tooltip:{trigger:"axis"},yAxis:{type:"value"},series:[{data:[606,542,985,687,501,787,339,706,383,684,669,737],type:"line",smooth:!0,itemStyle:{normal:{label:{show:!0,position:"top",formatter:"{c}"}}}}]}),window.onresize=function(){e.resize()}}function p(e){}return _(()=>{n.doRefresh(),o()}),(e,V)=>{const d=r("fs-crud"),m=r("fs-page"),u=h("resize-ob");return y(),x(m,null,{default:s(()=>[g(d,E({ref_key:"crudRef",ref:a},B(i)),{"header-top":s(()=>[v(z("div",k,null,512),[[w,t.value],[u,p]])]),_:1},16)]),_:1})}}});export{j as default};
