1
0
mirror of https://github.com/SunnyQjm/taro-cropper.git synced 2026-06-03 08:16:46 +08:00

feature: 支持百度小程序

This commit is contained in:
SunnyQjm
2019-11-27 17:18:07 +08:00
parent fa672e218e
commit 5032ba0db5
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -249,6 +249,7 @@ class TaroCropperComponent extends Taro.PureComponent<TaroCropperComponentProps,
const src = process.env.TARO_ENV === 'h5' ? this.image : this.imageInfo.path;
// @ts-ignore
this.cropperCanvasContext.drawImage(src, 0, 0, this.imageInfo.width, this.imageInfo.height,
this.imageLeft, this.imageTop, this.scaleImageWidth, this.scaleImageHeight);
-1
View File
@@ -66,7 +66,6 @@ export default class Index extends Component<IndexProps, IndexState> {
count: 1
})
.then(res => {
console.log(res);
// console.log(res);
this.setState({
src: res.tempFilePaths[0]