master
lianyue 7 years ago
parent 6bbd4deb73
commit 48a3a876b8

@ -856,6 +856,12 @@
// files 定位缓存 // files 定位缓存
this.maps = {}; this.maps = {};
if (this.files) {
for (var i = 0; i < this.files.length; i++) {
var file = this.files[i];
this.maps[file.id] = file;
}
}
this.$nextTick(function () { this.$nextTick(function () {
@ -1122,12 +1128,12 @@
size: file.size, size: file.size,
name: file.webkitRelativePath || file.relativePath || file.name, name: file.webkitRelativePath || file.relativePath || file.name,
type: file.type, type: file.type,
file: file, file: file
el: el
}); });
} }
} else { } else {
var names = el.value.replace(/\\/g, '/').split('/'); var names = el.value.replace(/\\/g, '/').split('/');
delete el.__vuex__;
files.push({ files.push({
name: names[names.length - 1], name: names[names.length - 1],
el: el el: el
@ -1954,7 +1960,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-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 }); inject("data-v-1bd46226_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

@ -856,6 +856,12 @@
// files 定位缓存 // files 定位缓存
this.maps = {}; this.maps = {};
if (this.files) {
for (var i = 0; i < this.files.length; i++) {
var file = this.files[i];
this.maps[file.id] = file;
}
}
this.$nextTick(function () { this.$nextTick(function () {
@ -1122,12 +1128,12 @@
size: file.size, size: file.size,
name: file.webkitRelativePath || file.relativePath || file.name, name: file.webkitRelativePath || file.relativePath || file.name,
type: file.type, type: file.type,
file: file, file: file
el: el
}); });
} }
} else { } else {
var names = el.value.replace(/\\/g, '/').split('/'); var names = el.value.replace(/\\/g, '/').split('/');
delete el.__vuex__;
files.push({ files.push({
name: names[names.length - 1], name: names[names.length - 1],
el: el el: 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.14", "version": "2.8.15",
"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