From cbcba1681d661f26c8250faf7b2107d1a0542af0 Mon Sep 17 00:00:00 2001 From: Yoshino Date: Fri, 12 Jun 2026 16:11:33 +0800 Subject: [PATCH] =?UTF-8?q?style(u-popup):=20=E4=BC=98=E5=8C=96=E6=8A=BD?= =?UTF-8?q?=E5=B1=89=E5=86=85=E5=AE=B9=E5=8F=AF=E8=A7=81=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E7=9A=84transform=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用none替代translate3D(0,0,0),避免非none的transform为后代fixed定位元素创建包含块 --- src/uni_modules/uview-pro/components/u-popup/u-popup.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uni_modules/uview-pro/components/u-popup/u-popup.vue b/src/uni_modules/uview-pro/components/u-popup/u-popup.vue index 3e63651e..cd9336f3 100644 --- a/src/uni_modules/uview-pro/components/u-popup/u-popup.vue +++ b/src/uni_modules/uview-pro/components/u-popup/u-popup.vue @@ -394,8 +394,9 @@ function change(param1: 'showDrawer' | 'visibleSync', param2: 'visibleSync' | 's transform: scale(1.15); } +/* 使用 none 而非 translate3D(0,0,0),避免非 none 的 transform 为后代 position:fixed 元素创建包含块 */ .u-drawer-content-visible { - transform: translate3D(0px, 0px, 0px) !important; + transform: none !important; } .u-close {