Commit 6016b0c6 authored by 田翔's avatar 田翔

fix: 图片显示缩略图异常问题

parent 36c79ec8
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.2.0", "version": "5.2.1",
"description": "5.2.0 支持xls格式", "description": "5.2.1 图片显示缩略图异常问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -248,7 +248,7 @@ const FileUpload = (props) => { ...@@ -248,7 +248,7 @@ const FileUpload = (props) => {
status: 'done', status: 'done',
url: `${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`, url: `${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`,
sourcePath: list[i], sourcePath: list[i],
thumbUrl: list[i].includes('svg') ? await convertUrlToBase64(`${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`) : list[i], thumbUrl: list[i].includes('svg') ? await convertUrlToBase64(`${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`) : `${window.origin}${downloadFileUrl}?filePath=${list[i]}${site ? `&_site=${site}` : ''}`,
originFileObj: { "uid": uid }, originFileObj: { "uid": uid },
"response": { "code": 0, "msg": "Ok", "data": list[i], "stackTrace": null }, "response": { "code": 0, "msg": "Ok", "data": list[i], "stackTrace": null },
"xhr": {}, "xhr": {},
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
background: url('@{imgSrc}/Word.png'); background: url('@{imgSrc}/Word.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
&[type='xlsx'] { &[type='xlsx'],
&[type='xls'] {
background: url('@{imgSrc}/Excel.png'); background: url('@{imgSrc}/Excel.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment