chore(Avatar/Stepper): fix types for vue-tsc@2.2.0

This commit is contained in:
Benjamin Canac
2025-02-17 12:37:54 +01:00
parent 408ebf0f00
commit 0c827d2981
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ import UIcon from './Icon.vue'
defineOptions({ inheritAttrs: false })
const props = withDefaults(defineProps<AvatarProps>(), { as: 'span' })
const attrs = useAttrs()
const attrs = useAttrs() as any
const fallbackProps = useForwardProps(reactivePick(props, 'delayMs'))

View File

@@ -163,7 +163,7 @@ defineExpose({
<div v-if="currentStep?.content || !!slots.content || (currentStep?.slot && !!slots[currentStep.slot]) || (currentStep?.value && !!slots[currentStep.value])" :class="ui.content({ class: props.ui?.description })">
<slot
:name="!!slots[currentStep?.slot ?? currentStep.value] ? currentStep.slot ?? currentStep.value : 'content'"
:name="!!slots[currentStep?.slot ?? currentStep.value!] ? currentStep.slot ?? currentStep.value : 'content'"
:item="currentStep"
>
{{ currentStep?.content }}