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();