From 1a8866b86e43ed2fcd9c2f7609b3a858788afb71 Mon Sep 17 00:00:00 2001 From: Cat Tom Date: Wed, 26 Mar 2025 12:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20WechatModal=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=8A=A8=E7=94=BB=E6=95=88=E6=9E=9C=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BC=A9=E6=94=BE=E6=AF=94=E4=BE=8B=E5=92=8C?= =?UTF-8?q?=E8=BF=87=E6=B8=A1=E6=9B=B2=E7=BA=BF=E4=BB=A5=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/WechatModal.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/WechatModal.vue b/src/components/WechatModal.vue index 473bfff..fbf4eed 100644 --- a/src/components/WechatModal.vue +++ b/src/components/WechatModal.vue @@ -225,8 +225,8 @@ onUnmounted(() => { border-radius: 12px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); overflow: hidden; - transform: scale(0.95); - transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); + transform: scale(0.98); + transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: v-bind('zIndex + 1'); } @@ -384,22 +384,22 @@ onUnmounted(() => { @keyframes scaleUp { from { - transform: scale(0.95) translateY(10px); + transform: scale(0.98); opacity: 0; } to { - transform: scale(1) translateY(0); + transform: scale(1); opacity: 1; } } @keyframes scaleDown { from { - transform: scale(1) translateY(0); + transform: scale(1); opacity: 1; } to { - transform: scale(0.95) translateY(10px); + transform: scale(0.98); opacity: 0; } } @@ -414,11 +414,11 @@ onUnmounted(() => { } .wechat-modal-enter-active .wechat-modal-container { - animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); + animation: scaleUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .wechat-modal-leave-active .wechat-modal-container { - animation: scaleDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); + animation: scaleDown 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* 响应式布局 */