From b09b4707e63ec04afe0eecdc3105079441d0dec2 Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Mon, 3 Apr 2023 11:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pdf=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/views/Home/PdfDialog/index.vue | 19 ++++++++++++------- src/views/Home/PdfView/index.vue | 9 ++++----- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index cce1dd5..eebf488 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,7 +19,7 @@ export default { #vue-admin-beautiful { height: 100vh; - min-width: 1400px; + min-width: 1100px; overflow: auto; margin-right: calc(100% - 100vw); } diff --git a/src/views/Home/PdfDialog/index.vue b/src/views/Home/PdfDialog/index.vue index 4e159e6..b9ec78b 100644 --- a/src/views/Home/PdfDialog/index.vue +++ b/src/views/Home/PdfDialog/index.vue @@ -7,9 +7,8 @@ :close-on-click-modal="true" :close-on-press-escape="false" :show-close="true" - width="70%" :destroy-on-close="true" - top="10vh" + top="2vh" >
{{ curPdf.articleTitle }}
@@ -49,13 +48,15 @@ export default { diff --git a/src/views/Home/PdfView/index.vue b/src/views/Home/PdfView/index.vue index 780d650..b54d024 100644 --- a/src/views/Home/PdfView/index.vue +++ b/src/views/Home/PdfView/index.vue @@ -111,7 +111,7 @@ export default { //缩小 scaleX() { // scale 是百分百展示 不建议缩放 - if (this.scale == 100) { + if (this.scale == 85) { return } this.scale += -5 @@ -190,9 +190,8 @@ export default { .show { overflow: auto; margin: auto; - // max-width: 75%; - height: 450px; - // max-height: 530px; + max-width: 790px; + max-height: 660px; } .pdf_footer { position: sticky; @@ -224,7 +223,7 @@ export default { border-radius: 10px; padding: 5px; color: #fff; - background-color: #3dcbbc; + background-color: #4e68ff; } } } -- 2.22.0