0.0.1 • Published 1 month ago

vue2-qr v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

vue2-qr

English | 中文

Introduction

A plugin suitable for vue2.x with a QR code in the center with a logo.

Example

Run demo

# yarn
yarn install
# npm
npm install
# yarn
yarn serve
# npm
npm run serve

How to use

import { Vue2Qrcode } from "vue2-qr";
<Vue2Qrcode
  content="https://www.npmjs.com/"
  width="100"
  :logoImg="require('./assets/logo.png')"
/>

Parameter explanation

ParameterExplainTypeDefault
contentContent that needs to be converted into QR codeString''
widthQR code widthNumber | String200
logoImgLogo picture in the center area. If no picture is required, do not set itString''
logoZoomThe scaling ratio of the logo image in the center areaNumber0.2
0.0.1

1 month ago