we-plugin / we-cropper

微信小程序图片裁剪工具
https://we-plugin.github.io/we-cropper/#/
MIT License
2.17k stars 451 forks source link

建议给 new WeCropper(cropperOpt, this) 加入第二个参数 #149

Closed mannymu closed 4 years ago

mannymu commented 4 years ago

传入当前组件的this ,这样更加方便在组件中使用 只需在源码中加入: image

然后再创建画布的时候: image

close-issue-app[bot] commented 4 years ago

Issue tracker 只用于反馈 bug 和 feature request。在提问前请仔细阅读我们的文档,并推荐阅读《提问的智慧》:https://github.com/ruby-china/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md