From 4b47eb03453be0190deaabd4ca57e3ded6417459 Mon Sep 17 00:00:00 2001 From: wsh941102 Date: Wed, 17 Jun 2020 23:47:58 -0400 Subject: [PATCH] fixed popup issue --- src/components/Popup/index.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Popup/index.scss b/src/components/Popup/index.scss index 8737eeb4e..2fafe5201 100644 --- a/src/components/Popup/index.scss +++ b/src/components/Popup/index.scss @@ -7,7 +7,9 @@ $baseContentClass: 'vant-popup__content'; .#{$baseContainerClass} { visibility: hidden; - position: absolute; + position: fixed; + top: 0; + left: 0; height: 100vh; width: 100vw; z-index: 10; @@ -43,6 +45,10 @@ $baseContentClass: 'vant-popup__content'; .closeIcon { position: absolute; z-index: 2; + + i { + cursor: pointer; + } } }