tianyi 1 week ago
parent
commit
77cd1202da
  1. 6
      components/kk-printer/utils/bluetoolth.js

6
components/kk-printer/utils/bluetoolth.js

@ -436,11 +436,9 @@ export function addCPCLText(x, y, fontName, fontSize, rotation, content) {
var strCmd = ''; var strCmd = '';
if (rotation == 1) { if (rotation == 1) {
strCmd += 'T90 '; strCmd += 'T90 ';
} }else if (rotation == 2) {
if (rotation == 2) {
strCmd += 'T180 '; strCmd += 'T180 ';
} }else if (rotation == 3) {
if (rotation == 3) {
strCmd += 'T270 '; strCmd += 'T270 ';
} else { } else {
strCmd += 'T '; strCmd += 'T ';

Loading…
Cancel
Save