askbot-dragon 1.5.40-beta → 1.5.42-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
|
@@ -382,6 +382,10 @@ export default {
|
|
|
382
382
|
page.dom = await pageDom;
|
|
383
383
|
page.loading = false
|
|
384
384
|
this.contentView.appendChild(pageDom);
|
|
385
|
+
let pdf_view = document.getElementsByClassName('pdf_view');
|
|
386
|
+
if (pdf_view && pdf_view[0]){
|
|
387
|
+
pdf_view[0].style.backgroundImage = `url('')`
|
|
388
|
+
}
|
|
385
389
|
// 判断是否是doc/txt文件 pc端transform设置的比移动端小。pc端根据屏幕宽度字体大小已经够大。
|
|
386
390
|
if (this.fileName){
|
|
387
391
|
if (findPage){
|
|
@@ -1130,7 +1134,10 @@ export default {
|
|
|
1130
1134
|
background-color: #f5f7fb;
|
|
1131
1135
|
// margin-bottom: 60px;
|
|
1132
1136
|
box-sizing: border-box;
|
|
1133
|
-
|
|
1137
|
+
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
1138
|
+
background-position: center;
|
|
1139
|
+
background-size: 50px;
|
|
1140
|
+
background-repeat: no-repeat;
|
|
1134
1141
|
// position: relative;
|
|
1135
1142
|
// > div {
|
|
1136
1143
|
// width: 100%;
|
|
@@ -128,11 +128,22 @@ export default {
|
|
|
128
128
|
if(value) {
|
|
129
129
|
this.$nextTick(() =>{
|
|
130
130
|
setTimeout(() => {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
if (this.tagIds && this.tagIds.length != 0){
|
|
132
|
+
let transScale = this.$refs.pdfPosition.transformSalce
|
|
133
|
+
zoomElement(document.getElementById('contentView'),transScale)
|
|
134
|
+
}
|
|
133
135
|
},1000)
|
|
134
136
|
})
|
|
135
137
|
}
|
|
138
|
+
setTimeout(() => {
|
|
139
|
+
let previewIframe = document.getElementsByClassName('preview_iframe')
|
|
140
|
+
Array.from(previewIframe).forEach(item =>{
|
|
141
|
+
item.onload = () =>{
|
|
142
|
+
console.debug('previewIframe 106',previewIframe,this.drawer)
|
|
143
|
+
item.style.backgroundImage = `url('')`
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
})
|
|
136
147
|
}
|
|
137
148
|
},
|
|
138
149
|
computed:{
|