From 15b14f459b894e3dd678ec5a591efe3d016c9818 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 23 一月 2022 00:36:09 +0800 Subject: [PATCH] 2022-01-23 --- src/menu/components/tabs/antv-tabs/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/menu/components/tabs/antv-tabs/index.jsx b/src/menu/components/tabs/antv-tabs/index.jsx index e85c5fb..8ac1f27 100644 --- a/src/menu/components/tabs/antv-tabs/index.jsx +++ b/src/menu/components/tabs/antv-tabs/index.jsx @@ -317,6 +317,7 @@ editab.label = res.label editab.icon = res.icon // editab.hasSearch = res.hasSearch || '' + editab.backgroundColor = res.backgroundColor editab.controlVal = res.controlVal || '' editab.blacklist = res.blacklist @@ -361,7 +362,7 @@ let _style = resetStyle(tabs.style) return ( - <div className={'menu-tabs-edit-box ' + tabs.setting.display} style={_style} onClick={this.clickComponent} id={tabs.uuid}> + <div className={'menu-tabs-edit-box ' + (tabs.setting.display || '')} style={_style} onClick={this.clickComponent} id={tabs.uuid}> <DraggableTabs defaultActiveKey={defaultActiveKey} tabPosition={tabs.setting.position} type={tabs.setting.tabStyle} tabsMove={this.moveSwitch} onChange={this.onChange}> {tabs.subtabs.map(tab => ( <TabPane tab={ @@ -376,7 +377,7 @@ } trigger="hover"> <span>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span> </Popover> - } key={tab.uuid}> + } key={tab.uuid} style={{backgroundColor: tab.backgroundColor || 'transparent'}}> {/* {appType === 'mob' && tabs.setting.position === 'top' && tabs.setting.display === 'inline-block' && tab.hasSearch === 'icon' ? <SearchOutlined className="search-icon" onDoubleClick={() => this.setSearch(tab)}/> : null} */} <TabComponents config={tab} handleList={this.updateTabComponent} deleteCard={this.deleteCard} /> -- Gitblit v1.8.0