Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Dec 12, 2024
1 parent 1c34df5 commit 5feda08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/amis-ui/src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ export function Icon({

style = {
...(style || {}),
width: width || style?.width,
height: height || style?.height
...(width && {width}),
...(height && {height})
};

if (typeof jest !== 'undefined' && icon) {
Expand Down

0 comments on commit 5feda08

Please sign in to comment.