diff --git a/components/tpx-bluetooth-print/render-template-native.vue b/components/tpx-bluetooth-print/render-template-native.vue index 1b88d9a..652631c 100644 --- a/components/tpx-bluetooth-print/render-template-native.vue +++ b/components/tpx-bluetooth-print/render-template-native.vue @@ -40,7 +40,7 @@ export default { imgData: '', percentage: 0, // 打印进度 imageUrl: '', - paperWidth: 560, + paperWidth: 480, } }, mounted () { @@ -62,7 +62,7 @@ export default { } let prtInstance = tanexPrinterUniSdk.createInstance() 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.setPagePrint() let commond = prtInstance.getPrintCmd() diff --git a/components/tpx-bluetooth-print/tpx-bluetooth-print.vue b/components/tpx-bluetooth-print/tpx-bluetooth-print.vue index 07828c5..b2ded28 100644 --- a/components/tpx-bluetooth-print/tpx-bluetooth-print.vue +++ b/components/tpx-bluetooth-print/tpx-bluetooth-print.vue @@ -62,7 +62,7 @@ export default { previewModel: { show: false }, printModel: { show: false }, imageUrl: [], - paperWidth: 560, + paperWidth: 480, show: false, } },