From 1e4ad6b24eedae295be5d5e3a32414abc3f7e343 Mon Sep 17 00:00:00 2001
From: miaojiale <1123971748@qq.com>
Date: Fri, 12 May 2023 17:32:39 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pdf?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Home/PdfDialog/index.vue | 14 +++++++++++---
src/views/Home/PdfView/index.vue | 9 +++++++--
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/views/Home/PdfDialog/index.vue b/src/views/Home/PdfDialog/index.vue
index b9ec78b..0eb2f96 100644
--- a/src/views/Home/PdfDialog/index.vue
+++ b/src/views/Home/PdfDialog/index.vue
@@ -3,6 +3,7 @@
{{ curPdf.articleTitle }}
@@ -33,8 +34,16 @@ export default {
data() {
return {
showPdf: false,
+ width: 750,
+ dWidth: 750,
}
},
+ methods: {
+ setScale(val) {
+ console.log(val)
+ this.dWidth = this.width * (val / 100)
+ },
+ },
watch: {
showPdf(v) {
if (v) {
@@ -66,8 +75,7 @@ export default {