Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes olefirenko/vue-barcode-reader#2 #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ In your template you can use this syntax:
<StreamBarcodeReader @decode="onDecode" @loaded="onLoaded"></StreamBarcodeReader>
```

Or this syntax: (if you are using eslint rules)
If you want to use torch/flashlight add the prop 'show-torch-btn'
If you want to see a list of available cameras on the device add the prop 'show-list-cameras'

```html
<stream-barcode-reader
show-list-cameras
show-torch-btn
@decode="(a) => onDecode(a)"
@loaded="() => onLoaded()"
>
</stream-barcode-reader>
```

### Scanning from Image

The component renders to a simple file picker input element. Clicking opens a file dialog. On supporting mobile devices the camera is started to take a picture. The selected images are directly scanned and positive results are indicated by the `decode` event.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-barcode-reader",
"version": "1.0.2",
"version": "1.0.3",
"description": "Vue barcodes and QR codes scanner",
"main": "src/index.js",
"scripts": {
Expand Down
Loading