From 1637a24e160f87e171fc4978a8c9cb8875cdcabb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 20 五月 2022 01:12:51 +0800 Subject: [PATCH] 2022-05-20 --- src/tabviews/zshare/actionList/newpagebutton/index.jsx | 17 +++++------------ 1 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/tabviews/zshare/actionList/newpagebutton/index.jsx b/src/tabviews/zshare/actionList/newpagebutton/index.jsx index cb1f797..718d640 100644 --- a/src/tabviews/zshare/actionList/newpagebutton/index.jsx +++ b/src/tabviews/zshare/actionList/newpagebutton/index.jsx @@ -19,7 +19,7 @@ selectedData: PropTypes.any, // 瀛愯〃涓�夋嫨鏁版嵁 setting: PropTypes.any, // 椤甸潰閫氱敤璁剧疆 disabled: PropTypes.any, // 琛屾寜閽鐢� - lineId: PropTypes.any, // 琛岀储寮�+涓婚敭鍊硷紝鐢ㄤ簬琛屾寜閽弻鍑� + lineBtn: PropTypes.any, // 鏄惁涓鸿绾ф寜閽� } state = { @@ -112,21 +112,14 @@ * @description 瑙﹀彂鎸夐挳鎿嶄綔 */ actionTrigger = (triggerId, record, type) => { - const { setting, btn, selectedData } = this.props + const { setting, btn, selectedData, lineBtn } = this.props const { disabled } = this.state if (disabled) return - if (triggerId) { - if (btn.uuid !== triggerId) return - if (this.props.lineId && record && record[0] && this.props.lineId !== record[0].$$key) { - return - } - } + if (triggerId && btn.uuid !== triggerId) return - if (type === 'linkbtn' && selectedData && selectedData.length === 1) { - if (record[0].$Index !== selectedData[0].$Index) { - return - } + if (type === 'linkbtn' && lineBtn && !is(fromJS(selectedData || []), fromJS(record))) { + return } let data = record || selectedData || [] -- Gitblit v1.8.0