From 0da0262bc236cfce928429fc4c48e1666eab3402 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 一月 2021 17:12:04 +0800 Subject: [PATCH] 2021-01-07 --- src/menu/components/chart/antv-bar/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu/components/chart/antv-bar/index.jsx b/src/menu/components/chart/antv-bar/index.jsx index 5c6b6ca..c2ee506 100644 --- a/src/menu/components/chart/antv-bar/index.jsx +++ b/src/menu/components/chart/antv-bar/index.jsx @@ -103,8 +103,8 @@ componentDidMount () { this.viewrender() - MKEmitter.addListener('tabsChange', this.handleTabsChange) MKEmitter.addListener('submitStyle', this.getStyle) + MKEmitter.addListener('tabsChange', this.handleTabsChange) } shouldComponentUpdate (nextProps, nextState) { @@ -118,8 +118,8 @@ this.setState = () => { return } - MKEmitter.removeListener('tabsChange', this.handleTabsChange) MKEmitter.removeListener('submitStyle', this.getStyle) + MKEmitter.removeListener('tabsChange', this.handleTabsChange) } handleTabsChange = (parentId) => { @@ -854,7 +854,7 @@ } clickComponent = (e) => { - if (sessionStorage.getItem('style-control') === 'true') { + if (sessionStorage.getItem('style-control') === 'true' || sessionStorage.getItem('style-control') === 'component') { e.stopPropagation() MKEmitter.emit('clickComponent', this.state.card) } -- Gitblit v1.8.0