Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 新增传递this以提供自定义组件内可以渲染 #452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

veryoung
Copy link

文档参考:
https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createCanvasContext.html
CanvasContext wx.createCanvasContext(string canvasId, Object this)
在自定义组件下,当前组件实例的this,表示在这个自定义组件下查找拥有 canvas-id 的 canvas ,如果省略则不在任何自定义组件内查找

文档参考:
https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createCanvasContext.html
CanvasContext wx.createCanvasContext(string canvasId, Object this)
在自定义组件下,当前组件实例的this,表示在这个自定义组件下查找拥有 canvas-id 的 canvas ,如果省略则不在任何自定义组件内查找
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant