autofit 实现自适应可视化大屏 安装 npm i autofit.js 使用 import autofit from 'autofit.js' autofit.init({ ignore: ['#map'], //忽略缩放的元素 dh: 1080, dw: 1920, el: '#app', resize: true }) 具体使用请参考https://github.com/LarryZhu-dev/autofit.js