This commit is contained in:
aihe 2024-06-23 21:18:03 +08:00
parent 6ea8e5ddef
commit 601b84cd6b
4 changed files with 2 additions and 5 deletions

View File

@ -43,7 +43,7 @@ export default {
percentage: 0, // 打印进度 percentage: 0, // 打印进度
threshold: 200, // 阈值(值越大,图片打印越深) threshold: 200, // 阈值(值越大,图片打印越深)
imageUrl: '', imageUrl: '',
paperWidth: 320, paperWidth: 560,
} }
}, },
mounted () { mounted () {

View File

@ -42,7 +42,6 @@ export default {
data () { data () {
return { return {
imageUrl: '', imageUrl: '',
// paperWidth: 72,
paperWidth: 560, paperWidth: 560,
show: false, show: false,
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<tpx-page> <tpx-page>
<tpx-bluetooth-print show="!pageLoading" <tpx-bluetooth-print show="!pageLoading"
:imageUrl="queryOption.imageUrl" :paperWidth="queryOption.paperWidth" :imageUrl="queryOption.imageUrl"
></tpx-bluetooth-print> ></tpx-bluetooth-print>
</tpx-page> </tpx-page>
</template> </template>
@ -18,7 +18,6 @@ export default {
pageLoading: true, pageLoading: true,
queryOption: { queryOption: {
imageUrl: '', imageUrl: '',
paperWidth: ''
} }
} }
}, },

View File

@ -72,7 +72,6 @@
handlePrint() { handlePrint() {
this.$refs.curPrint.startPrint({ this.$refs.curPrint.startPrint({
imageUrl: this.qrCodeImgUrl, imageUrl: this.qrCodeImgUrl,
paperWidth: 480,
}) })
} }
} }