feat(Grid): add icon-size prop (#4656)

This commit is contained in:
neverland
2019-10-07 18:00:45 +08:00
committed by GitHub
parent 307e9d3c7b
commit 39af08170c
6 changed files with 31 additions and 1 deletions
+7 -1
View File
@@ -71,7 +71,13 @@ export default createComponent({
return [
this.slots('icon') ||
(this.icon && (
<Icon name={this.icon} dot={this.dot} info={this.info} class={bem('icon')} />
<Icon
name={this.icon}
dot={this.dot}
info={this.info}
size={this.parent.iconSize}
class={bem('icon')}
/>
)),
this.slots('text') || (this.text && <span class={bem('text')}>{this.text}</span>)
];