Browse Source

无JIRA任务 fix: 上传的事件名

es6
Zhenfei.Li 1 year ago
parent
commit
7cfc5ad529
  1. 8
      src/base/single/editor/editor.multifile.js

8
src/base/single/editor/editor.multifile.js

@ -52,16 +52,16 @@ export class MultifileEditor extends Widget {
this.fireEvent(MultifileEditor.EVENT_CHANGE, ...args);
});
this.file.on(File.EVENT_UPLOADSTART, (...args) => {
this.fireEvent(MultifileEditor.EVENT_CHANGE, ...args);
this.fireEvent(MultifileEditor.EVENT_UPLOADSTART, ...args);
});
this.file.on(File.EVENT_ERROR, (...args) => {
this.fireEvent(MultifileEditor.EVENT_CHANGE, ...args);
this.fireEvent(MultifileEditor.EVENT_ERROR, ...args);
});
this.file.on(File.EVENT_PROGRESS, (...args) => {
this.fireEvent(MultifileEditor.EVENT_CHANGE, ...args);
this.fireEvent(MultifileEditor.EVENT_PROGRESS, ...args);
});
this.file.on(File.EVENT_UPLOADED, (...args) => {
this.fireEvent(MultifileEditor.EVENT_CHANGE, ...args);
this.fireEvent(MultifileEditor.EVENT_UPLOADED, ...args);
});
createWidget({

Loading…
Cancel
Save