Fix the demo filter, Add post name

master
git 8 years ago
parent 3d92f7730a
commit c70dc2f347

3
dist/example.js vendored

@ -8179,6 +8179,8 @@
if (URL && URL.createObjectURL) { if (URL && URL.createObjectURL) {
this.$refs.upload.update(newFile, { blob: URL.createObjectURL(newFile.file) }); this.$refs.upload.update(newFile, { blob: URL.createObjectURL(newFile.file) });
} }
newFile.data.name = newFile.name;
} }
if (newFile && oldFile) { if (newFile && oldFile) {
@ -10529,6 +10531,7 @@
"headers": _vm.headers, "headers": _vm.headers,
"data": _vm.data, "data": _vm.data,
"drop": _vm.drop, "drop": _vm.drop,
"filter": _vm.filter,
"dropDirectory": _vm.dropDirectory "dropDirectory": _vm.dropDirectory
}, },
on: { on: {

File diff suppressed because one or more lines are too long

@ -95,6 +95,7 @@ table th,table td {
:headers="headers" :headers="headers"
:data="data" :data="data"
:drop="drop" :drop="drop"
:filter="filter"
:dropDirectory="dropDirectory" :dropDirectory="dropDirectory"
v-model="files" v-model="files"
@input-file="inputFile" @input-file="inputFile"
@ -256,6 +257,8 @@ export default {
if (URL && URL.createObjectURL) { if (URL && URL.createObjectURL) {
this.$refs.upload.update(newFile, {blob: URL.createObjectURL(newFile.file)}) this.$refs.upload.update(newFile, {blob: URL.createObjectURL(newFile.file)})
} }
// post filename
newFile.data.name = newFile.name
} }
if (newFile && oldFile) { if (newFile && oldFile) {

Loading…
Cancel
Save