From fb53bec3f3939c59753f5b20b376716d67bda5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 12 Jun 2025 18:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/print/index.vue | 31 +++++++++- src/views/print/nodes/QRCodeNode.vue | 27 ++++++--- src/views/print/nodes/barCodeNode.vue | 44 +++++++++++---- src/views/print/nodes/image.vue | 25 ++++++++- src/views/print/nodes/selectNode.vue | 81 +++++++++++++++++++++++++++ src/views/print/nodes/textNode.vue | 25 ++++++++- src/views/print/nodes/timeNode.vue | 24 +++++++- src/views/print/tool.js | 10 +++- src/views/print/view.vue | 14 +++-- 9 files changed, 249 insertions(+), 32 deletions(-) create mode 100644 src/views/print/nodes/selectNode.vue diff --git a/src/views/print/index.vue b/src/views/print/index.vue index 4e07774..252f363 100644 --- a/src/views/print/index.vue +++ b/src/views/print/index.vue @@ -9,7 +9,13 @@ B3 B4 B5 + 自定义 + + x + @@ -29,6 +35,8 @@ 日期时间 + 可选择 + 横线 竖线 @@ -79,6 +87,10 @@ + @@ -93,6 +105,20 @@ + + + + + + + + @@ -126,6 +152,7 @@ import ImageNode from './nodes/image.vue'; import BarCodeNode from './nodes/barCodeNode.vue'; import QRCodeNode from './nodes/QRCodeNode.vue'; import TimeNode from './nodes/timeNode.vue'; +import SelectNode from './nodes/selectNode.vue'; import View from './view.vue'; const router = useRouter(); @@ -176,8 +203,8 @@ const edges = ref([]); const setPage = (type, width, height) => { pageType.value = type; - pageHeight.value = height; - pageWidth.value = width; + pageHeight.value = height || pageHeight.value; + pageWidth.value = width || pageWidth.value; }; const zoomChange = (e) => { diff --git a/src/views/print/nodes/QRCodeNode.vue b/src/views/print/nodes/QRCodeNode.vue index 02654fd..35805e1 100644 --- a/src/views/print/nodes/QRCodeNode.vue +++ b/src/views/print/nodes/QRCodeNode.vue @@ -1,14 +1,14 @@