master
lianyue 7 years ago
parent 7e8f23204f
commit 6e44782f93

@ -1,6 +1,6 @@
/*! /*!
* Name: vue-upload-component * Name: vue-upload-component
* Version: 2.8.17 * Version: 2.8.18
* Author: LianYue * Author: LianYue
*/ */
(function (global, factory) { (function (global, factory) {
@ -577,6 +577,10 @@
change: function change(e) { change: function change(e) {
this.$parent.addInputFile(e.target); this.$parent.addInputFile(e.target);
if (e.target.files) { if (e.target.files) {
e.target.type = '';
e.target.value = '';
e.target.type = 'file';
} else {
// ie9 fix #219 // ie9 fix #219
this.$destroy(); this.$destroy();
// eslint-disable-next-line // eslint-disable-next-line
@ -584,10 +588,6 @@
parent: this.$parent, parent: this.$parent,
el: this.$el el: this.$el
}); });
} else {
e.target.type = '';
e.target.value = '';
e.target.type = 'file';
} }
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
/*! /*!
* Name: vue-upload-component * Name: vue-upload-component
* Version: 2.8.17 * Version: 2.8.18
* Author: LianYue * Author: LianYue
*/ */
(function (global, factory) { (function (global, factory) {
@ -577,6 +577,10 @@
change: function change(e) { change: function change(e) {
this.$parent.addInputFile(e.target); this.$parent.addInputFile(e.target);
if (e.target.files) { if (e.target.files) {
e.target.type = '';
e.target.value = '';
e.target.type = 'file';
} else {
// ie9 fix #219 // ie9 fix #219
this.$destroy(); this.$destroy();
// eslint-disable-next-line // eslint-disable-next-line
@ -584,10 +588,6 @@
parent: this.$parent, parent: this.$parent,
el: this.$el el: this.$el
}); });
} else {
e.target.type = '';
e.target.value = '';
e.target.type = 'file';
} }
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
{ {
"name": "vue-upload-component", "name": "vue-upload-component",
"description": "Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter", "description": "Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter",
"version": "2.8.17", "version": "2.8.18",
"author": "LianYue", "author": "LianYue",
"scripts": { "scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server", "dev": "cross-env NODE_ENV=development webpack-dev-server",

Loading…
Cancel
Save