Skip to content

Commit fa63238

Browse files
webnoobwebnoob
webnoob
authored and
webnoob
committed
Expose a way to set the file used by vue-croppa
1 parent 98601f3 commit fa63238

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cropper.vue

+4
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ export default {
521521
this.emitEvent(evt.type, evt);
522522
},
523523
524+
setFile (file) {
525+
this._onNewFileIn(file)
526+
},
527+
524528
_setContainerSize () {
525529
if (this.useAutoSizing) {
526530
this.realWidth = +getComputedStyle(this.$refs.wrapper).width.slice(0, -2)

0 commit comments

Comments
 (0)