Agriculture-front-end/dist/assets/useEcharts.83442be8.js

2 lines
330 B
JavaScript
Raw Normal View History

2023-05-25 08:33:42 +08:00
import{L as s,M as i,N as o}from"./index.b3a66a9e.js";const d=(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{d as u};