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