From fe0c58fa8bc036367a180ac2ce5609d867390594 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Wed, 8 Jul 2020 15:56:43 +0800 Subject: [PATCH] update --- components/apolloTable/component/Cell.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 606e58c..3fb6add 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -248,13 +248,15 @@ const Cell = (props: CellProps) => { )} {showExpand && columnIndex === 0 && ( -
+
{ + e.stopPropagation(); + e.nativeEvent.stopImmediatePropagation(); + }} + > { - e.stopPropagation(); - e.nativeEvent.stopImmediatePropagation(); - showExpand({ rowId: record.id }); - }} + onClick={showExpand.bind(null, { rowId: record.id })} className={s.expandIcon} alt="" src={expandIcon} -- 2.21.0