Skip to content

Commit

Permalink
fix(mpvue-cropper): #59
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhandsome committed May 29, 2018
1 parent 8a24abe commit be079d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mpvue-cropper/mpvue-cropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
computed: {
_canvasId () {
return this.option.canvasId
return this.option.id
},
_width () {
return this.option.width
Expand Down Expand Up @@ -66,7 +66,7 @@
},
mounted () {
_wecropper = new WeCropper(Object.assign(this.option, {
id: CANVAS_ID
id: this._canvasId
}))
.on('ready', (...args) => {
this.$emit('ready', ...args)
Expand Down

0 comments on commit be079d2

Please sign in to comment.