Skip to content

Commit

Permalink
canvasToTempFilePath 中 canvasId 不再是必传项 (#8247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordword authored Dec 11, 2020
1 parent 4dd5aa1 commit 7d80ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/types/api/canvas/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ declare namespace Taro {
/** 画布标识,传入 [canvas](https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html) 组件实例 (canvas type="2d" 时使用该属性)。 */
canvas?: CanvasProps
/** 画布标识,传入 [canvas](https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html) 组件的 canvas-id */
canvasId: string
canvasId?: string
/** 图片的质量,目前仅对 jpg 有效。取值范围为 (0, 1],不在范围内时当作 1.0 处理。 */
quality?: number
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
Expand Down

0 comments on commit 7d80ec0

Please sign in to comment.