We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DefaultSlotProps
1 parent 0e4f174 commit 891d79aCopy full SHA for 891d79a
src/runtime/components/NuxtPicture.vue
@@ -79,14 +79,8 @@ const attrs = computed(() => {
79
return attrs
80
})
81
82
-interface DefaultSlotProps {
83
- imgAttrs: Record<string, unknown>
84
- isLoaded: boolean
85
- src?: string
86
-}
87
-
88
defineSlots<{
89
- default: (props: DefaultSlotProps) => any
+ default(props: DefaultSlotProps): any
90
}>()
91
92
const originalFormat = computed(() => getFileExtension(props.src))
@@ -195,3 +189,11 @@ onMounted(() => {
195
189
markFeatureUsage('nuxt-picture')
196
190
197
191
</script>
192
+
193
+<script lang="ts">
194
+export interface DefaultSlotProps {
+ imgAttrs: Record<string, unknown>
+ isLoaded: boolean
+ src?: string
198
+}
199
+</script>
0 commit comments