소스 검색

兼容鸿蒙

icssoa 8 달 전
부모
커밋
da82729cee
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      uni_modules/cool-ui/components/cl-cropper/cl-cropper.uvue

+ 1 - 6
uni_modules/cool-ui/components/cl-cropper/cl-cropper.uvue

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