From a38a1ac77bb6ac9ea8bf0cf5f5f6b68d0e6e6974 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 02 一月 2024 08:44:10 +0800
Subject: [PATCH] 修改
---
web/src/views/pages/view.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/web/src/views/pages/view.vue b/web/src/views/pages/view.vue
index 8f37ee4..db6e4e9 100644
--- a/web/src/views/pages/view.vue
+++ b/web/src/views/pages/view.vue
@@ -2,7 +2,7 @@
<div>
<div v-show="isOpenDocPreviewDialog" class="preview-dialog">
<button @click="closePreviewDialog('doc')" class="close-button">鍏抽棴</button>
- <div :id="pageMarkerfun+'-doc'" style="overflow: auto; width: 100%; height: 90%;"></div>
+ <div :id="pageMarkerfun+'-doc'" style="overflow: auto; width: 100% !important;; height: 90%;margin: 0px; padding: 0px!important"></div>
<div class="file-name">{{ docName }}</div>
</div>
<div v-show="isOpenPdfPreviewDialog" class="preview-dialog">
@@ -73,6 +73,7 @@
console.log(row, 'setAccessoryFormatSingle(row)');
return setAccessoryFormatByForm(row, this.pageMarkerfun, this)
},
+
closePreviewDialog(file) {
if (file == 'doc') {
this.docName = ''
@@ -108,12 +109,26 @@
position: fixed;
top: 120px;
right: 10px;
- background: gray;
+ background: #ccc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
+ .preview-dialog .docx-wrapper{
+ padding: 10px 0 0 0 !important;
+ background: inherit !important;
+ }
+ .preview-dialog .docx-wrapper>section.docx{
+ width: 850.3pt !important;
+ padding: 0 !important;
+ }
+ .preview-dialog .docx-wrapper>section.docx>article{
+ margin: 0 auto;
+ }
+ .preview-dialog .docx-wrapper>section.docx>article>.docx_4{
+ width: 685.45pt !important;
+ }
.close-button {
position: absolute;
top: 10px;
--
Gitblit v1.9.1