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, // 打印进度
threshold: 200, // 阈值(值越大,图片打印越深)
imageUrl: '',
paperWidth: 320,
paperWidth: 560,
}
},
mounted () {

View File

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

View File

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

View File

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