mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
enhanced mdFile
This commit is contained in:
parent
5e7454df6a
commit
4cfd46b6b9
1 changed files with 5 additions and 0 deletions
|
|
@ -62,10 +62,15 @@
|
|||
},
|
||||
openPicker() {
|
||||
if (!this.disabled) {
|
||||
this.resetFile();
|
||||
this.$refs.fileInput.click();
|
||||
this.$refs.textInput.$el.focus();
|
||||
}
|
||||
},
|
||||
resetFile() {
|
||||
this.parentContainer.value = '';
|
||||
this.$refs.fileInput.value = '';
|
||||
},
|
||||
onFileSelected($event) {
|
||||
const files = $event.target.files || $event.dataTransfer.files;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue