Skip to content

Commit

Permalink
fix(Fab): fix type warning for icon attr (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jul 23, 2024
1 parent 3fe32c6 commit f31c646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fab/fab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineComponent({
};

return () => {
const icon = renderTNodeJSX('icon');
const icon = () => renderTNodeJSX('icon');
return (
<div class={fabClass.value} style={props.style} onClick={handleClick}>
<TButton
Expand Down

0 comments on commit f31c646

Please sign in to comment.