Skip to content

Commit

Permalink
fix: add props support
Browse files Browse the repository at this point in the history
  • Loading branch information
crsten committed Sep 13, 2024
1 parent 0e2eed4 commit 8db6fd3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/component.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="elder-stepper">
<div class="elder-stepper__breadcrumbs">
<div class="elder-stepper" :data-current-step="active.id">
<div v-if="breadcrumb" class="elder-stepper__breadcrumbs">
<template v-for="(item, index) in value">
<Icon
v-if="index > 0"
Expand Down Expand Up @@ -62,11 +62,13 @@
...(item.props || {}),
step: item,
isActive: isActive(item),
...$attrs,
}"
v-on="{
...(item.listeners || {}),
next,
prev,
...$listeners,
}"
>
<template #default>
Expand Down Expand Up @@ -143,6 +145,10 @@ export default {
default: 'step',
},
transition: String,
breadcrumb: {
type: Boolean,
default: true,
},
breadcrumbIcon: [String, Array],
},
data() {
Expand Down

0 comments on commit 8db6fd3

Please sign in to comment.