diff --git a/jeecgboot-vue3/src/views/print/template/native/NativePrintDesigner.vue b/jeecgboot-vue3/src/views/print/template/native/NativePrintDesigner.vue index 6783f55..53fab09 100644 --- a/jeecgboot-vue3/src/views/print/template/native/NativePrintDesigner.vue +++ b/jeecgboot-vue3/src/views/print/template/native/NativePrintDesigner.vue @@ -1059,6 +1059,13 @@ } if (type === 'qrcode' || type === 'barcode') { base.value = payload.value || ''; + if (type === 'barcode') { + // 默认 Code128(自动),与 jsbarcode 默认一致;displayValue 默认显示底部文字 + base.format = payload.format || 'CODE128'; + base.displayValue = payload.displayValue !== false; + // 条码下文字对齐:center / left / right / justify(两端对齐),默认居中 + base.textAlign = payload.textAlign || 'center'; + } return base as NativeElement; } if (type === 'reportHeader' || type === 'reportFooter') { diff --git a/jeecgboot-vue3/src/views/print/template/native/components/PropertiesPanel.vue b/jeecgboot-vue3/src/views/print/template/native/components/PropertiesPanel.vue index 0ad3585..c14f03c 100644 --- a/jeecgboot-vue3/src/views/print/template/native/components/PropertiesPanel.vue +++ b/jeecgboot-vue3/src/views/print/template/native/components/PropertiesPanel.vue @@ -86,6 +86,47 @@