mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 21:27:54 +01:00
chore(Avatar/Stepper): fix types for vue-tsc@2.2.0
This commit is contained in:
@@ -46,7 +46,7 @@ import UIcon from './Icon.vue'
|
|||||||
defineOptions({ inheritAttrs: false })
|
defineOptions({ inheritAttrs: false })
|
||||||
|
|
||||||
const props = withDefaults(defineProps<AvatarProps>(), { as: 'span' })
|
const props = withDefaults(defineProps<AvatarProps>(), { as: 'span' })
|
||||||
const attrs = useAttrs()
|
const attrs = useAttrs() as any
|
||||||
|
|
||||||
const fallbackProps = useForwardProps(reactivePick(props, 'delayMs'))
|
const fallbackProps = useForwardProps(reactivePick(props, 'delayMs'))
|
||||||
|
|
||||||
|
|||||||
@@ -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 })">
|
<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
|
<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"
|
:item="currentStep"
|
||||||
>
|
>
|
||||||
{{ currentStep?.content }}
|
{{ currentStep?.content }}
|
||||||
|
|||||||
Reference in New Issue
Block a user