You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/17 02:40:37 UTC

[GitHub] [echarts] YangYmimi commented on issue #14342: Vue3项目中使用折线图出现tooltip不显示

YangYmimi commented on issue #14342:
URL: https://github.com/apache/echarts/issues/14342#issuecomment-800748206


   本来打算用mixin将公用的一些方法提出来的。
   
   现在data内定义的instance就当成一个缓存了。
   
   `const dom = document.getElementById(this.dom);
         if (dom) {
           const instance = echarts.init(dom);
           if (instance) {
             this.setOption(instance);
           }
           // cache
           this.instance = instance;
         }`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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