|
|
|
@ -846,7 +846,7 @@
|
|
|
|
this._uploadEvents('add', file);
|
|
|
|
this._uploadEvents('add', file);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_uploadEvents: function _uploadEvents(name, file) {
|
|
|
|
_uploadEvents: function _uploadEvents(name, file) {
|
|
|
|
this.events && this.events[name] && this.events[name](file, this);
|
|
|
|
this.events && this.events[name] && this.events[name].call(this, file, this);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
_drop: function _drop(value) {
|
|
|
|
_drop: function _drop(value) {
|
|
|
|
if (this.dropElement && this.mode === 'html5') {
|
|
|
|
if (this.dropElement && this.mode === 'html5') {
|
|
|
|
@ -1351,7 +1351,7 @@
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
|
add: function add(file, component) {
|
|
|
|
add: function add(file, component) {
|
|
|
|
console.log('add');
|
|
|
|
console.log('add');
|
|
|
|
if (this.auto) {
|
|
|
|
if (this.$parent.auto) {
|
|
|
|
component.active = true;
|
|
|
|
component.active = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file.headers['X-Filename'] = encodeURIComponent(file.name);
|
|
|
|
file.headers['X-Filename'] = encodeURIComponent(file.name);
|
|
|
|
@ -2577,8 +2577,8 @@
|
|
|
|
if(false) {
|
|
|
|
if(false) {
|
|
|
|
// When the styles change, update the <style> tags
|
|
|
|
// When the styles change, update the <style> tags
|
|
|
|
if(!content.locals) {
|
|
|
|
if(!content.locals) {
|
|
|
|
module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() {
|
|
|
|
module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() {
|
|
|
|
var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue");
|
|
|
|
var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue");
|
|
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
|
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
|
|
|
update(newContent);
|
|
|
|
update(newContent);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|