Skip to content

Commit

Permalink
fix(VStepper): propagate complete/error/edit icons
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed May 28, 2024
1 parent 908fb59 commit 64acd01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/vuetify/src/components/VStepper/VStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export type VStepperSlots = {
export const makeStepperProps = propsFactory({
altLabels: Boolean,
bgColor: String,
completeIcon: String,
editIcon: String,
editable: Boolean,
errorIcon: String,
hideActions: Boolean,
items: {
type: Array as PropType<readonly StepperItem[]>,
Expand Down Expand Up @@ -90,7 +93,7 @@ export const VStepper = genericComponent<VStepperSlots>()({
setup (props, { slots }) {
const { items: _items, next, prev, selected } = useGroup(props, VStepperSymbol)
const { displayClasses, mobile } = useDisplay(props)
const { color, editable, prevText, nextText } = toRefs(props)
const { completeIcon, editIcon, errorIcon, color, editable, prevText, nextText } = toRefs(props)

const items = computed(() => props.items.map((item, index) => {
const title = getPropertyFromItem(item, props.itemTitle, item)
Expand All @@ -116,6 +119,9 @@ export const VStepper = genericComponent<VStepperSlots>()({
provideDefaults({
VStepperItem: {
editable,
errorIcon,
completeIcon,
editIcon,
prevText,
nextText,
},
Expand Down

0 comments on commit 64acd01

Please sign in to comment.