feat: add Badge component #6573
This commit is contained in:
@@ -73,10 +73,9 @@ export default createComponent({
|
||||
style={{ color }}
|
||||
onClick={onClick}
|
||||
>
|
||||
<div class={bem('icon')}>
|
||||
<Badge dot={dot} content={badge} class={bem('icon')}>
|
||||
{renderIcon()}
|
||||
<Badge dot={dot} badge={badge} />
|
||||
</div>
|
||||
</Badge>
|
||||
<div class={bem('text')}>
|
||||
{slots.default?.({ active: active.value })}
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
cursor: pointer;
|
||||
|
||||
&__icon {
|
||||
position: relative;
|
||||
margin-bottom: @tabbar-item-margin-bottom;
|
||||
font-size: @tabbar-item-icon-size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user