All Projects → scopewu → Qrcode.vue

scopewu / Qrcode.vue

Licence: mit
A Vue.js component to generate qrcode.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Qrcode.vue

Vue Qrcode Reader
A set of Vue.js components for detecting and decoding QR codes.
Stars: ✭ 1,240 (+471.43%)
Mutual labels:  qrcode, vue-component
Vue Qrcode
QR code component for Vue.js
Stars: ✭ 724 (+233.64%)
Mutual labels:  qrcode, vue-component
Vue Slider Component
🌡 A highly customized slider component
Stars: ✭ 2,158 (+894.47%)
Mutual labels:  vue-component
Flutter qrcode reader
Flutter qrcode reader
Stars: ✭ 210 (-3.23%)
Mutual labels:  qrcode
Pwa Qr Code Scanner
Lightweight progressive web app for scanning QR codes offline
Stars: ✭ 188 (-13.36%)
Mutual labels:  qrcode
Vue Tiny Code
这里有一个仿 Chrome 调色盘,有一个拖动排版的页面,还有一些新奇的小点子。
Stars: ✭ 170 (-21.66%)
Mutual labels:  vue-component
Jsqr
A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
Stars: ✭ 2,722 (+1154.38%)
Mutual labels:  qrcode
Tc Lib Barcode
PHP library to generate linear and bidimensional barcodes
Stars: ✭ 165 (-23.96%)
Mutual labels:  qrcode
Easyqrcodejs
EasyQRCodeJS is a feature-rich cross-browser pure JavaScript QRCode generation library. Support Canvas, SVG and Table drawing methods. Support Dot style, Logo, Background image, Colorful, Title etc. settings. Support Angular, Vue.js, React, Next.js framework. Support binary(hex) data mode.(Running with DOM on client side)
Stars: ✭ 215 (-0.92%)
Mutual labels:  qrcode
Nbzxing
🔥 2020年最好用的开源扫码,全方位优化,强烈推荐!! 支持多种常规zxing无法扫出的码,用就完了!! 🔥
Stars: ✭ 184 (-15.21%)
Mutual labels:  qrcode
Qrcoder
A pure C# Open Source QR Code implementation
Stars: ✭ 2,794 (+1187.56%)
Mutual labels:  qrcode
Qrcode Library
Create QrCodes with ease
Stars: ✭ 184 (-15.21%)
Mutual labels:  qrcode
Vue Highlight.js
📜 Highlight.js syntax highlighter component for Vue.
Stars: ✭ 180 (-17.05%)
Mutual labels:  vue-component
Java Library Examples
💪 example of common used libraries and frameworks, programming required, don't fork man.
Stars: ✭ 204 (-5.99%)
Mutual labels:  qrcode
Flipbook Vue
3D page flip effect for Vue.js
Stars: ✭ 170 (-21.66%)
Mutual labels:  vue-component
Jsqrscanner
JavaScript QR Code scanner for HTML5 supporting browsers
Stars: ✭ 212 (-2.3%)
Mutual labels:  qrcode
Qr Code Bundle
Bundle for generating QR codes in Symfony
Stars: ✭ 169 (-22.12%)
Mutual labels:  qrcode
Twofactorauth.net
.Net library for Two Factor Authentication (TFA / 2FA)
Stars: ✭ 182 (-16.13%)
Mutual labels:  qrcode
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (-11.06%)
Mutual labels:  qrcode
Merger
📲 Merge Your Qrcodes Together. Even Quicker.
Stars: ✭ 218 (+0.46%)
Mutual labels:  qrcode

qrcode.vue

⚠️ Now when you are using Vue 3.x, please upgrade qrcode.vue to 3.x

For those using vue-cli you will need to add this option into your vue.config.js file to enable runtime compilation

module.exports = { runtimeCompiler: true }

For those using webpack you will need to set this option in your webpack.config.js file to enable esm bundling.

resolve: {
  alias: {
    vue: 'vue/dist/vue.esm-bundler.js',
  },
},

🔒 if you are using Vue 2.x, please keep using version 1.x;

A Vue.js component to generate QRCode.

Build Status GitHub license

中文

install

the qrcode.vue component can use in you Vue.js app.

npm install --save qrcode.vue # yarn add qrcode.vue
dist/
|--- qrcode.vue.cjs.js         // CommonJS
|--- qrcode.vue.esm.js         // ES module
|--- qrcode.vue.browser.js     // UMD for browser or require.js or CommonJS
|--- qrcode.vue.browser.min.js // UMD Minimum size

Usage

e.g.

import { createApp } from 'vue'
import QrcodeVue from 'qrcode.vue'

createApp({
  data: {
    value: 'https://example.com',
  },
  template: '<qrcode-vue :value="value"></qrcode-vue>',
  components: {
    QrcodeVue,
  },
}).mount('#root')

Or single-file components with a *.vue extension:

<template>
  <qrcode-vue :value="value" :size="size" level="H" />
</template>
<script>
  import QrcodeVue from 'qrcode.vue'

  export default {
    data() {
      return {
        value: 'https://example.com',
        size: 300,
      }
    },
    components: {
      QrcodeVue,
    },
  }
</script>

Component props

value

  • Type: string
  • Default: ''

The value content of qrcode

level

  • Type: string
  • Default: H

qrcode Error correction level (one of 'L', 'M', 'Q', 'H'). Know more, wikipedia: QR_code

size

  • Type: number
  • Default: 100

The size of qrcode element.

margin

  • Type: number
  • Default: 0

Define how much wide the quiet zone should be.

renderAs

  • Type: string
  • Default: canvas

Generate QRcode as canvas or svg.

background

  • Type: string
  • Default: #ffffff

The background color of qrcode.

foreground

  • Type: string
  • Default: #000000

The foreground color of qrcode.

class

  • Type: string
  • Default: ''

The class name of qrcode element.

License

copyright © 2021 @scopewu, license by MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].