feat(Grid): add info prop (#4424)

This commit is contained in:
neverland
2019-09-11 11:48:24 +08:00
committed by GitHub
parent eb32c6b02e
commit e69e3d349a
11 changed files with 79 additions and 97 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ export default createComponent({
props: {
...routeProps,
text: String,
icon: String,
text: String
info: [Number, String]
},
computed: {
@@ -67,7 +68,7 @@ export default createComponent({
}
return [
this.slots('icon') || (this.icon && <Icon name={this.icon} class={bem('icon')} />),
this.slots('icon') || (this.icon && <Icon name={this.icon} info={this.info} class={bem('icon')} />),
this.slots('text') || (this.text && <span class={bem('text')}>{this.text}</span>)
];
}