breaking change: rename Info to Badge

This commit is contained in:
chenjiahan
2020-08-20 19:36:12 +08:00
parent 4e5f509b2f
commit 63bd4700ab
40 changed files with 157 additions and 178 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { createNamespace } from '../utils';
import { ChildrenMixin } from '../mixins/relation';
import { route, routeProps } from '../utils/router';
import Info from '../info';
import Badge from '../badge';
const [createComponent, bem] = createNamespace('sidebar-item');
@@ -45,7 +45,7 @@ export default createComponent({
>
<div class={bem('text')}>
{this.title}
<Info dot={this.dot} info={this.badge} class={bem('info')} />
<Badge dot={this.dot} badge={this.badge} class={bem('badge')} />
</div>
</a>
);