Skip to content

Commit

Permalink
fix: 修复百度小程序noticebar
Browse files Browse the repository at this point in the history
  • Loading branch information
cos2004 committed Jan 25, 2019
1 parent d4e19be commit 1bedaa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/noticebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export default class AtNoticebar extends AtComponent {
'at-noticebar--single': !marquee && single,
}

const iconClass = ['at-icon']
if (icon) iconClass.push(`at-icon-${icon}`)

return (
this.state.show &&
<View
Expand All @@ -147,7 +150,8 @@ export default class AtNoticebar extends AtComponent {
<View className='at-noticebar__content'>
{icon && (
<View className='at-noticebar__content-icon'>
<Text className={classNames('at-icon', { [`at-icon-${icon}`]: icon })}></Text>
{/* start hack 百度小程序 */}
<Text className={classNames(iconClass, iconClass)}></Text>
</View>
)}
<View className='at-noticebar__content-text'>
Expand Down

0 comments on commit 1bedaa9

Please sign in to comment.