feat(TabbarItem): optimize dot prop (#4431)

This commit is contained in:
neverland
2019-09-11 17:22:17 +08:00
committed by GitHub
parent 9e085c4c04
commit 80f6b04b9a
3 changed files with 4 additions and 17 deletions

View File

@@ -51,9 +51,9 @@ export default createComponent({
return (
<div class={bem({ active })} style={{ color }} onClick={this.onClick}>
<div class={bem('icon', { dot: this.dot })}>
<div class={bem('icon')}>
{slots('icon', { active }) || (icon && <Icon name={icon} />)}
<Info info={this.info} />
<Info dot={this.dot} info={this.info} />
</div>
<div class={bem('text')}>{slots('default', { active })}</div>
</div>