mounted() {
// this.screenWidth = document.body.clientWidth
const that = this
window.addEventListener('resize', function() {
that.chart.resize()
that.screenWidth = document.body.clientWidth
that.initChart()
})
},
this.size = document.body.clientWidth < 1681 ? (document.body.clientWidth < 1367 ? '75%' : '65%') : '55%';
vue 监听echart屏幕缩放变化
于 2021-07-16 16:46:02 首次发布