feat: add Badge component #6573
This commit is contained in:
@@ -63,10 +63,9 @@ export default createComponent({
|
||||
|
||||
if (props.dot || (isDef(props.badge) && props.badge !== '')) {
|
||||
return (
|
||||
<span class={bem('text-wrapper')}>
|
||||
<Badge dot={props.dot} content={props.badge}>
|
||||
{Text}
|
||||
{<Badge dot={props.dot} badge={props.badge} />}
|
||||
</span>
|
||||
</Badge>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,10 +31,6 @@
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
|
||||
&__text-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
.van-tabs {
|
||||
|
||||
Reference in New Issue
Block a user