Socket
Socket
Sign inDemoInstall

qrcode.vue

Package Overview
Dependencies
0
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qrcode.vue

A Vue component for QRCode.


Version published
Weekly downloads
114K
increased by6.48%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

[1.6.0] - 2018-04-14

Changed

  • Use Vue render function, not use jsx.

Bugfixs

  • convert utf-16 to utf-8.

Readme

Source

qrcode.vue

A Vue.js component for QRCode.

Build Status GitHub license

Language

中文įŽ€äŊ“

Start quick

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

npm install --save qrcode.vue # yarn add qrcode.vue

Usage

e.g.

import Vue from 'vue';
import QrcodeVue from 'qrcode.vue';

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

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

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

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

Component props

proptypedefault valueexpain
valueString''qrcode value
classNameString''qrcode element className
sizeNumber100qrcode element size
levelStringLError correction level ('L', 'M', 'Q', 'H')
backgroundString#fffqrcode background color
foregroundString#000qrcode color

Thanks

"qr.js" "qrcode.react"

License

copyright Š 2017 scopewu, license by MIT

Keywords

FAQs

Last updated on 14 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ī¸ by Socket Inc