mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix upload progressTimer
This commit is contained in:
parent
8fe13f9113
commit
23415a062f
@ -137,6 +137,7 @@ export default class Upload extends React.Component<UploadProps, any> {
|
||||
autoUpdateProgress(_, file) {
|
||||
const getPercent = genPercentAdd();
|
||||
let curPercent = 0;
|
||||
this.clearProgressTimer();
|
||||
this.progressTimer = setInterval(() => {
|
||||
curPercent = getPercent(curPercent);
|
||||
this.onProgress({
|
||||
|
Loading…
Reference in New Issue
Block a user