Skip to content

vue 2.7 vue-qrcode 2.2.0 #164

@pigping88

Description

@pigping88

the demo:

<vue-qrcode
value="https://www.1stg.me"
@change="onDataUrlChange"
/>

<script> import VueQrcode from 'vue-qrcode' export default { data() { return { dataUrl: null, } }, components: { VueQrcode, }, methods: { onDataUrlChange(dataUrl) { this.dataUrl = dataUrl }, }, } </script>

the error:
[Vue warn]: Missing required prop: "color"
Vue warn]: Missing required prop: "type"

change demo:

data() {
return {
qrcode: {
color: {
dark: 'black', // 设置二维码的主要颜色
light: 'white' // 设置二维码的背景颜色
}
},
codeText: 'test qrcode text',
no error, but there is no a qrcode in the page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions