|
|
|
@ -650,6 +650,10 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
},
|
|
|
|
},
|
|
|
|
size: {
|
|
|
|
size: {
|
|
|
|
type: Number
|
|
|
|
type: Number
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
events: {
|
|
|
|
|
|
|
|
type: Object,
|
|
|
|
|
|
|
|
default: function _default() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
@ -730,8 +734,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
iframe.onabort({ type: 'abort' });
|
|
|
|
iframe.onabort({ type: 'abort' });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete this._files[id];
|
|
|
|
delete this._files[id];
|
|
|
|
this.$dispatch && this.$dispatch('removeFileUpload', file, this);
|
|
|
|
this._events('removeFileUpload', file);
|
|
|
|
this.removeFileUpload && this.removeFileUpload(file);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this._index = 0;
|
|
|
|
this._index = 0;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -753,6 +756,11 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
this.files.splice(0, this.files.length);
|
|
|
|
this.files.splice(0, this.files.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
_events: function _events(name, file) {
|
|
|
|
|
|
|
|
this.$dispatch && this.$dispatch(name, file, this);
|
|
|
|
|
|
|
|
this[name] && this[name](file);
|
|
|
|
|
|
|
|
this.events && this.events[name] && this.events[name](file, this);
|
|
|
|
|
|
|
|
},
|
|
|
|
_drop: function _drop(value) {
|
|
|
|
_drop: function _drop(value) {
|
|
|
|
if (this.dropElement && this.$mode === 'html5') {
|
|
|
|
if (this.dropElement && this.$mode === 'html5') {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
@ -829,8 +837,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
this._files[file.id] = hiddenData;
|
|
|
|
this._files[file.id] = hiddenData;
|
|
|
|
file = this.files[this.files.push(file) - 1];
|
|
|
|
file = this.files[this.files.push(file) - 1];
|
|
|
|
this._files[file.id]._file = file;
|
|
|
|
this._files[file.id]._file = file;
|
|
|
|
this.$dispatch && this.$dispatch('addFileUpload', file, this);
|
|
|
|
this._events('addFileUpload', file);
|
|
|
|
this.addFileUpload && this.addFileUpload(file);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_onDrop: function _onDrop(e) {
|
|
|
|
_onDrop: function _onDrop(e) {
|
|
|
|
this._dropActive = 0;
|
|
|
|
this._dropActive = 0;
|
|
|
|
@ -946,8 +953,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
speedTime = speedTime2;
|
|
|
|
speedTime = speedTime2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_self.$dispatch && _self.$dispatch('fileUploadProgress', file, _self);
|
|
|
|
_self._events('fileUploadProgress', file);
|
|
|
|
_self.fileUploadProgress && _self.fileUploadProgress(file);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var callback = function callback(e) {
|
|
|
|
var callback = function callback(e) {
|
|
|
|
@ -996,8 +1002,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
if (!fileUploads) {
|
|
|
|
if (!fileUploads) {
|
|
|
|
fileUploads = true;
|
|
|
|
fileUploads = true;
|
|
|
|
if (!file.removed) {
|
|
|
|
if (!file.removed) {
|
|
|
|
_self.$dispatch && _self.$dispatch('afterFileUpload', file, _self);
|
|
|
|
_self._events('afterFileUpload', file);
|
|
|
|
_self.afterFileUpload && _self.afterFileUpload(file);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setTimeout(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
_self._fileUploads();
|
|
|
|
_self._fileUploads();
|
|
|
|
@ -1042,8 +1047,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 100);
|
|
|
|
}, 100);
|
|
|
|
this.$dispatch && this.$dispatch('beforeFileUpload', file, this);
|
|
|
|
this._events('beforeFileUpload', file);
|
|
|
|
this.beforeFileUpload && this.beforeFileUpload(file);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_fileUploadPut: function _fileUploadPut(file) {
|
|
|
|
_fileUploadPut: function _fileUploadPut(file) {
|
|
|
|
var _self = this;
|
|
|
|
var _self = this;
|
|
|
|
@ -1190,8 +1194,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
fileUploads = true;
|
|
|
|
fileUploads = true;
|
|
|
|
iframe.parentNode && iframe.parentNode.removeChild(iframe);
|
|
|
|
iframe.parentNode && iframe.parentNode.removeChild(iframe);
|
|
|
|
if (!file.removed) {
|
|
|
|
if (!file.removed) {
|
|
|
|
_self.$dispatch && _self.$dispatch('afterFileUpload', file, _self);
|
|
|
|
_self._events('afterFileUpload', file);
|
|
|
|
_self.afterFileUpload && _self.afterFileUpload(file);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
setTimeout(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
_self._fileUploads();
|
|
|
|
_self._fileUploads();
|
|
|
|
@ -1218,8 +1221,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 50);
|
|
|
|
}, 50);
|
|
|
|
_self.$dispatch && _self.$dispatch('beforeFileUpload', file, this);
|
|
|
|
_self._events('beforeFileUpload', file);
|
|
|
|
_self.beforeFileUpload && _self.beforeFileUpload(file);
|
|
|
|
|
|
|
|
}, 10);
|
|
|
|
}, 10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|