You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/25 03:27:37 UTC

[GitHub] 52linyuepeng commented on issue #8402: vue中怎么监听echarts事件

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org