Update upload.js

This commit is contained in:
邹景立 2021-02-01 17:10:21 +08:00
parent 4a97cd8e2a
commit 1365255d00

View File

@ -61,7 +61,7 @@ define(['md5'], function (SparkMD5, allowMime) {
});
}, progress: function (number) {
$('[data-upload-progress]').html(number + '%');
option.element.triggerHandler('upload.progress', {event: arguments[2], file: arguments[3]});
option.element.triggerHandler('upload.progress', {number: number, event: arguments[2], file: arguments[3]});
}, done: function (ret, index) {
option.element.triggerHandler('upload.done', {file: option.cache[index], data: ret});
if (++option.count.uploaded >= option.count.total) {