Comments (8)
Hello, for the v2.2.0, can I do like this instead?
<VueQrcode value="Let me be" type="image/png" color="{ dark: '#000000ff', light: '#ffffffff' }" @change="onDataUrlChange" />
from vue.
Hello, for the v2.2.0, can I do like this instead?
<VueQrcode value="Let me be" type="image/png" color="{ dark: '#000000ff', light: '#ffffffff' }" @change="onDataUrlChange" />
Sure, does anything work unexpectedly?
from vue.
Hello, for the v2.2.0, can I do like this instead?
<VueQrcode value="Let me be" type="image/png" color="{ dark: '#000000ff', light: '#ffffffff' }" @change="onDataUrlChange" />
Sure, does anything work unexpectedly?
I dont know what happen, but it seem the QR wont appear, even copying directly from demo, doesnt do anything. there is no error being display, also when I inspect the element, it show 0x0 size.
from vue.
Can you provide an online reproduction?
from vue.
@xliamh blocked
from vue.
For Vue 2.7 this part of the code is invalid:
vue/packages/vue-qrcode/index.ts
Lines 120 to 123 in ef9104a
For Vue 2.7 it must look like this:
h('img', {
attrs: { ...attrs, src: dataUrlRef.value },
})
from vue.
@susnux Interesting, would you like to raise a PR for it?
from vue.
Probably something like this is needed:
const version = Number(Vue.version.split('.')[0])
if (version === 2) {
// Vue v2 code
} else {
// current code
}
from vue.
Related Issues (20)
- Error while compiling. HOT 3
- 支付vue2.0吗? HOT 3
- 无法显示二维码 HOT 6
- how can i redrew the code image when the code is changing? HOT 3
- 是否可以考虑二维码导出功能 HOT 3
- npm 包还维护吗?或者可以考虑转让吗? HOT 7
- how to print the qrcode in a pdf file? HOT 1
- Download generated QRcode image HOT 1
- Regarding the file name of generated QR codes. HOT 1
- Typings not available HOT 2
- vue 3 compatibility? HOT 10
- Action Required: Fix Renovate Configuration
- tslib dependency missing HOT 2
- Dependency Dashboard
- version 1.0.0 can not usable
- Depends on [email protected]+ instead
- Save QR code to specific location in vue js project HOT 4
- Error on Nuxt 3 with 'vue-qrcode': 'QRCodeSegment' Export Not Found in 'qrcode' Module HOT 1
- The default values in VueQrcode do not match the documentation.
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.