diff --git a/components/lib/steps/BaseSteps.vue b/components/lib/steps/BaseSteps.vue index bc59c0463..48aa3aa19 100644 --- a/components/lib/steps/BaseSteps.vue +++ b/components/lib/steps/BaseSteps.vue @@ -17,9 +17,9 @@ export default { type: Boolean, default: true }, - exact: { - type: Boolean, - default: true + activeStep: { + type: Number, + default: 0 } }, style: StepsStyle, diff --git a/components/lib/steps/Steps.d.ts b/components/lib/steps/Steps.d.ts index fd2e9e644..7b9a2fbb0 100755 --- a/components/lib/steps/Steps.d.ts +++ b/components/lib/steps/Steps.d.ts @@ -141,9 +141,15 @@ export interface StepsProps { readonly?: boolean | undefined; /** * Whether to apply 'router-link-active-exact' class if route exactly matches the item path. + * @deprecated since v3.40.0. * @defaultValue true */ exact?: boolean | undefined; + /** + * Active step index of menuitem. + * @defaultValue 0 + */ + activeStep?: number | undefined; /** * Used to pass attributes to DOM elements inside the component. * @type {StepsPassThroughOptions} diff --git a/components/lib/steps/Steps.vue b/components/lib/steps/Steps.vue index e303ee4ce..53882112d 100755 --- a/components/lib/steps/Steps.vue +++ b/components/lib/steps/Steps.vue @@ -1,24 +1,19 @@