From b6ccd63b80fc7017bfabc446787732a98c7cbab7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 06 一月 2021 19:10:28 +0800 Subject: [PATCH] 2021-01-06 --- src/menu/components/tabs/antv-tabs/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/menu/components/tabs/antv-tabs/index.jsx b/src/menu/components/tabs/antv-tabs/index.jsx index 7aaaeef..022d777 100644 --- a/src/menu/components/tabs/antv-tabs/index.jsx +++ b/src/menu/components/tabs/antv-tabs/index.jsx @@ -253,11 +253,18 @@ this.props.updateConfig(tabs) } + clickComponent = (e) => { + if (sessionStorage.getItem('style-control') === 'true') { + e.stopPropagation() + MKEmitter.emit('clickComponent', this.state.tabs) + } + } + render() { const { tabs, dict, labelvisible, editab } = this.state return ( - <div className="menu-tabs-edit-box" style={tabs.style}> + <div className="menu-tabs-edit-box" style={tabs.style} onClick={this.clickComponent} id={tabs.uuid}> <DraggableTabs tabPosition={tabs.setting.position} type={tabs.setting.tabStyle} tabsMove={this.moveSwitch}> {tabs.subtabs.map(tab => ( <TabPane tab={ -- Gitblit v1.8.0