From ccdac90b62e6d37c4fc5bdacd96102fe840b527e Mon Sep 17 00:00:00 2001 From: Mohammed Imtiyaz Date: Wed, 3 Jul 2019 13:52:34 +0530 Subject: [PATCH] Added completed class for completed step --- src/HorizontalStepper.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HorizontalStepper.vue b/src/HorizontalStepper.vue index d3beaad..19d2a0c 100644 --- a/src/HorizontalStepper.vue +++ b/src/HorizontalStepper.vue @@ -126,8 +126,11 @@ export default { }, methods: { + isStepActive(index, step) { - if (this.currentStep.index === index) { + if(step.completed){ + return "completed"; + }else if (this.currentStep.index === index) { return "activated"; } else { return "deactivated";