Comments (5)
Thanks for taking the time 😀 👍
I believe _events
is a property also used internally by Vue. I'm not sure what the difference to $listeners
is though.
I'd love to support quasar and find out why it's not working already but I hope there is a solution which is based on Vues official API.
from vue-qrcode-reader.
After hours of debugging I have found what was the reason why the vue instance property this.$listeners
is undefined. It turned out quasar has a custom event handling instance property that handles the events called _events
.
So in order for it to work with quasar-framework I updated your QrcodeReader.vue
component a little bit, changed the this.$listeners
to this._events
on shouldScan()
and shouldLocate()
computed functions.
Looking forward for a full quasar-framework support in the future.
Nice work with the package btw.
from vue-qrcode-reader.
Hey, I haven't worked with quasar yet but I can't think of an obvious reason why it should be a problem.
vue-qrcode-reader
checks if event handlers for locate
and/or decode
are registered by its parent component. This can be checked using the instance property vm.$listeners. If no handlers are registered, continuously locating and decoding (which is rather expensive) would be unecessary and is therefore omitted.
Now it seems like $listeners
is not available in your component instance for some reason. Maybe this is a bug or quasar interferes here...
Could you share your source or provide detailed steps to reproduce?
from vue-qrcode-reader.
Hi @maclaine-san, you could send me sample code to use this module inside quasar framework? I have problems with postCSS or something like that.
Thanks.
from vue-qrcode-reader.
This might be fixed now. $listener
is not used anymore.
from vue-qrcode-reader.
Related Issues (20)
- The automated release is failing 🚨
- CDN download link returns file does not exist HOT 2
- Serious bug(严重的bug) HOT 1
- 版本3.1.9,方法onCameraOn无效,是否含有这个方法?
- 版本3.1.9是否支持formats?如果不支持我应该如何实现? HOT 13
- Scan small DataMatrix HOT 2
- Detect and tracking don't work anymore if choose a camera with constraints HOT 9
- corresponding type declarations HOT 2
- use paused introduce around 1s to 2s of freeze HOT 4
- Feature Request: PDF-Support for Dropzone HOT 4
- reading 'enumerateDevices' is undefined HOT 2
- Are formats available in vue 2? HOT 1
- Unable to read PDF417 Barcodes HOT 1
- Error on installation on Nuxt 3 HOT 1
- Incorrect file extension in "exports" (package.json) HOT 2
- Custom `wasm` file not loading correctly in Nuxt apps HOT 5
- Coponent types missing HOT 3
- TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed. HOT 1
- ERROR Failed to execute 'detect' on 'BarcodeDetector': Barcode detection service unavailable. DOMException@ er@ @ HOT 11
- Unable to switch the camera once selected with the problem camera HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-qrcode-reader.