From d08140b549c86884c25b02d7396fdc15da197e3c Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Wed, 8 Jul 2020 15:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=97=B6=E9=98=BB=E6=AD=A2?= =?UTF-8?q?=E9=80=89=E4=B8=ADcell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Cell.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 8c756de..606e58c 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -250,7 +250,11 @@ const Cell = (props: CellProps) => { {showExpand && columnIndex === 0 && (
{ + e.stopPropagation(); + e.nativeEvent.stopImmediatePropagation(); + showExpand({ rowId: record.id }); + }} className={s.expandIcon} alt="" src={expandIcon} @@ -269,7 +273,7 @@ const Cell = (props: CellProps) => { componentAttr={transferColumn} formatter={detailConfig.getFormatter} cellRenderProps={cellRenderProps} - changeEdit={()=>{ + changeEdit={() => { setStatus('edit'); }} /> -- 2.21.0