From 372b4d93bbd7ab1dbf82678f31773fd624b56816 Mon Sep 17 00:00:00 2001 From: "bansheng.lc" Date: Fri, 10 Jan 2020 12:02:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DModal=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/modal/index.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/modal/index.less b/components/modal/index.less index 3ef6345..daeac3b 100644 --- a/components/modal/index.less +++ b/components/modal/index.less @@ -8,7 +8,7 @@ bottom: 0; } .am-modal-hide { - display: none; + display: none !important; } .am-modal-mask, .am-modal-document { @@ -30,7 +30,10 @@ background-color: #fff; border-radius: 2px; width: 270px; - position: relative; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .am-modal-image { display: flex;