feat(GridItem): add dot prop (#4426)

This commit is contained in:
neverland
2019-09-11 15:07:45 +08:00
committed by GitHub
parent 21d5127fd7
commit 88338088be
5 changed files with 14 additions and 8 deletions
+5 -1
View File
@@ -11,6 +11,7 @@ export default createComponent({
props: {
...routeProps,
dot: Boolean,
text: String,
icon: String,
info: [Number, String]
@@ -68,7 +69,10 @@ export default createComponent({
}
return [
this.slots('icon') || (this.icon && <Icon name={this.icon} info={this.info} class={bem('icon')} />),
this.slots('icon') ||
(this.icon && (
<Icon name={this.icon} dot={this.dot} info={this.info} class={bem('icon')} />
)),
this.slots('text') || (this.text && <span class={bem('text')}>{this.text}</span>)
];
}