[new feature] Step: add active-icon slot (#3193)

This commit is contained in:
neverland
2019-04-22 19:24:51 +08:00
committed by GitHub
parent 9ca25218c2
commit c9d6222ab1
3 changed files with 6 additions and 12 deletions

View File

@@ -43,7 +43,9 @@ export default sfc({
{status !== 'process' ? (
<i class={bem('circle')} />
) : (
<Icon name={activeIcon} style={{ color: activeColor }} />
this.slots('active-icon') || (
<Icon name={activeIcon} style={{ color: activeColor }} />
)
)}
</div>
<div class={bem('line')} />