摘要:
使用上一篇文件的cropper插件引入后 wxml <import src="../we/we-cropper.wxml"/> <view class="cropper-wrapper"> <template is="we-cropper" data="{{...cropperOpt}}"/> </ 阅读全文
摘要:
js import WeCropper from './we/we-cropper.js'; const device = wx.getSystemInfoSync() // 获取设备信息 const width = device.windowWidth // 示例为一个与屏幕等宽的正方形裁剪框 c 阅读全文