Skip to content

Commit

Permalink
Merge pull request #177 from webnoob/master
Browse files Browse the repository at this point in the history
Expose a way to set the file used by vue-croppa
  • Loading branch information
zhanziyang authored Mar 30, 2019
2 parents 98601f3 + fa63238 commit 46632d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ export default {
this.emitEvent(evt.type, evt);
},
setFile (file) {
this._onNewFileIn(file)
},
_setContainerSize () {
if (this.useAutoSizing) {
this.realWidth = +getComputedStyle(this.$refs.wrapper).width.slice(0, -2)
Expand Down

0 comments on commit 46632d9

Please sign in to comment.