You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
400 B
28 lines
400 B
<template>
|
|
<div>
|
|
<p class="decode-result">Last result: <b>{{ result }}</b></p>
|
|
|
|
<qrcode-capture @decode="onDecode" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { QrcodeCapture } from '../../../../src'
|
|
|
|
export default {
|
|
|
|
components: { QrcodeCapture },
|
|
|
|
data () {
|
|
return {
|
|
result: ''
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
onDecode (result) {
|
|
this.result = result
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|