From 5ed69b4bb3416ec61abf424375af8650864dbdfa Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 08 八月 2021 17:27:10 +0800
Subject: [PATCH] 2021-08-08

---
 src/mob/mobshell/index.jsx |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/mob/mobshell/index.jsx b/src/mob/mobshell/index.jsx
index 6d14bee..a69679c 100644
--- a/src/mob/mobshell/index.jsx
+++ b/src/mob/mobshell/index.jsx
@@ -76,6 +76,8 @@
         return
       }
 
+      let style = null
+
       if (item.component === 'search') { // 鎼滅储缁勪欢涓嶅彲閲嶅娣诲姞
         if (cards.filter(card => card.type === 'search').length > 0) {
           notification.warning({
@@ -94,6 +96,9 @@
           })
           return
         }
+        if (!menu.style.paddingBottom) {
+          style = {...menu.style, paddingBottom: '50px'}
+        }
       } else if (item.component === 'topbar') {
         if (cards.filter(card => card.type === 'topbar').length > 0) {
           notification.warning({
@@ -102,6 +107,9 @@
             duration: 5
           })
           return
+        }
+        if (!menu.style.paddingTop) {
+          style = {...menu.style, paddingTop: '50px'}
         }
       }
 
@@ -177,7 +185,11 @@
         _cards.push(Navbar)
       }
 
-      handleList({...menu, components: _cards})
+      if (style) {
+        handleList({...menu, style, components: _cards})
+      } else {
+        handleList({...menu, components: _cards})
+      }
       setCards(_cards)
     }
   })

--
Gitblit v1.8.0