diff --git a/components/tpx-bluetooth-print/create-image-data-bycanvas.vue b/components/tpx-bluetooth-print/create-image-data-bycanvas.vue new file mode 100644 index 0000000..0ac4647 --- /dev/null +++ b/components/tpx-bluetooth-print/create-image-data-bycanvas.vue @@ -0,0 +1,96 @@ + + + + + \ No newline at end of file diff --git a/components/tpx-bluetooth-print/nativePrint/tanexPrinterUniSdk.js b/components/tpx-bluetooth-print/nativePrint/tanexPrinterUniSdk.js index 57814d1..344989d 100644 --- a/components/tpx-bluetooth-print/nativePrint/tanexPrinterUniSdk.js +++ b/components/tpx-bluetooth-print/nativePrint/tanexPrinterUniSdk.js @@ -51,7 +51,8 @@ var tanexPrinter = { /* [名称] 开始命令 [格式] ! {offset} 200 200 {height} {qty} [说明] {offset}:整个标签的水平偏移量 200:水平分辨率,203 点/英寸(8 点/mm) 200:垂直分辨率,203 点/英寸(8 点/mm) {height}:标签最大高度,点为单位 {qty}:打印标签的数量,最大1024 张 [实例] Input: Output: ! 0 200 200 210 1 TEXT 4 0 30 40 Hello World Hello World FORM PRINT */ - tanexPrinter.init = function(maxHeight) { + tanexPrinter.init = function(maxHeight = 1040) { + // 1040 一页打印纸的高度 data = " ! 0 200 200 " + maxHeight + " 1\r\n" tanexPrinter.addCommand(data) }; diff --git a/components/tpx-bluetooth-print/render-template-native.vue b/components/tpx-bluetooth-print/render-template-native.vue index 652631c..96dfff7 100644 --- a/components/tpx-bluetooth-print/render-template-native.vue +++ b/components/tpx-bluetooth-print/render-template-native.vue @@ -1,16 +1,13 @@