Skip to content

Commit

Permalink
fix stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
nelyaklyusa committed May 29, 2024
1 parent e80bfd6 commit efb6018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/BaseStepper/BaseStepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
</script>
Expand Down

0 comments on commit efb6018

Please sign in to comment.