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: 增加是否立刻绘制选项 #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ drawQrcode({
dy: 70,
dWidth: 60,
dHeight: 60
}
},
draw: true //立刻进行绘制
})
```

Expand Down Expand Up @@ -85,6 +86,7 @@ Type: Object
| x | 非必须,二维码绘制的 x 轴起始位置,默认值0,v1.0.0+版本支持 | 100 |
| y | 非必须,二维码绘制的 y 轴起始位置,默认值0,v1.0.0+版本支持 | 100 |
| image | 非必须,在 canvas 上绘制图片,**层级高于二维码**,v1.0.0+版本支持,更多可参考[drawImage](https://developers.weixin.qq.com/miniprogram/dev/api/CanvasContext.drawImage.html) | `{ imageResource: '', dx: 0, dy: 0, dWidth: 100, dHeight: 100 }` |
| draw | 非必须,是否立刻绘制,默认 `true` | `true`|


**位置信息可以参见下图:**
Expand Down
4 changes: 2 additions & 2 deletions dist/weapp.qrcode.common.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/weapp.qrcode.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/weapp.qrcode.min.js

Large diffs are not rendered by default.

Loading