兼容鸿蒙

This commit is contained in:
icssoa
2025-08-03 13:47:16 +08:00
parent c53d7580fc
commit da82729cee

View File

@@ -1036,12 +1036,7 @@ function onImageLoaded(e: UniImageLoadEvent) {
imageInfo.height = e.detail.height; // 保存图片原始高度
imageInfo.isLoaded = true; // 标记图片已加载
nextTick(() => {
// 执行初始化流程
reset(); // 重置裁剪框
setInitialImageSize(); // 设置图片初始显示尺寸
adjustBounds(); // 调整图片边界确保覆盖裁剪框
});
reset(); // 重置裁剪框
// 触发加载完成事件
emit("load", e); // 向父组件发送加载事件