mirror of
https://github.com/SunnyQjm/taro-cropper.git
synced 2026-06-03 08:16:46 +08:00
feature: 支持百度小程序
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user