A QRCode component for use with Vue.js
JavaScript HTML
Latest commit d94f2bb Dec 10, 2016 @gera2ld 1.0.1
Permalink
Failed to load latest commit information.
demo first blood Nov 23, 2016
.gitignore first blood Nov 23, 2016
.npmignore first blood Nov 23, 2016
README.md first blood Nov 23, 2016
index.js fix: check null before assign Dec 10, 2016
package.json 1.0.1 Dec 10, 2016

README.md

qrcanvas-vue

NPM License Downloads

This a QRCode component for use with Vue.js, based on qrcanvas.

Install

$ npm i qrcanvas-vue

Usage

<qrcanvas :options="options"></qrcanvas>
import Qrcanvas from 'qrcanvas-vue';

// Qrcanvas is a component with only one props: `options`
  • options is passed to qrcanvas. For more details, see qrcanvas docs.

  • Be sure to pass a new options object if data is updated:

    this.options = Object.assign({}, this.options, {
      data: 'new data',
    });