feat(GoodsActionIcon): add dot prop

This commit is contained in:
chenjiahan
2020-03-10 20:38:11 +08:00
parent f2e9e1931b
commit b983ac0891
7 changed files with 35 additions and 6 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ export default createComponent({
props: {
...routeProps,
dot: Boolean,
text: String,
icon: String,
color: String,
@@ -31,7 +32,7 @@ export default createComponent({
return (
<div class={bem('icon')}>
{slot}
<Info info={this.info} />
<Info dot={this.dot} info={this.info} />
</div>
);
}
@@ -40,6 +41,7 @@ export default createComponent({
<Icon
class={[bem('icon'), this.iconClass]}
tag="div"
dot={this.dot}
info={this.info}
name={this.icon}
color={this.color}