From efb6018c2919fceaca254a4f50fb314ca0143c5e Mon Sep 17 00:00:00 2001 From: nelyaklyusa Date: Wed, 29 May 2024 11:01:00 +0300 Subject: [PATCH] fix stepper --- src/components/BaseStepper/BaseStepper.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BaseStepper/BaseStepper.vue b/src/components/BaseStepper/BaseStepper.vue index 9f5f926..8ab7a0d 100644 --- a/src/components/BaseStepper/BaseStepper.vue +++ b/src/components/BaseStepper/BaseStepper.vue @@ -16,13 +16,13 @@ const props = defineProps({ }); const emit = defineEmits<{ - (e: 'update:modelValue', value: string): void; + (e: 'update:modelValue', value: number): void; (e: 'itemClick', value: string): void; }>(); function onItemClick(step: Step, index: number) { if (props.modelValue <= index) return; - emit('update:modelValue', step.value); + emit('update:modelValue', index); emit('itemClick', step.value); }