From b63b085814103cabe989d9600bc925559cc6d56d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 13 四月 2022 01:29:21 +0800 Subject: [PATCH] 2022-04-13 --- src/mob/components/menubar/normal-menubar/index.jsx | 14 +------------- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/src/mob/components/menubar/normal-menubar/index.jsx b/src/mob/components/menubar/normal-menubar/index.jsx index 0ff743d..4416b94 100644 --- a/src/mob/components/menubar/normal-menubar/index.jsx +++ b/src/mob/components/menubar/normal-menubar/index.jsx @@ -274,18 +274,6 @@ render() { const { card } = this.state - let offset = 0 - if (card.wrap.cardFloat && card.wrap.cardFloat !== 'left') { - let _width = 0 - card.subMenus.forEach(card => { - _width += card.setting.width - }) - offset = _width < 24 ? 24 - _width : 0 - if (card.wrap.cardFloat === 'center') { - offset = Math.floor(offset / 2) - } - } - let _style = resetStyle(card.style) return ( @@ -309,7 +297,7 @@ <ToolOutlined /> </Popover> <div className={(card.wrap.layout || 'grid') + '-layout'}> - {card.subMenus.map((menu, index) => (<MenuComponent key={menu.uuid} offset={!index ? offset : 0} cards={card} card={menu} move={this.move} updateElement={this.updateCard} deleteElement={this.deleteCard}/>))} + {card.subMenus.map((menu, index) => (<MenuComponent key={menu.uuid} cards={card} card={menu} move={this.move} updateElement={this.updateCard} deleteElement={this.deleteCard}/>))} </div> </div> ) -- Gitblit v1.8.0