52linyuepeng commented on issue #8402: vue中怎么监听echarts事件
URL: 
https://github.com/apache/incubator-echarts/issues/8402#issuecomment-391930643
 
 
   这个是不是 vue 中没有区别吧。
   拿到实例 chart
   ```
   chart.on('click', function (params) {
   console.log(params)
   // 如果你需要抛给外层组件
   // this.$emit('click', params)
   });
   ```
   
   如果你希望用更接近于 vue 的方式,可以封装一层,或者直接用  vue-echarts 库。

----------------------------------------------------------------
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]

Reply via email to