askbot-dragon 1.5.53-beta → 1.5.54-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
|
@@ -251,7 +251,7 @@ export default {
|
|
|
251
251
|
newFileInOssPath = url.substring(0, url.indexOf("?"))
|
|
252
252
|
}
|
|
253
253
|
let fileName = newFileInOssPath.substring(newFileInOssPath.lastIndexOf('.'))
|
|
254
|
-
if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'){
|
|
254
|
+
if (fileName === '.doc' || fileName === '.docx' || fileName === '.txt'|| fileName === '.html'){
|
|
255
255
|
this.$refs.previewPdf.fileName = fileName;
|
|
256
256
|
} else {
|
|
257
257
|
this.$refs.previewPdf.fileName = '';
|
|
@@ -398,7 +398,8 @@ export default {
|
|
|
398
398
|
if(this.transformSalce !== null && this.fileName) {
|
|
399
399
|
this.contentView.style.transform = `scale(${this.transformSalce}, ${this.transformSalce})`
|
|
400
400
|
if (postionArr.length){
|
|
401
|
-
|
|
401
|
+
// document.getElementById('pdf_container_view').scrollLeft = (document.getElementById('pdf_container_view').scrollWidth - document.getElementById('pdf_container_view').clientWidth) / 2
|
|
402
|
+
// this.contentView.style.left = (postionArr[0] * this.scale * CSS_UNITS * (this.transformSalce) * -1) + 10 + 'px';
|
|
402
403
|
}
|
|
403
404
|
} else {
|
|
404
405
|
this.contentView.style.transform = `scale(${this.defaultTransform})`;
|