Closed xiaohuoni closed 3 years ago
使用 checkbox 时,可以自定义 icon
<CheckBox icon={<CustomIcon />} > CheckBox </CheckBox>
需要通过 renderProps 的形式把 checked 状态暴露出来:
checked
<CheckBox icon={checked => checked ? <CustomCheckedIcon /> : <CustomUncheckedIcon />} > CheckBox </CheckBox>
@awmleer 我来按照 renderProps 实现下~
What problem does this feature solve?
使用 checkbox 时,可以自定义 icon
What does the proposed API look like?