feat: add Badge component #6573

This commit is contained in:
chenjiahan
2020-10-02 16:46:57 +08:00
parent f75c8231c6
commit 475e60b282
17 changed files with 336 additions and 46 deletions
-1
View File
@@ -18,7 +18,6 @@
}
&__icon {
position: relative;
width: 1em;
margin: 0 auto 5px;
color: @action-bar-icon-color;
+2 -3
View File
@@ -32,10 +32,9 @@ export default createComponent({
if (slots.icon) {
return (
<div class={bem('icon')}>
<Badge dot={dot} content={badge} class={bem('icon')}>
{slots.icon()}
<Badge dot={dot} badge={badge} />
</div>
</Badge>
);
}