Skip to content

Commit

Permalink
feat(runtime-web): tabbar 兼容不配置 icon 场景
Browse files Browse the repository at this point in the history
  • Loading branch information
hwaphon committed Apr 26, 2024
1 parent 33acea7 commit fa15499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-web/src/components/src/base/tabbar-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export default class TabbarItem extends BaseElement {
<div
style=${styleMap({ display: 'inline-block', position: 'relative' })}
>
<img src="${this.icon}" alt="" class="tiga-tabbar__icon" />
${this.icon
? html`<img src="${this.icon}" alt="" class="tiga-tabbar__icon" />`
: ''}
${this.badgeText
? html` <span class="tiga-badge" style=${styleMap(this.badgeStyle)}>
${this.badgeText}
Expand Down

0 comments on commit fa15499

Please sign in to comment.