Fixed #5622 - Deprecated: TabView
parent
149ea55bc7
commit
b41c4c5977
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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._
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue