feat(RadioGroup): add icon-size prop (#4529)

This commit is contained in:
neverland
2019-09-22 17:17:29 +08:00
committed by GitHub
parent 6e5e2f22a9
commit 314cfa6a14
6 changed files with 52 additions and 19 deletions
+3 -1
View File
@@ -76,10 +76,12 @@ export const CheckboxMixin = ({ parent, bem, role }) => ({
</span>
);
const iconSize = this.iconSize || (this.parent && this.parent.iconSize);
const Children = [
<div
class={bem('icon', [this.shape, { disabled: this.isDisabled, checked }])}
style={{ fontSize: addUnit(this.iconSize) }}
style={{ fontSize: addUnit(iconSize) }}
>
{CheckIcon}
</div>