Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liang
agcs2.0-web
Commits
b09b4707
Commit
b09b4707
authored
Apr 03, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改pdf预览
parent
8415b0ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
App.vue
src/App.vue
+1
-1
index.vue
src/views/Home/PdfDialog/index.vue
+12
-7
index.vue
src/views/Home/PdfView/index.vue
+4
-5
No files found.
src/App.vue
View file @
b09b4707
...
...
@@ -19,7 +19,7 @@ export default {
#vue-admin-beautiful
{
height
:
100vh
;
min-width
:
1
4
00px
;
min-width
:
1
1
00px
;
overflow
:
auto
;
margin-right
:
calc
(
100%
-
100vw
);
}
...
...
src/views/Home/PdfDialog/index.vue
View file @
b09b4707
...
...
@@ -7,9 +7,8 @@
:close-on-click-modal=
"true"
:close-on-press-escape=
"false"
:show-close=
"true"
width=
"70%"
:destroy-on-close=
"true"
top=
"
10
vh"
top=
"
2
vh"
>
<div
class=
"innerBody"
>
<div
class=
"title"
>
{{
curPdf
.
articleTitle
}}
</div>
...
...
@@ -49,13 +48,15 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.innerBody
{
padding
:
0
60px
40px
;
padding
:
0
50px
0px
;
// width: 790px;
// height: 882px;
.title
{
font-size
:
24px
;
font-family
:
AlibabaPuHuiTiM
;
color
:
#333333
;
text-align
:
center
;
margin-bottom
:
3
0px
;
margin-bottom
:
0px
;
}
.refuteList
{
// height: 600px;
...
...
@@ -64,8 +65,12 @@ export default {
}
</
style
>
<
style
lang=
"scss"
>
.pdfDialog
.el-dialog__header
{
// display: none;
padding
:
0px
!
important
;
.pdfDialog
{
width
:
750px
;
max-height
:
858px
;
.el-dialog__header
{
// display: none;
padding
:
0px
!
important
;
}
}
</
style
>
src/views/Home/PdfView/index.vue
View file @
b09b4707
...
...
@@ -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
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment