From 55cbccfdfd8cecce96a7e9e748ca45421e3b86b2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 二月 2022 18:50:07 +0800 Subject: [PATCH] 2022-02-10 --- src/menu/components/tabs/antv-tabs/index.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/menu/components/tabs/antv-tabs/index.jsx b/src/menu/components/tabs/antv-tabs/index.jsx index 07f80ea..222738c 100644 --- a/src/menu/components/tabs/antv-tabs/index.jsx +++ b/src/menu/components/tabs/antv-tabs/index.jsx @@ -315,6 +315,7 @@ editab.label = res.label editab.icon = res.icon // editab.hasSearch = res.hasSearch || '' + editab.hide = res.hide || 'false' editab.backgroundColor = res.backgroundColor editab.controlVal = res.controlVal || '' editab.blacklist = res.blacklist @@ -373,7 +374,7 @@ <CloseOutlined className="close" onClick={() => this.delTab(tab)} /> </div> } trigger="hover"> - <span>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span> + <span style={{textDecoration: tab.hide === 'true' ? 'line-through' : 'none'}}>{tab.icon ? <MkIcon type={tab.icon} /> : null}{tab.label}</span> </Popover> } key={tab.uuid} style={{backgroundColor: tab.backgroundColor || 'transparent'}}> {/* {appType === 'mob' && tabs.setting.position === 'top' && tabs.setting.display === 'inline-block' && tab.hasSearch === 'icon' ? -- Gitblit v1.8.0