askbot-dragon 1.5.42-beta → 1.5.44-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
|
@@ -384,7 +384,7 @@ export default {
|
|
|
384
384
|
this.contentView.appendChild(pageDom);
|
|
385
385
|
let pdf_view = document.getElementsByClassName('pdf_view');
|
|
386
386
|
if (pdf_view && pdf_view[0]){
|
|
387
|
-
pdf_view[0].style.backgroundImage =
|
|
387
|
+
pdf_view[0].style.backgroundImage = 'none'
|
|
388
388
|
}
|
|
389
389
|
// 判断是否是doc/txt文件 pc端transform设置的比移动端小。pc端根据屏幕宽度字体大小已经够大。
|
|
390
390
|
if (this.fileName){
|
|
@@ -1083,11 +1083,16 @@ export default {
|
|
|
1083
1083
|
xhr.onload = ({ currentTarget }) => {
|
|
1084
1084
|
// 请求完成
|
|
1085
1085
|
if (currentTarget.status === 200) { // 返回200
|
|
1086
|
+
let pdf_view = document.getElementsByClassName('pdf_view');
|
|
1087
|
+
if (pdf_view && pdf_view[0]){
|
|
1088
|
+
pdf_view[0].style.backgroundImage = 'none'
|
|
1089
|
+
}
|
|
1086
1090
|
this.contentView.innerHTML = currentTarget.response
|
|
1087
1091
|
this.contentView.style.padding = '10px'
|
|
1088
1092
|
// this.contentView.style.position = 'relative'
|
|
1089
1093
|
this.$refs.pdfView.style.backgroundColor = '#FFFFFF'
|
|
1090
1094
|
this.$refs.pdfView.appendChild(this.contentView)
|
|
1095
|
+
|
|
1091
1096
|
let allTr = Array.from(this.$refs.pdfView.getElementsByTagName('tr'))
|
|
1092
1097
|
this.allTr = []
|
|
1093
1098
|
for (let index = 0; index < allTr.length; index++) {
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
Array.from(previewIframe).forEach(item =>{
|
|
141
141
|
item.onload = () =>{
|
|
142
142
|
console.debug('previewIframe 106',previewIframe,this.drawer)
|
|
143
|
-
item.style.backgroundImage =
|
|
143
|
+
item.style.backgroundImage = 'none'
|
|
144
144
|
}
|
|
145
145
|
})
|
|
146
146
|
})
|
|
@@ -297,10 +297,6 @@ export default {
|
|
|
297
297
|
overflow: auto;
|
|
298
298
|
height: calc(100% - 50px);
|
|
299
299
|
background: #FFF;
|
|
300
|
-
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
301
|
-
background-position: center;
|
|
302
|
-
background-size: 50px;
|
|
303
|
-
background-repeat: no-repeat;
|
|
304
300
|
}
|
|
305
301
|
}
|
|
306
302
|
@media screen and (min-width: 768px) {
|