import{h as m}from"./system.1703796278973.js";import{i as l,L as _}from"./index.1703796278973314.js";import{d as i,k as f,m as u,p as h,o as y,x as v,z as o,V as x,G as b,H as w}from"./vue.1703796278973.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const S=t=>(b("data-v-da89f4b0"),t=t(),w(),t),k={class:"device-info"},A=S(()=>o("div",{class:"header"},[o("span",{class:"title"},"设备告警趋势")],-1)),T=i({name:"AlarmTrend"}),z=i({...T,setup(t){const r=f({}),n=m();let e=null;const p=(a=[],c=[])=>{const s=r.value;if(s){e=l(s);const d={xAxis:{type:"category",boundaryGap:!1},yAxis:{type:"value"},grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},series:[{type:"line",smooth:!0,lineStyle:{color:"#38B7FF",width:2},areaStyle:{color:new _(0,0,0,1,[{offset:0,color:"rgba(56, 183, 255, 0.8)"},{offset:1,color:"rgba(217, 217, 217, 0)"}])},data:[["2019-10-10",200],["2019-10-11",560],["2019-10-12",750],["2019-10-13",580],["2019-10-14",250],["2019-10-15",300],["2019-10-16",450],["2019-10-17",300],["2019-10-18",100]]}]};x(()=>{e.setOption(d),window.addEventListener("resize",function(){e.resize()})})}};return u(()=>n.collapsed,a=>{setTimeout(()=>{e.resize()},300)}),h(()=>{p()}),(a,c)=>(y(),v("div",k,[A,o("div",{ref_key:"chartRef",ref:r,style:{width:"100%","min-height":"calc(100% - 40px)"}},null,512)]))}});const Q=g(z,[["__scopeId","data-v-da89f4b0"]]);export{Q as default};