askbot-dragon 1.5.38-beta → 1.5.39-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.5.38-beta",
3
+ "version": "1.5.39-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -300,7 +300,7 @@ export default {
300
300
  // 创建渲染的dom
301
301
  const pageDom = document.createElement('div');
302
302
  pageDom.style.position = 'absolute';
303
- pageDom.style.top = `${((pageNo - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + this.PAGE_INTVERVAL}px`;
303
+ pageDom.style.top = `${((pageNo - 1) * (this.pageSize.height + this.PAGE_INTVERVAL) * CSS_UNITS) + this.PAGE_INTVERVAL}px`;
304
304
  pageDom.style.width = `${this.pageSize.width * CSS_UNITS}px`;
305
305
  pageDom.style.height = `${this.pageSize.height * CSS_UNITS}px`;
306
306
  pageDom.setAttribute('data-id', 'page' + pageNo)
@@ -356,9 +356,9 @@ export default {
356
356
  rectdom.appendChild(div)
357
357
  if (index == 0 && j == 0) {
358
358
  if (this.transformSalce !== null) {
359
- rectdomTop = postionArr[1]* this.scale * CSS_UNITS * this.transformSalce
359
+ rectdomTop = postionArr[1]* this.scale * this.transformSalce
360
360
  } else {
361
- rectdomTop = postionArr[1] * this.scale* CSS_UNITS
361
+ rectdomTop = postionArr[1] * this.scale
362
362
  }
363
363
  // if(this.isPC) {
364
364
  // rectdomTop = rectdomTop - 50 < 0 ? 0 : rectdomTop - 50
@@ -399,11 +399,11 @@ export default {
399
399
  this.contentView.style.left = (postionArr[0] * this.scale * CSS_UNITS * (this.transformSalce) * -1) + 10 + 'px';
400
400
  }
401
401
  } else {
402
- this.contentView.style.transform = 'scale(1)';
403
- this.contentView.style.left = ((postionArr[0] * this.scale * CSS_UNITS) * -1)+ 'px';
402
+ this.contentView.style.transform = 'scale(0.8)';
403
+ // this.contentView.style.left = ((postionArr[0] * this.scale) * -1)+ 'px';
404
404
  }
405
405
  }
406
- } else {
406
+ } else if(this.transformSalce !== null){
407
407
  this.contentView.style.transform = `scale(${this.transformSalce}, ${this.transformSalce})`
408
408
  }
409
409
  if (this.changetoolbar) {
@@ -557,7 +557,7 @@ export default {
557
557
  pageDom.style.width = `${this.pageSize.width * CSS_UNITS}px`;
558
558
  pageDom.style.height = `${this.pageSize.height * CSS_UNITS}px`;
559
559
  pageDom.style.position = 'absolute';
560
- pageDom.style.top = `${((pageNo - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + this.PAGE_INTVERVAL
560
+ pageDom.style.top = `${((pageNo - 1) * (this.pageSize.height + this.PAGE_INTVERVAL) * CSS_UNITS) + this.PAGE_INTVERVAL
561
561
  }px`;
562
562
  pageDom.style.backgroundImage = `url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif')`
563
563
  pageDom.style.backgroundPosition = 'center'
@@ -634,7 +634,7 @@ export default {
634
634
  if (this.transformSalce !== null) {
635
635
  this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL) * this.transformSalce) + (this.identifyTextPostion.top * this.scale * this.transformSalce)}`
636
636
  } else {
637
- this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + (this.identifyTextPostion.top * this.scale * this.transformSalce)}`
637
+ this.$refs.pdfView.scrollTop = `${((pdfResloute.page - 1) * (this.pageSize.height + this.PAGE_INTVERVAL)) + (this.identifyTextPostion.top * this.scale)}`
638
638
  }
639
639
  },
640
640
  scrollToExcalTop (currentPage) {