From b41c4c597797d20599284933e410255340c277ef Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 19 Apr 2024 14:49:58 +0100 Subject: [PATCH] Fixed #5622 - Deprecated: TabView --- components/lib/tabview/BaseTabView.vue | 1 + components/lib/tabview/TabView.d.ts | 2 ++ components/lib/tabview/TabView.vue | 2 ++ 3 files changed, 5 insertions(+) diff --git a/components/lib/tabview/BaseTabView.vue b/components/lib/tabview/BaseTabView.vue index 6a13a00ff..8701ce0e0 100644 --- a/components/lib/tabview/BaseTabView.vue +++ b/components/lib/tabview/BaseTabView.vue @@ -46,6 +46,7 @@ export default { style: TabViewStyle, provide() { return { + $pcTabs: undefined, // Backwards compatible to prevent component from breaking $parentInstance: this }; } diff --git a/components/lib/tabview/TabView.d.ts b/components/lib/tabview/TabView.d.ts index 5ed5d6ebf..04c22bf73 100755 --- a/components/lib/tabview/TabView.d.ts +++ b/components/lib/tabview/TabView.d.ts @@ -269,6 +269,8 @@ export interface TabViewEmits { } /** + * @deprecated Deprecated since v4. Use Tabs component instead. + * * **PrimeVue - TabView** * * _TabView is a container component to group content with tabs._ diff --git a/components/lib/tabview/TabView.vue b/components/lib/tabview/TabView.vue index 5528c38b9..14ac4c223 100755 --- a/components/lib/tabview/TabView.vue +++ b/components/lib/tabview/TabView.vue @@ -123,6 +123,8 @@ export default { } }, mounted() { + console.warn('Deprecated since v4. Use Tabs component instead.'); + this.id = this.id || UniqueComponentId(); this.updateInkBar(); this.scrollable && this.updateButtonState();