two.vue
1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
<div class="pdf_container">
<NafmHeader navClass="nafmii-head-bg3" title="详情页面">
</NafmHeader>
<vue-pdf-app :pdf="fileUrl"></vue-pdf-app>
</div>
</template>
<script>
import VuePdfApp from "vue-pdf-app";
import "vue-pdf-app/dist/icons/main.css";
export default {
components:{
VuePdfApp
},
data() {
return {
loading: false,
inputValue: 1,
currentPage: 0,
pageCount: 0,
fileUrl: 'study.pdf',
numPages: undefined,
src: '',
scale: 100,
}
},
}
</script>
<style lang="less" scoped>
.header {
display: flex;
height: 50px;
align-items: center;
.pre {
width: 50px;
margin-right: 5px;
}
.next {
width: 50px;
}
.center {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
}
.inputClass {
width: 50px;
color: #333;
margin-right: 2px;
text-align: center;
}
/deep/ .annotationLayer {
margin-bottom: 10px;
border-bottom: 10px solid #ccc;
}
</style>