This commit is contained in:
linfso 2024-06-25 12:35:55 +08:00
parent 635424d077
commit 140eb5b164
2 changed files with 13 additions and 15 deletions

View File

@ -184,8 +184,8 @@ export default {
}, },
showFirstFile(){ showFirstFile(){
if(this.isA4){ if(this.isA4){
this.scale=75; this.scale=50;
this.preScale=75; this.preScale=50;
this.pageCount=this.cacheA4FileList.length; this.pageCount=this.cacheA4FileList.length;
setTimeout( this.showA4Page(this.cacheA4FileList.length),3000); setTimeout( this.showA4Page(this.cacheA4FileList.length),3000);
}else{ }else{
@ -409,8 +409,9 @@ export default {
.grid2 { .grid2 {
height: 200px; height: 200px;
background-image: radial-gradient(circle, rgb(165, 165, 165) 1px, #fff 1px); // background-image: radial-gradient(circle, rgb(165, 165, 165) 1px, #fff 1px);
background-size: 20px 20px; background-image: radial-gradient(circle, #4a4a4a 1px, #3f3f3f 1px);
background-size: 15px 15px;
background-position: center center; background-position: center center;
} }

View File

@ -39,8 +39,6 @@
</div> </div>
</div> </div>
<div style="min-height:1600px;margin: 0 auto;overflow: auto;"> <div style="min-height:1600px;margin: 0 auto;overflow: auto;">
<!-- <el-scrollbar style="height:800px"> -->
<!-- </el-scrollbar> -->
<div class="pdf-wrapper"> <div class="pdf-wrapper">
<pdf <pdf
:src="currentPdfUrl" :src="currentPdfUrl"
@ -49,7 +47,6 @@
@page-loaded="onPageLoaded($event)" @page-loaded="onPageLoaded($event)"
ref="pdf" ref="pdf"
></pdf> ></pdf>
<!-- v-drag -->
</div> </div>
@ -103,9 +100,8 @@ export default {
cacheA4FileList:[], cacheA4FileList:[],
thisPageCount:1, thisPageCount:1,
scale: 30,
scale: 20, preScale: 30,
preScale: 20,
pdfUtils:new PdfUtils(), pdfUtils:new PdfUtils(),
@ -134,7 +130,7 @@ export default {
if(this.isA4){ if(this.isA4){
this.doScale(75); this.doScale(75);
}else{ }else{
this.doScale(20); this.doScale(30);
} }
}, },
isLoadComplete(newVal,oldVal){ isLoadComplete(newVal,oldVal){
@ -191,8 +187,8 @@ export default {
this.pageCount=this.cacheA4FileList.length; this.pageCount=this.cacheA4FileList.length;
setTimeout( this.showA4Page(this.cacheA4FileList.length),3000); setTimeout( this.showA4Page(this.cacheA4FileList.length),3000);
}else{ }else{
this.scale=20; this.scale=30;
this.preScale=20; this.preScale=30;
this.pageCount=this.cacheFileList.length; this.pageCount=this.cacheFileList.length;
setTimeout( this.showSinglePage(1),2000); setTimeout( this.showSinglePage(1),2000);
} }
@ -420,8 +416,9 @@ export default {
.grid2 { .grid2 {
height: 200px; height: 200px;
background-image: radial-gradient(circle, rgb(165, 165, 165) 1px, #fff 1px); // background-image: radial-gradient(circle, rgb(165, 165, 165) 1px, #fff 1px);
background-size: 20px 20px; background-image: radial-gradient(circle, #4a4a4a 1px, #3f3f3f 1px);
background-size: 15px 15px;
background-position: center center; background-position: center center;
} }