From 79aaeb9e3a02dab9133f39f872602414b0ab57a0 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 24 Nov 2019 16:30:14 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B7=A6=E5=8F=B3=E8=BE=B9=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Upload/FileList.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/component/Upload/FileList.js b/src/component/Upload/FileList.js index e41db68..2db6831 100644 --- a/src/component/Upload/FileList.js +++ b/src/component/Upload/FileList.js @@ -53,6 +53,10 @@ const styles = theme => ({ marginBottom:10, color:"#ff5722", }, + listAction:{ + marginLeft:20, + marginRight:20, + }, }); class FileList extends Component { @@ -189,15 +193,15 @@ class FileList extends Component { } if(item.status ===5){ - progressItem = (已完成
} />); + progressItem = (已完成
} />); }else if (item.status ===2){ - progressItem = ({window.plupload.formatSize(item.speed).toUpperCase()}/s 已上传 {window.plupload.formatSize(item.loaded).toUpperCase()} , 共 {window.plupload.formatSize(item.size).toUpperCase()} - {item.percent}%
}/>); + progressItem = ({window.plupload.formatSize(item.speed).toUpperCase()}/s 已上传 {window.plupload.formatSize(item.loaded).toUpperCase()} , 共 {window.plupload.formatSize(item.size).toUpperCase()} - {item.percent}%
}/>); }else if (item.status ===1){ - progressItem = (排队中
} />); + progressItem = (排队中
} />); }else if (item.status ===4){ - progressItem = ({item.errMsg}
} />); + progressItem = ({item.errMsg}
} />); }else{ - progressItem = (); + progressItem = (); } return (
@@ -206,7 +210,6 @@ class FileList extends Component { {queueIcon} {progressItem} - this.cancelUpload(item)}>