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
+2 -3
View File
@@ -38,10 +38,9 @@ export default createComponent({
return (
<a class={bem({ select: selected, disabled })} onClick={onClick}>
<div class={bem('text')}>
<Badge dot={dot} content={badge} class={bem('text')}>
{slots.title ? slots.title() : title}
<Badge dot={dot} badge={badge} class={bem('badge')} />
</div>
</Badge>
</a>
);
};
-5
View File
@@ -18,11 +18,6 @@
background-color: @sidebar-active-color;
}
&__text {
position: relative;
display: inline-block;
}
&:not(:last-child)::after {
border-bottom-width: 1px;
}