Skip to content

Commit

Permalink
chore: expose fileupload inputRef
Browse files Browse the repository at this point in the history
  • Loading branch information
uhrjun committed Jul 15, 2024
1 parent c64ae75 commit 71403ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/FileUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default {
},
},
methods: {
inputRef() {
return this.$refs['input']
},
openFileSelector() {
this.$refs['input'].click()
},
Expand Down Expand Up @@ -114,5 +117,6 @@ export default {
})
},
},
expose: ['inputRef'],
}
</script>

0 comments on commit 71403ae

Please sign in to comment.