diff --git a/src/step/index.js b/src/step/index.js index 0d942c72d..254b79ec6 100644 --- a/src/step/index.js +++ b/src/step/index.js @@ -21,6 +21,14 @@ export default createComponent({ active() { return this.status === 'process'; }, + + lineStyle() { + if (this.status === 'finish' && this.parent.activeColor) { + return { + background: this.parent.activeColor, + }; + } + }, }, methods: { @@ -47,7 +55,7 @@ export default createComponent({ ); } - return ; + return ; }, onClickStep() { @@ -60,7 +68,6 @@ export default createComponent({ const { activeColor, direction } = this.parent; const titleStyle = active && { color: activeColor }; - const lineStyle = status === 'finish' && { background: activeColor }; return (