Skip to content

Commit 1208297

Browse files
committed
fix(Tabs): added missing title slot declaration
1 parent 79b8c25 commit 1208297

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

apps/docs/src/stories/Components/Tabs.story.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
<keep-alive-test />
3838
</pf-tab>
3939
<pf-tab>
40-
<template #title>System</template>
40+
<template #title>
41+
<pf-tab-title-text>System</pf-tab-title-text>
42+
</template>
4143
System
4244
<keep-alive-test />
4345
</pf-tab>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"eslint-plugin-node": "^11.1.0",
2424
"eslint-plugin-promise": "^6.6.0",
2525
"eslint-plugin-vue": "^9.27.0",
26-
"turbo": "^2.0.9",
26+
"turbo": "^2.5.0",
2727
"typescript": "^5.5.4"
2828
},
2929
"packageManager": "[email protected]",

packages/core/src/components/Tabs/Tab.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
<pf-tab-title-icon v-if="$slots.icon">
2525
<slot name="icon" />
2626
</pf-tab-title-icon>
27-
<pf-tab-title-text v-if="title">
28-
{{ title }}
29-
</pf-tab-title-text>
30-
<slot v-else name="title" />
27+
<slot name="title">
28+
<pf-tab-title-text v-if="title">
29+
{{ title }}
30+
</pf-tab-title-text>
31+
</slot>
3132
</pf-tab-button>
3233
</li>
3334
</teleport>
@@ -89,6 +90,7 @@ const emit = defineEmits<{
8990
defineSlots<{
9091
default?: (props?: Record<never, never>) => any;
9192
icon?: (props?: Record<never, never>) => any;
93+
title?: (props?: Record<never, never>) => any;
9294
}>();
9395
9496
const instance = getCurrentInstance();

0 commit comments

Comments
 (0)