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/11/02 13:53:19 UTC

[GitHub] [echarts] kongmoumou commented on issue #15967: treemap 在 vue3 中表现异常

kongmoumou commented on issue #15967:
URL: https://github.com/apache/echarts/issues/15967#issuecomment-957623225


   ```diff
   import * as echarts from 'echarts'
   -import { ref, onMounted } from 'vue'
   +import { shallowRef, onMounted } from 'vue'
   export default {
     setup() {
       const treemapDom = ref()
   -   const myChart = ref()
   +   const myChart = shallowRef()
   }
   ```
   
   u should 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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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