diff --git a/src/utils/table.jsx b/src/utils/table.jsx index 3055ce89..90547c9f 100644 --- a/src/utils/table.jsx +++ b/src/utils/table.jsx @@ -169,10 +169,22 @@ export const getIdRender = (value, copyable = true, isLink = true) => { if (!copyable) { return shortRender; } + const onClick = (e) => { + if (e) { + const { nodeName = '', className = '' } = e.target || {}; + const isCopyClick = + nodeName === 'svg' || + (isString(className) && className.includes('copy')); + if (isCopyClick && e.stopPropagation) { + return e.stopPropagation(); + } + } + }; return ( {shortRender}