二维条形码

介绍
生成二维码或者条形码的组件
API
Props
| 参数名 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| status | 默认状态 | 'default'|'hide' | 'default' |
| type | 类型 | 'qrcode'|'barcode' | 'qrcode' |
| value | 内容 | string | - |
| size | 尺寸, 二维码尺寸 | string | 120 |
| height | 尺寸,条形码高度 | string | 120 |
| errorCorrectionLevel | 容错率 | 'H'|'Q'|'M'|'L' | 'H' |
| displayValue | 显示内容 | boolean | true |
| download | 下载按钮 | boolean | true |
| baseStyle | 自定义样式 | string | - |
| customClass | 类名绑定 , 绑定类的名称 | string | - |
| backgroundColor | 背景色 | string | #FFFFFF |
| color | 二维码颜色 | string | #000000 |
| uniqueKey | 唯一标识 , 组件的唯一标识 | string | - |
| loop | 循环 , 循环渲染设置 | Loop | - |
Type
js
// 循环
type Loop = {
"data": any[],
"paramName": string,
"indexName": string,
"key": string
}