Agriculture-front-end/dist/assets/useEcharts.342dbaed.js

2 lines
333 B
JavaScript

import{ab as s,ac as i,a4 as o}from"./index.9f28707e.js";const a=(t,n)=>{n&&typeof n=="object"&&t.setOption(n);const e=()=>{t&&t.resize()};window.addEventListener("resize",e),s(()=>{window.addEventListener("resize",e)}),i(()=>{window.removeEventListener("resize",e)}),o(()=>{window.removeEventListener("resize",e)})};export{a as u};