diff --git a/src/step/index.js b/src/step/index.js index cbd066464..c5fb1c2b2 100644 --- a/src/step/index.js +++ b/src/step/index.js @@ -53,7 +53,9 @@ export default createComponent({ render() { const { status, active } = this; const { activeColor, direction } = this.parent; + const titleStyle = active && { color: activeColor }; + const lineStyle = status === 'finish' && { background: activeColor }; return (
@@ -61,7 +63,7 @@ export default createComponent({ {this.slots()}
{this.genCircle()}
-
+
); }, diff --git a/src/steps/test/__snapshots__/demo.spec.js.snap b/src/steps/test/__snapshots__/demo.spec.js.snap index 8c36d07f5..cd11ee3e3 100644 --- a/src/steps/test/__snapshots__/demo.spec.js.snap +++ b/src/steps/test/__snapshots__/demo.spec.js.snap @@ -36,7 +36,7 @@ exports[`renders demo correctly 1`] = `
买家下单
-
+
商家接单