3.0.0 • Published 3 years ago

qrcanvas-vue v3.0.0

Weekly downloads
718
License
ISC
Repository
github
Last release
3 years ago

qrcanvas-vue

NPM License Downloads

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

Usage

Note: qrcanvas-vue@2 works with vue@2, qrcanvas-vue@3 works with vue@3.

  1. With bundlers:

    # Installation
    $ npm i vue qrcanvas-vue
  2. In browser:

    <script src="https://cdn.jsdelivr.net/combine/npm/qrcanvas@3,npm/qrcanvas-vue@3"></script>
    <div id="root">
      <qr-canvas :options="options" @updated="onUpdated"></qr-canvas>
    </div>

See examples for more usage.

Props

  • 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',
    });

Events

  • beforeUpdate

    Fired before the canvas is updated. The only parameter is the canvas.

  • updated

    Fired after the canvas is updated. The only parameter is the canvas.

3.0.0

3 years ago

2.1.1

3 years ago

2.1.0

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.2.0-0

6 years ago

1.1.0

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago