+
{this.slots()}
{this.genCircle()}
diff --git a/src/step/index.less b/src/step/index.less
index 94fcb1986..d4a7dcb95 100644
--- a/src/step/index.less
+++ b/src/step/index.less
@@ -138,4 +138,11 @@
background-color: @step-finish-line-color;
}
}
+
+ &__icon,
+ &__title {
+ &--active {
+ color: @step-active-color;
+ }
+ }
}
diff --git a/src/steps/index.js b/src/steps/index.js
index 3f72394c6..48352c91b 100644
--- a/src/steps/index.js
+++ b/src/steps/index.js
@@ -1,5 +1,4 @@
import { createNamespace } from '../utils';
-import { GREEN } from '../utils/constant';
import { ParentMixin } from '../mixins/relation';
const [createComponent, bem] = createNamespace('steps');
@@ -8,6 +7,7 @@ export default createComponent({
mixins: [ParentMixin('vanSteps')],
props: {
+ activeColor: String,
inactiveIcon: String,
active: {
type: Number,
@@ -17,10 +17,6 @@ export default createComponent({
type: String,
default: 'horizontal',
},
- activeColor: {
- type: String,
- default: GREEN,
- },
activeIcon: {
type: String,
default: 'checked',
diff --git a/src/steps/test/__snapshots__/demo.spec.js.snap b/src/steps/test/__snapshots__/demo.spec.js.snap
index 2aaf48fbd..8c36d07f5 100644
--- a/src/steps/test/__snapshots__/demo.spec.js.snap
+++ b/src/steps/test/__snapshots__/demo.spec.js.snap
@@ -11,8 +11,8 @@ exports[`renders demo correctly 1`] = `