eleme / morjs

基于小程序 DSL(微信、支付宝)的,可扩展的多端研发框架,支持一键将微信或支付宝小程序转换为微信、支付宝、百度、字节、QQ、快手、淘宝、钉钉等小程序 或 Web 应用。
https://mor.ele.me/
MIT License
1.74k stars 113 forks source link

echart都无法集成进去,ctx = __MOR_API__.createCanvasContext(this.data.canvasId, this)ctx为undefined #185

Open brainee opened 7 months ago

brainee commented 7 months ago

Describe the bug ctx = __MOR_API__.createCanvasContext(this.data.canvasId, this)ctx为undefined

To Reproduce 代码地址:https://github.com/brainee/weixin-pages-morjs/tree/main 直接运行npm run dev

Expected behavior echart能运行

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

hwaphon commented 7 months ago

createCanvasContext 在页面/组件哪个生命周期调用的?