Skip to content

Commit

Permalink
fix: 修复百度小程序icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cos2004 committed Jan 25, 2019
1 parent 312e9c0 commit d4e19be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ export default class AtIcon extends AtComponent {
fontSize: `${Taro.pxTransform(parseInt(size) * 2)}`,
color
}

const iconName = value ? `${prefixClass}-${value}` : ''
return (
<Text
className={classNames(
prefixClass,
`${prefixClass}-${value}`,
iconName,
className
)}
style={this.mergeStyle(rootStyle, customStyle)}
Expand Down

0 comments on commit d4e19be

Please sign in to comment.