-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
907058f
commit 9893e3e
Showing
7 changed files
with
22,058 additions
and
4,430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# vue-qrcode | ||
|
||
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-qrcode.svg)](https://codecov.io/gh/fengyuanchen/vue-qrcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-qrcode/next.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-qrcode.svg)](https://unpkg.com/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js) | ||
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-qrcode.svg)](https://codecov.io/gh/fengyuanchen/vue-qrcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-qrcode.svg)](https://unpkg.com/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js) | ||
|
||
> QR code component for Vue 3, bases on [node-qrcode](https://github.com/soldair/node-qrcode). | ||
> QR code component for Vue 3, bases on [node-qrcode](https://github.com/soldair/node-qrcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-qrcode/tree/v1) branch. | ||
- [Docs](src/README.md) | ||
- [Demo](https://fengyuanchen.github.io/vue-qrcode) | ||
|
@@ -14,23 +14,38 @@ dist/ | |
├── vue-qrcode.js (UMD, default) | ||
├── vue-qrcode.min.js (UMD, compressed) | ||
├── vue-qrcode.esm.js (ECMAScript Module) | ||
└── vue-qrcode.esm.min.js (ECMAScript Module, compressed) | ||
├── vue-qrcode.esm.min.js (ECMAScript Module, compressed) | ||
└── vue-qrcode.d.ts (TypeScript Declaration File) | ||
``` | ||
|
||
## Getting started | ||
|
||
### Installation | ||
|
||
Using npm: | ||
|
||
```shell | ||
npm install vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2 | ||
``` | ||
|
||
Using pnpm: | ||
|
||
```shell | ||
pnpm add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2 | ||
``` | ||
|
||
Using Yarn: | ||
|
||
```shell | ||
npm install vue@next qrcode @chenfengyuan/vue-qrcode@next | ||
yarn add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2 | ||
``` | ||
|
||
In browser: | ||
Using CDN: | ||
|
||
```html | ||
<script src="/path/to/vue.js"></script><!-- Vue.js is required --> | ||
<script src="/path/to/qrcode.js"></script><!-- qrocde is required --> | ||
<script src="/path/to/vue-qrcode.js"></script> | ||
<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required --> | ||
<script src="https://unpkg.com/[email protected]/build/qrcode.js"></script><!-- qrocde is required --> | ||
<script src="https://unpkg.com/@chenfengyuan/vue-qrcode@2"></script> | ||
``` | ||
|
||
### Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ export default defineComponent({ | |
table { | ||
display: table; | ||
width: 100%; | ||
} | ||
code { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.