Skip to content

qrcode 二维码组件


基础用法

text 内容为二维码具体数据

html
 <ml-qrcode text='https://github.com/SantiagoFan/dock-plus'></m--qrcode>

拓展用法

通过控制 colorDark 修改二维码前景颜色 width height 修改二维码显示大小

html
<ml-qrcode text='https://github.com/SantiagoFan/dock-plus' colorDark="#003c81" :width="200"  :height="200">
 </ml-qrcode>

API

参数说明类型默认值
text二维码转码内容String-
width宽度Number
height高度Number
colorDark前景颜色String#000
colorLight背景颜色String#fff

Released under the MIT License.