Skip to content

Commit

Permalink
fix(table): support tooltip=false, close ellipsis tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Oct 14, 2022
1 parent 7a9aad7 commit 1c6c7ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/utils/src/genCopyable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ export const genCopyable = (dom: React.ReactNode, item: any, text: string) => {
const ellipsis =
item.ellipsis && text
? {
tooltip: needTranText ? <div className="pro-table-tooltip-text">{dom}</div> : text,
tooltip:
// 支持一下 tooltip 的关闭
item?.tooltip !== false && needTranText ? (
<div className="pro-table-tooltip-text">{dom}</div>
) : (
text
),
}
: false;

return (
<Typography.Text
style={{
Expand Down

0 comments on commit 1c6c7ef

Please sign in to comment.