From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/mob/mobshell/index.jsx | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/mob/mobshell/index.jsx b/src/mob/mobshell/index.jsx index 5cdb407..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'} } } @@ -122,6 +130,7 @@ card: '鍗$墖', navbar: '瀵艰埅鏍�', menubar: '鑿滃崟鏍�', + balcony: '娴姩鍗�', login: '鐧诲綍' } let i = 1 @@ -176,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