From cfadcefb0a1c29dfb1d940fbb7add746595158bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Tue, 28 Jan 2020 16:00:08 +0800 Subject: [PATCH] fix(Step): active-color should be effective for line --- src/step/index.js | 4 +++- src/steps/test/__snapshots__/demo.spec.js.snap | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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`] = `
买家下单
-
+
商家接单