diff --git a/src/runtime/components/Tabs.vue b/src/runtime/components/Tabs.vue index d4197ffa..a920bcee 100644 --- a/src/runtime/components/Tabs.vue +++ b/src/runtime/components/Tabs.vue @@ -29,7 +29,7 @@ type SlotFunction = (props: { item: T, index: number }) => any export type TabsSlots = { default(): any - item(): SlotFunction + content(): SlotFunction } & { [key in T['slot'] as string]?: SlotFunction } @@ -61,7 +61,7 @@ const ui = computed(() => tv({ extend: tabs, slots: props.ui })()) - + {{ item.content }}