yoonasy commented on issue #9494: Adaptive Question~ URL: https://github.com/apache/incubator-echarts/issues/9494#issuecomment-442716415  @cuijian-dexter thank you vue: It was solved this way ``` window.addEventListener('resize', () => { let large = { width: Math.max(document.body.clientWidth - 501, 679) } this.$refs.ageCharts.echarts.resize(large) this.$refs.fansTrend.echarts.resize(large) }) ``` The way you provided seems not to work 通过您提供的方式 好像不行 ```html <ve-bar ref="fansTrend" :data="........"></ve-bar> ``` ```js mounted () { window.onresize = this.$refs.fansTrend.echarts.resize // window.addEventListener('resize', this.$refs.fansTrend.echarts.resize) } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
