Agriculture-front-end/dist/assets/useEcharts.5d95df8c.js
2023-09-19 14:34:21 +08:00

2 lines
333 B
JavaScript

import{a2 as s,a3 as i,a4 as o}from"./index.42ab3fdc.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};