askbot-dragon 1.5.41-beta → 1.5.43-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 = 'none'
|
|
388
|
+
}
|
|
385
389
|
// 判断是否是doc/txt文件 pc端transform设置的比移动端小。pc端根据屏幕宽度字体大小已经够大。
|
|
386
390
|
if (this.fileName){
|
|
387
391
|
if (findPage){
|
|
@@ -1079,11 +1083,16 @@ export default {
|
|
|
1079
1083
|
xhr.onload = ({ currentTarget }) => {
|
|
1080
1084
|
// 请求完成
|
|
1081
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
|
+
}
|
|
1082
1090
|
this.contentView.innerHTML = currentTarget.response
|
|
1083
1091
|
this.contentView.style.padding = '10px'
|
|
1084
1092
|
// this.contentView.style.position = 'relative'
|
|
1085
1093
|
this.$refs.pdfView.style.backgroundColor = '#FFFFFF'
|
|
1086
1094
|
this.$refs.pdfView.appendChild(this.contentView)
|
|
1095
|
+
|
|
1087
1096
|
let allTr = Array.from(this.$refs.pdfView.getElementsByTagName('tr'))
|
|
1088
1097
|
this.allTr = []
|
|
1089
1098
|
for (let index = 0; index < allTr.length; index++) {
|
|
@@ -1130,7 +1139,10 @@ export default {
|
|
|
1130
1139
|
background-color: #f5f7fb;
|
|
1131
1140
|
// margin-bottom: 60px;
|
|
1132
1141
|
box-sizing: border-box;
|
|
1133
|
-
|
|
1142
|
+
background-image: url('https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-common/images/loading.gif');
|
|
1143
|
+
background-position: center;
|
|
1144
|
+
background-size: 50px;
|
|
1145
|
+
background-repeat: no-repeat;
|
|
1134
1146
|
// position: relative;
|
|
1135
1147
|
// > div {
|
|
1136
1148
|
// width: 100%;
|
|
@@ -135,6 +135,15 @@ export default {
|
|
|
135
135
|
},1000)
|
|
136
136
|
})
|
|
137
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 = 'none'
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
})
|
|
138
147
|
}
|
|
139
148
|
},
|
|
140
149
|
computed:{
|