From 79221d37d69605f1036a5b5147da186c3bff43c8 Mon Sep 17 00:00:00 2001 From: Miao_Spring <539943419@qq.com> Date: Sat, 23 Aug 2025 02:54:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(miaoPDF):=20=E9=87=8D=E6=9E=84PDF=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=99=A8=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E5=92=8C=E7=BC=A9=E6=94=BE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将margin缩放方案改为更精确的scale缩放方案 - 添加拖拽功能,支持长按后拖动PDF内容 - 重新设计顶部工具栏样式和布局 - 添加缩放比例显示和操作提示 --- src/plugins/miaoPDF/miaoPDF.vue | 277 ++++++++++++++++++++++++-------- 1 file changed, 214 insertions(+), 63 deletions(-) diff --git a/src/plugins/miaoPDF/miaoPDF.vue b/src/plugins/miaoPDF/miaoPDF.vue index 01aad37..d36dec4 100644 --- a/src/plugins/miaoPDF/miaoPDF.vue +++ b/src/plugins/miaoPDF/miaoPDF.vue @@ -2,48 +2,30 @@
-
- -- -
-
- - -
-
- 还原缩放 -
-
- + -
-
- ++ +
+
--
+
-
+
重置
+
+
+
++
+
{{ Math.round(scale * 100) }}%
- +
+ @pointerdown="onPointerDown" + @pointermove="onPointerMove" + @pointerup="onPointerUp" + @pointercancel="onPointerCancel" + :class="{ 'is-dragging': isDragging}" + :style="{'align-items': scale > 1 ? 'unset' : 'center' }"> +
@@ -53,7 +35,7 @@