Skip to content

Commit

Permalink
fix(Icon): resolve character concatenation error
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Oct 28, 2022
1 parent a9104aa commit f6083bc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/icon/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ export default class Icon extends SuperComponent {
const fontStyle = size ? { 'font-size': sizeValue } : {};
this.setData({
isImage,
iconStyle:
styles({
...colorStyle,
...fontStyle,
...sizeStyle,
}) + customStyle,
iconStyle: `${customStyle ? `${customStyle};` : ''}${styles({
...colorStyle,
...fontStyle,
...sizeStyle,
})}`,
});
},
};
Expand Down

0 comments on commit f6083bc

Please sign in to comment.