From 739f72f20f58cc9c3800949eab2f119024643bfb Mon Sep 17 00:00:00 2001 From: jimczj Date: Wed, 15 Aug 2018 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20zindex=20=E8=A7=84=E8=8C=83=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/switch/index.scss | 2 +- src/style/theme/default.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/switch/index.scss b/src/components/switch/index.scss index 975a9ea00..ccecd8f38 100644 --- a/src/components/switch/index.scss +++ b/src/components/switch/index.scss @@ -28,7 +28,7 @@ left: 0; right: 0; bottom: 0; - z-index: 200; + z-index: $zindex-form; } &--disabled { diff --git a/src/style/theme/default.scss b/src/style/theme/default.scss index f53680e17..4834c2595 100644 --- a/src/style/theme/default.scss +++ b/src/style/theme/default.scss @@ -107,6 +107,7 @@ $icon-size-md: 22px * $hd; $icon-size-lg: 36px * $hd; /* z-index */ +$zindex-form: 700; $zindex-nav: 800; $zindex-drawer: 900; $zindex-modal: 1000;