master
lianyue 7 years ago
parent 229c5830f4
commit f82e00393d

@ -1,6 +1,6 @@
/*! /*!
* Name: vue-upload-component * Name: vue-upload-component
* Version: 2.8.13 * Version: 2.8.14
* Author: LianYue * Author: LianYue
*/ */
(function (global, factory) { (function (global, factory) {
@ -574,13 +574,17 @@
var script = { var script = {
methods: { methods: {
change: function change(e) { change: function change(e) {
this.$destroy();
this.$parent.addInputFile(e.target); this.$parent.addInputFile(e.target);
// eslint-disable-next-line e.target.value = '';
new this.constructor({ if (!e.target.files) {
parent: this.$parent, // ie9 fix #219
el: this.$el this.$destroy();
}); // eslint-disable-next-line
new this.constructor({
parent: this.$parent,
el: this.$el
});
}
} }
} }
}; };
@ -1950,7 +1954,7 @@
/* style */ /* style */
var __vue_inject_styles__$1 = function (inject) { var __vue_inject_styles__$1 = function (inject) {
if (!inject) return; if (!inject) return;
inject("data-v-9553968e_0", { source: "\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input[type=file],.file-uploads.file-uploads-html5 label{opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input[type=file]{overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}", map: undefined, media: undefined }); inject("data-v-37fa7525_0", { source: "\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input[type=file],.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input[type=file]{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}", map: undefined, media: undefined });
}; };
/* scoped */ /* scoped */
var __vue_scope_id__$1 = undefined; var __vue_scope_id__$1 = undefined;

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 @@
.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block .file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block
} }
.file-uploads.file-uploads-html4 input[type=file],.file-uploads.file-uploads-html5 label{opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100% .file-uploads.file-uploads-html4 input[type=file],.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%
} }
.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input[type=file]{overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0 .file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input[type=file]{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0
} }

@ -1,6 +1,6 @@
/*! /*!
* Name: vue-upload-component * Name: vue-upload-component
* Version: 2.8.13 * Version: 2.8.14
* Author: LianYue * Author: LianYue
*/ */
(function (global, factory) { (function (global, factory) {
@ -574,13 +574,17 @@
var script = { var script = {
methods: { methods: {
change: function change(e) { change: function change(e) {
this.$destroy();
this.$parent.addInputFile(e.target); this.$parent.addInputFile(e.target);
// eslint-disable-next-line e.target.value = '';
new this.constructor({ if (!e.target.files) {
parent: this.$parent, // ie9 fix #219
el: this.$el this.$destroy();
}); // eslint-disable-next-line
new this.constructor({
parent: this.$parent,
el: this.$el
});
}
} }
} }
}; };

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.13", "version": "2.8.14",
"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