Commit d08140b5 authored by zhangwenshuai's avatar zhangwenshuai

展开时阻止选中cell

parent d0b71f29
...@@ -250,7 +250,11 @@ const Cell = (props: CellProps) => { ...@@ -250,7 +250,11 @@ const Cell = (props: CellProps) => {
{showExpand && columnIndex === 0 && ( {showExpand && columnIndex === 0 && (
<div className={s.expand}> <div className={s.expand}>
<img <img
onClick={showExpand.bind(null, { rowId: record.id })} onClick={(e: any) => {
e.stopPropagation();
e.nativeEvent.stopImmediatePropagation();
showExpand({ rowId: record.id });
}}
className={s.expandIcon} className={s.expandIcon}
alt="" alt=""
src={expandIcon} src={expandIcon}
...@@ -269,7 +273,7 @@ const Cell = (props: CellProps) => { ...@@ -269,7 +273,7 @@ const Cell = (props: CellProps) => {
componentAttr={transferColumn} componentAttr={transferColumn}
formatter={detailConfig.getFormatter} formatter={detailConfig.getFormatter}
cellRenderProps={cellRenderProps} cellRenderProps={cellRenderProps}
changeEdit={()=>{ changeEdit={() => {
setStatus('edit'); setStatus('edit');
}} }}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment