From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/uview-plus/components/u-cropper/u-cropper.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/node_modules/uview-plus/components/u-cropper/u-cropper.vue b/node_modules/uview-plus/components/u-cropper/u-cropper.vue
index 4c519ba..d5dc3e8 100644
--- a/node_modules/uview-plus/components/u-cropper/u-cropper.vue
+++ b/node_modules/uview-plus/components/u-cropper/u-cropper.vue
@@ -76,7 +76,8 @@
expHeight: '',
// 鏄惁鍏佽璋冩暣瑁佸壀妗嗗ぇ灏�
letChangeSize: false,
-
+ // 搴曢儴瀹夊叏鍖哄ぇ灏�
+ safeAreaInsetsBottom: 0,
};
},
watch: {
@@ -151,6 +152,7 @@
this.platform = sysInfo.platform;
this.pixelRatio = sysInfo.pixelRatio;
this.windowWidth = sysInfo.windowWidth;
+ this.safeAreaInsetsBottom = sysInfo.safeAreaInsets.bottom;
// #ifdef H5
this.drawTop = sysInfo.windowTop;
this.windowHeight = sysInfo.windowHeight + sysInfo.windowBottom;
@@ -162,12 +164,12 @@
this.cvsStyleHeight = this.windowHeight - tabHeight + 'px';
} else {
this.windowHeight = sysInfo.windowHeight + this.moreHeight;
- this.cvsStyleHeight = this.windowHeight - tabHeight + 6 + 'px';
+ this.cvsStyleHeight = this.windowHeight - tabHeight - this.safeAreaInsetsBottom + 6 + 'px';
}
// #endif
// #ifdef MP
this.windowHeight = sysInfo.windowHeight + this.moreHeight;
- this.cvsStyleHeight = this.windowHeight - tabHeight - 2 + 'px';
+ this.cvsStyleHeight = this.windowHeight - tabHeight - this.safeAreaInsetsBottom - 2 + 'px';
// #endif
this.pxRatio = this.windowWidth/750;
@@ -1226,3 +1228,4 @@
}
}
</style>
+
--
Gitblit v1.9.3