Agriculture-front-end/dist/assets/useEcharts.a1c5140e.js

2 lines
331 B
JavaScript
Raw Normal View History

2023-07-11 08:43:34 +08:00
import{Z as s,$ as i,a0 as o}from"./index.afd881ee.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};