引入方式
json文件:
{
"usingComponents":{
"dd-cropper":"/components/dd-cropper/dd-cropper"
}
}
axml:
<view>
<dd-cropper image_url="{{filePath}}" onCallBack="upload_pt"></dd-cropper>
</view>
js:
Page({
data: {
filePath: ""
},
onLoad(op) {
},
upload_pt(res) {
//图片处理后回调函数
},
});
来源:CSDN
作者:R丶丶
链接:https://blog.csdn.net/qq_38571305/article/details/104002131