GithubHelp home page GithubHelp logo

gengchao123 / vue-qrcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fengyuanchen/vue-qrcode

0.0 1.0 0.0 207 KB

QR code component for Vue.js

Home Page: https://fengyuanchen.github.io/vue-qrcode/

License: MIT License

JavaScript 100.00%

vue-qrcode's Introduction

vue-qrcode

Build Status Coverage Status Downloads Version Dependencies

QR code component for Vue.js, bases on node-qrcode.

Table of contents

Main

dist/
├── vue-qrcode.js        (UMD)
├── vue-qrcode.min.js    (UMD, compressed)
├── vue-qrcode.common.js (CommonJS)
└── vue-qrcode.esm.js    (ES Module)

Getting started

Install

npm install @chenfengyuan/vue-qrcode vue

In browser:

<script src="/path/to/vue.js"></script>
<script src="/path/to/vue-qrcode.js"></script>
<script>Vue.component(VueQrcode.name, VueQrcode);</script>

Usage

import Vue from 'vue';
import VueQrcode from '@chenfengyuan/vue-qrcode';

Vue.component(VueQrcode.name, VueQrcode);
<qrcode value="Hello, World!" :options="{ width: 200 }"></qrcode>

⬆ back to top

Props

value

  • Type: String
  • Default: undefined

The value of the QR code.

options

  • Type: Object
  • Default: undefined

The options for the QR code generator. References the node-qrcode's options.

tag

  • Type: String
  • Default: 'canvas'
  • Options: 'canvas', 'img' and other element tags.

The tag name of the component's root element.

Browser support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Opera (latest)
  • Edge (latest)
  • Internet Explorer 9+

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Chen Fengyuan

⬆ back to top

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.