mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 18:00:43 +01:00
chore(Carousel/Stepper): move orientation from defaultVariants to withDefaults
This commit is contained in:
@@ -66,6 +66,7 @@ import { reactivePick } from '@vueuse/core'
|
|||||||
import UIcon from './Icon.vue'
|
import UIcon from './Icon.vue'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<StepperProps<T>>(), {
|
const props = withDefaults(defineProps<StepperProps<T>>(), {
|
||||||
|
orientation: 'horizontal',
|
||||||
linear: true
|
linear: true
|
||||||
})
|
})
|
||||||
const emits = defineEmits<StepperEmits<T>>()
|
const emits = defineEmits<StepperEmits<T>>()
|
||||||
|
|||||||
@@ -33,8 +33,5 @@ export default (options: Required<ModuleOptions>) => ({
|
|||||||
dot: 'bg-[var(--ui-border-inverted)]'
|
dot: 'bg-[var(--ui-border-inverted)]'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
defaultVariants: {
|
|
||||||
orientation: 'horizontal'
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ export default (options: Required<ModuleOptions>) => ({
|
|||||||
}],
|
}],
|
||||||
|
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
orientation: 'horizontal',
|
|
||||||
size: 'md',
|
size: 'md',
|
||||||
color: 'primary'
|
color: 'primary'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user