This commit is contained in:
aihe 2024-06-25 02:35:58 +08:00
parent a006636a2b
commit d4592accf7
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ export default {
imgData: '', imgData: '',
percentage: 0, // 打印进度 percentage: 0, // 打印进度
imageUrl: '', imageUrl: '',
paperWidth: 560, paperWidth: 480,
} }
}, },
mounted () { mounted () {
@ -62,7 +62,7 @@ export default {
} }
let prtInstance = tanexPrinterUniSdk.createInstance() let prtInstance = tanexPrinterUniSdk.createInstance()
prtInstance.init(that.canvasHeight) prtInstance.init(that.canvasHeight)
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`) prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
prtInstance.addBitmapByEG(0, 0, that.imgData) prtInstance.addBitmapByEG(0, 0, that.imgData)
prtInstance.setPagePrint() prtInstance.setPagePrint()
let commond = prtInstance.getPrintCmd() let commond = prtInstance.getPrintCmd()

View File

@ -62,7 +62,7 @@ export default {
previewModel: { show: false }, previewModel: { show: false },
printModel: { show: false }, printModel: { show: false },
imageUrl: [], imageUrl: [],
paperWidth: 560, paperWidth: 480,
show: false, show: false,
} }
}, },