From a3ac1b4636cf446804bb1947d6a5d2dd6c3bc030 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 13 十二月 2020 17:16:54 +0800 Subject: [PATCH] 2020-12-13 --- src/tabviews/zshare/actionList/exceloutbutton/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index 0aa6370..827ac3d 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -17,6 +17,7 @@ class ExcelOutButton extends Component { static propTpyes = { BID: PropTypes.string, // 涓昏〃ID + position: PropTypes.any, // 鎸夐挳浣嶇疆锛屽伐鍏锋爮涓簍oolbar show: PropTypes.any, // 鏄剧ず鏍峰紡 Tab: PropTypes.any, // 濡傛灉褰撳墠鍏冪礌涓烘爣绛炬椂锛宼ab涓烘爣绛句俊鎭� btn: PropTypes.object, // 鎸夐挳 @@ -37,9 +38,9 @@ } componentDidMount () { - const { show } = this.props + const { position } = this.props - if (show === 'actionList') { + if (position === 'toolbar') { MKEmitter.addListener('triggerBtnId', this.actionTrigger) } } -- Gitblit v1.8.0