[new feature] Steps: add active-icon prop (#2934)

This commit is contained in:
neverland
2019-03-10 16:56:05 +08:00
committed by GitHub
parent 144fa2d711
commit cca584e9d5
6 changed files with 96 additions and 16 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ export default sfc({
render(h) {
const { status } = this;
const { activeColor, direction } = this.$parent;
const { activeIcon, activeColor, direction } = this.$parent;
const titleStyle = status === 'process' && { color: activeColor };
return (
@@ -36,7 +36,7 @@ export default sfc({
{status !== 'process' ? (
<i class={bem('circle')} />
) : (
<Icon name="checked" style={{ color: activeColor }} />
<Icon name={activeIcon} style={{ color: activeColor }} />
)}
</div>
<div class={bem('line')} />