Fixed #5622 - Deprecated: TabView

pull/5677/head
mertsincan 2024-04-19 14:49:58 +01:00
parent 149ea55bc7
commit b41c4c5977
3 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,7 @@ export default {
style: TabViewStyle, style: TabViewStyle,
provide() { provide() {
return { return {
$pcTabs: undefined, // Backwards compatible to prevent <TabPanel> component from breaking
$parentInstance: this $parentInstance: this
}; };
} }

View File

@ -269,6 +269,8 @@ export interface TabViewEmits {
} }
/** /**
* @deprecated Deprecated since v4. Use Tabs component instead.
*
* **PrimeVue - TabView** * **PrimeVue - TabView**
* *
* _TabView is a container component to group content with tabs._ * _TabView is a container component to group content with tabs._

View File

@ -123,6 +123,8 @@ export default {
} }
}, },
mounted() { mounted() {
console.warn('Deprecated since v4. Use Tabs component instead.');
this.id = this.id || UniqueComponentId(); this.id = this.id || UniqueComponentId();
this.updateInkBar(); this.updateInkBar();
this.scrollable && this.updateButtonState(); this.scrollable && this.updateButtonState();