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/04/24 03:24:27 UTC

[GitHub] [echarts] sdwdjzhy opened a new issue #14781: throw error when use Vue3.0 and echartInstance.resize

sdwdjzhy opened a new issue #14781:
URL: https://github.com/apache/echarts/issues/14781


   ### Version
   5.1.0
   
   ### Steps to reproduce
   https://github.com/sdwdjzhy/testEchart
   
   I  use   Vue3.0 and Echart 5.1.0.  When  I click the button ,   it  throw error
   
   ### What is expected?
   donot throw error  and  resize echart
   
   ### What is actually happening?
   it throw error
   
   ---
   is  echart  error ?  or Vue error ?
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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


[GitHub] [echarts] sdwdjzhy closed issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
sdwdjzhy closed issue #14781:
URL: https://github.com/apache/echarts/issues/14781


   


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


[GitHub] [echarts] plainheart edited a comment on issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #14781:
URL: https://github.com/apache/echarts/issues/14781#issuecomment-826267978


   It's not suggested to put the instance of ECharts to Vue `data`. Since Vue3 uses `Proxy`, ECharts may not fetch the inner variable from the model. You could remove `chart` from the `data` definition method, or use `shallowRef`.


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


[GitHub] [echarts] plainheart commented on issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14781:
URL: https://github.com/apache/echarts/issues/14781#issuecomment-826267978


   ECharts 实例 `chart` 不建议放在 `data` 中,Vue 3 使用了 `Proxy`,可能会导致 ECharts 内部 model 等变量获取不到。可以注释掉 `data` 中的 `chart` 变量,或者使用 `shallowRef`,即可避免该错误。


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


[GitHub] [echarts] plainheart edited a comment on issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #14781:
URL: https://github.com/apache/echarts/issues/14781#issuecomment-826267978


   It's not suggested to put the instance of ECharts to Vue `data`. Since Vue3 uses `Proxy`, ECharts may not fetch the inner variable from the model. You could remove `chart` from the `data` definition method, or use `shallowRef`.


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


[GitHub] [echarts] sdwdjzhy closed issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
sdwdjzhy closed issue #14781:
URL: https://github.com/apache/echarts/issues/14781


   


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14781:
URL: https://github.com/apache/echarts/issues/14781#issuecomment-826026392


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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


[GitHub] [echarts] plainheart commented on issue #14781: throw error when use Vue3.0 and echartInstance.resize

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14781:
URL: https://github.com/apache/echarts/issues/14781#issuecomment-826267978


   ECharts 实例 `chart` 不建议放在 `data` 中,Vue 3 使用了 `Proxy`,可能会导致 ECharts 内部 model 等变量获取不到。可以注释掉 `data` 中的 `chart` 变量,或者使用 `shallowRef`,即可避免该错误。


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