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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]