Commit b3e0ab36 authored by Nate 赵宇's avatar Nate 赵宇

条形码生成 2022-06-16

parent 8fd66d59
<template>
<qrcode-vue :value="value" :size="size" level="H"/>
<div>
<qrcode-vue :value="value" :size="size" level="H"/>
<input v-model="barcodeValue" /><br>
<barcode :value="barcodeValue" :format="barcodeFormat"/>
</div>
</template>
<script>
import QrcodeVue from 'qrcode.vue'
import VueBarcode from 'vue-barcode'
export default {
components: {
QrcodeVue,
'barcode': VueBarcode
},
data() {
return {
value: 'https://www.baidu.com',
size: 300
size: 300,
barcodeValue: 'test',
barcodeFormat: ''
}
},
components: {
QrcodeVue
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment