Skip to content

Commit bc5fa40

Browse files
committed
fix(qrcode): example code, add keywords field in packages.json
1 parent 2ea4837 commit bc5fa40

File tree

6 files changed

+20
-7
lines changed

6 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# CHANGELOG
1+
# Change Logs
22

3-
All notable changes to this project will be documented in this file.
3+
All notable changes to this project will be documented in the following files.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
- [vue-qrcode](./packages/vue-qrcode/CHANGELOG.md)
67
- [vue-qrious](./packages/vue-qrious/CHANGELOG.md)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"vue-qrious": "link:packages/vue-qrious/src"
8080
},
8181
"alias": {
82-
"vue": "./node_modules/vue/dist/vue.esm.js"
82+
"vue": "./node_modules/vue/dist/vue.esm"
8383
},
8484
"babel": {
8585
"presets": [

packages/vue-qrcode/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
```vue
88
<template>
9-
<qrious value="https://www.1stg.me" />
9+
<qrcode value="https://www.1stg.me" />
1010
</template>
1111
<script>
1212
import Qrcode from 'vue-qrcode'
@@ -21,7 +21,7 @@ export default {
2121

2222
## Available Props
2323

24-
| prop | type | default value |
24+
| prop | type (range) | default value |
2525
| ---------------------- | ------------------------------------------------------------------ | ------------------------------------------- |
2626
| `version` | `number` (1-40) | N/A |
2727
| `errorCorrectionLevel` | `String` ('low', 'medium', 'quartile', 'high', 'L', 'M', 'Q', 'H') | `'M'` |
@@ -31,6 +31,6 @@ export default {
3131
| `scale` | `number` | `4` |
3232
| `width` | `number` | N/A |
3333
| `color` | `{ dark: string; light:string }` | `{ dark: '#000000ff', light: '#ffffffff' }` |
34-
| `type` | `string` ('image/png', 'image/jpeg', 'image/webp',) | `'image/png'` |
34+
| `type` | `string` ('image/png', 'image/jpeg', 'image/webp') | `'image/png'` |
3535
| `quality` | `number`(0-1) | `0.92` |
3636
| `value` | `string | Array<{ data: string; mode?: string }>` | N/A |

packages/vue-qrcode/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"lib",
1818
"src"
1919
],
20+
"keywords": [
21+
"vue-qrcode",
22+
"qrcode",
23+
"vue"
24+
],
2025
"peerDependencies": {
2126
"qrcode": "^1.0.0",
2227
"vue": "^2.0.0"

packages/vue-qrious/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121

2222
## Available Props
2323

24-
| prop | type | default value |
24+
| prop | type (range) | default value |
2525
| ----------------- | ------------------------------------ | ------------- |
2626
| `background` | `string` (CSS color) | `"#ffffff"` |
2727
| `backgroundAlpha` | `number` (0.1-1.0) | `1.0` |

packages/vue-qrious/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
"qrious.d.ts",
2020
"typings.d.ts"
2121
],
22+
"keywords": [
23+
"vue-qrcode",
24+
"vue-qrious",
25+
"qrcode",
26+
"qrious",
27+
"vue"
28+
],
2229
"peerDependencies": {
2330
"qrious": "^4.0.0",
2431
"vue": "^2.0.0"

0 commit comments

Comments
 (0)