Skip to content

Commit

Permalink
feat(table): add click event for icon element (#8167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Been101 authored Feb 21, 2024
1 parent 7715438 commit c89d4b1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/table/src/components/ListToolBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,16 @@ function getSettingItem(setting: SettingPropType) {
</Tooltip>
);
}
return icon;
return <span
key={key}
onClick={() => {
if (onClick) {
onClick(key);
}
}}
>
{icon}
</span>;
}
return null;
}
Expand Down

0 comments on commit c89d4b1

Please sign in to comment.