Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖文锋
/
pdfPreview
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1bb41803
authored
Jun 09, 2020
by
xiaowenfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了切换页码的大箭头
parent
71600757
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
5 deletions
src/App.vue
src/css/viewer.css
src/App.vue
View file @
1bb41803
...
...
@@ -6,6 +6,22 @@
v-show=
"isLoading"
alt=
"loading"
/>
<div
class=
"pageControll"
>
<i
:class=
"['jiantou', 'jiantou-left']"
v-show=
"pageIndex === 1 ? false : true"
title=
"上一页"
@
click=
"previous"
>

</i
>
<i
:class=
"['jiantou', 'jiantou-right']"
v-show=
"pageIndex === pageLength ? false : true"
title=
"下一页"
@
click=
"next"
>

</i
>
</div>
<div
class=
"toolbar"
>
<div
id=
"toolbarContainer"
>
<div
id=
"toolbarViewer"
>
...
...
@@ -484,12 +500,14 @@ export default {
"30%"
);
}
setTimeout
(()
=>
{
this
.
isLoading
=
false
;
},
1500
);
if
(
!!
fn
&&
typeof
fn
==
"function"
)
{
fn
(
data
);
}
},
complete
:
()
=>
{
setTimeout
(()
=>
{
this
.
isLoading
=
false
;
},
1500
);
}
});
},
...
...
@@ -567,6 +585,7 @@ export default {
<
style
lang=
"scss"
>
@import
url("./css/viewer.css")
;
$
jiantouPst
:
30px
;
*
{
scrollbar-width
:
none
;
}
...
...
@@ -600,4 +619,34 @@ export default {
transform
:
translate
(
-50%
,
-50%
);
z-index
:
99
;
}
.pageControll
{
width
:
100%
;
left
:
50%
;
top
:
50%
;
position
:
absolute
;
transform
:
translate
(
-50%
,
-50%
);
z-index
:
99
;
box-sizing
:
border-box
;
}
.jiantou-right
{
position
:
absolute
;
right
:
$
jiantouPst
;
transform
:
rotateY
(
180deg
);
cursor
:
pointer
;
opacity
:
0.5
;
}
.jiantou-left
{
position
:
absolute
;
left
:
$
jiantouPst
;
cursor
:
pointer
;
opacity
:
0.5
;
}
.jiantou
:hover
{
color
:
#fff
;
border
:
1px
solid
#fff
;
padding
:
0
30px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.6
);
border-radius
:
5px
;
opacity
:
1
;
}
</
style
>
src/css/viewer.css
View file @
1bb41803
...
...
@@ -1922,4 +1922,21 @@ html[dir='rtl'] .toolbarButton.draggrad::before {
display
:
none
;
}
}
\ No newline at end of file
@font-face
{
font-family
:
'iconfont'
;
src
:
url('../assets/iconfog/iconfont.eot')
;
src
:
url('../assets/iconfog/iconfont.eot?#iefix')
format
(
'embedded-opentype'
),
url('../assets/iconfog/iconfont.woff2')
format
(
'woff2'
),
url('../assets/iconfog/iconfont.woff')
format
(
'woff'
),
url('../assets/iconfog/iconfont.ttf')
format
(
'truetype'
),
url('../assets/iconfog/iconfont.svg#iconfont')
format
(
'svg'
);
}
.jiantou
{
font-family
:
"iconfont"
!important
;
font-size
:
40px
;
font-style
:
normal
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
\ No newline at end of file
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