qrcode.vue
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "qrcode.vue", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "A Vue component for QR_code.", | ||
@@ -8,4 +8,5 @@ "main": "dist/qrcode.vue.min.js", | ||
"start": "better-npm-run start", | ||
"clean": "npm run rimraf -- dist", | ||
"clean": "rimraf -- dist", | ||
"compile": "better-npm-run compile", | ||
"github:page": "better-npm-run github:page", | ||
"deploy": "better-npm-run deploy", | ||
@@ -28,5 +29,7 @@ "deploy:min": "better-npm-run deploy:min" | ||
}, | ||
"deploy": { | ||
"github:page": { | ||
"command": "npm run compile", | ||
"env": { | ||
"EXAMPLE": "example", | ||
"MINIMIZE": "minimize", | ||
"NODE_ENV": "production", | ||
@@ -36,4 +39,11 @@ "DEBUG": "app:*" | ||
}, | ||
"deploy": { | ||
"command": "npm run clean && npm run compile", | ||
"env": { | ||
"NODE_ENV": "production", | ||
"DEBUG": "app:*" | ||
} | ||
}, | ||
"deploy:min": { | ||
"command": "npm run compile", | ||
"command": "npm run clean && npm run compile", | ||
"env": { | ||
@@ -60,3 +70,3 @@ "MINIMIZE": "minimize", | ||
}, | ||
"homepage": "https://github.com/scopewu/qrcode.vue#readme", | ||
"homepage": "https://scopewu.github.io/qrcode.vue/", | ||
"dependencies": { | ||
@@ -63,0 +73,0 @@ "qr.js": "0.0.0" |
# qrcode.vue | ||
A Vue component for QR_code. | ||
## Start quick | ||
the `qrcode.vue` component can use in you Vue app. | ||
```bash | ||
npm install --save qrcode.vue | ||
``` | ||
## Usage | ||
e.g. | ||
```javascript | ||
import Vue from 'vue'; | ||
import QrcodeVue from 'qrcode.vue'; | ||
new Vue({ | ||
el: '#root', | ||
data: { | ||
value: 'https://example' | ||
}, | ||
template: `<qrcode-vue :value="value"></qrcode-vue>`, | ||
components: { | ||
QrcodeVue | ||
} | ||
}) | ||
``` | ||
## Component props | ||
| prop | type | default value | expain | | ||
|------|------|--------------|---------| | ||
|`value`|`String`|`''`| qrcode value | | ||
|`className`|`String`|`''`| qrcode element className | | ||
|`size`|`Number`|`100`| qrcode element size | | ||
|`level`|`String`|`L`| error level | | ||
|`background`|`String`|`#fff`| qrcode background color| | ||
|`foreground`|`String`|`#000`| qrcode color| | ||
## thanks | ||
["qr.js"](https://github.com/defunctzombie/qr.js) ["qrcode.react"](https://github.com/zpao/qrcode.react) | ||
## License | ||
[MIT](https://github.com/scopewu/qrcode.vue/blob/master/LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120759
43