feat(GridItem): add dot prop (#4426)
This commit is contained in:
@@ -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>)
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user